Revert autoupdate's revert.
[gnulib.git] / ChangeLog
blobe3a368edbc460e719885f7b294c2908304f94abc
1 2020-08-12  Bruno Haible  <bruno@clisp.org>
3         Revert autoupdate's revert.
4         * config/srclist.txt: Mark regex.h as needing sync with glibc.
6 2020-08-11  Bruno Haible  <bruno@clisp.org>
8         thread-optim: Fix a compiler warning.
9         * lib/thread-optim.h (IF_MT_DECL): Define differently.
11 2020-08-11  Bruno Haible  <bruno@clisp.org>
13         Use __restrict also on clang.
14         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
15         (__restrict_arr): On clang, define like on GCC.
16         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
17         (_Restrict_arr_): Use _Restrict_ also on clang.
18         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
19         (_Restrict_arr_): Use _Restrict_ also on clang.
21 2020-08-11  Bruno Haible  <bruno@clisp.org>
23         Use flexible array syntax also on clang.
24         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
25         define like for GCC 3.
27 2020-08-11  Bruno Haible  <bruno@clisp.org>
29         fcntl: On native Windows, use _setmode, not setmode.
30         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
31         * lib/binary-io.h: Update comment.
32         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
33         * tests/test-dup2.c: Likewise.
34         * tests/test-dup-safer.c: Likewise.
35         * tests/test-fcntl.c: Likewise.
37 2020-08-11  Bruno Haible  <bruno@clisp.org>
39         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
40         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
41         * lib/spawn-pipe.c (create_pipe): Likewise.
42         * tests/test-nonblocking-pipe-main.c (main): Likewise.
43         * tests/test-nonblocking-socket-main.c (main): Likewise.
44         * lib/wait-process.c: Update comment.
45         * doc/posix-functions/fork.texi: Update.
47 2020-08-11  Bruno Haible  <bruno@clisp.org>
49         asyncsafe-spin: Use GCC built-ins also on clang.
50         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
51         the newer GCC built-ins also on clang.
53 2020-08-11  Bruno Haible  <bruno@clisp.org>
55         Use expression statements also on clang.
56         * lib/cdefs.h (__extension__): Don't define to empty on clang.
57         * lib/obstack.h (__extension__): Likewise.
58         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
59         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
60         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
61         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
62         obstack_finish, obstack_free): Enable as optimized macros also on clang.
63         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
65 2020-08-10  Bruno Haible  <bruno@clisp.org>
67         Use many __attribute__s with clang.
68         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
69         on clang.
70         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
71         New macros.
72         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
73         on clang.
74         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
75         also on older clang versions.
76         (__attribute__): Don't define to empty on clang.
77         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
78         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
79         (__attribute_const__): Use __attribute__ __const__ also on clang.
80         (__attribute_used__): Use __attribute__ __used__ also on clang.
81         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
82         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
83         clang.
84         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
85         clang.
86         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
87         also on clang.
88         (__nonnull): Use __attribute__ __nonnull__ also on clang.
89         (__attribute_warn_unused_result__): Use __attribute__
90         __warn_unused_result__ also on clang.
91         (__always_inline): Use __attribute__ __always_inline__ also on clang.
92         (__attribute_artificial__): Use __attribute__ __artificial__ also on
93         clang >= 7.
94         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
95         clang versions.
96         (_Noreturn): Don't redefine on clang >= 3.5.
97         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
98         also on clang.
99         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
100         on clang.
101         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
102         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
103         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
104         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
105         also on clang.
106         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
107         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
108         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
109         also on clang.
110         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
111         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
112         __attribute__ __noreturn__ also on clang.
113         * lib/obstack.h (__attribute_noreturn__): Likewise.
114         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
115         clang.
116         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
117         always_inline also on clang.
118         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
119         clang.
121 2020-08-10  Bruno Haible  <bruno@clisp.org>
123         c-ldtoastr tests: Fix test failure.
124         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
125         is longer than 'double'.
127 2020-08-10  Bruno Haible  <bruno@clisp.org>
129         Revert autoupdate's revert.
130         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
132 2020-08-09  Bruno Haible  <bruno@clisp.org>
134         string: Fix build error in C++ mode with clang (regression from today).
135         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
136         parameters, one for GCC, one for clang.
137         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
138         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
139         as return type.
141 2020-08-09  Bruno Haible  <bruno@clisp.org>
143         ftruncate: Use _chsize, not chsize.
144         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
145         * lib/ftruncate.c: Test HAVE__CHSIZE.
146         (chsize_nothrow): Use _chsize, not chsize.
148 2020-08-09  Bruno Haible  <bruno@clisp.org>
150         Silence warnings from clang 10 with -Wimplicit-fallthrough.
151         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
152         clang >= 10.
153         * lib/fnmatch.c (FALLTHROUGH): Likewise.
154         * lib/fts.c (FALLTHROUGH): Likewise.
155         * tests/macros.h (FALLTHROUGH): Likewise.
156         * lib/regex_internal.h (FALLTHROUGH): Likewise.
157         * config/srclist.txt: Mark it as needing sync with glibc.
159 2020-08-09  Bruno Haible  <bruno@clisp.org>
161         stdbool tests: Enable the stricter tests also on clang.
162         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
163         (e): Enable the address-to-bool conversion test also on clang.
165 2020-08-09  Bruno Haible  <bruno@clisp.org>
167         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
168         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
170 2020-08-09  Bruno Haible  <bruno@clisp.org>
172         Use attribute __aligned__ with clang.
173         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
174         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
176 2020-08-09  Bruno Haible  <bruno@clisp.org>
178         Use __alignof__ with clang.
179         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
180         on clang.
181         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
182         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
183         clang.
184         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
185         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
186         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
187         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
189 2020-08-09  Bruno Haible  <bruno@clisp.org>
191         ignore-value: Simplify on clang.
192         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
193         workaround.
195 2020-08-09  Bruno Haible  <bruno@clisp.org>
197         Use __typeof__ with clang.
198         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
199         "clang -std=gnu99".
200         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
201         * tests/test-stdint.c (verify_same_types): Enable the check also on
202         clang.
204 2020-08-09  Bruno Haible  <bruno@clisp.org>
206         Add ability to emit user-defined warnings and errors with clang.
207         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
208         _GL_ATTRIBUTE_WARNING using an attribute for clang.
209         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
210         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
211         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
212         attribute for clang.
214 2020-08-09  Bruno Haible  <bruno@clisp.org>
216         intprops: Fix typo in comment.
217         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
219 2020-08-09  Bruno Haible  <bruno@clisp.org>
221         Use __builtin_signbit* with clang.
222         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
223         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
224         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
226         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
227         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
228         not REPLACE_SIGNBIT_USING_GCC.
230 2020-08-09  Bruno Haible  <bruno@clisp.org>
232         Use __builtin_isnan with clang.
233         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
234         not __builtin_isnanf. Also on clang.
235         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
236         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
237         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
238         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
239         built-in.
240         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
241         not __builtin_isnanl. Also on clang.
242         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
243         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
244         * lib/math.in.h (__has_builtin): Remove macro.
245         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
246         __builtin_isnanf. Also on clang.
247         (isnand, gl_isnan_d): With clang, use the GCC built-in.
248         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
249         __builtin_isnanl. Also on clang.
250         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
251         on clang.
253 2020-08-09  Bruno Haible  <bruno@clisp.org>
255         thread-optim: Fix logic error.
256         Reported by Paul Eggert.
257         * lib/thread-optim.h (IF_MT): Fix logic error.
259 2020-08-08  Bruno Haible  <bruno@clisp.org>
261         localename: Use module 'thread-optim'.
262         * lib/localename.c: Include thread-optim.h.
263         (struniq): Use IF_MT macro.
264         * modules/localename (Depends-on): Add thread-optim.
266         clean-temp: Use module 'thread-optim'.
267         * lib/clean-temp.c: Include thread-optim.h.
268         (register_temporary_file, unregister_temporary_file, create_temp_dir,
269         register_temp_file, unregister_temp_file, register_temp_subdir,
270         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
271         close_temp, fclose_variant_temp): Use IF_MT macro.
272         * modules/clean-temp (Depends-on): Add thread-optim.
274         fatal-signal: Use module 'thread-optim'.
275         * lib/fatal-signal.c: Include thread-optim.h.
276         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
277         macro.
278         * modules/fatal-signal (Depends-on): Add thread-optim.
280 2020-08-08  Bruno Haible  <bruno@clisp.org>
282         New module 'thread-optim'.
283         * lib/thread-optim.h: New file.
284         * modules/thread-optim: New file.
285         * doc/multithread.texi (Multithreading Optimizations): New section.
287 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
289         doc: more updates for glibc 2.32
290         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
291         * doc/posix-functions/fchmodat.texi: Update.
293 2020-08-07  Bruno Haible  <bruno@clisp.org>
295         doc: Update for glibc 2.32.
296         * doc/glibc-functions/__libc_single_threaded.texi: New file.
297         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
298         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
299         * doc/glibc-functions/sigabbrev_np.texi: New file.
300         * doc/glibc-functions/sigdescr_np.texi: New file.
301         * doc/glibc-functions/strerrordesc_np.texi: New file.
302         * doc/glibc-functions/strerrorname_np.texi: New file.
303         * doc/gnulib.texi: Include them.
304         (Glibc sys/single_threaded.h): New section.
305         * doc/pastposix-functions/h_errno.texi: Update.
306         * doc/posix-functions/*.texi: Likewise.
307         * doc/glibc-functions/*.texi: Likewise.
309 2020-08-07  Bruno Haible  <bruno@clisp.org>
311         alloca: No need to compile alloca.c with clang.
312         * lib/alloca.c: Skip all code with clang.
314         Use __builtin_alloca with clang.
315         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
317 2020-08-06  Bruno Haible  <bruno@clisp.org>
319         Use __builtin_assume with clang.
320         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
321         (assume): Use __builtin_assume when available.
323 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
325         libgmp: add <gmp/gmp.h> support
326         * m4/libgmp.m4 (gl_LIBGMP):
327         * modules/libgmp (configure.ac, Makefile.am):
328         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
329         ‘#include <gmp.h>’.
331 2020-08-06  Bruno Haible  <bruno@clisp.org>
333         Consider that clang defines __OPTIMIZE__ like GCC does.
334         * lib/streq.h: Define the inline functions also on clang.
335         * lib/c-strcaseeq.h: Likewise.
336         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
337         the GCC workaround to clang.
339 2020-08-06  Bruno Haible  <bruno@clisp.org>
341         safe-alloc: Remove unused code.
342         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
344 2020-08-06  Bruno Haible  <bruno@clisp.org>
346         Use __builtin_expect with clang everywhere.
347         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
348         also on clang.
350 2020-08-05  Bruno Haible  <bruno@clisp.org>
352         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
353         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
354         built-in also on clang.
355         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
356         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
358 2020-08-05  Bruno Haible  <bruno@clisp.org>
360         Use __builtin_clz{,l,ll} with clang, also on Windows.
361         * lib/integer_length.c: With clang, use the GCC built-in, not
362         <intrin.h>.
363         * lib/integer_length_l.c: Likewise.
364         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
365         also on clang.
366         * lib/vasnprintf.c (divide): Likewise.
368 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
370         Update srclist.txt as per recent glibc changes
371         * config/srclist.txt: Uncomment lines to reflect recent merges
372         from Gnulib to glibc.
374 2020-08-03  Bruno Haible  <bruno@clisp.org>
376         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
377         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
379 2020-08-03  Bruno Haible  <bruno@clisp.org>
381         integer_length_ll: Optimize for MSVC in 64-bit mode.
382         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
383         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
385 2020-08-03  Bruno Haible  <bruno@clisp.org>
387         integer_length_ll: Optimize for MSVC in 32-bit mode.
388         * lib/integer_length_l.c: Include <intrin.h>.
389         (integer_length): Define as inline function, like in
390         lib/integer_length.c.
392 2020-08-03  Bruno Haible  <bruno@clisp.org>
394         integer_length: Optimize for MSVC.
395         * lib/integer_length.c: Include <intrin.h>.
396         (integer_length): With MSVC, use the _BitScanReverse built-in.
398 2020-08-03  Bruno Haible  <bruno@clisp.org>
400         ffsll: Optimize for MSVC in 64-bit mode.
401         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
402         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
403         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
405 2020-08-03  Bruno Haible  <bruno@clisp.org>
407         ffsll: Optimize for MSVC in 32-bit mode.
408         * lib/ffsl.h: Include <intrin.h>.
409         (ffs): Define as inline function, like in lib/ffs.c.
411 2020-08-03  Bruno Haible  <bruno@clisp.org>
413         ffs: Optimize for MSVC.
414         * lib/ffs.c: Include <intrin.h>.
415         (ffs): With MSVC, use the _BitScanForward built-in.
417 2020-08-03  Bruno Haible  <bruno@clisp.org>
419         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
420         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
421         variable.
423 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
425         fopen: Avoid undesired interactions with glibc headers.
426         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
427         __need_FILE, as the latter does not work with glibc.
429 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
431         fcntl: document some F_SETLK errno variations
432         * doc/posix-functions/fcntl.texi (fcntl): Document
433         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
435 2020-08-02  Bruno Haible  <bruno@clisp.org>
437         oset: Add an 'iterator_atleast' operation.
438         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
439         extracted from gl_array_search_atleast.
440         (gl_array_search_atleast): Use it.
441         (gl_array_iterator_atleast): New function.
442         (gl_array_oset_implementation): Use it.
443         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
444         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
445         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
446         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
447         member.
448         (gl_oset_iterator_atleast): New function.
449         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
450         (gl_OSet::iterator): Add another auxiliary constructor.
451         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
452         New functions.
453         (main): Test also gl_oset_iterator_atleast.
454         * tests/test-avltree_oset.c (is_at_least): New function.
455         (main): Test also gl_oset_iterator_atleast.
456         * tests/test-rbtree_oset.c (is_at_least): New function.
457         (main): Test also gl_oset_iterator_atleast.
458         * tests/test-oset-c++.cc (is_at_most): New function.
459         (main): Test also gl_OSet::begin_atleast.
461 2020-08-02  Bruno Haible  <bruno@clisp.org>
463         oset-c++, omap-c++: Remove restriction for search_atleast method.
464         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
465         a different type than the element.
466         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
467         a different type than the key.
469 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
471         gnumakefile: say ‘$(MAKE)’ not ‘make’
472         * top/GNUmakefile (abort-due-to-no-makefile):
473         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
474         This change is backported from Autoconf.
476 2020-08-01  Bruno Haible  <bruno@clisp.org>
478         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
479         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
480         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
481         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
482         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
483         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
485 2020-08-01  Bruno Haible  <bruno@clisp.org>
487         libtextstyle-optional: Update tests.
488         * modules/libtextstyle-optional-tests (configure.ac): Invoke
489         gl_LIBTEXTSTYLE_OPTIONAL.
491 2020-08-01  Bruno Haible  <bruno@clisp.org>
493         parse-datetime: Fix wrong #line statements.
494         * modules/parse-datetime (Makefile.am): Correct #line statements also in
495         parse-datetime-gen.h.
497 2020-08-01  Bruno Haible  <bruno@clisp.org>
499         libtextstyle[-optional]: Allow requesting a minimum version.
500         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
501         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
502         gl_LIBTEXTSTYLE_SEARCH): New macros.
503         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
504         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
505         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
506         * modules/libtextstyle-optional (configure.ac): Don't invoke
507         gl_LIBTEXTSTYLE_OPTIONAL.
508         * NEWS: Mention the changes.
510 2020-07-31  Bruno Haible  <bruno@clisp.org>
512         _GL_CMP: Improve documentation.
513         Reported by Paul Eggert in
514         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
515         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
516         passed.
518 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
520         largefile: sync with Autoconf master
521         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
522         Avoid undefined behavior on platforms where off_t is 32 bits.
523         See: https://bugs.debian.org/742780
525         alloca: sync with Autoconf master
526         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
527         Do not define if Autoconf 2.70 or later, since Autoconf master
528         now matches us.
530 2020-07-30  Bruno Haible  <bruno@clisp.org>
532         unicodeio: Add comment.
533         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
534         different iconv behaviours.
536 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
538         Work around some Oracle Studio attribute bugs
539         These were discovered when building bleeding-edge Emacs with
540         Oracle Studio.
541         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
542         Port to Oracle Studio 12.6, which mishandles __attribute__
543         ((__cold__)) and __attribute__ ((__may_alias__)) even though
544         __has_attribute says they work.
546 2020-07-29  Bruno Haible  <bruno@clisp.org>
548         unicodeio: Fix wrong result on musl libc.
549         Reported by A. Wilcox <awilfox@adelielinux.org> in
550         <https://www.openwall.com/lists/musl/2020/07/29/2>.
551         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
552         on musl libc.
553         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
554         * modules/unicodeio (Files): Add m4/musl.m4.
556 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
558         fsusage, regex, stat-size: remove Cray support
559         As near as I can make out this is actually support for UNICOS/mp,
560         last released 2005, and Cray hasn’t supported that for years.
561         * config/srclist.txt: Comment out regex.h for now.
562         * lib/fsusage.c (get_fs_usage):
563         * lib/regex.h (re_comp, re_exec):
564         * lib/stat-size.h (ST_NBLOCKSIZE):
565         Don’t worry about _CRAY.
567 2020-07-29  Bruno Haible  <bruno@clisp.org>
569         parse-datetime: Fix compilation error with bison 3.7.
570         * modules/parse-datetime (Makefile.am): Create a generated header file
571         parse-datetime-gen.h in the source directory. Correct #include and
572         #line statements during preprocessing.
574 2020-07-28  Bruno Haible  <bruno@clisp.org>
576         fopen-gnu: Create files correctly (regression from 2020-05-24).
577         * lib/fopen.c (rpl_open): Pass a third argument to open().
579 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
581         xalloc-die: don’t depend on xalloc
582         This removes a circular dependency, as xalloc depends on xalloc-die.
583         * modules/xalloc-die (Files): Add lib/xalloc.h.
584         (Depends-on): Remove xalloc.
585         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
587         dfa-tests: port to MSVC
588         Problem reported by Gisle Vanem in:
589         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
590         Also, remove an unnecessary dependency on getprogname.
591         * modules/dfa-tests (Depends-on): Remove getprogname.
592         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
593         (exit_status): New static var.
594         (dfawarn): Set it instead of exiting.
595         Do not declare as _Noreturn, to pacify MSVC.
596         (main): Return exit_status.
598 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
600         argz: pacify MSVC
601         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
602         Problem reported by Gisle Vanem.
604         libgmp: remove dependency on havelib
605         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
606         use the more-traditional AC_SEARCH_LIBS approach.
607         This should work better with GNU Emacs configuration,
608         which uses pkg-config instead of a havelib-style approach.
609         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
610         * modules/libgmp (Depends-on): Remove havelib.
612         libgmp: remove HAVE_GMP, LIB_GMP
613         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
614         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
616 2020-07-26  Bruno Haible  <bruno@clisp.org>
618         inttypes: Remove support for AIX 4.
619         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
620         * m4/inttypes-pri.m4: Remove file.
621         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
622         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
623         * modules/inttypes-incomplete (Makefile.am): Don't substitute
624         PRI_MACROS_BROKEN.
625         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
627 2020-07-26  Bruno Haible  <bruno@clisp.org>
629         gettimeofday: Remove workaround for Mac OS X 10.0.
630         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
631         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
632         * lib/gettimeofday.c: Don't include localtime-buffer.h.
633         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
634         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
635         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
636         * modules/localtime-buffer: Remove file.
637         * lib/localtime-buffer.h: Remove file.
638         * lib/localtime-buffer.c: Remove file.
639         * m4/localtime-buffer.m4: Remove file.
640         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
642 2020-07-26  Bruno Haible  <bruno@clisp.org>
644         tzset: Remove workaround for Solaris 2.6.
645         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
646         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
647         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
648         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
649         * lib/localtime-buffer.c: Likewise.
650         * lib/localtime.c: Likewise.
651         * lib/tzset.c: Don't include localtime-buffer.h.
652         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
653         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
654         is 1.
655         * modules/tzset (Depends-on): Remove localtime-buffer.
657 2020-07-26  Bruno Haible  <bruno@clisp.org>
659         expl: Simplify autoconf test.
660         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
661         with small values..." test into the "checking whether expl works..."
662         test.
664 2020-07-26  Bruno Haible  <bruno@clisp.org>
666         alloca: Remove Cray-2 and Cray Y-MP support.
667         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
668         Enable also on Autoconf >= 2.69.
669         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
670         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
671         i00afunc): Remove.
673 2020-07-25  Bruno Haible  <bruno@clisp.org>
675         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
676         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
678 2020-07-25  Bruno Haible  <bruno@clisp.org>
680         sigprocmask: Small autoconf macro improvement.
681         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
682         user to override the value of gl_cv_func_sigprocmask.
683         * m4/gnulib-common.m4 (gl_SILENT): New macro.
685 2020-07-25  Bruno Haible  <bruno@clisp.org>
687         Small autoconf macro improvements.
688         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
689         override the value of gl_cv_func_working_mktime.
690         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
691         compiler produces multi-arch binaries..." in the configure output.
692         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
693         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
695 2020-07-25  Bruno Haible  <bruno@clisp.org>
697         doc: Update for NetBSD 7.1, 8.0, 9.0.
698         * doc/*/*.texi: Update.
699         * m4/exp2l.m4: Update comments.
700         * m4/expl.m4: Likewise.
701         * m4/ilogb.m4: Likewise.
702         * m4/ilogbf.m4: Likewise.
703         * m4/log10l.m4: Likewise.
704         * m4/logl.m4: Likewise.
705         * m4/printf.m4: Likewise.
706         * m4/rintl.m4: Likewise.
707         * m4/wcwidth.m4: Likewise.
709 2020-07-24  Bruno Haible  <bruno@clisp.org>
711         doc: Update for Mac OS X 10.13.
712         * doc/*/*.texi: Update.
713         * m4/expm1l.m4: Update comments.
714         * m4/getgroups.m4: Likewise.
715         * m4/getlogin_r.m4: Likewise.
716         * m4/linkat.m4: Likewise.
717         * m4/printf.m4: Likewise.
719 2020-07-24  Bruno Haible  <bruno@clisp.org>
721         doc: Update for Cygwin 2.9.0.
722         * doc/*/*.texi: Update.
724 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
726         parse-datetime: modernize doc
727         * doc/parse-datetime.texi: Use more-current examples.
728         Don’t lead with 32-bit time_t, as it’s on its way out.
729         Capitalize “Epoch” to be consistent with POSIX.
731         timespec: remove dependence on ‘verify’
732         * lib/timespec.h: Do not include verify.h; no longer needed.
733         * modules/timespec (Depends-on): Remove ‘verify’.
735         Optimize a few more three-valued comparisons
736         * lib/timespec.h (timespec_cmp, timespec_sign):
737         * lib/utimecmp.c (utimecmpat):
738         Avoid conditional branches by using _GL_CMP.
740         Fix _GL_CMP parenthesization typo
741         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
743 2020-07-24  Bruno Haible  <bruno@clisp.org>
745         dfa: Revert breaking gawk.
746         Reported by Arnold Robbins <arnold@skeeve.com>.
747         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
749 2020-07-23  Bruno Haible  <bruno@clisp.org>
751         Optimize three-valued comparison between integers.
752         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
753         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
754         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
755         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
756         * lib/dfa.c (compare): Likewise.
757         * lib/fts.c (fts_compare_ino): Likewise.
758         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
759         * lib/mbscasecmp.c (mbscasecmp): Likewise.
760         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
761         * lib/memcasecmp.c (memcasecmp): Likewise.
762         * lib/memcmp2.c (memcmp2): Likewise.
763         * lib/savedir.c (direntry_cmp_inode): Likewise.
764         * lib/strcasecmp.c (strcasecmp): Likewise.
765         * lib/strncasecmp.c (strncasecmp): Likewise.
766         * lib/unistr/u-cmp2.h (FUNC): Likewise.
768 2020-07-23  Bruno Haible  <bruno@clisp.org>
770         lchmod: Use /proc on Cygwin.
771         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
773 2020-07-23  Ken Brown  <kbrown@cornell.edu>
775         fchmodat: Use /proc on Cygwin
776         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
778 2020-07-21  Bruno Haible  <bruno@clisp.org>
780         aligned-malloc: Optionally use aligned_alloc.
781         * lib/aligned-malloc.h: Verify the alignment.
782         (aligned_malloc): Use aligned_alloc as an alternative.
783         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
784         * doc/posix-functions/aligned_alloc.texi: Mention the modules
785         'aligned-malloc' and 'pagealign_alloc'.
787 2020-07-21  Bruno Haible  <bruno@clisp.org>
789         aligned-malloc: Add tests.
790         * tests/test-aligned-malloc.c: New file.
791         * modules/aligned-malloc-tests: New file.
793         aligned-malloc: New module.
794         * lib/aligned-malloc.h: New file.
795         * m4/malloc-align.m4: New file.
796         * modules/aligned-malloc: New file.
797         * doc/posix-functions/posix_memalign.texi: Mention the new module.
798         * doc/glibc-functions/memalign.texi: Likewise.
800 2020-07-21  Bruno Haible  <bruno@clisp.org>
802         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
803         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
804         sure PRIPTR_PREFIX is defined to "ll", not "l".
806 2020-07-21  Bruno Haible  <bruno@clisp.org>
808         printf-posix: Make an autoconf test more future-proof.
809         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
810         using uintptr_t.
812 2020-07-20  Bruno Haible  <bruno@clisp.org>
814         list, oset, omap: Relicense some of the container modules under LGPLv2+.
815         * modules/list (License): Change to LGPLv2+.
816         * modules/array-list (License): Likewise.
817         * modules/carray-list (License): Likewise.
818         * modules/linked-list (License): Likewise.
819         * modules/avltree-list (License): Likewise.
820         * modules/rbtree-list (License): Likewise.
821         * modules/oset (License): Likewise.
822         * modules/array-oset (License): Likewise.
823         * modules/avltree-oset (License): Likewise.
824         * modules/rbtree-oset (License): Likewise.
825         * modules/omap (License): Likewise.
826         * modules/array-omap (License): Likewise.
827         * modules/avltree-omap (License): Likewise.
828         * modules/rbtree-omap (License): Likewise.
830 2020-07-20  Bruno Haible  <bruno@clisp.org>
832         oset: Add an 'update' operation.
833         * lib/gl_array_oset.c (gl_array_update): New function.
834         (gl_array_oset_implementation): Use it.
835         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
836         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
837         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
838         extracted from gl_tree_nx_add_before.
839         (gl_tree_nx_add_before): Invoke it.
840         (gl_tree_add_node_after): New function, extracted from
841         gl_tree_nx_add_after.
842         (gl_tree_nx_add_after): Invoke it.
843         (gl_tree_remove_node_no_free): New function, extracted from
844         gl_tree_remove_node.
845         (gl_tree_remove_node): Invoke it.
846         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
847         extracted from gl_tree_nx_add_before.
848         (gl_tree_nx_add_before): Invoke it.
849         (gl_tree_add_node_after): New function, extracted from
850         gl_tree_nx_add_after.
851         (gl_tree_nx_add_after): Invoke it.
852         (gl_tree_remove_node_no_free): New function, extracted from
853         gl_tree_remove_node.
854         (gl_tree_remove_node): Invoke it.
855         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
856         from gl_tree_iterator_next.
857         (gl_tree_iterator_next): Invoke it.
858         (gl_tree_prev_node, gl_tree_update): New functions.
859         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
860         (gl_avltree_oset_implementation): Use gl_tree_update.
861         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
862         (gl_rbtree_oset_implementation): Use gl_tree_update.
863         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
864         (gl_oset_update): New function.
865         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
866         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
867         * modules/rbtree-oset (configure.ac): Likewise.
868         * tests/test-oset-update.h: New file.
869         * tests/test-array_oset.c: Include test-oset-update.h.
870         (main): Invoke test_update.
871         * tests/test-avltree_oset.c: Likewise.
872         * tests/test-rbtree_oset.c: Likewise.
873         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
874         * modules/avltree-oset-tests (Files): Likewise.
875         * modules/rbtree-oset-tests (Files): Likewise.
876         * tests/test-oset-c++.cc (action): New function.
877         (main): Test the 'update' member function.
879 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
881         md5, sha1, sha256, sha512: pacify Autoconf 2.70
882         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
883         shell if, so that the argument to AC_CHECK_HEADERS is
884         a simple string that does not require shell evaluation.
885         This fixes a warning generated by Autoconf 2.69b.
887 2020-07-12  Bruno Haible  <bruno@clisp.org>
889         libgmp: Avoid warning when --without-libgmp is used.
890         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
891         GCC >= 8, not for GCC >= 4.6.
893 2020-07-12  Bruno Haible  <bruno@clisp.org>
895         libgmp: Link to the correct shared library.
896         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
897         * modules/libgmp (Depends-on): Add havelib.
898         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
899         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
901 2020-07-12  Bruno Haible  <bruno@clisp.org>
903         libgmp tests: Add some safety checks.
904         * modules/libgmp-tests (Depends-on): Add verify.
905         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
906         (main): Verify that gmp.h and libgmp versions match.
908 2020-07-10  Bruno Haible  <bruno@clisp.org>
910         unicodeio: Fix wrong result on NetBSD.
911         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
912         characters also on NetBSD.
914 2020-07-09  Bruno Haible  <bruno@clisp.org>
916         unicodeio: Fix wrong result on Solaris 11.
917         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
918         via Akim Demaille <akim.demaille@gmail.com> in
919         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
920         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
921         characters on Solaris.
922         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
923         UTF-8 output or the specified fallback.
925 2020-07-08  Bruno Haible  <bruno@clisp.org>
927         unicodeio: Add tests.
928         * tests/test-unicodeio.c: New file.
929         * tests/test-unicodeio1.sh: New file.
930         * tests/test-unicodeio2.sh: New file.
931         * tests/test-unicodeio3.sh: New file.
932         * modules/unicodeio-tests: New file.
934 2020-07-08  Bruno Haible  <bruno@clisp.org>
936         unicodeio: Document link requirements.
937         * modules/unicodeio (Link): New section.
939 2020-07-07  Bruno Haible  <bruno@clisp.org>
941         doc: Remove support for some very old platforms.
942         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
943         * doc/posix-functions/memcpy.texi: Likewise.
944         * doc/posix-functions/memmove.texi: Likewise.
945         * doc/posix-functions/memset.texi: Likewise.
946         * doc/posix-functions/getcwd.texi: Likewise.
948         memchr: Remove support for some very old platforms.
949         * m4/memchr-obsolete.m4: Remove file.
950         * modules/memchr-obsolete: Remove file.
951         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
952         absent. Don't define HAVE_MEMCHR.
953         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
954         * modules/memchr (Depends-on): Remove memchr-obsolete.
955         (configure.ac): Assume HAVE_MEMCHR is 1.
956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
957         HAVE_MEMCHR.
958         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
959         * doc/posix-functions/memchr.texi: Don't mention module
960         'memchr-obsolete'.
961         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
962         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
963         * modules/strnlen (Depends-on): Remove memchr-obsolete.
965         dup2: Remove support for some very old platforms.
966         * m4/dup2-obsolete.m4: Remove file.
967         * modules/dup2-obsolete: Remove file.
968         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
969         Don't define HAVE_DUP2.
970         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
971         * lib/dup2.c: Likewise.
972         * modules/dup2 (Depends-on, configure.ac): Likewise.
973         (Depends-on): Remove dup2-obsolete.
974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
975         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
976         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
978 2020-07-07  Bruno Haible  <bruno@clisp.org>
980         canonicalize: Trim module dependencies.
981         * lib/hash-triple.h: Group declarations.
982         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
983         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
984         (STREQ): Remove macro.
985         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
986         * modules/hash-triple-simple: New file, based on modules/hash-triple.
987         * modules/hash-triple (Files): Remove lib/hash-triple.h.
988         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
989         * modules/canonicalize (Depends-on): Remove hash-triple. Add
990         hash-triple-simple.
991         * modules/file-set (Depends-on): Likewise.
993 2020-07-07  Bruno Haible  <bruno@clisp.org>
995         Clarify dependencies to double-slash-root.
996         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
997         (Depends-on): Add double-slash-root.
998         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
999         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
1001 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1003         libgmp: new module
1004         The idea is to let programs simply include <gmp.h>, and
1005         so long as they live within the mini-gmp subset they need
1006         not worry about whether the GMP libraries are installed.
1007         * MODULES.html.sh: Mention it.
1008         * config/srclist.txt: Mention files copied from GMP source.
1009         * config/srclistvars.sh (GMP): New var.
1010         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
1011         * modules/libgmp-tests, tests/test-libgmp.c: New files.
1012         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
1014 2020-07-05  Bruno Haible  <bruno@clisp.org>
1016         mkancesdirs: Trim module dependencies.
1017         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
1018         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
1020 2020-07-05  Bruno Haible  <bruno@clisp.org>
1022         getprogname: Trim module dependencies.
1023         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
1024         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
1025         basename-lgpl.
1027 2020-07-05  Bruno Haible  <bruno@clisp.org>
1029         filenamecat-lgpl: Trim module dependencies.
1030         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
1031         dirname.h.
1032         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
1033         basename-lgpl, filename.
1035 2020-07-05  Bruno Haible  <bruno@clisp.org>
1037         backupfile, backup-rename: Trim module dependencies.
1038         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
1039         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
1040         basename-lgpl.
1041         * modules/backup-rename (Depends-on): Likewise.
1043 2020-07-05  Bruno Haible  <bruno@clisp.org>
1045         argp: Trim module dependencies.
1046         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
1047         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
1049 2020-07-05  Bruno Haible  <bruno@clisp.org>
1051         basename-lgpl: New module.
1052         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
1053         lib/basename-lgpl.c.
1054         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
1055         <stdbool.h>, filename.h.
1056         (last_component): Rename a local variable.
1057         * lib/dirname.h: Include basename-lgpl.h.
1058         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
1059         (last_component, base_len): Remove declarations.
1060         * modules/basename-lgpl: New file.
1061         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
1062         (Depends-on): Add basename-lgpl. Remove double-slash-root.
1063         (Makefile.am): Don't compile basename-lgpl.c.
1064         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
1065         not 'dirname'.
1067 2020-07-05  Bruno Haible  <bruno@clisp.org>
1069         dirname, dirname-lgpl: Simplify.
1070         * m4/dirname.m4: Remove file.
1071         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
1072         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
1073         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
1075 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
1077         tests: avoid shadowing warning
1078         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
1080 2020-07-05  Bruno Haible  <bruno@clisp.org>
1082         supersede: Add tests.
1083         * tests/test-supersede.c: New file.
1084         * tests/test-supersede-open.h: New file.
1085         * tests/test-supersede-fopen.h: New file.
1086         * modules/supersede-tests: New file.
1088         supersede: New module.
1089         * lib/supersede.h: New file.
1090         * lib/supersede.c: New file.
1091         * m4/supersede.m4: New file.
1092         * modules/supersede: New file.
1094 2020-07-05  Bruno Haible  <bruno@clisp.org>
1096         Add some copyright headers.
1097         * lib/dev-ino.h: Add copyright header.
1098         * lib/di-set.h: Likewise.
1099         * lib/fchown-stub.c: Likewise.
1100         * lib/file-set.h: Likewise.
1101         * lib/hash-triple.h: Likewise.
1102         * lib/idcache.h: Likewise.
1103         * lib/ino-map.h: Likewise.
1104         * lib/mkancesdirs.h: Likewise.
1105         * lib/scratch_buffer.h: Likewise.
1106         * lib/se-context.in.h: Likewise.
1107         * lib/stdopen.h: Likewise.
1108         * lib/userspec.h: Likewise.
1110 2020-07-04  Bruno Haible  <bruno@clisp.org>
1112         getrandom: Relicense under LGPLv2+.
1113         Paul Eggert's approval is in
1114         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
1115         * modules/getrandom (License): Change to LGPLv2+.
1117 2020-07-04  Bruno Haible  <bruno@clisp.org>
1119         getumask: Add tests.
1120         * tests/test-getumask.c: New file.
1121         * modules/getumask-tests: New file.
1123         getumask: New module.
1124         * lib/sys_stat.in.h (getumask): New declaration.
1125         * lib/getumask.c: New file.
1126         * m4/getumask.m4: New file.
1127         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
1128         declared.
1129         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
1130         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
1131         HAVE_GETUMASK.
1132         * modules/getumask: New file.
1133         * tests/test-sys_stat-c++.cc (getumask): Check signature.
1134         * doc/glibc-functions/getumask.texi: New file.
1135         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
1137 2020-07-04  Bruno Haible  <bruno@clisp.org>
1139         clean-temp: Add support for temporary files with given mode.
1140         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
1141         * lib/clean-temp.c (struct try_create_file_params): New type.
1142         (try_create_file): New function.
1143         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
1144         gen_tempname.
1146 2020-07-04  Bruno Haible  <bruno@clisp.org>
1148         clean-temp: Document limitations.
1149         * lib/clean-temp.h: Document limitations.
1151 2020-07-04  Bruno Haible  <bruno@clisp.org>
1153         clean-temp: Add support for temporary files with unpredictable names.
1154         * lib/clean-temp.h (gen_register_open_temp): New declaration.
1155         * lib/clean-temp.c: Include tempname.h.
1156         (gen_register_open_temp): New function.
1157         * modules/tempname (configure.ac): Define a module indicator.
1159 2020-07-04  Bruno Haible  <bruno@clisp.org>
1161         clean-temp: Add support for temporary files anywhere in the file system.
1162         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
1163         cleanup_temporary_file): New declarations.
1164         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
1165         variables.
1166         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
1167         (dir_cleanup_list): Renamed from cleanup_list.
1168         (cleanup_action): Process the file_cleanup_list as well.
1169         (do_init_clean_temp): New function.
1170         (clean_temp_once): New variable.
1171         (init_clean_temp): New function.
1172         (create_temp_dir): Invoke it.
1173         (register_temporary_file, unregister_temporary_file,
1174         cleanup_temporary_file): New functions.
1175         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
1176         argument.
1178 2020-07-04  Bruno Haible  <bruno@clisp.org>
1180         clean-temp: Improve comments.
1181         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
1182         fwriteerror_temp, close_stream_temp): Clarify intended use.
1183         * lib/clean-temp.c: Likewise.
1185 2020-07-04  Bruno Haible  <bruno@clisp.org>
1187         clean-temp: Make multithread-safe, part 2.
1188         * lib/fatal-signal.h: Include <signal.h>.
1189         (get_fatal_signal_set): New declaration.
1190         * lib/fatal-signal.c (get_fatal_signal_set): New function.
1191         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
1192         (struct closeable_fd): New type.
1193         (fatal_signal_set): New variable.
1194         (init_fatal_signal_set): New function.
1195         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
1196         (cleanup_action): Invoke asyncsafe_close instead of close.
1197         (create_temp_dir): Invoke init_fatal_signal_set.
1198         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
1199         element.
1200         (unregister_fd): Remove function.
1201         (close_temp): Cleanup descriptors list on the fly. Invoke
1202         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
1203         (fclose_variant_temp): New function.
1204         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
1205         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
1207 2020-07-04  Bruno Haible  <bruno@clisp.org>
1209         clean-temp: Make multithread-safe, part 1.
1210         * lib/clean-temp.c: Include glthread/lock.h.
1211         (cleanup_list_lock): New variable.
1212         (register_temp_file, unregister_temp_file, register_temp_subdir,
1213         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
1214         (create_temp_dir): Likewise. Don't free the old array.
1215         (descriptors_lock): New variable.
1216         (register_fd, unregister_fd): Use it.
1217         * modules/clean-temp (Depends-on): Add lock.
1219 2020-07-04  Bruno Haible  <bruno@clisp.org>
1221         fatal-signal: Make multithread-safe.
1222         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1223         (do_init_fatal_signal_set): New function, extracted from
1224         init_fatal_signal_set.
1225         (fatal_signal_set_once): New variable.
1226         (init_fatal_signal_set): Use gl_once.
1228 2020-07-03  Bruno Haible  <bruno@clisp.org>
1230         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
1231         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
1232         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
1233         <bcrypt.h>.
1235 2020-07-03  Bruno Haible  <bruno@clisp.org>
1237         dfa tests: Follow common file naming conventions.
1238         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
1239         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
1240         * tests/test-dfa-invalid-char-class.sh: Renamed from
1241         tests/dfa-invalid-char-class.sh. Update.
1242         * modules/dfa-tests (Files, Makefile.am): Update.
1244 2020-07-03  Bruno Haible  <bruno@clisp.org>
1246         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
1247         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
1248         the GCC extended asm syntax also for the Sun Studio 12 compilers.
1250 2020-07-03  Bruno Haible  <bruno@clisp.org>
1252         asyncsafe-spin: Reduce code duplication.
1253         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
1254         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
1255         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
1257 2020-07-03  Bruno Haible  <bruno@clisp.org>
1259         lchmod: Simplify after 2020-02-22 change.
1260         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
1262 2020-07-03  Bruno Haible  <bruno@clisp.org>
1264         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
1265         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
1267 2020-07-03  Bruno Haible  <bruno@clisp.org>
1269         dfa: Make sure the compiler does not barf on 'inline'.
1270         * modules/dfa (configure.ac): Require AC_C_INLINE.
1272 2020-07-03  Bruno Haible  <bruno@clisp.org>
1274         bitset: Make sure the compiler does not barf on 'inline'.
1275         * modules/bitset (configure.ac): New section.
1277 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
1279         manywarnings: improve port to GCC 10.1
1280         * build-aux/gcc-warning.spec: Also list warnings that are default
1281         or are enabled by already-given flags.  This lets us speed up
1282         checking for attributes, and makes the generated compilation
1283         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
1284         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
1285         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
1286         to shell variables that may have long values.
1287         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
1288         consequences of other flags, to speed up checking and
1289         shorten commands.
1291         tests: pacify gcc -fanalyzer on zerosize_ptr
1292         * tests/test-memcasecmp.c (main):
1293         * tests/test-memchr.c (main):
1294         * tests/test-memchr2.c (main):
1295         * tests/test-memcmp.c (main):
1296         * tests/test-memmem.c (main):
1297         * tests/test-memrchr.c (main):
1298         * tests/unistr/test-chr.h (main):
1299         * tests/unistr/test-cmp.h (test_cmp):
1300         Check whether zerosize_ptr returns NULL before using it.
1301         This pacifies GCC 10.1’s new fanalyzer option, and matches
1302         other uses of zerosize_ptr.
1304 2020-07-01  Bruno Haible  <bruno@clisp.org>
1306         asyncsafe-spin: Add tests.
1307         * tests/test-asyncsafe-spin1.c: New file.
1308         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
1309         tests/test-pthread-spin.c.
1310         * modules/asyncsafe-spin-tests: New file.
1312 2020-07-01  Bruno Haible  <bruno@clisp.org>
1314         asyncsafe-spin: New module.
1315         * lib/asyncsafe-spin.h: New file.
1316         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
1317         * modules/asyncsafe-spin: New file.
1319 2020-07-01  Bruno Haible  <bruno@clisp.org>
1321         windows-spin: Fix race condition on multiprocessor systems.
1322         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
1324 2020-07-01  Bruno Haible  <bruno@clisp.org>
1326         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
1327         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1328         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
1329         an implementation based on other GCC built-ins.
1331 2020-07-01  Bruno Haible  <bruno@clisp.org>
1333         pthread-spin: Optimize fallback for GCC versions >= 4.7.
1334         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1335         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
1336         lock byte.
1338 2020-07-01  Bruno Haible  <bruno@clisp.org>
1340         pthread-spin: Add error checking.
1341         * lib/pthread-spin.c: Include <stdbool.h>.
1342         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
1343         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
1344         the unlocks.
1345         * modules/pthread-spin (Depends-on): Add stdbool.
1347 2020-07-01  Bruno Haible  <bruno@clisp.org>
1349         pthread-spin: Add tests.
1350         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
1351         * modules/pthread-spin-tests: New file.
1353 2020-07-01  Bruno Haible  <bruno@clisp.org>
1355         tests: Reduce code duplication.
1356         * tests/atomic-int-posix.h: New file, extracted from
1357         tests/test-pthread-mutex.c.
1358         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
1359         * tests/test-pthread-rwlock.c: Likewise.
1360         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
1361         * modules/pthread-rwlock-tests (Files): Likewise.
1363 2020-07-01  Bruno Haible  <bruno@clisp.org>
1365         tests: Refactor.
1366         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
1367         * tests/test-mtx.c: Include it. Remove the corresponding code.
1368         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
1370 2020-07-01  Bruno Haible  <bruno@clisp.org>
1372         tests: Refactor.
1373         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
1374         * tests/test-lock.c: Include it. Remove the corresponding code.
1375         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
1377 2020-06-29  Bruno Haible  <bruno@clisp.org>
1379         sys_socket: Don't define socklen_t if it is already defined on mingw.
1380         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
1381         <https://savannah.gnu.org/bugs/?57725>,
1382         by Rahul Das <bokul_4u@yahoo.com> in
1383         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
1384         and by Eli Zaretskii <eliz@gnu.org> in
1385         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
1386         * lib/sys_socket.in.h (socklen_t): Remove definition.
1388 2020-06-29  Bruno Haible  <bruno@clisp.org>
1390         alloca-opt: Fix warning on mingw.
1391         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
1392         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
1393         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
1394         whether alloca is defined.
1396 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
1398         getrandom: do not depend on ‘open’ on mingw
1399         Similarly for at-internal, getloadavg.  These modules do not call
1400         the ‘open’ function when they are compiled on mingw.  On mingw,
1401         this avoids having to compile open.c when building Emacs, which
1402         does its own thing with ‘open’.
1403         * modules/at-internal, modules/getloadavg, modules/getrandom:
1404         (Depends-on): Don’t depend on ‘open’ on mingw.
1405         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
1406         * modules/getloadavg (Depends-on):
1407         Depend on intprops, open, stdbool, stdlib only if compiling
1408         getloadavg.c.
1410 2020-06-28  Bruno Haible  <bruno@clisp.org>
1412         doc: Add a note about sigprocmask vs. pthread_sigmask.
1413         * doc/posix-functions/sigprocmask.texi: Add note.
1415 2020-06-28  Bruno Haible  <bruno@clisp.org>
1417         getrandom: Fix compilation errors on older versions of mingw.
1418         Reported by Eli Zaretskii <eliz@gnu.org> in
1419         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
1420         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
1421         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
1422         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
1423         BCryptGenRandom ourselves.
1425 2020-06-28  Bruno Haible  <bruno@clisp.org>
1427         clean-temp: Fix wrong errno in error message.
1428         * lib/clean-temp.c (create_temp_dir): Save errno around
1429         unblock_fatal_signals call.
1431 2020-06-27  Bruno Haible  <bruno@clisp.org>
1433         fatal-signal: Make multithread-safe.
1434         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
1436 2020-06-27  Bruno Haible  <bruno@clisp.org>
1438         clean-temp: Don't force deletion of temporary files on native Windows.
1439         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
1440         argument.
1441         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
1442         * NEWS: Mention the change.
1443         * lib/javacomp.c (write_temp_file): Update.
1445 2020-06-27  Bruno Haible  <bruno@clisp.org>
1447         fatal-signal: Make multithread-safe.
1448         * lib/fatal-signal.c: Include glthread/lock.h.
1449         (at_fatal_signal_lock): New variable.
1450         (at_fatal_signal): Use it.
1451         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
1452         (block_fatal_signals, unblock_fatal_signals): Use them.
1453         * modules/fatal-signal (Depends-on): Add lock.
1455 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
1457         getloadavg: don’t depend on fopen-gnu
1458         This is for Emacs, which does not need fopen-gnu for anything else,
1459         and which would need it only on a NetBSD platform where getloadavg
1460         does not work (does that even happen?).
1461         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
1462         * modules/getloadavg (Depends-on): Remove fopen-gnu.
1464         * tests/test-getloadavg.c (main): Fix typo.
1466 2020-06-27  Bruno Haible  <bruno@clisp.org>
1468         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
1469         * modules/tempname (Link): New section.
1470         * modules/mkdtemp (Link): Likewise.
1471         * modules/clean-temp (Link): Likewise.
1472         * modules/mkstemp (Link): Likewise.
1473         * modules/stdlib-safer (Link): Likewise.
1474         * modules/mkstemps (Link): Likewise.
1475         * modules/mkostemp (Link): Likewise.
1476         * modules/mkostemps (Link): Likewise.
1477         * modules/tmpfile (Link): Likewise.
1478         * modules/tmpfile-safer (Link): Likewise.
1479         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
1480         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
1481         $(LIB_GETRANDOM).
1482         * NEWS: Mention the changes.
1484 2020-06-27  Bruno Haible  <bruno@clisp.org>
1486         fopen-gnu: Simplify code.
1487         * lib/fopen.c: Include <stdbool.h>.
1488         (rpl_fopen): Use a single variable open_flags instead of
1489         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
1490         * modules/fopen (Depends-on): Add stdbool.
1492 2020-06-26  Bruno Haible  <bruno@clisp.org>
1494         canonicalize: Improve documentation.
1495         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
1496         return convention.
1498 2020-06-26  Bruno Haible  <bruno@clisp.org>
1500         xgetcwd: Improve documentation.
1501         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
1503 2020-06-26  Bruno Haible  <bruno@clisp.org>
1505         getcwd: Improve documentation.
1506         * lib/getcwd.c (__getcwd): Document the failure return convention.
1508 2020-06-26  Bruno Haible  <bruno@clisp.org>
1510         fchdir: Improve documentation.
1511         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
1512         convention.
1514 2020-06-26  Bruno Haible  <bruno@clisp.org>
1516         filenamecat-lgpl: Set errno upon failure.
1517         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
1518         return convention.
1519         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
1521 2020-06-26  Bruno Haible  <bruno@clisp.org>
1523         areadlink-with-size: Set errno upon failure.
1524         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
1525         fails.
1526         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
1528 2020-06-26  Bruno Haible  <bruno@clisp.org>
1530         copy-file: Shrink dependencies.
1531         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
1532         qcopy-acl.
1534 2020-06-26  Bruno Haible  <bruno@clisp.org>
1536         doc: Mention declaration fixes implemented by some modules.
1537         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
1538         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
1539         declaration appear in <unistd.h>.
1540         * doc/posix-functions/dup.texi: Likewise.
1541         * doc/posix-functions/dup2.texi: Likewise.
1542         * doc/posix-functions/gethostname.texi: Likewise.
1543         * doc/posix-functions/isatty.texi: Likewise.
1544         * doc/posix-functions/lseek.texi: Likewise.
1545         * doc/posix-functions/unlink.texi: Likewise.
1546         * doc/posix-functions/read.texi: Mention the module 'read'.
1547         * doc/posix-functions/write.texi: Mention the effects of the module
1548         'write'.
1550 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
1552         c-dtoastr, c-ldtoastr: new modules
1553         These modules provide the same functionality as the modules
1554         dtoastr and ldtoastr except for the formatting taking place in the
1555         C locale.
1556         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
1557         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
1558         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
1559         defined.  Use c_snprintf and c_strtod/c_strtold instead of
1560         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
1561         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
1562         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
1563         modules/c-ldtoastr-tests: New files.
1564         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
1565         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
1567 2020-06-21  Bruno Haible  <bruno@clisp.org>
1569         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
1570         * lib/tzset.c: Include <stdlib.h>, <string.h>.
1572 2020-06-16  Bruno Haible  <bruno@clisp.org>
1574         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
1575         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
1577 2020-06-16  Bruno Haible  <bruno@clisp.org>
1579         thread, thrd: Avoid a compiler warning.
1580         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
1582 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
1584         windows-thread: Avoid a compiler warning.
1585         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
1586         void.
1587         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
1589 2020-06-15  Bruno Haible  <bruno@clisp.org>
1591         unictype/joininggroup-name: Fix warning on 64-bit mingw.
1592         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
1593         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
1594         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
1595         first.
1597 2020-06-06  Bruno Haible  <bruno@clisp.org>
1599         calloc-gnu tests: Avoid a test failure with clang.
1600         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
1601         'volatile', to defeat compiler optimizations.
1603 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1605         getloadavg: fix double-increment bug
1606         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
1607         Linux without glibc, Android, Cygwin.  This fixes a bug I
1608         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
1609         Problem and fix reported by Semen Verchenko in:
1610         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
1612         tempname: use getrandom, not getentropy
1613         This removes a dependency, as getentropy depends on getrandom.
1614         * lib/tempname.c: Include sys/random.h instead of unistd.h.
1615         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
1616         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
1618 2020-06-01  Bruno Haible  <bruno@clisp.org>
1620         doc: New chapter 'Multithreading'.
1621         * doc/multithread.texi: New file.
1622         * doc/gnulib.texi: Include it.
1624 2020-06-01  Bruno Haible  <bruno@clisp.org>
1626         doc: Move 'Running self-tests under valgrind' section.
1627         * doc/gnulib.texi (Build Infrastructure Modules): Include
1628         valgrind-tests.texi here...
1629         (Miscellaneous Notes): ... not here.
1631 2020-06-01  Bruno Haible  <bruno@clisp.org>
1633         doc: Move 'Visual Studio Compatibility' section.
1634         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
1635         here...
1636         (Build Infrastructure Modules): ... not here.
1638 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1640         doc: improve randomness discussion
1641         Inspired by comments from Jeffrey Walton in:
1642         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
1643         * doc/glibc-functions/getentropy.texi (getentropy):
1644         * doc/glibc-functions/getrandom.texi (getrandom):
1645         Improve discussion of problems with "random" data,
1646         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
1648 2020-06-01  Bruno Haible  <bruno@clisp.org>
1650         doc: Fix Texinfo syntax error.
1651         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
1653 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
1655         doc: Change '.' to '@.' where appropriate.
1656         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
1657         * doc/glibc-functions/fstatfs.texi: Likewise.
1658         * doc/glibc-functions/fts_children.texi: Likewise.
1659         * doc/glibc-functions/fts_read.texi: Likewise.
1660         * doc/glibc-functions/getdirentries.texi: Likewise.
1661         * doc/glibc-functions/mkostemp.texi: Likewise.
1662         * doc/glibc-functions/mkostemps.texi: Likewise.
1663         * doc/glibc-functions/mkstemps.texi: Likewise.
1664         * doc/glibc-functions/preadv.texi: Likewise.
1665         * doc/glibc-functions/pwritev.texi: Likewise.
1666         * doc/glibc-functions/sendfile.texi: Likewise.
1667         * doc/glibc-functions/statfs.texi: Likewise.
1668         * doc/gnulib-intro.texi: Likewise.
1669         * doc/gnulib-tool.texi: Likewise.
1670         * doc/intprops.texi: Likewise.
1671         * doc/lib-symbol-visibility.texi: Likewise.
1672         * doc/licenses-texi.texi: Likewise.
1673         * doc/pastposix-functions/bcmp.texi: Likewise.
1674         * doc/pastposix-functions/bcopy.texi: Likewise.
1675         * doc/pastposix-functions/bzero.texi: Likewise.
1676         * doc/pastposix-functions/ecvt.texi: Likewise.
1677         * doc/pastposix-functions/fcvt.texi: Likewise.
1678         * doc/pastposix-functions/ftime.texi: Likewise.
1679         * doc/pastposix-functions/gcvt.texi: Likewise.
1680         * doc/pastposix-functions/getwd.texi: Likewise.
1681         * doc/pastposix-functions/index.texi: Likewise.
1682         * doc/pastposix-functions/mktemp.texi: Likewise.
1683         * doc/pastposix-functions/rindex.texi: Likewise.
1684         * doc/pastposix-functions/wcswcs.texi: Likewise.
1685         * doc/posix-functions/aio_cancel.texi: Likewise.
1686         * doc/posix-functions/aio_error.texi: Likewise.
1687         * doc/posix-functions/aio_fsync.texi: Likewise.
1688         * doc/posix-functions/aio_read.texi: Likewise.
1689         * doc/posix-functions/aio_return.texi: Likewise.
1690         * doc/posix-functions/aio_suspend.texi: Likewise.
1691         * doc/posix-functions/aio_write.texi: Likewise.
1692         * doc/posix-functions/creat.texi: Likewise.
1693         * doc/posix-functions/ctime.texi: Likewise.
1694         * doc/posix-functions/daylight.texi: Likewise.
1695         * doc/posix-functions/fgetpos.texi: Likewise.
1696         * doc/posix-functions/fopen.texi: Likewise.
1697         * doc/posix-functions/freopen.texi: Likewise.
1698         * doc/posix-functions/fseeko.texi: Likewise.
1699         * doc/posix-functions/fsetpos.texi: Likewise.
1700         * doc/posix-functions/fstatat.texi: Likewise.
1701         * doc/posix-functions/fstatvfs.texi: Likewise.
1702         * doc/posix-functions/ftello.texi: Likewise.
1703         * doc/posix-functions/ftruncate.texi: Likewise.
1704         * doc/posix-functions/getrlimit.texi: Likewise.
1705         * doc/posix-functions/lio_listio.texi: Likewise.
1706         * doc/posix-functions/localtime.texi: Likewise.
1707         * doc/posix-functions/lseek.texi: Likewise.
1708         * doc/posix-functions/mkstemp.texi: Likewise.
1709         * doc/posix-functions/mktime.texi: Likewise.
1710         * doc/posix-functions/open.texi: Likewise.
1711         * doc/posix-functions/openat.texi: Likewise.
1712         * doc/posix-functions/opendir.texi: Likewise.
1713         * doc/posix-functions/pread.texi: Likewise.
1714         * doc/posix-functions/pwrite.texi: Likewise.
1715         * doc/posix-functions/readdir.texi: Likewise.
1716         * doc/posix-functions/readdir_r.texi: Likewise.
1717         * doc/posix-functions/scandir.texi: Likewise.
1718         * doc/posix-functions/seekdir.texi: Likewise.
1719         * doc/posix-functions/setrlimit.texi: Likewise.
1720         * doc/posix-functions/statvfs.texi: Likewise.
1721         * doc/posix-functions/strftime.texi: Likewise.
1722         * doc/posix-functions/telldir.texi: Likewise.
1723         * doc/posix-functions/timezone.texi: Likewise.
1724         * doc/posix-functions/tmpfile.texi: Likewise.
1725         * doc/posix-functions/truncate.texi: Likewise.
1726         * doc/posix-functions/tzname.texi: Likewise.
1727         * doc/posix-functions/wcsftime.texi: Likewise.
1728         * doc/windows-sockets.texi: Likewise.
1730 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
1732         getrandom-tests: do not assume GRND_RANDOM yields short read
1733         * tests/test-getrandom.c (main): Omit assertion that
1734         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
1735         when b’s size is 100000.  This assertion fails with Linux kernel
1736         5.6.13, as that kernel ignores the GRND_RANDOM flag.
1737         The separate blocking pool is going away in the Linux kernel, and
1738         they’ve added a flag GRND_INSECURE instead; see:
1739         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
1740         The assertion was iffy anyway; what’s to prevent a kernel from
1741         lazily filling a large buffer with random bytes?
1743         read-file-test: pacify --enable-gcc-warnings
1744         * tests/test-read-file.c (test_read_file): Now static.
1746         tempname: merge from glibc and coreutils
1747         Also, merge in Gnulib’s more-recent methods of making it easier
1748         to share between Gnulib and glibc, and fix a few randomness
1749         glitches.
1750         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
1751         (__set_errno): Remove; libc-config.h does that for us.
1752         Do not include <sys/time.h>.
1753         (__secure_getenv) [_LIBC]: New macro.
1754         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
1755         (RANDOM_BITS): Rewrite.
1756         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
1757         (random_value): New typedef.
1758         (try_file, try_dir, try_nocreate): Move up.
1759         (gen_tempname_len, try_tempname_len): New functions.
1760         (gen_tempname_len): Use a constant array rather than a switch.
1761         (try_tempname_len): Don’t assume string length fits in int.
1762         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
1763         has enough entropy (it’s a bit short).
1764         (__gen_tempname): Rewrite in terms of gen_tempname_len.
1765         (__try_tempname): Rewrite in terms of try_tempname_len.
1766         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
1767         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
1768         Add getentropy, libc-config.
1770 2020-05-31  Bruno Haible  <bruno@clisp.org>
1772         getrandom, getentropy: Mention the crypto/gc-random module.
1773         Suggested by Simon Josefsson in
1774         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
1775         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
1776         crypto/gc-random module.
1777         * doc/glibc-functions/getentropy.texi: Likewise.
1779 2020-05-31  Bruno Haible  <bruno@clisp.org>
1781         getentropy: Enhance tests.
1782         * tests/test-getentropy.c (main): Add one more test.
1783         * tests/test-unistd-c++.cc: Check the signature of getentropy.
1785 2020-05-31  Bruno Haible  <bruno@clisp.org>
1787         getentropy: Work around a macOS and Solaris problem.
1788         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
1789         'getentropy' module.
1790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1791         UNISTD_H_HAVE_SYS_RANDOM_H.
1792         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
1793         UNISTD_H_HAVE_SYS_RANDOM_H.
1794         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
1795         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
1796         problem. List more platforms.
1798 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
1800         fnmatch: merge from glibc
1801         Also, merge in Gnulib’s more-recent methods of making it easier
1802         to share between Gnulib and glibc.
1803         * lib/fnmatch.c: Reorder includes to match glibc better.
1804         Include libc-config.h instead of config.h.
1805         Include alloca.h only if _LIBC || HAVE_ALLOCA.
1806         Do not include "../locale/elem-hash.h" if _LIBC.
1807         Define macros for btowc, etc. if _LIBC.  All uses simplified.
1808         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
1809         Include intprops.h, since glibc has it now.
1810         (SIZE_MAX): Remove; use (size_t) -1 instead.
1811         Omit the "Comment out all this code" ifdef, since Gnulib
1812         has never really needed it.
1813         (STREQ): Remove; no longer used.
1814         (__libc_use_alloca, alloca, alloca_account): Define as
1815         needed if !_LIBC.
1816         (ISWCTYPE): Remove; all uses replaced by iswctype.
1817         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
1818         (internal_function): Remove.  All uses removed.
1819         (STRUCT): New macro.
1820         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
1821         (WMEMCMP): New macro.
1822         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
1823         and <locale/weightwc.h>.
1824         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
1825         __builtin_expect.  Check for integer overflow more
1826         systematically.  Account for alloca storage better when
1827         recursive.  Use strnlen instead of strlen for efficiency.
1828         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
1829         (struct STRUCT): New type.
1830         (FCT, EXT): New ENDS and ALLOCA_USED args.
1831         All callers changed.
1832         (FCT): Prefer __glibc_unlikely to __builtin_expect.
1833         Simplify by assuming WIDE_CHAR_SUPPORT.
1834         Copy _LIBC code from glibc without worrying Gnulib compatibility.
1835         Cast cold to UCHAR to avoid signedness warning.
1836         (END): Check for invalid pattern.
1837         (EXT): Improve alloca/malloc checking (taken from glibc),
1838         and improve it some more by using intprops.h and checking
1839         for integer overflow and using bool for booleans.
1840         * lib/libc-config.h (compat_symbol): New macro.
1841         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
1842         acceptable to non-GCC when a trailing semicolon is added.
1843         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
1844         libc-config, strnlen.  Remove alloca.
1846 2020-05-31  Bruno Haible  <bruno@clisp.org>
1848         getrandom: Doc and test tweaks.
1849         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
1850         it sets errno when failing.
1851         * tests/test-getrandom.c (main): Disable the high-quality check on those
1852         platforms on which it fails.
1853         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
1854         Cygwin to the list of platforms that don't have the function. Add a note
1855         about the quality of the result.
1856         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
1857         declaration; this is fixed by module 'getrandom'.
1859 2020-05-31  Bruno Haible  <bruno@clisp.org>
1861         getrandom: Add support for native Windows.
1862         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
1863         <wincrypt.h>.
1864         (CRYPT_VERIFY_CONTEXT): New macro.
1865         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
1866         'A'.
1867         (GetProcAddress): New macro.
1868         (BCryptGenRandomFuncType): New type.
1869         (BCryptGenRandomFunc, initialized): New variables.
1870         (initialize): New function.
1871         (getrandom): On native Windows, use <bcrypt.h> API when available, and
1872         <wincrypt.h> API as fallback.
1873         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
1874         * modules/getrandom (Link): New section.
1875         * modules/getentropy (Link): Likewise.
1876         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
1877         $(LIB_GETRANDOM).
1878         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
1879         $(LIB_GETRANDOM).
1880         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
1881         against $(LIB_GETRANDOM).
1882         * doc/glibc-functions/getrandom.texi: Mention the native Windows
1883         support.
1885 2020-05-31  Bruno Haible  <bruno@clisp.org>
1887         getrandom: Simplify the determination of the random number devices.
1888         Suggested by Paul Eggert in
1889         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
1890         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
1891         macros.
1892         * modules/getrandom (Depends-on): Remove crypto/gc-random.
1894 2020-05-31  Bruno Haible  <bruno@clisp.org>
1896         crypto/gc-random: Fix list of crypto devices for Solaris.
1897         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
1899 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
1901         list: fix GCC warnings
1902         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
1903         (gl_tree_next_node, gl_tree_node_nx_set_value)
1904         (gl_tree_previous_node, gl_tree_next_node):
1905         Mark unused arguments.
1906         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
1907         * lib/gl_anylinked_list2.h (gl_linked_node_value)
1908         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
1910         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
1911         the same variable name in nested scopes.
1913 2020-05-31  Bruno Haible  <bruno@clisp.org>
1915         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
1916         Reported by Akim Demaille in
1917         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
1918         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
1919         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
1920         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
1921         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
1922         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
1924 2020-05-30  Bruno Haible  <bruno@clisp.org>
1926         wmemchr: Relicense under LGPLv2+.
1927         * modules/wmemchr (License): Set to LGPLv2+.
1929 2020-05-30  Bruno Haible  <bruno@clisp.org>
1931         wmempcpy: New module.
1932         Reported by Paul Eggert in
1933         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
1934         * lib/wchar.in.h (wmempcpy): New declaration.
1935         * lib/wmempcpy.c: New file.
1936         * m4/wmempcpy.m4: New file.
1937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
1938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
1939         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
1940         HAVE_WMEMPCPY.
1941         * modules/wmempcpy: New file.
1942         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
1943         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
1944         * modules/mempcpy (Description): Fix typo.
1946 2020-05-30  Bruno Haible  <bruno@clisp.org>
1948         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
1949         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
1951 2020-05-30  Bruno Haible  <bruno@clisp.org>
1953         sys_random: Work around macOS bug.
1954         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
1955         <stdlib.h> before <sys/random.h>.
1956         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
1957         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
1958         first.
1959         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
1961 2020-05-30  Bruno Haible  <bruno@clisp.org>
1963         getrandom: Override incompatible system function on Solaris 11.
1964         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
1965         * lib/getrandom.c (getrandom): When the system has getrandom, just
1966         invoke it.
1967         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
1968         system's getrandom function's prototype is not the expected one.
1969         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
1970         REPLACE_GETRANDOM.
1971         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
1972         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
1973         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
1974         EAGAIN.
1975         * doc/glibc-functions/getrandom.texi: Mention the new module and the
1976         Solaris problem.
1978 2020-05-30  Bruno Haible  <bruno@clisp.org>
1980         sys_random: Add C++ tests.
1981         * tests/test-sys_random-c++.cc: New file.
1982         * modules/sys_random-c++-tests: New file.
1983         * modules/sys_random-tests (Depends-on): Depend on it.
1985         sys_random: Add tests.
1986         * tests/test-sys_random.c: New file.
1987         * modules/sys_random-tests: New file.
1989         sys_random: New module.
1990         * lib/sys_random.in.h: Use the common idioms for overridable header
1991         files.
1992         * m4/sys_random_h.m4: New file.
1993         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
1994         * modules/sys_random: New file.
1995         * modules/getrandom (Files): Remove lib/sys_random.in.h.
1996         (Depends-on): Add sys_random.
1997         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
1998         gl_UNISTD_MODULE_INDICATOR.
1999         (Makefile.am): Don't generate sys/random.h here.
2000         * doc/glibc-headers/sys_random.texi: New file.
2001         * doc/gnulib.texi: Include it.
2003 2020-05-30  Bruno Haible  <bruno@clisp.org>
2005         unistd: Remove conflicting declaration of getrandom().
2006         * lib/unistd.in.h (getrandom): Remove declaration.
2007         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
2008         declared.
2009         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
2010         HAVE_GETRANDOM.
2011         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
2012         HAVE_GETRANDOM.
2014 2020-05-30  Bruno Haible  <bruno@clisp.org>
2016         getrandom: Add tests.
2017         * tests/test-getrandom.c: New file.
2018         * modules/getrandom-tests: New file.
2020 2020-05-30  Bruno Haible  <bruno@clisp.org>
2022         crypto/gc-random: Fix link error on MSVC.
2023         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
2024         * modules/crypto/gc-random (Link): New section.
2025         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
2026         $(LIB_GC_RANDOM).
2028 2020-05-30  Bruno Haible  <bruno@clisp.org>
2030         Don't assume that UNICODE is not defined.
2031         Many Windows API functions are defined differently (redirecting to a
2032         function with suffix 'W') if the application defines the macro UNICODE
2033         than by default (redirecting to a function with suffix 'A').
2034         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
2035         variant with suffix 'A'.
2036         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
2037         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
2038         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
2039         * lib/getlogin.c (GetUserName): Likewise.
2040         * lib/getlogin_r.c (GetUserName): Likewise.
2041         * lib/gettimeofday.c (LoadLibrary): Likewise.
2042         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
2043         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
2044         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
2045         * lib/mountlist.c (GetDriveType): Likewise.
2046         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
2047         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
2048         Likewise.
2049         * lib/physmem.c (GetModuleHandle): Likewise.
2050         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2051         PeekMessage, DispatchMessage): Likewise.
2052         * lib/progreloc.c (GetModuleFileName): Likewise.
2053         * lib/putenv.c (SetEnvironmentVariable): Likewise.
2054         * lib/read.c (GetNamedPipeHandleState): Likewise.
2055         * lib/readdir.c (FindNextFile): Likewise.
2056         * lib/relocatable.c (GetModuleFileName): Likewise.
2057         * lib/rename.c (MoveFileEx): Likewise.
2058         * lib/rewinddir.c (FindFirstFile): Likewise.
2059         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2060         PeekMessage, DispatchMessage): Likewise.
2061         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
2062         * lib/socket.c (WSASocket): Likewise.
2063         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
2064         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
2065         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
2066         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
2067         * lib/tmpdir.c (GetTempPath): Likewise.
2068         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
2069         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
2070         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
2071         * lib/windows-cond.c (CreateEvent): Likewise.
2072         * lib/windows-rwlock.c (CreateEvent): Likewise.
2073         * lib/windows-timedmutex.c (CreateEvent): Likewise.
2074         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
2075         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
2076         * lib/write.c (GetNamedPipeHandleState): Likewise.
2078 2020-05-30  Bruno Haible  <bruno@clisp.org>
2080         physmem: Fix compilation errors on MSVC.
2081         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
2082         * modules/physmem (Depends-on): Add unistd.
2084 2020-05-29  Bruno Haible  <bruno@clisp.org>
2086         gnulib-tool: Fix link errors with a particular set of modules on mingw.
2087         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
2088         LDADD a second time, after the second occurrence of libtests.a.
2089         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2091 2020-05-29  Bruno Haible  <bruno@clisp.org>
2093         fnmatch: Rely on more gnulib modules.
2094         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
2095         wmempcpy, mempcpy.
2096         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
2097         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
2098         HAVE_MEMPCPY are all 1.
2099         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
2100         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
2102 2020-05-29  Bruno Haible  <bruno@clisp.org>
2104         Avoid dynamic lookup of Windows API functions when possible.
2105         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
2106         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
2107         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
2108         (use_win32_p): Define differently.
2109         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
2110         CreateHardLinkFunc, initialized, initialize): Don't define in a build
2111         for Windows XP or higher.
2113 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2115         read-file: disable buffering if RF_SENSITIVE is set
2116         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
2117         Suggested by Glenn Strauss.
2118         (fread_file): Suggest calling setvbuf before calling this
2119         function.  Suggested by Bruno Haible.
2121 2020-05-29  Bruno Haible  <bruno@clisp.org>
2123         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
2124         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
2125         program.
2126         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
2127         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
2128         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
2129         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
2131 2020-05-29  Bruno Haible  <bruno@clisp.org>
2133         Fix compilation error on native Windows (regression from 2020-05-28).
2134         Reported by Daiki Ueno.
2135         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
2136         macro when not using dynamic loading.
2137         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
2138         QueryFullProcessImageNameFunc): Likewise.
2139         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
2140         GetFinalPathNameByHandleFunc): Likewise.
2142 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2144         fopen-gnu-tests: fix "\x" escape usage
2145         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
2147 2020-05-28  Bruno Haible  <bruno@clisp.org>
2149         Avoid dynamic loading of Windows API functions when possible.
2150         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2151         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
2152         * lib/gettimeofday.c (GetProcAddress,
2153         GetSystemTimePreciseAsFileTimeFuncType,
2154         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
2155         define in a build for Windows 8 or higher.
2156         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
2157         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
2158         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
2159         in a build for Windows Vista or higher.
2160         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
2161         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
2162         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
2164 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
2166         explicit_bzero-tests: improve -Wmissing-declarations pacification
2167         * tests/test-explicit_bzero.c: Now noinline.
2168         Suggested by Bruno Haible in:
2169         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
2171 2020-05-28  Bruno Haible  <bruno@clisp.org>
2173         Fix build errors due to read-file changes (regression from 2020-05-27).
2174         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
2175         invocation.
2176         * tests/test-sameacls.c (main): Likewise.
2177         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
2178         read_binary_file.
2179         * tests/test-pipe-filter-ii1.c (main): Likewise.
2181 2020-05-28  Bruno Haible  <bruno@clisp.org>
2183         fts: Make more robust in multithreaded applications.
2184         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
2185         * modules/fts (Depends-on): Add 'open'.
2187 2020-05-28  Bruno Haible  <bruno@clisp.org>
2189         relocatable-prog: Make more robust in multithreaded applications.
2190         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
2191         relocatable-prog-wrapper.
2192         (find_executable): Pass an O_CLOEXEC flag to open().
2193         * modules/relocatable-prog (Depends-on): Add 'open'.
2195 2020-05-28  Bruno Haible  <bruno@clisp.org>
2197         getloadavg: Make more robust in multithreaded applications.
2198         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
2199         Simplify use of O_CLOEXEC.
2200         * modules/getloadavg (Depends-on): Add 'open'.
2202 2020-05-28  Bruno Haible  <bruno@clisp.org>
2204         vma-iter: Make more robust in multithreaded applications.
2205         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
2206         open().
2207         * modules/vma-iter (Depends-on): Add 'open'.
2209 2020-05-28  Bruno Haible  <bruno@clisp.org>
2211         truncate: Make more robust in multithreaded applications.
2212         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
2214 2020-05-28  Bruno Haible  <bruno@clisp.org>
2216         pagealign_alloc: Make more robust in multithreaded applications.
2217         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
2218         open().
2219         * modules/pagealign_alloc (Depends-on): Add 'open'.
2221 2020-05-28  Bruno Haible  <bruno@clisp.org>
2223         openat: Make more robust in multithreaded applications.
2224         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
2226 2020-05-28  Bruno Haible  <bruno@clisp.org>
2228         at-internal: Make more robust in multithreaded applications.
2229         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
2230         open().
2232 2020-05-28  Bruno Haible  <bruno@clisp.org>
2234         mountlist: Make more robust in multithreaded applications.
2235         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
2236         open().
2237         * modules/mountlist (Depends-on): Add 'open'.
2239 2020-05-28  Bruno Haible  <bruno@clisp.org>
2241         login_tty: Make more robust in multithreaded applications.
2242         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
2243         * modules/login_tty (Depends-on): Add 'open'.
2245 2020-05-28  Bruno Haible  <bruno@clisp.org>
2247         javacomp: Make more robust in multithreaded applications.
2248         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
2249         open().
2250         * modules/javacomp (Depends-on): Add 'open'.
2252 2020-05-28  Bruno Haible  <bruno@clisp.org>
2254         getprogname: Make more robust in multithreaded applications.
2255         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
2256         * modules/getprogname (Depends-on): Add 'open'.
2258 2020-05-28  Bruno Haible  <bruno@clisp.org>
2260         get_progname_of: Make more robust in multithreaded applications.
2261         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
2262         open().
2263         * modules/get_progname_of (Depends-on): Add 'open'.
2265 2020-05-28  Bruno Haible  <bruno@clisp.org>
2267         get_ppid_of: Make more robust in multithreaded applications.
2268         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
2269         * modules/get_ppid_of (Depends-on): Add 'open'.
2271 2020-05-28  Bruno Haible  <bruno@clisp.org>
2273         get-rusage-as: Make more robust in multithreaded applications.
2274         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
2275         flag to open().
2276         * modules/get-rusage-as (Depends-on): Add 'open'.
2278 2020-05-28  Bruno Haible  <bruno@clisp.org>
2280         crypto/gc: Make more robust in multithreaded applications.
2281         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
2282         * modules/crypto/gc (Depends-on): Add 'open'.
2284 2020-05-28  Bruno Haible  <bruno@clisp.org>
2286         copy-file: Make more robust in multithreaded applications.
2287         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
2288         open().
2290 2020-05-28  Bruno Haible  <bruno@clisp.org>
2292         chown: Make more robust in multithreaded applications.
2293         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
2295 2020-05-28  Bruno Haible  <bruno@clisp.org>
2297         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
2298         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
2300 2020-05-28  Daiki Ueno  <ueno@gnu.org>
2302         fopen-gnu: make 'b' flag can be used with 'e' on Windows
2303         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
2304         specified on Windows.
2305         * tests/test-fopen-gnu.c (DATA): New define.
2306         (main): Add test for reading binary files with an 'e' flag.
2308 2020-05-27  Bruno Haible  <bruno@clisp.org>
2310         Don't assume that UNICODE is not defined.
2311         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
2312         differently if the application defines the macro UNICODE.
2313         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2314         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
2315         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
2316         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
2317         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
2319 2020-05-27  Bruno Haible  <bruno@clisp.org>
2321         Improve pattern for defining _WIN32_WINNT.
2322         Newer versions of the Windows API may not only add, but also remove API
2323         functions. Therefore, when the user is e.g. building for Windows 10, we
2324         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
2325         use of APIs that were present in Windows 8 but removed in Windows 10.
2326         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
2327         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
2328         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
2329         * lib/sethostname.c (_WIN32_WINNT): Likewise.
2330         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
2332 2020-05-27  Bruno Haible  <bruno@clisp.org>
2334         javacomp: Make more robust in multithreaded applications.
2335         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
2336         * modules/javacomp (Depends-on): Add fopen-gnu.
2338 2020-05-27  Bruno Haible  <bruno@clisp.org>
2340         mountlist: Make more robust in multithreaded applications.
2341         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
2342         to fopen.
2343         * modules/mountlist (Depends-on): Add fopen-gnu.
2345 2020-05-27  Bruno Haible  <bruno@clisp.org>
2347         sethostname: Make more robust in multithreaded applications.
2348         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
2349         * modules/sethostname (Depends-on): Add fopen-gnu.
2351 2020-05-27  Bruno Haible  <bruno@clisp.org>
2353         readutmp: Make more robust in multithreaded applications.
2354         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
2355         * modules/readutmp (Depends-on): Add fopen-gnu.
2357 2020-05-27  Bruno Haible  <bruno@clisp.org>
2359         getpass: Make more robust in multithreaded applications.
2360         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
2361         * modules/getpass (Depends-on): Add fopen-gnu.
2363 2020-05-27  Bruno Haible  <bruno@clisp.org>
2365         getloadavg: Make more robust in multithreaded applications.
2366         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
2367         * modules/getloadavg (Depends-on): Add fopen-gnu.
2369 2020-05-27  Bruno Haible  <bruno@clisp.org>
2371         exclude: Make more robust in multithreaded applications.
2372         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
2373         * modules/exclude (Depends-on): Add fopen-gnu.
2375 2020-05-27  Bruno Haible  <bruno@clisp.org>
2377         bitset: Make more robust in multithreaded applications.
2378         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
2379         'e' flag to fopen.
2380         * modules/bitset (Depends-on): Add fopen-gnu.
2382 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2384         read-file: add RF_SENSITIVE flag
2385         * lib/read-file.h (RF_SENSITIVE): New define.
2386         * lib/read-file.c (fread_file, read_file): Take into account of
2387         RF_SENSITIVE flag.
2388         * modules/read-file (Depends-on): Add explicit_bzero.
2389         This adds an alternative behavior of those functions to explicitly
2390         clear the internal memory block when it becomes unused.  This is
2391         useful for reading sensitive information from a file.
2393 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2395         read-file: add flags to modify reading behavior
2396         * lib/read-file.h (RF_BINARY): New define.
2397         (fread_file, read_file): Take FLAGS argument.
2398         (read_binary_file): Remove.
2399         * lib/read-file.c (internal_read_file): Merge into ...
2400         (read_file): ... here.
2401         * modules/read-file-tests (Files): Add "tests/macros.h".
2402         * tests/test-read-file.c (main): Refactor using ASSERT macro.
2403         * NEWS: Mention this change.
2405 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
2407         doc/gnulib-intro.texi: add missing "to" in sentence
2408         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
2409         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
2410         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
2412 2020-05-26  Bruno Haible  <bruno@clisp.org>
2414         count-one-bits: Fix MSVC specific code.
2415         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2416         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
2417         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
2418         using GCC.
2419         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
2420         (__popcnt64): In 32-bit mode, define as an inline function.
2421         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
2423 2020-05-26  Bruno Haible  <bruno@clisp.org>
2425         argz: Avoid name clashes through argz.h.
2426         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2427         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
2428         * lib/argz.h: Don't use __ prefixed identifiers.
2429         (const): Remove definition.
2430         (argz_next): Remove inline definitions.
2432 2020-05-26  Daiki Ueno  <ueno@gnu.org>
2434         read-file: make use of fopen-gnu
2435         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
2436         (read_binary_file): Likewise.
2437         * modules/read-file (Depends-on): Add fopen-gnu.
2439 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2441         getentropy, getrandom: new modules
2442         * MODULES.html.sh (func_all_modules):
2443         * lib/unistd.in.h (getentropy, getrandom):
2444         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
2445         * modules/unistd (unistd.h):
2446         Add support for getentropy, getrandom.
2447         * doc/glibc-functions/getentropy.texi (getentropy):
2448         * doc/glibc-functions/getrandom.texi (getrandom):
2449         These are now fixed on some platforms.
2450         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
2451         * m4/getentropy.m4, m4/getrandom.m4:
2452         * modules/getentropy, modules/getentropy-tests:
2453         * modules/getrandom, modules/getrandom-tests:
2454         * tests/test-getentropy.c, tests/test-getrandom.c:
2455         New files.
2457 2020-05-25  Bruno Haible  <bruno@clisp.org>
2459         Add missing C99 dependencies.
2460         Reported by Paul Smith <psmith@gnu.org> in
2461         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
2462         * modules/assert (Depends-on): Add c99.
2463         * modules/filenamecat-lgpl (Depends-on): Likewise.
2464         * modules/libc-config (Depends-on): Likewise.
2465         * modules/mktime (Depends-on): Likewise.
2466         * modules/random_r (Depends-on): Likewise.
2467         * modules/regex (Depends-on): Likewise.
2468         * modules/scratch_buffer (Depends-on): Likewise.
2469         * modules/timespec-add (Depends-on): Likewise.
2470         * modules/timespec-sub (Depends-on): Likewise.
2471         * modules/verify (Depends-on): Likewise.
2473 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2475         explicit_bzero-tests: pacify -Wmissing-declarations
2476         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
2477         Now static.
2479 2020-05-24  Bruno Haible  <bruno@clisp.org>
2481         fopen-gnu: Add tests.
2482         * tests/test-fopen-gnu.c: New file.
2483         * modules/fopen-gnu-tests: New file.
2485         fopen-gnu: New module.
2486         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
2487         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
2488         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
2489         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
2490         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
2491         * modules/fopen-gnu: New file.
2492         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
2494 2020-05-24  Bruno Haible  <bruno@clisp.org>
2496         open, openat: Really support O_CLOEXEC.
2497         * lib/open.c (open): When have_cloexec is still undecided, do pass a
2498         O_CLOEXEC flag to orig_open.
2499         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
2500         pass a O_CLOEXEC flag to orig_openat.
2501         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
2502         * modules/open-tests (Depends-on): Add fcntl.
2503         * modules/openat-tests (Depends-on): Likewise.
2504         * modules/fcntl-safer-tests (Depends-on): Likewise.
2506 2020-05-24  Bruno Haible  <bruno@clisp.org>
2508         fopen: Fix the trailing slash workaround.
2509         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
2510         write access. Pass the right flags to open().
2511         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
2513 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2515         assure: new macro ‘affirm’
2516         * lib/assure.h: Include verify.h.
2517         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
2518         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
2519         and commentary by Bruno Haible in:
2520         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
2521         * modules/assure (Depends-on:): Add verify.
2523 2020-05-23  Bruno Haible  <bruno@clisp.org>
2525         calloc-gnu: Make test work in non-flat address spaces.
2526         Uses code by Paul Eggert.
2527         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
2528         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
2530 2020-05-23  Bruno Haible  <bruno@clisp.org>
2532         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
2533         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
2534         AC_RUN_IFELSE invocations.
2536 2020-05-23  Bruno Haible  <bruno@clisp.org>
2538         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
2539         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
2540         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
2541         don't have it.
2542         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
2543         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
2544         don't have it.
2545         * lib/isnanf-nolibm.h (__has_builtin): New macro.
2546         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
2547         it.
2548         * lib/isnanl-nolibm.h (__has_builtin): New macro.
2549         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
2550         it.
2551         * lib/math.in.h (__has_builtin): New macro.
2552         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
2553         it.
2554         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
2555         it.
2556         (isnan): Don't use the builtins on clang versions that don't have
2557         __builtin_isnanf and __builtin_isnanl.
2559 2020-05-23  Bruno Haible  <bruno@clisp.org>
2561         calloc-gnu: Avoid wrong configure results with clang.
2562         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
2563         'volatile', to defeat compiler optimizations.
2565 2020-05-23  Bruno Haible  <bruno@clisp.org>
2567         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
2568         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
2569         'long double' values by reference, with values taken from a statically
2570         allocated array.
2572 2020-05-23  Bruno Haible  <bruno@clisp.org>
2574         findprog-in: Ignore directories.
2575         Reported by Frederick Eaton via Dmitry Goncharov in
2576         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
2577         * lib/findprog-in.c (find_in_given_path): When the file found is a
2578         directory, set errno to EACCES and, during a PATH search, continue
2579         searching.
2580         * modules/findprog-in (Depends-on): Add sys_stat, stat.
2582 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2584         verify: document ‘assume’ better
2585         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
2587 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
2589         gendocs: Clarify licenses for templates.
2590         * doc/gendocs_template: Add a GNU All-Permissive license notice
2591         and bump Parent-Version.
2592         * doc/gendocs_template_min: Add a GNU All-Permissive license
2593         notice and copy the explanatory comment about the license notice
2594         at the bottom from gendocs_template.
2596 2020-05-21  Bruno Haible  <bruno@clisp.org>
2598         group-member: Relicense under LGPLv2+.
2599         Jim Meyering's approval is in
2600         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
2601         Paul Eggert's approval is in
2602         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
2603         Eric Blake's approval is in
2604         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
2605         * modules/group-member (License): Change to LGPLv2+.
2607 2020-05-21  Bruno Haible  <bruno@clisp.org>
2609         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
2610         Reported by Tim Rühsen in
2611         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2612         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
2614 2020-05-21  Bruno Haible  <bruno@clisp.org>
2616         regex: Avoid wrong configure results with "clang -fsanitize=leak".
2617         Reported by Tim Rühsen in
2618         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2619         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
2620         before returning with status 0.
2622 2020-05-21  Bruno Haible  <bruno@clisp.org>
2624         glob: Avoid wrong configure results with "clang -fsanitize=leak".
2625         Reported by Tim Rühsen in
2626         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2627         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
2629 2020-05-21  Bruno Haible  <bruno@clisp.org>
2631         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
2632         Reported by Tim Rühsen in
2633         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2634         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
2635         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
2636         respectively.
2638 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
2640         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
2641         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
2643 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2645         ftoastr: fix ifndef typo
2646         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
2648 2020-05-19  Bruno Haible  <bruno@clisp.org>
2650         havelib: Tweak documentation.
2651         * doc/havelib.texi (Searching for Libraries): Fix typo.
2653 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2655         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
2656         This was needed earlier because modules had to import the main script,
2657         but that is no longer true.  Rename the script so that it is
2658         consistent with all other scripts in gnulib and uses hyphens.
2659         * build-aux/vcs_to_changelog.py: Rename to...
2660         * build-aux/vcs-to-changelog.py: ... this.
2661         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
2662         * modules/vcs-to-changelog: Likewise.
2664 2020-05-17  Bruno Haible  <bruno@clisp.org>
2666         Clarify intended usage of the license file modules.
2667         Reported by Asher Gordon <AsDaGo@posteo.net> in
2668         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
2669         * doc/licenses-texi.texi (License Texinfo sources): Mention the
2670         GNU AGPL. Explain the intended usage of the modules.
2671         * modules/fdl (Notice): Discourage use as a module.
2672         * modules/fdl-1.3 (Notice): Likewise.
2674 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
2676         hash: add hash_xinsert
2677         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
2679 2020-05-16  Bruno Haible  <bruno@clisp.org>
2681         findprog-lgpl: Fix link error (existing since 2008-09-02).
2682         * modules/findprog-lgpl (Makefile.am): Arrange to compile
2683         findprog-lgpl.c, not findprog.c.
2684         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
2685         XNMALLOC.
2687 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
2689         c-stack: pacify -Wunused-result when DEBUG
2690         Problem reported by Marc Nieper-Wißkirchen in:
2691         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
2692         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
2693         Explicitly ignore write failures.
2695 2020-05-13  Jim Meyering  <meyering@fb.com>
2697         announce-gen: improve a comment
2698         * build-aux/announce-gen: Improve comment.
2700 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
2702         xalloc: pacify -Wanalyzer-possible-null-argument
2703         Problem reported for GCC 10.1.0 by Bruno Haible in:
2704         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
2705         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
2706         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
2707         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
2709 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2711         careadlinkat: fix GCC 10 workaround
2712         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
2713         Massage the code so that it’s closer to what it was before
2714         the GCC 10.1.0 workaround was introduced.  This fixes
2715         a loop when !buffer and the bug workaround is in effect.
2716         Remove unnecessary casts.  Defend in a different way
2717         against (buffer && !buffer_size), by adding at least 1
2718         to buf_size each time through the loop.
2720 2020-05-10  Bruno Haible  <bruno@clisp.org>
2722         doc: Mark HP-UX as unsupported.
2723         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
2725 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2727         careadlinkat: limit GCC workaround
2728         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
2729         10.1.0 and later, since the workaround is pretty bad and the GCC
2730         bug should get fixed.
2732 2020-05-10  Bruno Haible  <bruno@clisp.org>
2734         havelib: Enhance documentation.
2735         * doc/havelib.texi (Searching for Libraries): Mention the bad
2736         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
2738 2020-05-10  Bruno Haible  <bruno@clisp.org>
2740         attribute: Clarify list of attributes.
2741         * lib/attribute.h: Reorder the list of attributes, and group them by
2742         purpose.
2744 2020-05-10  Bruno Haible  <bruno@clisp.org>
2746         string: Fix compilation error in C++ mode.
2747         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
2748         _GL_WARN_ON_USE.
2749         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
2750         instead of _GL_WARN_ON_USE.
2752 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
2754         announce-gen: add support for dist-lzip
2755         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
2757 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
2759         manywarnings: port to GCC 10.1
2760         * build-aux/gcc-warning.spec:
2761         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
2762         Add GCC 10.1.0 warnings.
2764         careadlinkat: pacify -Wreturn-local-addr
2765         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
2766         Pacify gcc 10’s -Wreturn-local-addr option.
2767         Simplify some of the later code.
2769 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
2771         attribute: remove ATTRIBUTE_DEPRECATED
2772         * lib/attribute.h: Improve recently-added comments, mostly
2773         by shortening them (use active voice, etc.).
2774         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
2775         Problem reported by Bruno Haible in:
2776         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
2778 2020-05-09  Bruno Haible  <bruno@clisp.org>
2780         attribute: Add comments.
2781         * lib/attribute.h: Document each macro.
2783 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
2785         bitset: use the attribute module
2786         * modules/bitset: Depend on 'attribute'.
2787         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
2788         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
2789         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
2790         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
2792 2020-05-09  Bruno Haible  <bruno@clisp.org>
2794         c-stack: Fix warning when DEBUG is enabled.
2795         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
2796         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
2797         * lib/c-stack.c: Include <stdio.h>.
2799 2020-05-09  Bruno Haible  <bruno@clisp.org>
2801         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
2802         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
2803         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2804         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2805         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2806         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2807         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2808         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2809         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2810         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
2811         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2812         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2813         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2815 2020-05-09  Bruno Haible  <bruno@clisp.org>
2817         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
2818         Reported by Akim Demaille in
2819         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
2820         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
2821         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
2822         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
2824 2020-05-09  Bruno Haible  <bruno@clisp.org>
2826         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
2827         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
2828         that usually comes from m4/gnulib-common.m4.
2829         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2831 2020-05-09  Bruno Haible  <bruno@clisp.org>
2833         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
2834         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
2835         that usually comes from m4/gnulib-common.m4.
2836         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
2837         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
2838         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
2840 2020-05-09  Bruno Haible  <bruno@clisp.org>
2842         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
2843         * lib/uchar.in.h (char16_t): Define as macro if
2844         GNULIB_OVERRIDES_CHAR16_T.
2845         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
2846         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
2847         (gl_UCHAR_H): Invoke them.
2848         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
2849         GNULIB_OVERRIDES_CHAR32_T.
2850         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
2851         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
2852         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
2853         GNULIB_OVERRIDES_CHAR32_T.
2855 2020-05-09  Bruno Haible  <bruno@clisp.org>
2857         Macro tweaks.
2858         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
2859         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
2861 2020-05-08  Bruno Haible  <bruno@clisp.org>
2863         c32rtomb: Avoid compilation failure on Haiku.
2864         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
2865         inline definitions.
2866         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
2868 2020-05-08  Bruno Haible  <bruno@clisp.org>
2870         mbrtoc32: Avoid compilation failure on Haiku.
2871         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
2872         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
2873         AC_CHECK_FUNCS_ONCE.
2874         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
2876 2020-05-08  Bruno Haible  <bruno@clisp.org>
2878         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
2879         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
2881 2020-05-08  Bruno Haible  <bruno@clisp.org>
2883         list: Update documentation.
2884         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
2885         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
2886         * doc/containers.texi (Container data types): Document the new list
2887         operations and their complexity.
2889 2020-05-08  Bruno Haible  <bruno@clisp.org>
2891         ignore-value tests: Use module 'attribute'.
2892         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
2893         * tests/test-ignore-value.c: Include attribute.h.
2894         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
2895         * modules/ignore-value-tests (Depends-on): Add attribute.
2897 2020-05-08  Bruno Haible  <bruno@clisp.org>
2899         uniname/uniname: Use module 'attribute'.
2900         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
2901         * lib/uniname/uninames.h: Regenerated.
2902         * lib/uniname/uniname.c: Include attribute.h.
2903         * modules/uniname/uniname (Depends-on): Add attribute.
2905 2020-05-08  Bruno Haible  <bruno@clisp.org>
2907         c32rtomb: Use module 'attribute'.
2908         * lib/c32rtomb.c: Include attribute.h.
2909         (FALLTHROUGH): Remove macro.
2910         * modules/c32rtomb (Depends-on): Add attribute.
2912 2020-05-08  Bruno Haible  <bruno@clisp.org>
2914         xsize: Use module 'attribute'.
2915         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
2916         * modules/xsize (Depends-on): Add attribute.
2918 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2920         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
2922         * lib/attribute.h: Minor style fixes.
2924         Fix version-etc glitch on OpenIndiana
2925         Problem reported by Mats Erik Andersson in:
2926         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
2927         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
2928         that now clashes with gnulib-common.h.  All uses changed.
2930 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
2932         attribute: new module
2933         This simplifies use of GCC and C2X attributes like ‘deprecated’.
2934         * MODULES.html.sh: Add attribute.
2935         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
2936         * doc/gnulib.texi (Particular Modules): Add Attributes.
2937         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
2938         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
2939         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
2940         * lib/vasnprintf.c:
2941         Include attribute.h, and let it define FALLTHROUGH.
2942         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
2943         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
2944         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
2945         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
2946         This is a copy since Gawk doesn’t use Gnulib.
2947         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
2948         is incompatible with gl_COMMON_BODY’s.  All uses changed.
2949         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
2950         Keep the existing FALLTHROUGH definition since Glibc might use it,
2951         and it does no harm to Gnulib’s FALLTHROUGH.
2952         * lib/fts_.h, lib/inttostr.h:
2953         (__GNUC_PREREQ): Remove; no longer needed.
2954         (__attribute_warn_unused_result__): Remove.  All uses
2955         replaced by _GL_ATTRIBUTE_NODISCARD.
2956         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
2957         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
2958         __attribute__ ((__warn_unused_result__)), for forward
2959         compatibility to C2X.
2960         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
2961         _GL_ATTRIBUTE_NODISCARD.
2962         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
2963         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
2964         replaced by gl_COMMON_BODY’s implementation, which has a
2965         slightly different signature.
2966         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
2967         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
2968         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
2969         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
2970         No doubt all uses should be replaced, at some point.
2971         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
2972         (_Noreturn): Use it.
2973         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
2974         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
2975         (_GL_ATTRIBUTE_COLD)
2976         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
2977         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
2978         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
2979         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
2980         (_GL_ATTRIBUTE_MAYBE_UNUSED)
2981         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
2982         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
2983         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
2984         (_GL_ATTRIBUTE_RETURNS_NONNULL)
2985         (_GL_ATTRIBUTE_SENTINEL): New macros.
2986         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
2987         * modules/fnmatch, modules/freopen-safer, modules/fts:
2988         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
2989         * modules/quotearg, modules/savewd:
2990         * modules/unistdio/u16-u16-vasnprintf:
2991         * modules/unistdio/u16-vasnprintf:
2992         * modules/unistdio/u32-u32-vasnprintf:
2993         * modules/unistdio/u32-vasnprintf:
2994         * modules/unistdio/u8-u8-vasnprintf:
2995         * modules/unistdio/u8-vasnprintf:
2996         * modules/unistdio/ulc-vasnprintf:
2997         * modules/unistr/u8-uctomb, modules/vasnprintf:
2998         (Depends-on:): Add attribute module.
3000 2020-05-03  Bruno Haible  <bruno@clisp.org>
3002         bison: Fix today's commit.
3003         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
3005 2020-05-03  Bruno Haible  <bruno@clisp.org>
3007         list-c++: Add get_first, get_last, set_first, set_last operations.
3008         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
3009         set_first, set_last.
3010         * lib/gl_list.h: Tweak comments.
3012 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
3014         bison: rely on bison's %require to check a version requirement
3015         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
3016         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
3017         enough of not.
3018         So far it is the only know Yacc tool that supports '%require'.
3019         Other yaccs will actually even choke on seeing the -o option after the
3020         input file name.
3021         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
3023 2020-05-02  Bruno Haible  <bruno@clisp.org>
3025         list: Add get_first, get_last, set_first, set_last operations.
3026         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
3027         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
3028         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
3030 2020-05-02  Bruno Haible  <bruno@clisp.org>
3032         list: Remove redundant code for remove_first and remove_last operations.
3033         * lib/gl_list.h (struct gl_list_implementation): Remove fields
3034         remove_first, remove_last.
3035         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
3036         * lib/gl_array_list.c: Revert last change.
3037         * lib/gl_carray_list.c: Likewise.
3038         * lib/gl_anylinked_list2.h: Likewise.
3039         * lib/gl_linked_list.c: Likewise.
3040         * lib/gl_linkedhash_list.c: Likewise.
3041         * lib/gl_anytree_list2.h: Likewise.
3042         * lib/gl_avltree_list.c: Likewise.
3043         * lib/gl_avltreehash_list.c: Likewise.
3044         * lib/gl_rbtree_list.c: Likewise.
3045         * lib/gl_rbtreehash_list.c: Likewise.
3046         * lib/gl_sublist.c: Likewise.
3048 2020-05-02  Bruno Haible  <bruno@clisp.org>
3050         bison-i18n: Add support for cross-compilation.
3051         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
3052         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
3053         via Akim Demaille <akim@lrde.epita.fr>.
3054         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
3055         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
3056         Don't use bison's --print-localedir option when cross-compiling.
3057         Also, fix an error message and a comment.
3059 2020-05-01  Bruno Haible  <bruno@clisp.org>
3061         list: Add remove_first and remove_last operations.
3062         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3063         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
3064         * lib/gl_list.h (struct gl_list_implementation): Add fields
3065         remove_first, remove_last.
3066         (gl_list_remove_first, gl_list_remove_last): New functions.
3067         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
3068         functions, based on gl_array_remove_at.
3069         (gl_array_list_implementation): Implement the new operations.
3070         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
3071         New functions, based on gl_carray_remove_at.
3072         (gl_carray_list_implementation): Implement the new operations.
3073         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
3074         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
3075         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
3076         new operations.
3077         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
3078         Likewise.
3079         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
3080         New functions, based on gl_tree_remove_at.
3081         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
3082         new operations.
3083         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3084         Likewise.
3085         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
3086         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
3087         Likewise.
3088         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
3089         New functions, based on gl_sublist_remove_at.
3090         (gl_sublist_list_implementation): Implement the new operations.
3091         * lib/gl_list.hh (class gl_List): Add methods remove_first,
3092         remove_last.
3093         * tests/test-array_list.c (main): Test also gl_list_remove_first and
3094         gl_list_remove_last.
3095         * tests/test-avltree_list.c (main): Likewise.
3096         * tests/test-avltreehash_list.c (main): Likewise.
3097         * tests/test-carray_list.c (main): Likewise.
3098         * tests/test-linked_list.c (main): Likewise.
3099         * tests/test-linkedhash_list.c (main): Likewise.
3100         * tests/test-rbtree_list.c (main): Likewise.
3101         * tests/test-rbtreehash_list.c (main): Likewise.
3103 2020-05-01  Bruno Haible  <bruno@clisp.org>
3105         parse-datetime: Fix a build failure with an older bison version.
3106         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
3107         parse-datetime.tab.c if a suitable version of bison was not found.
3109 2020-05-01  Bruno Haible  <bruno@clisp.org>
3111         bison: New module.
3112         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
3113         m4/parse-datetime.m4.
3114         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
3115         * modules/bison: New file.
3116         * modules/parse-datetime (Files): Remove m4/bison.m4.
3117         (Depends-on): Add bison.
3119 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
3121         Update users.txt.
3122         * users.txt: Add poke.
3124 2020-04-28  Bruno Haible  <bruno@clisp.org>
3126         posix_spawn_file_actions_addfchdir tests: Enhance test.
3127         * tests/test-posix_spawn5.c: Include findprog.h.
3128         (test): New function, extracted from main.
3129         (main): Invoke it. Also, invoke it with a program name such as
3130         "bin/pwd".
3131         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
3132         findprog.
3134 2020-04-28  Bruno Haible  <bruno@clisp.org>
3136         posix_spawn_file_actions_addchdir tests: Enhance test.
3137         * tests/test-posix_spawn4.c: Include findprog.h.
3138         (test): New function, extracted from main.
3139         (main): Invoke it. Also, invoke it with a program name such as
3140         "bin/pwd".
3141         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
3142         findprog.
3144 2020-04-28  Bruno Haible  <bruno@clisp.org>
3146         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
3147         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
3148         access elements of the wrong union member.
3150 2020-04-27  Bruno Haible  <bruno@clisp.org>
3152         getdate: Remove deprecated module.
3153         * modules/getdate: Remove file.
3154         * doc/getdate.texi: Remove file.
3155         * lib/getdate.h: Remove file.
3156         * NEWS: Mention the removal.
3158 2020-04-27  Bruno Haible  <bruno@clisp.org>
3160         realloc: Remove deprecated module.
3161         * modules/realloc: Remove file.
3162         * NEWS: Mention the removal.
3164 2020-04-27  Bruno Haible  <bruno@clisp.org>
3166         calloc: Remove deprecated module.
3167         * modules/calloc: Remove file.
3168         * NEWS: Mention the removal.
3170 2020-04-27  Bruno Haible  <bruno@clisp.org>
3172         malloc: Remove deprecated module.
3173         * modules/malloc: Remove file.
3174         * NEWS: Mention the removal.
3176 2020-04-27  Bruno Haible  <bruno@clisp.org>
3178         fnmatch-posix: Remove deprecated module.
3179         * modules/fnmatch-posix: Remove file.
3180         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
3181         * NEWS: Mention the removal.
3183 2020-04-27  Bruno Haible  <bruno@clisp.org>
3185         pipe: Remove deprecated module.
3186         * modules/pipe: Remove file.
3187         * lib/pipe.h: Remove file.
3188         * NEWS: Mention the removal.
3190 2020-04-27  Bruno Haible  <bruno@clisp.org>
3192         getopt: Remove deprecated module.
3193         * modules/getopt: Remove file.
3194         * NEWS: Mention the removal.
3196 2020-04-27  Bruno Haible  <bruno@clisp.org>
3198         remove-dest-slash: Remove deprecated module.
3199         * modules/rename-dest-slash: Remove file.
3200         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
3201         Update.
3202         * NEWS: Mention the removal.
3204 2020-04-27  Bruno Haible  <bruno@clisp.org>
3206         unictype/bidicategory-*: Remove deprecated modules.
3207         * modules/unictype/bidicategory-all: Remove file.
3208         * modules/unictype/bidicategory-byname: Remove file.
3209         * modules/unictype/bidicategory-name: Remove file.
3210         * modules/unictype/bidicategory-of: Remove file.
3211         * modules/unictype/bidicategory-test: Remove file.
3212         * MODULES.html.sh (Unicode string functions): Update.
3213         * NEWS: Mention the removals.
3215 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3217         Tune fts for FTS_LOGICAL+FTS_NOSTAT
3218         From a suggestion by Askar Safin in:
3219         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
3220         * lib/fts.c (fts_build): If file types are known, optimize
3221         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
3222         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
3223         non-directories.
3225 2020-04-19  Bruno Haible  <bruno@clisp.org>
3227         vasnprintf: Add support for printing wide characters using escapes.
3228         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
3229         (wctomb_fallback): New function.
3230         (local_wctomb): New function.
3231         (local_wcrtomb): New function or macro.
3232         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
3233         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
3234         %lc.
3236 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
3238         fts: remove NOSTAT_LEAF_OPTIMIZATION
3239         It caused ‘find’ and ‘du’ to dump core, and it was useful
3240         only for obsolescent Linux filesystems anyway.  Problem reported in:
3241         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
3242         Quite possibly there is still a serious underlying fts bug with
3243         tight-loop-check and mutating file systems, but if so this patch
3244         should cause the bug to be triggered less often.
3245         * lib/fts.c (enum leaf_optimization): Remove
3246         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
3247         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
3248         (leaf_optimization): Remove special cases for ReiserFS and XFS.
3249         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
3250         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
3251         Remove.  All uses removed.
3253 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3255         explicit_bzero: Improve code style.
3256         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
3258 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3260         explicit_bzero: On native Windows, use SecureZeroMemory().
3261         * lib/explicit_bzero.c: Include <windows.h>.
3262         (explicit_bzero): On native Windows, use SecureZeroMemory.
3264 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3266         explicit_bzero: Use memset_s() when available.
3267         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
3268         (explicit_bzero): Use memset_s when available.
3269         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
3271 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3273         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
3274         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
3275         free() that overwrite the memory with canaries.
3277 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
3279         bootstrap: recommend git submodule update --init
3280         Reported by Bruno Haible.
3281         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
3282         * build-aux/bootstrap: recommand "git submodule update --init"
3283         rather than "git submodule init".
3285 2020-04-12  Bruno Haible  <bruno@clisp.org>
3287         explicit_bzero: Add tests.
3288         * tests/test-explicit_bzero.c: New file.
3289         * modules/explicit_bzero-tests: New file.
3291 2020-04-11  Bruno Haible  <bruno@clisp.org>
3293         explicit_bzero: Relicense under LGPLv2+.
3294         Approved by Paul Eggert.
3295         * modules/explicit_bzero (License): Change to LGPLv2+.
3297 2020-04-10  Bruno Haible  <bruno@clisp.org>
3299         findprog, relocatable-prog: Ignore directories during PATH search.
3300         Reported by Frederick Eaton via Dmitry Goncharov in
3301         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3303         * lib/findprog.c (find_in_path): When the file found in a PATH element
3304         is a directory, continue searching.
3305         * modules/findprog (Depends-on): Add sys_stat, stat.
3306         * modules/findprog-lgpl (Depends-on): Likewise.
3308         * lib/progreloc.c (maybe_executable): When the file found in a PATH
3309         element is a directory, continue searching.
3310         * lib/relocwrapper.c: Update comments.
3311         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
3312         (configure.ac-early): New section.
3314 2020-04-10  Bruno Haible  <bruno@clisp.org>
3316         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
3317         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3318         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
3319         * MODULES.html.sh: In a git-less tarball, use the date of the first
3320         ChangeLog entry.
3322 2020-04-04  Bruno Haible  <bruno@clisp.org>
3324         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
3325         * m4/gettext.m4: Fix comments regarding the gettext library.
3326         * m4/intl-thread-locale.m4: Likewise.
3327         * m4/intlmacosx.m4: Likewise.
3328         * m4/lcmessage.m4: Likewise.
3329         * m4/nls.m4: Likewise.
3330         * m4/po.m4: Likewise.
3331         * m4/progtest.m4: Likewise.
3333 2020-04-04  Jim Meyering  <meyering@fb.com>
3335         maint: remove a stray inter-word space in a 6x-repeated comment
3336         Induce the changes by running this:
3337           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
3338         * build-aux/announce-gen: Change "by  perl" to "by perl".
3339         * build-aux/gitlog-to-changelog: Likewise.
3340         * build-aux/prefix-gnulib-mk: Likewise.
3341         * build-aux/update-copyright: Likewise.
3342         * build-aux/useless-if-before-free: Likewise.
3343         * tests/test-update-copyright.sh: Likewise.
3345 2020-03-28  Bruno Haible  <bruno@clisp.org>
3347         Use module 'filename' instead of module 'dosname'.
3349         * lib/at-func.c: Include filename.h instead of dosname.h.
3350         * lib/unlinkat.c: Likewise.
3351         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
3352         * modules/areadlinkat-with-size (Depends-on): Likewise.
3353         * modules/faccessat (Depends-on): Likewise.
3354         * modules/fchmodat (Depends-on): Likewise.
3355         * modules/fchownat (Depends-on): Likewise.
3356         * modules/fstatat (Depends-on): Likewise.
3357         * modules/mkdirat (Depends-on): Likewise.
3358         * modules/mkfifoat (Depends-on): Likewise.
3359         * modules/readlinkat (Depends-on): Likewise.
3360         * modules/selinux-at (Depends-on): Likewise.
3361         * modules/symlinkat (Depends-on): Likewise.
3362         * modules/unlinkat (Depends-on): Likewise.
3363         * modules/utimensat (Depends-on): Likewise.
3365         * lib/at-func2.c: Include filename.h instead of dosname.h.
3366         * modules/linkat (Depends-on): Add filename. Remove dosname.
3367         * modules/renameatu (Depends-on): Likewise.
3369         * lib/canonicalize.c: Include filename.h instead of dosname.h.
3370         * lib/canonicalize-lgpl.c: Likewise.
3371         * modules/canonicalize (Depends-on): Add filename.
3372         * modules/canonicalize-lgpl (Depends-on): Likewise.
3374         * lib/dirname.h: Include filename.h instead of dosname.h.
3375         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
3377         * lib/fchdir.c: Include filename.h instead of dosname.h.
3378         * modules/fchdir (Depends-on): Add filename. Remove dosname.
3380         * lib/openat.c: Include filename.h instead of dosname.h.
3381         * modules/openat (Depends-on): Add filename. Remove dosname.
3383         * lib/rmdir.c: Include filename.h instead of dosname.h.
3384         * modules/rmdir (Depends-on): Add filename. Remove dosname.
3386         * lib/savewd.c: Include filename.h instead of dosname.h.
3387         * modules/savewd (Depends-on): Add filename. Remove dosname.
3389         * lib/unlink.c: Include filename.h instead of dosname.h.
3390         * modules/unlink (Depends-on): Add filename. Remove dosname.
3392         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
3393         * lib/relocwrapper.c: Update comments.
3395         * modules/lstat (Depends-on): Remove dosname.
3397 2020-03-28  Bruno Haible  <bruno@clisp.org>
3399         dosname: Redirect to 'filename'.
3400         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3401         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
3402         * lib/dosname.h: Remove all definitions. Just include filename.h.
3403         * modules/dosname (Status, Notice): Mark as deprecated.
3404         (Depends-on): Add 'filename'.
3406 2020-03-28  Bruno Haible  <bruno@clisp.org>
3408         dosname: Change IS_RELATIVE_FILE_NAME.
3409         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
3410         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
3411         * NEWS: Mention the change.
3413 2020-03-28  Bruno Haible  <bruno@clisp.org>
3415         filename: Copy some definitions from module 'dosname'.
3416         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
3417         (HAS_DEVICE): Document macro.
3418         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
3419         (IS_ABSOLUTE_FILE_NAME): Consider
3420         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
3421         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
3422         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
3423         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
3424         IS_PATH_WITH_DIR.
3425         (DllMain): Update.
3426         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
3427         IS_PATH_WITH_DIR.
3428         (find_executable): Update.
3429         * NEWS: Document the deprecations.
3431 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
3433         getopt-posix: port __GETOPT_PREFIX to macOS
3434         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
3435         Define to work around a problem with asm on macOS (Bug#40205).
3437 2020-03-22  Bruno Haible  <bruno@clisp.org>
3439         MODULES.html.sh: Add support for reproducible builds.
3440         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3441         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
3442         * MODULES.html.sh: Print the date of the last gnulib commit, not the
3443         current date.
3445 2020-03-22  Bruno Haible  <bruno@clisp.org>
3447         Several modules: Depend on stat.
3448         * modules/acl-permissions (Depends-on): Add stat.
3449         * modules/canonicalize (Depends-on): Likewise.
3450         * modules/file-has-acl (Depends-on): Likewise.
3451         * modules/fstat (Depends-on): Likewise.
3452         * modules/fstatat (Depends-on): Likewise.
3453         * modules/glob (Depends-on): Likewise.
3454         * modules/javacomp (Depends-on): Likewise.
3455         * modules/linkat (Depends-on): Likewise.
3456         * modules/mkdir (Depends-on): Likewise.
3457         * modules/pt_chown (Depends-on): Likewise.
3458         * modules/ptsname_r (Depends-on): Likewise.
3459         * modules/readlinkat (Depends-on): Likewise.
3460         * modules/rename (Depends-on): Likewise.
3461         * modules/renameatu (Depends-on): Likewise.
3462         * modules/tmpdir (Depends-on): Likewise.
3463         * modules/utimens (Depends-on): Likewise.
3464         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
3465         * modules/same (Depends-on): Remove stat.
3467 2020-03-22  Bruno Haible  <bruno@clisp.org>
3469         acl-permissions: Improve autoconf macro.
3470         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
3471         more reliably.
3473 2020-03-22  Bruno Haible  <bruno@clisp.org>
3475         file-has-acl: Fix module description.
3476         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
3477         (Depends-on): Depend on acl-permissions unconditionally.
3479 2020-03-21  Bruno Haible  <bruno@clisp.org>
3481         unlink: Ensure errno also on native Windows.
3482         * modules/unlink (Depends-on): Add malloc-posix.
3484 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
3486         unlink: fix malloc errno typo
3487         Problem reported by Tim Rühsen in:
3488         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
3489         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
3491 2020-03-16  Bruno Haible  <bruno@clisp.org>
3493         *printf-posix: Fix m4 error (regression from 2020-03-08).
3494         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
3495         brackets in AC_COMPILE_IFELSE invocation.
3497 2020-03-08  Bruno Haible  <bruno@clisp.org>
3499         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
3500         * modules/crypto/af_alg (Depends-on): Add fstat.
3501         * modules/renameatu (Depends-on): Likewise.
3502         * modules/same (Depends-on): Likewise.
3503         * modules/term-style-control (Depends-on): Likewise.
3505 2020-03-08  Bruno Haible  <bruno@clisp.org>
3507         *printf-posix: Document why it's overridden on some glibc systems.
3508         Reported by Adrian Bunk <bunk@stusta.de> in
3509         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
3510         * doc/posix-functions/*printf.texi: Document the problem with the %n
3511         directive on some glibc systems.
3512         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
3513         the cross-compilation guesses accordingly.
3515 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
3517         open, openat: port to (O_RDWR | O_RDONLY) != 0
3518         Potential portability problem reported by Dan Gohman in:
3519         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
3520         * lib/open.c (open):
3521         * lib/openat.c (rpl_openat):
3522         Don’t assume O_RDONLY is disjoint from O_RDWR.
3524 2020-03-07  Bruno Haible  <bruno@clisp.org>
3526         openat: Fix theoretically possible issue on GNU/Hurd.
3527         Reported by Dan Gohman <sunfish@mozilla.com> in
3528         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
3529         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
3530         ignore the bits that are also set in O_RDONLY.
3532 2020-02-24  Bruno Haible  <bruno@clisp.org>
3534         getloadavg: Don't use /usr/local when cross-compiling on AIX.
3535         Reported by Jens Rehsack <sno@netbsd.org> in
3536         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
3537         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
3538         cross-compiling.
3540 2020-02-24  Bruno Haible  <bruno@clisp.org>
3542         fcntl: Add witness of gnulib override.
3543         Reported by Jens Rehsack <sno@netbsd.org> in
3544         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
3545         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
3546         macros.
3548 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
3550         Update users.txt.
3551         * users.txt: Add datamash, time.
3553 2020-02-23  Bruno Haible  <bruno@clisp.org>
3555         uni*/base: Use 'restrict'.
3556         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
3557         from lib/regex.h.
3558         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
3559         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
3560         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
3561         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
3562         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
3563         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
3564         '_UC_RESTRICT'.
3565         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
3566         u32_conv_to_encoding): Use '_UC_RESTRICT'.
3567         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
3568         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
3569         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
3570         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
3571         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
3572         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
3573         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
3574         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
3575         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
3576         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
3577         '_UC_RESTRICT'.
3578         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
3579         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
3580         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
3581         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
3582         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
3583         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
3584         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
3585         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
3587 2020-02-23  Bruno Haible  <bruno@clisp.org>
3589         glob, spawn: Use improved '_Restrict_' definition.
3590         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
3591         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
3593 2020-02-23  Bruno Haible  <bruno@clisp.org>
3595         crypto/gc: Use 'restrict'.
3596         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
3597         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
3599         crypto/hmac-*: Use 'restrict'.
3600         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
3601         'restrict'.
3602         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
3603         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
3604         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
3605         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
3607         crypto/sm3: Use 'restrict'.
3608         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
3609         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
3611         crypto/*-buffer: Use 'restrict'.
3612         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
3613         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
3615         crypto/sha512-buffer: Use 'restrict'.
3616         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
3617         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
3618         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
3620         crypto/sha256-buffer: Use 'restrict'.
3621         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
3622         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
3623         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
3625         crypto/sha1-buffer: Use 'restrict'.
3626         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
3627         'restrict'.
3628         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
3630         crypto/md5-buffer: Use 'restrict'.
3631         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
3632         'restrict'.
3633         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
3635         crypto/md4: Use 'restrict'.
3636         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
3637         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
3639         crypto/md2: Use 'restrict'.
3640         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
3641         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
3643         crypto/rijndael: Use 'restrict'.
3644         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
3645         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
3646         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
3648         crypto/arctwo: Use 'restrict'.
3649         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
3650         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
3652         crypto/arcfour: Use 'restrict'.
3653         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
3654         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
3656         careadlinkat: Use 'restrict'.
3657         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
3658         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
3659         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
3661         regex-quote: Use 'restrict'.
3662         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
3663         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
3665         system-quote: Use 'restrict'.
3666         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
3667         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
3669         sh-quote: Use 'restrict'.
3670         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
3671         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
3673         quotearg: Use 'restrict'.
3674         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
3675         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
3677         parse-datetime: Use 'restrict'.
3678         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
3679         'restrict'.
3680         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
3682         nstrftime: Use 'restrict'.
3683         * lib/strftime.h (nstrftime): Use 'restrict'.
3684         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
3686         mbstok_r: Use 'restrict'.
3687         * lib/string.in.h (mbstok_r): Use 'restrict'.
3689         xmemcoll: Use 'restrict'.
3690         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
3691         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
3693         memcoll: Use 'restrict'.
3694         * lib/memcoll.h (memcoll): Use 'restrict'.
3695         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
3697         vasnprintf: Use 'restrict'.
3698         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
3699         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
3701         c-vasnprintf: Use 'restrict'.
3702         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
3703         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
3705         c-vsnprintf: Use 'restrict'.
3706         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
3707         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
3709         c-snprintf: Use 'restrict'.
3710         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
3711         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
3713         astrxfrm: Use 'restrict'.
3714         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
3715         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
3717         amemxfrm: Use 'restrict'.
3718         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
3719         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
3721 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
3723         fchmodat, lchmod: simplify
3724         It appears that we may have overengineered lchmod and fchmodat,
3725         in that the code was prepared for some hypothetical platforms but
3726         was so complicated that it was hard to understand.  I attempted to
3727         improve the situation by simplifying the code when this
3728         simplification should not hurt on real platforms; we can re-add
3729         complexity later to port to platforms I didn’t know about.
3730         * lib/fchmodat.c (fchmodat):
3731         * lib/lchmod.c (lchmod):
3732         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
3733         around the /proc code that needs it.
3734         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
3735         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
3736         Do not include <config.h> twice.
3737         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
3738         lchmod on any known hosts.
3739         (lchmod): Do not defer to fchmodat, so that the lchmod module
3740         need not depend on the fchmodat module (which is a circular
3741         dependency).  Do not use openat, since ‘open’ suffices.
3742         Coalesce calls to lchmod/chmod.
3743         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
3744         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
3745         * modules/lchmod (Depends-on, configure.ac):
3746         * modules/sys_stat (Depends-on):
3747         Do not worry about replacing lchmod, since that shouldn’t happen.
3748         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
3749         Do not worry about whether lchmod works on non-symlinks,
3750         since every known lchmod works on non-symlinks.
3751         * modules/lchmod (Depends-on):
3752         Remove circular dependency on fchmodat.
3754 2020-02-22  Bruno Haible  <bruno@clisp.org>
3756         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
3757         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
3758         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
3760 2020-02-22  Bruno Haible  <bruno@clisp.org>
3762         Use 'restrict' in all POSIX function declarations.
3763         * lib/iconv.in.h (iconv): Use 'restrict'.
3764         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
3765         * lib/monetary.in.h (strfmon_l): Likewise.
3766         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
3767         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
3768         pthread_mutex_timedlock, pthread_rwlock_init,
3769         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
3770         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
3771         * lib/search.in.h (tdelete): Likewise.
3772         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
3773         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
3774         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
3775         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
3776         Likewise.
3777         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
3778         strtoull): Likewise.
3779         * lib/string.in.h (strncat): Likewise.
3780         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
3781         recvfrom): Likewise.
3782         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
3783         * lib/time.in.h (strftime): Likewise.
3784         * lib/unistd.in.h (readlink, readlinkat): Likewise.
3785         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
3786         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
3787         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
3788         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
3789         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
3790         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
3791         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3792         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3793         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3794         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3795         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3796         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3797         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3798         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3799         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
3800         other *_h.m4 files.
3801         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
3803 2020-02-22  Bruno Haible  <bruno@clisp.org>
3805         Update NEWS.
3806         * NEWS: Mention the last change.
3808 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
3810         chmodat, chownat: new modules
3811         These are split from fchmodat, fchownat.  GNU Emacs needs the
3812         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
3813         lchmodat.  Split the latter two into a new module chmodat.
3814         Similarly for fchownat.  This the same basic idea for why statat
3815         was split from fstatat on 2013-01-23.
3816         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
3817         Rename from FCHMODAT_INLINE.  All uses changed.
3818         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
3819         Rename from FCHOWNAT_INLINE.  All uses changed.
3820         * lib/openat.h:
3821         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
3822         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
3823         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
3824         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
3825         (configure.ac): Remove fchmodat module indicator.
3826         (Makefile.am): Omit chmodat.c.
3827         (Maintainer): Add self.
3828         * modules/fchownat: Similarly, but for chown.
3829         * tests/test-fchownat.c (BASE): Don't define if already defined.
3830         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
3832 2020-02-22  Bruno Haible  <bruno@clisp.org>
3834         users.txt: Add groff.
3835         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
3836         * users.txt: Add groff.
3838 2020-02-22  Bruno Haible  <bruno@clisp.org>
3840         gnulib-tool: Ensure copied files are writable.
3841         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
3842         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
3843         * gnulib-tool (func_ensure_writable): New function.
3844         (func_ln_s, func_hardlink, func_lookup_file, func_import,
3845         func_create_testdir, copy-file): Invoke it after copying a file.
3847 2020-02-22  Bruno Haible  <bruno@clisp.org>
3849         users.txt: Update.
3850         * users.txt: Update URLs to projects that have moved or switched to git.
3851         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
3852         over the summary view. Add gawk.
3854 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
3856         largefile: remove _DARWIN_USE_64_BIT_INODE
3857         It’s not needed in currently-supported macOS versions, and was
3858         problematic anyway in MacOS X 10.5 which was the only version that
3859         could use it.  Problem reported by Peter Eisentraut in:
3860         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
3861         * m4/largefile.m4 (AC_SYS_LARGEFILE):
3862         Don’t define _DARWIN_USE_64_BIT_INODE.
3863         This syncs with Autoconf master.
3865         Add ‘extern "C"’ to count-one-bits.h etc.
3866         This ports these .h files to C++.
3867         Problem reported by Simon Marchi in:
3868         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
3869         * lib/count-leading-zeros.h, lib/count-one-bits.h:
3870         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
3872 2020-02-19  Bruno Haible  <bruno@clisp.org>
3874         uninorm/decompose-internal: Avoid "no previous prototype" warning.
3875         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3876         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
3877         * lib/array-mergesort.h: Accept an optional macro definition
3878         STATIC_FROMTO.
3879         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
3881 2020-02-16  Bruno Haible  <bruno@clisp.org>
3883         fchmodat: Make more future-proof.
3884         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
3885         NEED_FCHMODAT_NONSYMLINK_FIX.
3886         (gl_PREREQ_FCHMODAT): New macro.
3887         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
3888         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
3889         without lchmod function.
3890         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
3892 2020-02-16  Bruno Haible  <bruno@clisp.org>
3894         lchmod: Make more future-proof.
3895         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
3896         (gl_PREREQ_LCHMOD): New macro.
3897         * lib/lchmod.c (orig_lchmod): New function.
3898         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
3899         Return EOPNOTSUPP only on Linux and on platforms without lchmod
3900         function.
3901         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
3903         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
3904         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
3906 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3908         xnanosleep: prefer pause, and get remaining time
3909         Problem reported by Vladimir Panteleev in:
3910         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
3911         * lib/xnanosleep.c: Include intprops.h, unistd.h.
3912         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
3913         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
3914         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
3915         * modules/xnanosleep (Depends-on): Add intprops, unistd.
3917 2020-02-16  Bruno Haible  <bruno@clisp.org>
3919         lchmod: Improve cross-compilation guess.
3920         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
3921         cross-compiling, guess depending on the platform.
3923 2020-02-16  Bruno Haible  <bruno@clisp.org>
3925         fstrcmp: Add API to clean up resources.
3926         Reported by Akim Demaille <akim@lrde.epita.fr> in
3927         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
3928         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
3929         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
3931 2020-02-14  Bruno Haible  <bruno@clisp.org>
3933         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
3934         Reported by Christian Biesinger in
3935         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
3936         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
3937         corresponding module is not enabled.
3938         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
3939         prototype if the corresponding module is not enabled.
3941 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
3943         fchmodat, lchmod: port to buggy Linux filesystems
3944         Problem reported by Florian Weimer in:
3945         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
3946         * lib/fchmodat.c (fchmodat):
3947         * lib/lchmod.c (lchmod):
3948         Don’t assume that chmod on the O_PATH-opened fd will do
3949         the right thing on a symbolic link.
3950         * lib/fchmodat.c (fchmodat):
3951         Don’t attempt to special-case
3952         any flag value other than AT_SYMLINK_NOFOLLOW.
3954 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
3956         lchmod: pacify Coverity CID 1491216
3957         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
3958         not complain about unreachable code at the ‘struct stat st;’
3959         declaration.
3961 2020-02-10  Bruno Haible  <bruno@clisp.org>
3963         copysignf: Fix link error on HP-UX with cc.
3964         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
3965         HP-UX, set COPYSIGNF_LIBM to -lm.
3967 2020-02-10  Bruno Haible  <bruno@clisp.org>
3969         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
3970         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
3971         with $(LIB_SEMAPHORE).
3972         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
3973         with $(LIB_SEMAPHORE).
3975 2020-02-10  Bruno Haible  <bruno@clisp.org>
3977         ptsname_r-tests: Avoid unused function warning.
3978         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
3980 2020-02-08  Bruno Haible  <bruno@clisp.org>
3982         lchmod: Add tests.
3983         * tests/test-lchmod.c: New file.
3984         * modules/lchmod-tests: New file.
3986 2020-02-08  Bruno Haible  <bruno@clisp.org>
3988         lchmod: Ensure declaration on HP-UX.
3989         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
3990         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
3992 2020-02-08  Bruno Haible  <bruno@clisp.org>
3994         fchmodat: Strengthen tests.
3995         * tests/test-fchmodat.c (BASE): New macro.
3996         (main): Use it, to avoid conflicts with other unit tests. Verify that
3997         fchmodat changed the file permission bits.
3999 2020-02-08  Bruno Haible  <bruno@clisp.org>
4001         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
4002         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
4003         '#undef __need_system_sys_stat_h'.
4005 2020-02-08  Bruno Haible  <bruno@clisp.org>
4007         fchmodat: Improve cross-compilation guesses.
4008         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
4009         cross-compiling, guess depending on the platform.
4010         * doc/posix-functions/fchmodat.texi: Clarify.
4012 2020-02-08  Bruno Haible  <bruno@clisp.org>
4014         Fix compilation errors in a testdir created with --with-c++-tests.
4015         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
4016         since it does not work any more with g++ >= 4.4.
4018 2020-02-08  Bruno Haible  <bruno@clisp.org>
4020         doc: Update for glibc 2.31.
4021         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
4022         * doc/gnulib.texi: Include it.
4023         * doc/pastposix-functions/h_errno.texi: Update.
4024         * doc/posix-functions/*.texi: Likewise.
4026 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
4028         mountlist: consider smb3 file systems as remote
4029         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
4030         "smb3" as remote.
4032 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4034         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
4035         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
4036         they act like chmod on non-symlinks.
4037         * NEWS:
4038         * doc/glibc-functions/lchmod.texi (lchmod):
4039         * doc/posix-functions/fchmodat.texi (fchmodat):
4040         Mention this.
4041         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
4042         config.h, and undef it after including sys/stat.h the first time.
4043         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
4044         sys/stat.h a second time after defining orig_fchmodat.
4045         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
4046         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
4047         * lib/lchmod.c: New file.
4048         * lib/sys_stat.in.h (fchmodat, lchmod):
4049         Support replacing these functions.
4050         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
4051         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
4052         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
4053         Test that lchmod works on non-symlinks.
4054         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
4055         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
4056         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
4057         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
4058         * modules/lchmod (Files): Add lib/lchmod.c.
4059         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
4060         (configure.ac): Compile lchmod.c if needed.
4061         (lib_SOURCES): Add lchmod.c.
4062         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
4063         and REPLACE_LCHMOD.
4064         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
4065         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
4067 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
4069         mountlist: Consider AFS filesystems as remote
4070         df --local relies on the ME_REMOTE macro to determine if a given
4071         mount entry should be considered "local".  There is special logic
4072         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
4073         kernel's kafs module or AuriStorFS is treated as a local mount.
4074         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
4075         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
4077 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4079         Port _Noreturn to older Clang
4080         Problem reported by Jeffery Walton in:
4081         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
4082         * lib/_Noreturn.h (_Noreturn):
4083         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4084         Assume _Noreturn works in Clang 3.5 and later.
4085         It is documented to work in Clang 3.5:
4086         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
4087         and is not documented in Clang 3.4:
4088         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
4089         Apple sets __clang_version__ to a different value, so use
4090         __apple_build_version__ there.  See:
4091         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
4093 2020-02-04  Pádraig Brady  <P@draigBrady.com>
4095         test-canonicalize: avoid unused function warning
4096         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
4097         with the same guard as that used to protect usage of the null_ptr
4098         function, so that one doesn't get a -Wunused warning.
4099         * tests/test-canonicalize-lgpl.c: Likewise.
4101 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
4103         libc-config: port to Apple’s Clang variant
4104         * lib/libc-config.h (__glibc_clang_prereq):
4105         Port to Apple’s Clang variant, which uses a different
4106         numbering scheme for __clang_major__.
4108 2020-02-02  Bruno Haible  <bruno@clisp.org>
4110         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
4111         * doc/containers.texi: Document these new modules.
4113 2020-02-02  Bruno Haible  <bruno@clisp.org>
4115         omap-c++: Add tests.
4116         * tests/test-omap-c++.cc: New file.
4117         * modules/omap-c++-tests: New file.
4119         omap-c++: New module.
4120         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
4121         * modules/omap-c++: New file.
4123 2020-02-02  Bruno Haible  <bruno@clisp.org>
4125         map-c++: Add tests.
4126         * tests/test-map-c++.cc: New file.
4127         * modules/map-c++-tests: New file.
4129         map-c++: New module.
4130         * lib/gl_map.hh: New file, based on lib/gl_map.h.
4131         * modules/map-c++: New file.
4133 2020-02-02  Bruno Haible  <bruno@clisp.org>
4135         oset-c++: Add tests.
4136         * tests/test-oset-c++.cc: New file.
4137         * modules/oset-c++-tests: New file.
4139         oset-c++: New module.
4140         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
4141         * modules/oset-c++: New file.
4143 2020-02-02  Bruno Haible  <bruno@clisp.org>
4145         set-c++: Add tests.
4146         * tests/test-set-c++.cc: New file.
4147         * modules/set-c++-tests: New file.
4149         set-c++: New module.
4150         * lib/gl_set.hh: New file, based on lib/gl_set.h.
4151         * modules/set-c++: New file.
4153 2020-02-02  Bruno Haible  <bruno@clisp.org>
4155         list-c++: Add tests.
4156         * tests/test-list-c++.cc: New file.
4157         * modules/list-c++-tests: New file.
4159         list-c++: New module.
4160         * lib/gl_list.hh: New file, based on lib/gl_list.h.
4161         * modules/list-c++: New file.
4163 2020-02-02  Bruno Haible  <bruno@clisp.org>
4165         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
4166         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
4167         '_Noreturn'.
4168         * lib/sigpipe-die.h (sigpipe_die): Likewise.
4170 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4172         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
4173         On x86_64 with glibc-2.30, gcc 9.2 is giving:
4174           error: argument 2 value '18446744073709551615'
4175           exceeds maximum object size 9223372036854775807
4176           [-Werror=alloc-size-larger-than=]
4177         The details of this restriction are discussed at:
4178         https://stackoverflow.com/q/42574890/4421
4179         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
4181 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4183         sysctl.h: avoid including on glibc
4184         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
4185         * lib/physmem.c: Likewise.
4187 2020-02-02  Bruno Haible  <bruno@clisp.org>
4189         list, set, oset, map, omap: Avoid imperative voice in documentation.
4190         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
4191         in the specification of functions.
4192         * lib/gl_set.h: Likewise.
4193         * lib/gl_oset.h: Likewise.
4194         * lib/gl_map.h: Likewise.
4195         * lib/gl_omap.h: Likewise.
4196         * lib/gl_*.h: Likewise.
4198 2020-02-01  Bruno Haible  <bruno@clisp.org>
4200         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
4201         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
4202         does.
4204 2020-01-29  Bruno Haible  <bruno@clisp.org>
4206         array-map, hash-map, linkedhash-map: Fix module description.
4207         * modules/array-map (Description): Fix description.
4208         * modules/hash-map (Description): Likewise.
4209         * modules/linkedhash-map (Description): Likewise.
4211 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4213         dfa: do not depend on isblank
4214         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
4215         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
4216         * modules/dfa (Depends-on): Remove isblank.
4217         * modules/isblank: Add a module indicator, for lib/dfa.c.
4219         dfa: do not assume 64-bit int
4220         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
4221         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
4222         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
4223         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
4224         Fall back to 32-bit words.
4225         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
4226         of 4 64-bit args.  All uses changed.
4228 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4230         regex: remove limits-h dependency
4231         * modules/regex (Depends-on): Remove limits-h, since the
4232         code no longer depends on ULONG_WIDTH already being defined.
4234         regex: port to non-GCC pre-IEC-60559
4235         Problem reported by Arnold Robbins in:
4236         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
4237         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
4239 2020-01-25  Bruno Haible  <bruno@clisp.org>
4241         c32isxdigit: Add tests.
4242         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
4243         * tests/test-c32isxdigit.sh: New file.
4244         * modules/c32isxdigit-tests: New file.
4246         c32isxdigit: New module.
4247         * lib/c32isxdigit.c: New file.
4248         * modules/c32isxdigit: New file.
4249         * doc/posix-functions/iswxdigit.texi: Mention the new module.
4251 2020-01-25  Bruno Haible  <bruno@clisp.org>
4253         c32isupper: Add tests.
4254         * tests/test-c32isupper.c: New file.
4255         * tests/test-c32isupper.sh: New file.
4256         * modules/c32isupper-tests: New file.
4258         c32isupper: New module.
4259         * lib/c32isupper.c: New file.
4260         * modules/c32isupper: New file.
4261         * doc/posix-functions/iswupper.texi: Mention the new module.
4263 2020-01-25  Bruno Haible  <bruno@clisp.org>
4265         c32isspace: Add tests.
4266         * tests/test-c32isspace.c: New file.
4267         * tests/test-c32isspace.sh: New file.
4268         * modules/c32isspace-tests: New file.
4270         c32isspace: New module.
4271         * lib/c32isspace.c: New file.
4272         * modules/c32isspace: New file.
4273         * doc/posix-functions/iswspace.texi: Mention the new module.
4275 2020-01-25  Bruno Haible  <bruno@clisp.org>
4277         c32ispunct: Add tests.
4278         * tests/test-c32ispunct.c: New file.
4279         * tests/test-c32ispunct.sh: New file.
4280         * modules/c32ispunct-tests: New file.
4282         c32ispunct: New module.
4283         * lib/c32ispunct.c: New file.
4284         * modules/c32ispunct: New file.
4285         * doc/posix-functions/iswpunct.texi: Mention the new module.
4287 2020-01-25  Bruno Haible  <bruno@clisp.org>
4289         c32isprint: Add tests.
4290         * tests/test-c32isprint.c: New file.
4291         * tests/test-c32isprint.sh: New file.
4292         * modules/c32isprint-tests: New file.
4294         c32isprint: New module.
4295         * lib/c32isprint.c: New file.
4296         * modules/c32isprint: New file.
4297         * doc/posix-functions/iswprint.texi: Mention the new module.
4299 2020-01-25  Bruno Haible  <bruno@clisp.org>
4301         c32islower: Add tests.
4302         * tests/test-c32islower.c: New file.
4303         * tests/test-c32islower.sh: New file.
4304         * modules/c32islower-tests: New file.
4306         c32islower: New module.
4307         * lib/c32islower.c: New file.
4308         * modules/c32islower: New file.
4309         * doc/posix-functions/iswlower.texi: Mention the new module.
4311 2020-01-25  Bruno Haible  <bruno@clisp.org>
4313         c32isgraph: Add tests.
4314         * tests/test-c32isgraph.c: New file.
4315         * tests/test-c32isgraph.sh: New file.
4316         * modules/c32isgraph-tests: New file.
4318         c32isgraph: New module.
4319         * lib/c32isgraph.c: New file.
4320         * modules/c32isgraph: New file.
4321         * doc/posix-functions/iswgraph.texi: Mention the new module.
4323 2020-01-25  Bruno Haible  <bruno@clisp.org>
4325         c32isdigit: Add tests.
4326         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
4327         * tests/test-c32isdigit.sh: New file.
4328         * modules/c32isdigit-tests: New file.
4330         c32isdigit: New module.
4331         * lib/c32isdigit.c: New file.
4332         * modules/c32isdigit: New file.
4333         * doc/posix-functions/iswdigit.texi: Mention the new module.
4335 2020-01-25  Bruno Haible  <bruno@clisp.org>
4337         c32iscntrl: Add tests.
4338         * tests/test-c32iscntrl.c: New file.
4339         * tests/test-c32iscntrl.sh: New file.
4340         * modules/c32iscntrl-tests: New file.
4342         c32iscntrl: New module.
4343         * lib/c32iscntrl.c: New file.
4344         * modules/c32iscntrl: New file.
4345         * doc/posix-functions/iswcntrl.texi: Mention the new module.
4347 2020-01-25  Bruno Haible  <bruno@clisp.org>
4349         c32isblank: Add tests.
4350         * tests/test-c32isblank.c: New file.
4351         * tests/test-c32isblank.sh: New file.
4352         * modules/c32isblank-tests: New file.
4354         c32isblank: New module.
4355         * lib/c32isblank.c: New file.
4356         * modules/c32isblank: New file.
4357         * doc/posix-functions/iswblank.texi: Mention the new module.
4359 2020-01-25  Bruno Haible  <bruno@clisp.org>
4361         c32isalpha: Add tests.
4362         * tests/test-c32isalpha.c: New file.
4363         * tests/test-c32isalpha.sh: New file.
4364         * modules/c32isalpha-tests: New file.
4366         c32isalpha: New module.
4367         * lib/c32isalpha.c: New file.
4368         * modules/c32isalpha: New file.
4369         * doc/posix-functions/iswalpha.texi: Mention the new module.
4371 2020-01-25  Bruno Haible  <bruno@clisp.org>
4373         c32isalnum: Add tests.
4374         * tests/test-c32isalnum.c: New file.
4375         * tests/test-c32isalnum.sh: New file.
4376         * modules/c32isalnum-tests: New file.
4378         c32isalnum: New module.
4379         * lib/c32isalnum.c: New file.
4380         * lib/c32is-impl.h: New file.
4381         * modules/c32isalnum: New file.
4382         * doc/posix-functions/iswalnum.texi: Mention the new module.
4384 2020-01-25  Bruno Haible  <bruno@clisp.org>
4386         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
4387         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
4388         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
4389         c32isupper, c32isxdigit): New declarations.
4390         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
4391         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4392         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4393         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4394         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4395         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
4396         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4397         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4398         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4399         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4400         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
4401         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
4402         c32ispunct, c32isspace, c32isupper, c32isxdigit.
4404 2020-01-25  Bruno Haible  <bruno@clisp.org>
4406         mbchar, wctype: Use the corrected iswxdigit function.
4407         * modules/mbchar (Depends-on): Add iswxdigit.
4408         * modules/wctype (Depends-on): Likewise.
4410         iswxdigit: Add tests.
4411         * tests/test-iswxdigit.c: New file.
4412         * tests/test-iswxdigit.sh: New file.
4413         * modules/iswxdigit-tests: New file.
4415         iswxdigit: New module.
4416         * m4/iswxdigit.m4: New file.
4417         * lib/wctype.in.h (iswxdigit): Potentially override.
4418         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
4419         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
4420         * lib/iswxdigit.c: New file.
4421         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
4422         REPLACE_ISWXDIGIT.
4423         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
4424         REPLACE_ISWXDIGIT.
4425         * modules/iswxdigit: New file.
4426         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
4428 2020-01-25  Bruno Haible  <bruno@clisp.org>
4430         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
4431         Reported by John Donoghue <john.david.donoghue@gmail.com> in
4432         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
4433         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
4434         off_t on mingw, invoke _lseeki64 instead of lseek.
4436 2020-01-25  Bruno Haible  <bruno@clisp.org>
4438         iswdigit tests: Avoid test failure on Cygwin.
4439         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
4440         byte sequence, return 0.
4442         iswdigit: Fix test failure on native Windows.
4443         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
4445         mbchar, wctype: Use the corrected iswdigit function.
4446         * modules/mbchar (Depends-on): Add iswdigit.
4447         * modules/wctype (Depends-on): Likewise.
4449         iswdigit: Add tests.
4450         * tests/test-iswdigit.c: New file.
4451         * tests/test-iswdigit.sh: New file.
4452         * modules/iswdigit-tests: New file.
4454         iswdigit: New module.
4455         * m4/iswdigit.m4: New file.
4456         * lib/wctype.in.h (iswdigit): Potentially override.
4457         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
4458         * lib/iswdigit.c: New file.
4459         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
4460         REPLACE_ISWDIGIT.
4461         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
4462         REPLACE_ISWDIGIT.
4463         * modules/iswdigit: New file.
4464         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
4466 2020-01-25  Bruno Haible  <bruno@clisp.org>
4468         hard-locale tests: Make it easy to reuse the musl test.
4469         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
4470         * modules/hard-locale-tests (Files): Add it.
4471         (configure.ac): Invoke gl_MUSL_LIBC.
4473 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
4475         regex: port to Gawk on nonstandard platforms
4476         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
4477         This is useful for Gawk, which does not use the Gnulib stdlib-h
4478         module.  Problem reported by Arnold Robbins in:
4479         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
4481 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4483         regex: fix bug with >=16 subexpressions
4484         * lib/regex_internal.h (struct re_backref_cache_entry):
4485         Use bitset_word_t as the type of eps_reachable_subexps_map,
4486         instead of unsigned short int.  This fixes a bug I introduced
4487         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
4488         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
4489         Remove unused member 'unused'.
4491         regex: simplify definition of BITSET_WORD_BITS
4492         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
4493         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
4494         * lib/regex_internal.h (BITSET_WORD_BITS):
4495         * modules/regex (Depends-on): Add limits-h.
4496         Simplify now that we can use ULONG_WIDTH.
4498 2020-01-20  Bruno Haible  <bruno@clisp.org>
4500         mbrtoc32: Add note about FreeBSD 12.
4501         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
4502         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
4503         affected.
4505 2020-01-20  Bruno Haible  <bruno@clisp.org>
4507         unistr/u8-uctomb: Fix warning.
4508         Reported by Andreas Schwab <schwab@suse.de> in
4509         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
4510         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
4511         (u8_uctomb): Add FALLTHROUGH markers.
4513 2020-01-20  Bruno Haible  <bruno@clisp.org>
4515         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
4516         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
4517         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
4518         (glthread_once): Use it.
4520 2020-01-19  Bruno Haible  <bruno@clisp.org>
4522         threadlib: Disable use of weak symbols on FreeBSD 11.
4523         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4524         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
4525         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
4526         against a bug in FreeBSD 11.
4528 2020-01-19  Bruno Haible  <bruno@clisp.org>
4530         iconv_open: Improve z/OS support.
4531         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
4532         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
4533         Remove mapping for EUC-TW.
4535 2020-01-18  Bruno Haible  <bruno@clisp.org>
4537         Rename ~~gnulib.m4 to zzgnulib.m4.
4538         Suggested by Paul Eggert.
4539         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
4540         * gnulib-tool (func_get_filelist): Update.
4541         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
4543 2020-01-18  Bruno Haible  <bruno@clisp.org>
4545         doc: Update license notices.
4546         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
4547         reference to a section or to a "file as part of this distribution".
4549 2020-01-18  Bruno Haible  <bruno@clisp.org>
4551         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
4552         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
4553         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
4554         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
4555         AC_EGREP_CPP.
4557 2020-01-18  Bruno Haible  <bruno@clisp.org>
4559         Ensure Automake does not drop ~~gnulib.m4.
4560         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
4561         * m4/gnulib-common.m4 (gl_COMMON): Require it.
4563 2020-01-18  Bruno Haible  <bruno@clisp.org>
4565         Fix major regression from 2020-01-10.
4566         Reported by Paul Eggert in
4567         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
4568         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
4569         Don't AC_REQUIRE anything.
4570         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
4571         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
4572         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
4573         use ac_compile instead.
4574         (AC_CHECK_DECL): Remove override.
4575         * m4/~~gnulib.m4: New file.
4576         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
4577         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
4579 2020-01-17  Bruno Haible  <bruno@clisp.org>
4580             Paul Eggert  <eggert@cs.ucla.edu>
4582         glob: Fix use-after-free bug.
4583         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4584         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
4585         * lib/glob.c (__glob): Delay freeing dirname until after the use of
4586         end_name.
4588 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4590         vcs-to-changelog: Fix parsing of fndecl without args.
4591         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
4592         for empty arguments.
4594 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4596         vcs-to-changelog: Add documentation.
4597         * doc/vcs-to-changelog.texi: New file.
4598         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
4599         section.
4601 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4603         vcs-to-changelog: Allow loading of custom quirks file.
4604         * build-aux/vcs_to_changelog.py: New commandline option -q.
4606 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4608         vcs-to-changelog: Fix formatting of ChangeLog output.
4609         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
4610         output.
4612 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4614         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
4615         Reported in
4616         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
4617         * build-aux/vcstocl/frontend_c.py: Remove shebang.
4619 2020-01-15  Simon Josefsson  <simon@josefsson.org>
4621         crypto/gc-pbkdf2: New module.
4622         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
4623         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
4624         * lib/gc-pbkdf2.c: New file.
4625         * lib/gc-pbkdf2-sha1.c: Use new interface.
4626         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
4627         * modules/crypto/gc-pbkdf2: New file.
4628         * modules/crypto/gc-pbkdf2-tests: New file.
4629         * tests/test-gc-pbkdf2.c: New file.
4631 2020-01-12  Bruno Haible  <bruno@clisp.org>
4633         c32stombs: Add tests.
4634         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
4635         * tests/test-c32stombs-1.sh: New file, based on
4636         tests/test-c32srtombs-1.sh.
4637         * tests/test-c32stombs-2.sh: New file, based on
4638         tests/test-c32srtombs-2.sh.
4639         * tests/test-c32stombs-3.sh: New file, based on
4640         tests/test-c32srtombs-3.sh.
4641         * tests/test-c32stombs-4.sh: New file, based on
4642         tests/test-c32srtombs-4.sh.
4643         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
4645         c32stombs: New module.
4646         * lib/uchar.in.h (c32stombs): New declaration.
4647         * lib/c32stombs.c: New file.
4648         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
4649         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
4650         * modules/c32stombs: New file.
4651         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
4652         * doc/posix-functions/wcstombs.texi: Mention the new module.
4654 2020-01-11  Jim Meyering  <meyering@fb.com>
4656         perl: require the "warnings" module
4657         * m4/perl.m4: Also "use warnings", so we reject the perl found
4658         on at least one IRIX 6.5 system. Reported by Bruno Haible in
4659         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
4661 2020-01-10  Bruno Haible  <bruno@clisp.org>
4663         Fix major regression from 2020-01-04.
4664         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
4665         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
4666         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
4667         AC_DEFUN_ONCE.
4668         (AC_CHECK_DECL): Invoke, not require, it.
4670 2020-01-10  Bruno Haible  <bruno@clisp.org>
4672         c32snrtombs: Add tests.
4673         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
4674         * tests/test-c32snrtombs-1.sh: New file, based on
4675         tests/test-wcsnrtombs1.sh.
4676         * tests/test-c32snrtombs-2.sh: New file, based on
4677         tests/test-wcsnrtombs2.sh.
4678         * tests/test-c32snrtombs-3.sh: New file, based on
4679         tests/test-wcsnrtombs3.sh.
4680         * tests/test-c32snrtombs-4.sh: New file, based on
4681         tests/test-wcsnrtombs4.sh.
4682         * modules/c32snrtombs-tests: New file, based on
4683         modules/wcsnrtombs-tests.
4685         c32snrtombs: New module.
4686         * lib/uchar.in.h (c32snrtombs): New declaration.
4687         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
4688         INTERNAL_STATE, WCRTOMB.
4689         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
4690         * lib/c32snrtombs.c: New file.
4691         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
4692         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
4693         * modules/c32snrtombs: New file.
4694         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
4695         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
4697 2020-01-09  Bruno Haible  <bruno@clisp.org>
4699         c32srtombs: Add tests.
4700         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
4701         * tests/test-c32srtombs-1.sh: New file, based on
4702         tests/test-wcsrtombs1.sh.
4703         * tests/test-c32srtombs-2.sh: New file, based on
4704         tests/test-wcsrtombs2.sh.
4705         * tests/test-c32srtombs-3.sh: New file, based on
4706         tests/test-wcsrtombs3.sh.
4707         * tests/test-c32srtombs-4.sh: New file, based on
4708         tests/test-wcsrtombs4.sh.
4709         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
4711         c32srtombs: New module.
4712         * lib/uchar.in.h (c32srtombs): New declaration.
4713         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
4714         INTERNAL_STATE, WCRTOMB.
4715         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
4716         * lib/c32srtombs.c: New file.
4717         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
4718         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
4719         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
4720         * modules/c32srtombs: New file.
4721         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
4722         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
4724 2020-01-08  Bruno Haible  <bruno@clisp.org>
4726         c32tob: Make consistent with mbrtoc32.
4727         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
4728         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
4729         use c32rtomb, not wctob.
4730         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
4731         (Depends-on): Add c32rtomb.
4732         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
4734 2020-01-08  Bruno Haible  <bruno@clisp.org>
4736         c32rtomb: Add tests.
4737         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
4738         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
4739         * tests/test-c32rtomb-w32.c: New file, based on
4740         tests/test-wcrtomb-w32.c.
4741         * tests/test-c32rtomb-w32-1.sh: New file, based on
4742         tests/test-wcrtomb-w32-1.sh.
4743         * tests/test-c32rtomb-w32-2.sh: New file, based on
4744         tests/test-wcrtomb-w32-2.sh.
4745         * tests/test-c32rtomb-w32-3.sh: New file, based on
4746         tests/test-wcrtomb-w32-3.sh.
4747         * tests/test-c32rtomb-w32-4.sh: New file, based on
4748         tests/test-wcrtomb-w32-4.sh.
4749         * tests/test-c32rtomb-w32-5.sh: New file, based on
4750         tests/test-wcrtomb-w32-5.sh.
4751         * tests/test-c32rtomb-w32-6.sh: New file, based on
4752         tests/test-wcrtomb-w32-6.sh.
4753         * tests/test-c32rtomb-w32-7.sh: New file, based on
4754         tests/test-wcrtomb-w32-7.sh.
4755         * modules/c32rtomb-tests: New file.
4757         c32rtomb: New module.
4758         * lib/uchar.in.h (c32rtomb): New declaration.
4759         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
4760         * m4/c32rtomb.m4: New file.
4761         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
4762         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
4763         REPLACE_C32RTOMB.
4764         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
4765         HAVE_C32RTOMB, REPLACE_C32RTOMB.
4766         * modules/c32rtomb: New file.
4767         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
4768         * doc/posix-functions/c32rtomb.texi: Document the new module.
4769         * doc/posix-functions/wcrtomb.texi: Mention the new module.
4771 2020-01-08  Bruno Haible  <bruno@clisp.org>
4773         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
4774         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
4775         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
4776         but is not working.
4777         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
4778         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
4779         differ, use the system's mbrtoc32, adding workarounds.
4780         * modules/mbrtoc32 (Depends-on): Add hard-locale.
4781         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
4782         Windows problem.
4783         * lib/btoc32.c: Include <stdio.h>, <string.h>.
4784         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
4785         use mbrtoc32, not btowc.
4786         * modules/btoc32 (Depends-on): Add mbrtoc32.
4787         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
4788         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
4789         * modules/mbsrtoc32s (Depends-on): Update conditions.
4790         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
4791         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
4792         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
4793         * modules/mbsnrtoc32s (Depends-on): Update conditions.
4794         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
4796 2020-01-07  Bruno Haible  <bruno@clisp.org>
4798         wcrtomb: Make multithread-safe, except possibly on IRIX.
4799         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
4800         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
4801         WCRTOMB_RETVAL_BUG.
4802         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
4803         wctomb only on IRIX.
4805 2020-01-05  Jim Meyering  <meyering@fb.com>
4807         tests: skip thread-using tests when threading is disabled
4808         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
4809         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
4810         of those, so they are skipped in this case.
4811         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
4812         * tests/test-setlocale_null-mt-all.c (main): Likewise.
4813         * tests/test-setlocale_null-mt-one.c (main): Likewise.
4815 2020-01-05  Bruno Haible  <bruno@clisp.org>
4817         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
4818         Reported by Jim Meyering in
4819         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
4820         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
4821         (GNULIB_defined_ptsname_r): New macro.
4822         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
4823         (main): Disable the NULL argument test if canonicalize_file_name does
4824         not come from gnulib.
4825         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
4826         (main): Disable the NULL argument test if canonicalize_file_name does
4827         not come from gnulib.
4828         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
4829         (test_errors): Disable the NULL argument test if ptsname_r does not come
4830         from gnulib.
4832 2020-01-04  Jim Meyering  <meyering@fb.com>
4834         update-copyright: reenable its always-skipped test
4835         * tests/test-update-copyright.sh: Restore the "-pi" options removed
4836         on 2019-06-15. Without those, an internal preliminary test would
4837         fail, causing this test always to be skipped.
4838         Verify that the test is now run and passes via this:
4839           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
4841 2020-01-05  Bruno Haible  <bruno@clisp.org>
4843         mbstoc32s: Add tests.
4844         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
4845         * tests/test-mbstoc32s-1.sh: New file, based on
4846         tests/test-mbsrtoc32s-1.sh.
4847         * tests/test-mbstoc32s-2.sh: New file, based on
4848         tests/test-mbsrtoc32s-2.sh.
4849         * tests/test-mbstoc32s-3.sh: New file, based on
4850         tests/test-mbsrtoc32s-3.sh.
4851         * tests/test-mbstoc32s-4.sh: New file, based on
4852         tests/test-mbsrtoc32s-4.sh.
4853         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
4855         mbstoc32s: New module.
4856         * lib/uchar.in.h (mbstoc32s): New declaration.
4857         * lib/mbstoc32s.c: New file.
4858         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
4859         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
4860         * modules/mbstoc32s: New file.
4861         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
4862         * doc/posix-functions/mbstowcs.texi: Mention the new module.
4864 2020-01-05  Bruno Haible  <bruno@clisp.org>
4866         Tweak recently added tests.
4867         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
4868         * tests/test-mbsrtoc32s.c: Likewise.
4869         * tests/test-mbsnrtoc32s.c: Likewise.
4871 2020-01-04  Bruno Haible  <bruno@clisp.org>
4873         mbsnrtoc32s: Add tests.
4874         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
4875         * tests/test-mbsnrtoc32s-1.sh: New file, based on
4876         tests/test-mbsnrtowcs1.sh.
4877         * tests/test-mbsnrtoc32s-2.sh: New file, based on
4878         tests/test-mbsnrtowcs2.sh.
4879         * tests/test-mbsnrtoc32s-3.sh: New file, based on
4880         tests/test-mbsnrtowcs3.sh.
4881         * tests/test-mbsnrtoc32s-4.sh: New file, based on
4882         tests/test-mbsnrtowcs4.sh.
4883         * modules/mbsnrtoc32s-tests: New file, based on
4884         modules/mbsnrtowcs-tests.
4886         mbsnrtoc32s: New module.
4887         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
4888         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
4889         INTERNAL_STATE, MBRTOWC.
4890         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
4891         * lib/mbsnrtoc32s.c: New file.
4892         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
4893         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
4894         * modules/mbsnrtoc32s: New file.
4895         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
4896         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
4898 2020-01-04  Bruno Haible  <bruno@clisp.org>
4900         mbsrtoc32s tests: Enhance test.
4901         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
4902         test strings for UTF-8 and GB18030.
4904 2020-01-04  Bruno Haible  <bruno@clisp.org>
4906         mbsrtoc32s: Fix bug.
4907         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
4908         that SMALL_WCHAR_T is defined.
4910 2020-01-04  Bruno Haible  <bruno@clisp.org>
4912         mbsrtoc32s: Add tests.
4913         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
4914         * tests/test-mbsrtoc32s-1.sh: New file, based on
4915         tests/test-mbsrtowcs1.sh.
4916         * tests/test-mbsrtoc32s-2.sh: New file, based on
4917         tests/test-mbsrtowcs2.sh.
4918         * tests/test-mbsrtoc32s-3.sh: New file, based on
4919         tests/test-mbsrtowcs3.sh.
4920         * tests/test-mbsrtoc32s-4.sh: New file, based on
4921         tests/test-mbsrtowcs4.sh.
4922         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
4924         mbsrtoc32s: New module.
4925         * lib/uchar.in.h (mbsrtoc32s): New declaration.
4926         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
4927         INTERNAL_STATE, MBRTOWC.
4928         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
4929         * lib/mbsrtoc32s.c: New file.
4930         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
4931         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
4932         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
4933         * modules/mbsrtoc32s: New file.
4934         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
4935         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
4937 2020-01-04  Bruno Haible  <bruno@clisp.org>
4939         mbrtowc, mbrtoc32: Tighten dependendies.
4940         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
4941         REPLACE_MBSTATE_T is 1.
4942         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
4943         REPLACE_MBSTATE_T is 0.
4944         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
4945         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
4946         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
4947         REPLACE_MBSTATE_T is 0.
4949 2020-01-04  Bruno Haible  <bruno@clisp.org>
4951         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
4952         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
4953         * modules/uchar (Files): Add stdint.m4.
4954         (Makefile.am): Substitute SMALL_WCHAR_T.
4955         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
4957 2020-01-04  Bruno Haible  <bruno@clisp.org>
4959         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
4960         Reported by Martin Storsjö <martin@martin.st> in
4961         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
4962         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
4963         New macros.
4964         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
4966 2020-01-04  Bruno Haible  <bruno@clisp.org>
4968         btoc32: Add tests.
4969         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
4970         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
4971         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
4972         * modules/btoc32-tests: New file, based on modules/btowc-tests.
4974         btoc32: New module.
4975         * lib/uchar.in.h (btoc32): New declaration.
4976         * lib/btoc32.c: New file.
4977         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
4978         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
4979         * modules/btoc32: New file.
4980         * tests/test-uchar-c++.cc: Test the signature of btoc32.
4981         * doc/posix-functions/btowc.texi: Mention the new module.
4983 2020-01-03  Bruno Haible  <bruno@clisp.org>
4985         uchar tests: Avoid compilation error with HP cc.
4986         * tests/test-uchar.c: Disable a test when HP cc is in use.
4988 2020-01-03  Bruno Haible  <bruno@clisp.org>
4990         mbrtoc32: Add tests.
4991         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
4992         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
4993         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
4994         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
4995         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
4996         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
4997         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
4998         * tests/test-mbrtoc32-w32-1.sh: New file, based on
4999         tests/test-mbrtowc-w32-1.sh.
5000         * tests/test-mbrtoc32-w32-2.sh: New file, based on
5001         tests/test-mbrtowc-w32-2.sh.
5002         * tests/test-mbrtoc32-w32-3.sh: New file, based on
5003         tests/test-mbrtowc-w32-3.sh.
5004         * tests/test-mbrtoc32-w32-4.sh: New file, based on
5005         tests/test-mbrtowc-w32-4.sh.
5006         * tests/test-mbrtoc32-w32-5.sh: New file, based on
5007         tests/test-mbrtowc-w32-5.sh.
5008         * tests/test-mbrtoc32-w32-6.sh: New file, based on
5009         tests/test-mbrtowc-w32-6.sh.
5010         * tests/test-mbrtoc32-w32-7.sh: New file, based on
5011         tests/test-mbrtowc-w32-7.sh.
5012         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
5014         mbrtoc32: New module.
5015         * lib/uchar.in.h (mbrtoc32): New declaration.
5016         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
5017         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
5018         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
5019         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
5020         REPLACE_MBRTOC32.
5021         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
5022         HAVE_MBRTOC32, REPLACE_MBRTOC32.
5023         * modules/mbrtoc32: New file, based on modules/mbrtowc.
5024         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
5025         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
5026         $(LIB_MBRTOWC).
5027         * doc/posix-functions/mbrtoc32.texi: Document the new module.
5028         * doc/posix-functions/mbrtowc.texi: Mention the new module.
5030 2020-01-03  Bruno Haible  <bruno@clisp.org>
5032         mbrtowc: Refactor to share code with mbrtoc32.
5033         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
5034         * lib/mbrtowc-impl-utf8.h: Likewise.
5035         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
5036         mbrtowc-impl.h.
5037         * modules/mbrtowc (Files): Add the new files.
5039 2020-01-03  Jim Meyering  <meyering@fb.com>
5041         doc: fix time.texi wording
5042         * doc/posix-headers/time.texi (time.h): Typo.
5044 2020-01-03  Bruno Haible  <bruno@clisp.org>
5046         mbrtowc: Refactor locale charset dispatching.
5047         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
5048         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
5049         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
5050         localcharset.h, streq.h.
5051         (enc_t): Remove type.
5052         (locale_enc): Remove function.
5053         (cached_locale_enc): Remove variable.
5054         (locale_enc_cached): Remove function.
5055         (mbrtowc): Invoke locale_encoding_classification.
5056         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
5057         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
5058         lc-charset-dispatch.c.
5059         (configure.ac): Arrange to compile lc-charset-dispatch.c.
5061 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
5063         doc: mention 32-bit time_t issue
5064         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5065         * doc/posix-headers/time.texi (time.h): Mention 2038.
5067 2020-01-03  Bruno Haible  <bruno@clisp.org>
5069         mbrtowc: Ensure the mbtowc_lock is unique.
5070         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
5071         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
5072         lib/setlocale_null.c.
5073         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
5074         glthread/lock.h. Include mbtowc-lock.h.
5075         (mbtowc_lock): Remove declaration.
5076         (mbrtowc): Use mbtowc_with_lock.
5077         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
5078         threads.h. Set LIB_MBRTOWC.
5079         (gl_PREREQ_MBTOWC_LOCK): New macro.
5080         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
5081         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
5082         (Depends-on): Remove lock.
5083         (configure.ac): Arrange to compile mbtowc-lock.c.
5084         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
5085         * modules/acl (Link): Likewise.
5086         * modules/argmatch (Link): Likewise.
5087         * modules/backup-rename (Link): Likewise.
5088         * modules/backupfile (Link): Likewise.
5089         * modules/closein (Link): Likewise.
5090         * modules/closeout (Link): Likewise.
5091         * modules/copy-file (Link): Likewise.
5092         * modules/csharpcomp (Link): Likewise.
5093         * modules/csharpexec (Link): Likewise.
5094         * modules/dfa (Link): Likewise.
5095         * modules/exclude (Link): Likewise.
5096         * modules/fnmatch (Link): Likewise.
5097         * modules/fnmatch-gnu (Link): Likewise.
5098         * modules/fnmatch-posix (Link): Likewise.
5099         * modules/glob (Link): Likewise.
5100         * modules/human (Link): Likewise.
5101         * modules/javacomp (Link): Likewise.
5102         * modules/javaexec (Link): Likewise.
5103         * modules/javaversion (Link): Likewise.
5104         * modules/mbfile (Link): Likewise.
5105         * modules/mbiter (Link): Likewise.
5106         * modules/mbmemcasecmp (Link): Likewise.
5107         * modules/mbmemcasecoll (Link): Likewise.
5108         * modules/mbrlen (Link): Likewise.
5109         * modules/mbscasecmp (Link): Likewise.
5110         * modules/mbscasestr (Link): Likewise.
5111         * modules/mbschr (Link): Likewise.
5112         * modules/mbscspn (Link): Likewise.
5113         * modules/mbsinit (Link): Likewise.
5114         * modules/mbslen (Link): Likewise.
5115         * modules/mbsncasecmp (Link): Likewise.
5116         * modules/mbsnlen (Link): Likewise.
5117         * modules/mbsnrtowcs (Link): Likewise.
5118         * modules/mbspbrk (Link): Likewise.
5119         * modules/mbspcasecmp (Link): Likewise.
5120         * modules/mbsrchr (Link): Likewise.
5121         * modules/mbsrtowcs (Link): Likewise.
5122         * modules/mbssep (Link): Likewise.
5123         * modules/mbsspn (Link): Likewise.
5124         * modules/mbsstr (Link): Likewise.
5125         * modules/mbstok_r (Link): Likewise.
5126         * modules/mbswidth (Link): Likewise.
5127         * modules/mbuiter (Link): Likewise.
5128         * modules/mkdir-p (Link): Likewise.
5129         * modules/propername (Link): Likewise.
5130         * modules/quote (Link): Likewise.
5131         * modules/quotearg (Link): Likewise.
5132         * modules/quotearg-simple (Link): Likewise.
5133         * modules/regex-quote (Link): Likewise.
5134         * modules/rpmatch (Link): Likewise.
5135         * modules/sh-quote (Link): Likewise.
5136         * modules/system-quote (Link): Likewise.
5137         * modules/trim (Link): Likewise.
5138         * modules/unistdio/ulc-asnprintf (Link): Likewise.
5139         * modules/unistdio/ulc-fprintf (Link): Likewise.
5140         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
5141         * modules/unistdio/ulc-vasprintf (Link): Likewise.
5142         * modules/unistdio/ulc-vfprintf (Link): Likewise.
5143         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
5144         * modules/unistdio/ulc-vsprintf (Link): Likewise.
5145         * modules/xfreopen (Link): Likewise.
5146         * modules/xmemcoll (Link): Likewise.
5147         * modules/yesno (Link): Likewise.
5148         * modules/regex (Link): Add $(LIB_MBRTOWC).
5149         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
5150         instead of $(LIBTHREAD).
5151         * modules/argmatch-tests (Makefile.am): Likewise.
5152         * modules/closein-tests (Makefile.am): Likewise.
5153         * modules/copy-file-tests (Makefile.am): Likewise.
5154         * modules/dfa-tests (Makefile.am): Likewise.
5155         * modules/fnmatch-tests (Makefile.am): Likewise.
5156         * modules/glob-tests (Makefile.am): Likewise.
5157         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
5158         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
5159         * modules/mbrtowc-tests (Makefile.am): Likewise.
5160         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5161         * modules/mbscasestr-tests (Makefile.am): Likewise.
5162         * modules/mbschr-tests (Makefile.am): Likewise.
5163         * modules/mbscspn-tests (Makefile.am): Likewise.
5164         * modules/mbsinit-tests (Makefile.am): Likewise.
5165         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5166         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
5167         * modules/mbspbrk-tests (Makefile.am): Likewise.
5168         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5169         * modules/mbsrchr-tests (Makefile.am): Likewise.
5170         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
5171         * modules/mbsspn-tests (Makefile.am): Likewise.
5172         * modules/mbsstr-tests (Makefile.am): Likewise.
5173         * modules/quotearg-simple-tests (Makefile.am): Likewise.
5174         * modules/quotearg-tests (Makefile.am): Likewise.
5175         * modules/readtokens-tests (Makefile.am): Likewise.
5176         * modules/sh-quote-tests (Makefile.am): Likewise.
5177         * modules/system-quote-tests (Makefile.am): Likewise.
5178         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
5179         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5180         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
5181         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
5182         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
5183         * modules/yesno-tests (Makefile.am): Likewise.
5184         * modules/exclude-tests (Makefile.am): Link the programs with
5185         $(LIB_MBRTOWC).
5186         * modules/regex-tests (Makefile.am): Likewise.
5187         * modules/regex-quote-tests (Makefile.am): Likewise.
5189 2020-01-03  Bruno Haible  <bruno@clisp.org>
5191         getopt-posix: Fix compilation failure in testdirs.
5192         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
5193         when the gnulib module 'getopt-posix' is enabled.
5194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
5195         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
5196         module indicator.
5197         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
5199 2020-01-03  Bruno Haible  <bruno@clisp.org>
5201         doc: Mention the 64-bit inode number problem.
5202         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
5203         64-bit inode number problem.
5204         * doc/posix-functions/stat.texi: Mention that this module fixes the
5205         64-bit inode number problem.
5206         * doc/posix-functions/lstat.texi: Likewise.
5207         * doc/posix-functions/fstat.texi: Likewise.
5208         * doc/posix-functions/readdir.texi: Add more details.
5209         * doc/posix-functions/readdir_r.texi: Likewise.
5211 2020-01-02  Bruno Haible  <bruno@clisp.org>
5213         wcrtomb: Add more tests.
5214         * tests/test-wcrtomb-w32.c: Include localcharset.h.
5215         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
5216         locale_charset() returns the expected value; otherwise, skip the test.
5217         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
5218         * tests/test-wcrtomb-w32-7.sh: Likewise.
5219         * modules/wcrtomb-tests (Files): Add these files.
5220         (Depends-on): Add localcharset.
5221         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
5223 2020-01-02  Bruno Haible  <bruno@clisp.org>
5225         mbrtowc: Add more tests.
5226         * tests/test-mbrtowc-w32.c: Include localcharset.h.
5227         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
5228         locale_charset() returns the expected value; otherwise, skip the test.
5229         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
5230         * tests/test-mbrtowc-w32-7.sh: Likewise.
5231         * modules/mbrtowc-tests (Files): Add these files.
5232         (Depends-on): Add localcharset.
5233         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
5235 2020-01-02  Bruno Haible  <bruno@clisp.org>
5237         mbrtowc: Fix test failures on MSVC (regression by previous commit).
5238         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
5239         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
5240         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
5241         MBRTOWC_STORES_INCOMPLETE_BUG.
5242         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
5244 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5246         doc: mention glibc bug 24269
5247         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
5248         Reformat slightly so that it looks nicer in the Grep manual.
5250 2020-01-02  Bruno Haible  <bruno@clisp.org>
5252         mbrtowc: Don't replace mbstate_t on MSVC.
5253         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
5254         a missing mbsinit function on native Windows.
5255         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
5256         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
5257         MSVC bug.
5258         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
5260 2020-01-02  Bruno Haible  <bruno@clisp.org>
5262         setlocale-null: Avoid crashing the MSVC linker.
5263         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
5264         MSVC.
5266 2020-01-02  Bruno Haible  <bruno@clisp.org>
5268         wchar: Make the HP-UX workaround work on HP-UX 11.31.
5269         * modules/wchar (Depends-on): Add inttypes-incomplete.
5270         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
5271         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
5272         of strtoimax.
5274 2020-01-02  Bruno Haible  <bruno@clisp.org>
5276         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
5277         * lib/mbrtowc.c: Include <stdint.h>.
5278         * modules/mbrtowc (Depends-on): Add stdint.
5280 2020-01-01  Pádraig Brady  <P@draigBrady.com>
5282         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
5283         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
5284         which will auto enable use of openssl, only for >= version 3,
5285         which is newly licensed under the Apache Software License.
5287 2020-01-01  Bruno Haible  <bruno@clisp.org>
5289         mbrtowc: Include function name in macro names.
5290         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
5291         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
5292         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
5293         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
5294         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
5295         C_LOCALE_MAYBE_EILSEQ.
5297 2020-01-01  Bruno Haible  <bruno@clisp.org>
5299         c32tob: New module.
5300         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
5301         (c32tob): New declaration.
5302         * lib/c32tob.c: New file.
5303         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
5304         macros.
5305         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
5306         * modules/uchar (Depends-on): Add snippet/c++defs.
5307         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
5308         uchar.h.
5309         * modules/c32tob: New file.
5310         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
5311         defined.
5312         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
5313         c32tob.
5314         * modules/uchar-c++-tests (Files): Add tests/signature.h.
5315         * doc/posix-functions/wctob.texi: Mention the new module.
5317 2020-01-01  Bruno Haible  <bruno@clisp.org>
5319         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
5320         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
5321         $(LIB_SETLOCALE).
5323 2020-01-01  Bruno Haible  <bruno@clisp.org>
5325         hard-locale tests: Fix a conflict with the C++ tests.
5326         * modules/hard-locale-tests (Makefile.am): Build a program named
5327         'current-locale', not 'locale'.
5329 2020-01-01  Bruno Haible  <bruno@clisp.org>
5331         doc: Update documentation about wchar_t.
5332         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
5333         wchar_t type.
5335 2020-01-01  Bruno Haible  <bruno@clisp.org>
5337         mbrtowc tests: Fix typos.
5338         * tests/test-mbrtowc.c (main): Fix typo.
5339         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
5341 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5343         maint: update copyright notices
5344         Before doing the following changes done by hand, I also ran ‘make
5345         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
5346         to do most of the copyright years automatically.  A few upstream
5347         sources are still in 2019 but these should eventually be changed
5348         automatically too.
5349         * build-aux/declared.sh (func_version):
5350         * build-aux/libtool-next-version (func_version):
5351         * build-aux/run-test (func_version):
5352         Update these notices by hand.  Put just the last year
5353         in output of programs, as per GNU coding standards.
5355 2019-12-31  Bruno Haible  <bruno@clisp.org>
5357         uchar: Add C++ tests.
5358         * tests/test-uchar-c++.cc: New file.
5359         * tests/test-uchar-c++2.cc: New file.
5360         * modules/uchar-c++-tests: New file.
5362         uchar: Add tests.
5363         * tests/test-uchar.c: New file.
5364         * modules/uchar-tests: New file.
5366         uchar: New module.
5367         * lib/uchar.in.h: New file.
5368         * m4/uchar.m4: New file.
5369         * modules/uchar: New file.
5370         * doc/posix-headers/uchar.texi: Mention the new module.
5372 2019-12-30  Jim Meyering  <meyering@fb.com>
5374         localeinfo: ->simple would be wrong for LC_ALL=C
5375         That would lead to using unnecessary and expensive code paths in dfa.c.
5376         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
5377         error that would have made grep many times slower in the C locale.
5378         With this change, and a file created like this:
5379           yes 00 | head -10000000 > in
5380         Running grep as follows becomes more than 40 times faster:
5381           LC_ALL=C grep -Fw 0 in
5383 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
5385         doc: document trouble with back-references
5386         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
5388 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5390         doc: use “back-reference” for \1 etc.
5391         * doc/regex.texi: Consistently spell “back-reference” with
5392         a hyphen, since that’s how POSIX does it.
5394 2019-12-26  Jim Meyering  <meyering@fb.com>
5396         test-framework-sh: tighten an internal grep regexp
5397         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
5398         that helps test for a working printf.
5400 2019-12-26  Bruno Haible  <bruno@clisp.org>
5402         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
5403         Reported by Paul Eggert in
5404         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
5405         Simplification by Jim Meyering.
5406         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
5407         octal escape sequence in a UTF-8 locale.
5409 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
5411         mbrtowc: port better to narrow-wchar_t platforms
5412         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
5413         wchar_t is too narrow to represent all the Unicode characters,
5414         consider a byte sequence for an out-of-wchar_t-range character to
5415         be an encoding error.  This fixes grep’s surrogate-pair test
5416         failure on AIX 7.2.
5418 2019-12-24  Bruno Haible  <bruno@clisp.org>
5420         localcharset: Avoid referencing rpl_setlocale on native Windows.
5421         * lib/localcharset.c (setlocale): Undefine.
5423 2019-12-24  Bruno Haible  <bruno@clisp.org>
5425         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
5426         * m4/semaphore.m4: New file.
5427         * modules/lock-tests (Files): Add it.
5428         (configure.ac): Require gl_SEMAPHORE.
5429         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
5431 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
5433         strptime: fix typo in previous patch
5434         Problem and fix reported by Bruno Haible in:
5435         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
5436         * lib/strptime.c (day_of_the_week): Fix paren bug.
5438 2019-12-24  Bruno Haible  <bruno@clisp.org>
5440         setlocale-null: Make it easy to rely on the lock in another library.
5441         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
5442         defined.
5444 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5446         gethrxtime, mktime, nstrftime, strptime: tweak division performance
5447         Performanced analyzed by Bruno Haible in:
5448         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
5449         * config/srclist.txt: Do not sync mktime.c for now.
5450         * lib/mktime.c (shr, ydhms_diff):
5451         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
5452         * lib/strptime.c (day_of_the_week):
5453         * lib/xtime.h (xtime_sec):
5454         Redo with neither ‘%’ nor conditional branches.
5456 2019-12-23  Bruno Haible  <bruno@clisp.org>
5458         setlocale-null: Export the lock function also on non-Windows platforms.
5459         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
5460         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
5461         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
5462         * modules/setlocale-null (configure.ac): Invoke it.
5463         (Files): Add m4/visibility.m4.
5465 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5467         gethrxtime: fix rounding bug with negative args
5468         Problem reported by Bruno Haible in:
5469         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
5470         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
5471         with negative rounding.  Common platforms can compute / and % with
5472         a single instruction, so the simplified code should be shorter and
5473         faster on these platforms anyway.
5475 2019-12-22  Bruno Haible  <bruno@clisp.org>
5477         gethrxtime: remove incorrect overflow detection
5478         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
5479         integer overflow, as it didn’t suffice.  This reverts the xtime.h
5480         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
5481         cannot now see the need for anyway (even in cases where it works),
5482         as the patch is helpful only when the signs of S and NS disagree,
5483         and all callers pass nonnegative values for S and NS.
5485 2019-12-22  Bruno Haible  <bruno@clisp.org>
5487         setlocale-null: Add standalone include file.
5488         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
5489         * lib/locale.in.h: Include setlocale_null.h.
5490         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
5491         setlocale_null): Remove declarations.
5492         * lib/setlocale_null.c: Include setlocale_null.h.
5493         * lib/localename.c: Likewise.
5494         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
5495         (Depends-on): Add snippet/arg-nonnull.
5496         (Include): Allow either "setlocale_null.h" or <locale.h>.
5498 2019-12-22  Bruno Haible  <bruno@clisp.org>
5500         strfmon_l: Fix test failures on FreeBSD and Cygwin.
5501         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
5502         AC_RUN_IFELSE test.
5503         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
5504         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
5505         problem.
5507 2019-12-22  Bruno Haible  <bruno@clisp.org>
5509         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
5510         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
5511         unconditional AC_LIBOBJ.
5512         * modules/selinux-at: Likewise.
5513         * modules/xmemdup0: Likewise.
5514         * modules/xstrtoll: Likewise.
5516 2019-12-22  Bruno Haible  <bruno@clisp.org>
5518         longlong: Mark module obsolete.
5519         * modules/longlong (Status, Notice): New sections.
5521         stdint: Assume that the compiler supports 'long long'.
5522         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
5523         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
5524         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5525         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
5526         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5527         * modules/stdint (Files): Remove longlong.m4.
5528         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
5529         HAVE_UNSIGNED_LONG_LONG_INT.
5531         inttypes-incomplete: Assume that the compiler supports 'long long'.
5532         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
5533         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
5534         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5535         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
5536         HAVE_LONG_LONG_INT to be 1.
5537         * modules/inttypes-incomplete (Makefile.am): Don't substitute
5538         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
5540         malloca: Assume that the compiler supports 'long long'.
5541         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
5542         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
5543         * modules/malloca (Files): Remove longlong.m4.
5544         * modules/relocatable-prog-wrapper (Files): Likewise.
5546         atoll: Assume that the compiler supports 'long long'.
5547         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
5548         * modules/atoll (Files): Remove longlong.m4.
5550         strtoll: Assume that the compiler supports 'long long'.
5551         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
5552         * modules/strtoll (Files): Remove longlong.m4.
5554         strtoull: Assume that the compiler supports 'long long'.
5555         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
5556         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5557         * modules/strtoull (Files): Remove longlong.m4.
5559         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
5560         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
5561         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5562         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
5563         AC_TYPE_LONG_LONG_INT.
5564         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
5565         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5566         * modules/strtoimax (Files): Remove longlong.m4.
5567         * modules/strtoumax (Files): Likewise.
5569         xstrtoll: Assume that the compiler supports 'long long'.
5570         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
5571         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
5573         vasnprintf: Assume that the compiler supports 'long long'.
5574         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
5575         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
5576         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5577         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
5578         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
5579         require AC_TYPE_LONG_LONG_INT.
5580         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
5581         gl_PREREQ_VASNPRINTF): Likewise.
5582         * modules/vasnprintf (Files): Remove longlong.m4.
5583         * modules/c-vasnprintf (Files): Likewise.
5584         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5585         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5586         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5587         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5588         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5589         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5590         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5592         gethrxtime: Assume that the compiler supports 'long long'.
5593         * lib/xtime.h (xtime_t): Define to 'long long int' always.
5594         (XTIME_PRECISION): Define to 1000000000 always.
5595         (xtime_make, xtime_sec): Optimize accordingly.
5596         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
5597         * modules/gethrxtime (Files): Remove longlong.m4.
5599         integer_length*: Assume that the compiler supports 'long long'.
5600         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
5601         * modules/integer_length (Files): Remove longlong.m4.
5602         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5603         * modules/integer_length_l (Files): Remove longlong.m4.
5604         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5605         * modules/integer_length_ll (Files): Remove longlong.m4.
5606         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5608         count-one-bits: Assume that the compiler supports 'long long'.
5609         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
5610         * m4/count-one-bits.m4: Remove file.
5611         * modules/count-one-bits (Files): Remove it.
5612         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
5613         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
5614         unconditionally.
5616         count-trailing-zeros: Assume that the compiler supports 'long long'.
5617         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
5618         unconditionally.
5619         * m4/count-trailing-zeros.m4: Remove file.
5620         * modules/count-trailing-zeros (Files): Remove it.
5621         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
5622         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
5623         unconditionally.
5625         count-leading-zeros: Assume that the compiler supports 'long long'.
5626         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
5627         unconditionally.
5628         * m4/count-leading-zeros.m4: Remove file.
5629         * modules/count-leading-zeros (Files): Remove it.
5630         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
5631         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
5632         unconditionally.
5634 2019-12-22  Bruno Haible  <bruno@clisp.org>
5636         localcharset: Update support for OpenBSD.
5637         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
5639 2019-12-21  Bruno Haible  <bruno@clisp.org>
5641         pthread_sigmask: Avoid test failure on NetBSD 8.0.
5642         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
5643         NetBSD.
5644         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
5646 2019-12-21  Bruno Haible  <bruno@clisp.org>
5648         threadlib: Improve code structure.
5649         * m4/threadlib.m4: Reorder macros. Add comments.
5651 2019-12-21  Bruno Haible  <bruno@clisp.org>
5653         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
5654         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
5655         here from m4/threads.m4).
5656         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
5657         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
5658         (gl_STDTHREADLIB): New macro.
5659         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
5660         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
5662 2019-12-21  Bruno Haible  <bruno@clisp.org>
5664         sched_yield: Don't depend on threadlib and yield.
5665         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
5666         LIB_SCHED_YIELD.
5667         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
5668         m4/yield.m4).
5669         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
5670         gl_THREADLIB and gl_YIELD.
5671         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
5672         based on $(LIB_SCHED_YIELD).
5673         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
5674         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
5675         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
5676         (Depends-on): Remove threadlib.
5677         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
5678         * modules/threads-h (Files): Remove m4/yield.m4.
5679         * modules/pthread-cond-tests (Makefile.am): Link the programs against
5680         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
5681         * modules/pthread-mutex-tests (Makefile.am): Likewise.
5682         * modules/pthread-once-tests (Makefile.am): Likewise.
5683         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
5684         * modules/pthread-tss-tests (Makefile.am): Likewise.
5686 2019-12-21  Bruno Haible  <bruno@clisp.org>
5688         threads-h: Don't depend on threadlib.
5689         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
5690         not gl_THREADLIB_EARLY.
5692 2019-12-21  Bruno Haible  <bruno@clisp.org>
5694         nl_langinfo tests: Fix link error (regression from 2019-12-18).
5695         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
5696         with $(LIB_SETLOCALE).
5698 2019-12-21  Bruno Haible  <bruno@clisp.org>
5700         threadlib: Remove unused dependency (left over from 2019-07-06).
5701         * modules/threadlib (Depends-on): Remove havelib.
5703 2019-12-21  Bruno Haible  <bruno@clisp.org>
5705         New convention for multithread-safety tests.
5706         * tests/test-setlocale_null-mt-one.c: Renamed from
5707         tests/test-setlocale_null-one.c.
5708         * tests/test-setlocale_null-mt-all.c: Renamed from
5709         tests/test-setlocale_null-all.c.
5710         * modules/setlocale-null-tests (Files, Makefile.am): Update.
5712 2019-12-21  Bruno Haible  <bruno@clisp.org>
5714         quotearg tests: Fix conflict with hard-locale tests.
5715         * tests/testlocale: Renamed from tests/locale.
5716         * modules/quotearg-tests (Files): Update.
5717         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
5719 2019-12-21  Bruno Haible  <bruno@clisp.org>
5721         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
5722         Reported by Daniel Richard G. in
5723         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
5724         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
5725         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
5726         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
5727         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
5728         alternative to PTHREAD_RWLOCK_INITIALIZER.
5729         * lib/glthread/lock.c: Likewise.
5731 2019-12-21  Bruno Haible  <bruno@clisp.org>
5733         memcmp tests: Work around the clang bug.
5734         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
5735         the clang optimization.
5737 2019-12-20  Bruno Haible  <bruno@clisp.org>
5739         localcharset: Add support for z/OS encoding names.
5740         * lib/localcharset.h: Mention which encodings are used as locale
5741         encodings on z/OS.
5743 2019-12-20  Bruno Haible  <bruno@clisp.org>
5745         iconv_open: Add support for z/OS encoding names.
5746         Reported by Daniel Richard G. in
5747         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
5748         * lib/iconv_open-zos.gperf: New file.
5749         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
5750         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
5751         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
5752         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
5753         * doc/posix-functions/iconv_open.texi: Mention z/OS.
5755 2019-12-20  Bruno Haible  <bruno@clisp.org>
5757         doc: Document the problem of the per-thread locale functions on z/OS.
5758         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
5759         * doc/posix-functions/newlocale.texi: Likewise.
5760         * doc/posix-functions/duplocale.texi: Likewise.
5761         * doc/posix-functions/freelocale.texi: Likewise.
5763 2019-12-20  Bruno Haible  <bruno@clisp.org>
5765         localename, gettext: Fix host_os value for z/OS.
5766         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
5767         cross-configuration code.
5769 2019-12-19  Jim Meyering  <meyering@fb.com>
5771         nstrftime: avoid a shadowing warning
5772         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
5773         to avoid shadowing an "i" declared hundreds of lines above.
5775 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5777         dfa: struct dfamust now uses flexible array
5778         * lib/dfa.c: Include flexmember.h.
5779         (dfamust, dfamustfree): Adjust to struct dfamust change.
5780         This saves a call to malloc+free.
5781         * lib/dfa.h (struct dfamust): Make the final member a
5782         flexible array member.
5783         * modules/dfa (Depends-on): Add flexmember.
5785         dfa: fast->small for array elements
5786         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
5787         since this type is used in arrays.  This change is more for
5788         documentation than for any practical effect, since the two types
5789         are the same on all known platforms.
5791 2019-12-19  Bruno Haible  <bruno@clisp.org>
5793         iconv tests: Test canonicalized, not system-dependent, encoding names.
5794         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
5795         * modules/iconv-tests (Depends-on): Add iconv_open.
5797 2019-12-18  Bruno Haible  <bruno@clisp.org>
5799         localename: Fix test failure on AIX 7.2.
5800         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
5801         locales on AIX.
5802         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
5803         locales on AIX.
5805 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5807         Improve port of AC_C_RESTRICT to Oracle C++
5808         Problem reported by Christian Biesinger in:
5809         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
5810         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
5811         Oracle Developer Studio C++ 12.5 or later.
5813 2019-12-18  Bruno Haible  <bruno@clisp.org>
5815         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
5816         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
5818 2019-12-18  Bruno Haible  <bruno@clisp.org>
5820         localename: Ensure multithread-safety in future changes.
5821         * lib/localename.c (setlocale): Reference the system's setlocale().
5822         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
5823         (gl_locale_name_posix): Likewise.
5824         * modules/localename (Depends-on): Add setlocale-null.
5826 2019-12-18  Bruno Haible  <bruno@clisp.org>
5828         setlocale-null: Make API more useful.
5829         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
5830         callers changed.
5831         (setlocale_null): New declaration.
5832         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
5833         extracted from setlocale_null_unlocked.
5834         (setlocale_null_unlocked): Invoke it.
5835         (setlocale_null_r): Renamed from setlocale_null.
5836         (setlocale_null): New function, extracted from setlocale_mtsafe in
5837         setlocale.c.
5838         * lib/setlocale.c: Don't include <errno.h>.
5839         (setlocale_mtsafe): Invoke setlocale_null.
5840         * lib/setlocale-lock.c: Update comments.
5841         * doc/posix-functions/setlocale.texi: Mention both functions.
5843 2019-12-18  Bruno Haible  <bruno@clisp.org>
5845         localename: Optimize code for native Windows.
5846         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
5847         category (not allowed here).
5849 2019-12-18  Bruno Haible  <bruno@clisp.org>
5851         setlocale: Make calls with NULL argument multithread-safe.
5852         * lib/setlocale.c: Include <errno.h>.
5853         (setlocale_mtsafe): New function.
5854         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
5855         (setlocale_improved): Renamed from rpl_setlocale.
5856         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
5857         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
5858         LIB_SETLOCALE.
5859         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
5860         (Link): New section.
5861         * tests/locale.c: Undefine setlocale.
5862         * tests/test-setlocale_null-one.c: Likewise.
5863         * tests/test-setlocale_null-all.c: Likewise.
5864         * modules/setlocale-tests (Makefile.am): Link the test programs with
5865         $(LIB_SETLOCALE).
5866         * modules/astrxfrm-tests (Makefile.am): Likewise.
5867         * modules/btowc-tests (Makefile.am): Likewise.
5868         * modules/c-ctype-tests (Makefile.am): Likewise.
5869         * modules/c-snprintf-tests (Makefile.am): Likewise.
5870         * modules/c-strcase-tests (Makefile.am): Likewise.
5871         * modules/c-vasprintf-tests (Makefile.am): Likewise.
5872         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
5873         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
5874         * modules/dfa-tests (Makefile.am): Likewise.
5875         * modules/duplocale-tests (Makefile.am): Likewise.
5876         * modules/hard-locale-tests (Makefile.am): Likewise.
5877         * modules/localcharset-tests (Makefile.am): Likewise.
5878         * modules/localename-tests (Makefile.am): Likewise.
5879         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
5880         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
5881         * modules/mbrtowc-tests (Makefile.am): Likewise.
5882         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5883         * modules/mbscasestr-tests (Makefile.am): Likewise.
5884         * modules/mbschr-tests (Makefile.am): Likewise.
5885         * modules/mbscspn-tests (Makefile.am): Likewise.
5886         * modules/mbsinit-tests (Makefile.am): Likewise.
5887         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5888         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
5889         * modules/mbspbrk-tests (Makefile.am): Likewise.
5890         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5891         * modules/mbsrchr-tests (Makefile.am): Likewise.
5892         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
5893         * modules/mbsspn-tests (Makefile.am): Likewise.
5894         * modules/mbsstr-tests (Makefile.am): Likewise.
5895         * modules/nl_langinfo-tests (Makefile.am): Likewise.
5896         * modules/quotearg-tests (Makefile.am): Likewise.
5897         * modules/regex-tests (Makefile.am): Likewise.
5898         * modules/strfmon_l-tests (Makefile.am): Likewise.
5899         * modules/strtod-tests (Makefile.am): Likewise.
5900         * modules/strtold-tests (Makefile.am): Likewise.
5901         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
5902         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
5903         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
5904         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
5905         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
5906         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
5907         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
5908         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5909         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
5910         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
5911         * modules/wcrtomb-tests (Makefile.am): Likewise.
5912         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
5913         * modules/wcsrtombs-tests (Makefile.am): Likewise.
5914         * modules/wcwidth-tests (Makefile.am): Likewise.
5915         * doc/posix-functions/setlocale.texi: Mention that the multithread-
5916         safety fix is also available in module 'setlocale'.
5918 2019-12-18  Bruno Haible  <bruno@clisp.org>
5920         hard-locale: Make multithread-safe.
5921         * lib/hard-locale.h (hard_locale): Move documentation to here.
5922         * lib/hard-locale.c: Don't include <stdlib.h>.
5923         (GLIBC_VERSION): Remove macro.
5924         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
5925         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
5926         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
5927         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
5928         (Link): New section.
5929         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
5930         $(LIB_HARD_LOCALE).
5932 2019-12-18  Bruno Haible  <bruno@clisp.org>
5934         hard-locale: Avoid test failure on Haiku.
5935         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
5937 2019-12-18  Bruno Haible  <bruno@clisp.org>
5939         setlocale-null: Handle NULL result from setlocale.
5940         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
5941         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
5942         from setlocale or _wsetlocale.
5944 2019-12-18  Bruno Haible  <bruno@clisp.org>
5946         hard-locale: Add test.
5947         * tests/test-hard-locale.c: New file.
5948         * tests/locale.c: New file.
5949         * modules/hard-locale-tests: New file.
5951 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
5953         dfa: do not match invalid UTF-8
5954         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
5955         from 5 to 9 tokens; this is needed due to the changes to
5956         add_utf8_anychar.
5957         (charclass_index): 2nd arg is now pointer-to-const.
5958         (add_utf8_anychar): Match only valid UTF-8 byte sequences
5959         instead of allowing overlong encodings or surrogate halves.
5961         dfa: simplify charclass by assuming C99
5962         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
5963         (charclass_word): Now always uint_fast64_t.
5964         (CHARCLASS_PAIR): Remove.
5965         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
5967         fts: tune via calloc
5968         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
5970         dfa: tune via xzalloc
5971         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
5973 2019-12-17  Bruno Haible  <bruno@clisp.org>
5975         localcharset: Fix multithread-safety bug on Windows and OS/2.
5976         * lib/localcharset.h (locale_charset): Clarify when the result becomes
5977         invalid.
5978         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
5979         assemble the result.
5981 2019-12-17  Bruno Haible  <bruno@clisp.org>
5983         localcharset: Optimize code for native Windows.
5984         * lib/localcharset.c (locale_charset): Don't bother calling
5985         setlocale (LC_ALL, NULL) since we're not interested in its result.
5987 2019-12-17  Bruno Haible  <bruno@clisp.org>
5989         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
5990         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
5991         setlocale.
5992         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
5993         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
5994         * modules/nl_langinfo (Depends-on): Add setlocale-null.
5996 2019-12-17  Bruno Haible  <bruno@clisp.org>
5998         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
5999         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
6000         stack-allocated buffer to assemble each result and different static
6001         buffers to return it.
6002         * tests/test-nl_langinfo-mt.c: New file.
6003         * modules/nl_langinfo-tests (Files): Add it.
6004         (Depends-on): Add thread, nanosleep.
6005         (Makefile.am): Build test-nl_langinfo-mt test.
6007 2019-12-17  Bruno Haible  <bruno@clisp.org>
6009         langinfo: Document more details.
6010         * doc/posix-headers/langinfo.texi: List platform details.
6011         * doc/posix-functions/nl_langinfo.texi: Likewise.
6013 2019-12-17  Bruno Haible  <bruno@clisp.org>
6015         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
6016         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
6017         and Martin Storsjö <martin@martin.st>
6018         in <https://savannah.gnu.org/bugs/?57406>.
6019         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
6020         mingw.
6022 2019-12-17  Bruno Haible  <bruno@clisp.org>
6024         glob: Avoid warning on mingw.
6025         Reported by Christian Biesinger <cbiesinger@google.com> in
6026         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
6027         * lib/glob.c (__stat64): Undefine first.
6029 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6031         xalloc: tune xzalloc for fresh allocations
6032         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
6033         because when the memory is freshly allocated from the OS via sbrk
6034         or mmap, calloc can avoid doing the memset.
6036         dfa: new function dfacopysyntax
6037         * lib/dfa.c (struct dfa): Move syntax member later so
6038         that dfacopysyntax can easily clear earlier members.
6039         (dfacopysyntax): New function, used by Gawk.
6041 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6043         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
6044         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
6045         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
6046         if not already defined.
6048         dfa: remove one dependency on MB_CUR_MAX
6049         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
6051         dfa: remove struct lexer_state.cur_mb_len
6052         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
6053         as it’s not needed and the code is simpler without it.
6054         All uses removed.
6056 2019-12-16  Bruno Haible  <bruno@clisp.org>
6058         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
6059         Reported by Arnold Robbins <arnold@skeeve.com>.
6060         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
6061         copied from lib/glthread/lock.h.
6062         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
6063         (setlocale_null_with_lock): If pthread_in_use() is false, use
6064         setlocale_null_unlocked directly.
6065         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
6066         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
6067         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
6068         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
6069         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
6070         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
6072 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6074         dfa: make dfasyntax thread-safe
6075         Problem reported by Bruno Haible in:
6076         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
6077         * lib/dfa.c: Do not include locale.h.
6078         (struct dfa): Remove simple_locale member.
6079         All uses replaced by localeinfo.simple.
6080         (using_simple_locale): Remove; now present (with some
6081         changes) in localeinfo.c.
6082         (dfasyntax): No need to initialize removed member.
6084         localeinfo: record whether locale is simple
6085         * lib/localeinfo.c (using_simple_locale): New function,
6086         copied here from lib/dfa.c but with a change: it uses
6087         strcoll for its heuristic, instead of using setlocale.
6088         This lets it be thread-safe.
6089         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
6091 2019-12-15  Bruno Haible  <bruno@clisp.org>
6093         duplocale: Fix multithread-safety bug on AIX.
6094         * lib/duplocale.c: Don't include <stdlib.h>.
6095         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
6096         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6097         Set LIB_DUPLOCALE.
6098         * modules/duplocale (Depends-on): Add setlocale-null.
6099         (Link): New section.
6100         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
6101         $(LIB_DUPLOCALE).
6103 2019-12-15  Bruno Haible  <bruno@clisp.org>
6105         setlocale-null: Add tests.
6106         * tests/test-setlocale_null.c: New file.
6107         * tests/test-setlocale_null-one.c: New file.
6108         * tests/test-setlocale_null-all.c: New file.
6109         * modules/setlocale-null-tests: New file.
6111         setlocale-null: New module.
6112         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
6113         setlocale_null): New declarations.
6114         * lib/setlocale_null.c: New file.
6115         * lib/setlocale-lock.c: New file.
6116         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
6117         * m4/setlocale_null.m4: New file.
6118         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
6119         GNULIB_SETLOCALE_NULL.
6120         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
6121         * modules/setlocale-null: New file.
6122         * doc/posix-functions/setlocale.texi: Mention the new module.
6124 2019-12-15  Bruno Haible  <bruno@clisp.org>
6126         lock tests: Skip test when no multithreading is enabled.
6127         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
6129 2019-12-14  Bruno Haible  <bruno@clisp.org>
6131         locale, duplocale, localename: Fix last patch.
6132         Reported by Daniel Richard G. in
6133         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
6134         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
6135         Don't define if locale_t does not exist.
6137 2019-12-13  Bruno Haible  <bruno@clisp.org>
6139         locale, duplocale, localename: Fix errors if locale_t does not exist.
6140         Reported by Daniel Richard G. in
6141         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
6142         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
6143         macros.
6144         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
6145         HAVE_NEWLOCALE.
6146         * tests/test-localename.c: Likewise.
6147         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
6148         HAVE_DUPLOCALE.
6149         * tests/test-locale-c++.cc: Likewise.
6151 2019-12-13  Bruno Haible  <bruno@clisp.org>
6153         wcstok: Fix test failure on HP-UX.
6154         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
6155         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
6157 2019-12-12  Bruno Haible  <bruno@clisp.org>
6159         strtod, strtold tests: Avoid test failure on AIX 7.2.
6160         * tests/test-strtod1.c (main): Allow implementations in which ',' and
6161         '.' both are radix characters.
6162         * tests/test-strtold1.c (main): Likewise.
6164 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6166         dfa: prefer ptrdiff_t for API, too
6167         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
6168         but do this only for internal use for now.
6169         * NEWS: Mention the API change.
6170         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
6171         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
6172         values known to be nonnegative.
6173         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
6174         Prefer idx_t or ptrdiff_t to size_t for API.
6175         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
6176         Prefer ptrdiff_t to size_t for API.
6178         stdalign: port to xlclang 16.01
6179         Problem reportd by Bruno Haible in:
6180         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
6181         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
6182         ((__aligned__ (...))) with xlclang, as a top-level
6183         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
6184         xlclang version 16.01.0000.0001; the alignment directive is ignored.
6186 2019-12-12  Bruno Haible  <bruno@clisp.org>
6188         duplocale: Fix test failure on AIX 7.2 with xlclang.
6189         * lib/duplocale.c: Include <stdlib.h>.
6190         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
6191         value.
6193 2019-12-12  Bruno Haible  <bruno@clisp.org>
6195         stddef: Document the AIX xlc issue.
6196         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
6198 2019-12-12  Bruno Haible  <bruno@clisp.org>
6200         duplocale: Don't attempt to override if locale_t does not exist.
6201         Reported by Daniel Richard G. in
6202         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
6203         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
6204         HAVE_DUPLOCALE to 0.
6206 2019-12-12  Bruno Haible  <bruno@clisp.org>
6208         wcwidth: Avoid test failure on AIX 7.2.
6209         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
6210         negative.
6211         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
6213 2019-12-12  Bruno Haible  <bruno@clisp.org>
6215         ilogbl: Work around Cygwin bug.
6216         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
6217         correct.
6218         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
6220 2019-12-12  Bruno Haible  <bruno@clisp.org>
6222         strtold: Work around Cygwin bug.
6223         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
6224         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
6225         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
6226         STRTOLD_HAS_UNDERFLOW_BUG is defined.
6227         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
6229 2019-12-12  Bruno Haible  <bruno@clisp.org>
6231         strtold: Fix autoconf test.
6232         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
6234 2019-12-11  Bruno Haible  <bruno@clisp.org>
6236         fsync tests: Skip test that is known to fail.
6237         * doc/posix-functions/fsync.texi: Update list of platforms.
6238         * tests/test-fsync.c (main): Skip test with read-only file descriptors
6239         that is known to fail on AIX and Cygwin.
6241 2019-12-11  Bruno Haible  <bruno@clisp.org>
6243         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
6244         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
6245         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
6246         HAVE_GETADDRINFO as a C macro.
6247         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
6248         declare as replacement functions.
6249         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
6250         define as no-op overrides.
6251         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
6252         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
6253         * modules/getaddrinfo (Depends-on, configure.ac): Test
6254         REPLACE_GETADDRINFO.
6255         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
6256         problem.
6257         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
6258         convention problems.
6260 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6262         dfa: prefer signed integers for internals
6263         Signed integers can be checked more easily for integer overflow.
6264         * lib/dfa.c (position, struct lexer_state, struct parser_state)
6265         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
6266         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
6267         (nsubtoks, copytoks, closure, alloc_position_set, delete)
6268         (replace, state_index, epsclosure, charclass_context)
6269         (state_separate_contexts, merge_nfa_state, dfaoptimize)
6270         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
6271         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
6272         (comsubs, inboth, allocmust):
6273         Prefer a signed to an unsigned integer when calculating indexes,
6274         unless the integer is part of the external API (a bigger deal,
6275         and to be done later).
6277         dfa: fix index overflow
6278         * lib/dfa.c (compare): Avoid integer overflow when analyzing
6279         very large regular expressions.
6281         dfa: update commentary for previous change
6282         * NEWS: Mention the change.
6283         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
6285 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6287         dfa: separate parse and compile phase
6288         ‘dfamust’ must be called after parsing and before tokens are
6289         reordered, but both are executed in the compilation phase.
6290         Token reordering was introduced in Gnulib commit
6291         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
6292         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
6293         * lib/dfa.c (dfaparse): Change it to global function.
6294         (dfacomp): If first argument is NULL, skip parse.
6295         * lib/dfa.h: (dfaparse): Add a prototype.
6297 2019-12-11  Bruno Haible  <bruno@clisp.org>
6299         unistd tests: Fix link error on MSVC.
6300         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
6301         $(LIB_GETLOGIN).
6303 2019-12-11  Bruno Haible  <bruno@clisp.org>
6305         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
6306         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
6307         and POSIX substitutes are supported in C++ mode.
6308         * NEWS: Likewise.
6310 2019-12-11  Bruno Haible  <bruno@clisp.org>
6312         stddef: Fix compilation error in C++ mode on MSVC.
6313         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
6314         instead, include <cstddef>.
6316 2019-12-11  Bruno Haible  <bruno@clisp.org>
6318         unistd: Fix compilation error in C++ mode on MSVC.
6319         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
6320         does not have <unistd.h>.
6322 2019-12-11  Bruno Haible  <bruno@clisp.org>
6324         locale: Fix compilation error in C++ mode on MSVC.
6325         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
6326         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
6327         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
6328         int_n_sep_by_space): Define as macros on MSVC.
6330 2019-12-11  Bruno Haible  <bruno@clisp.org>
6332         wchar: Fix compilation error in C++ mode on MSVC.
6333         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
6335 2019-12-11  Bruno Haible  <bruno@clisp.org>
6337         pthread-thread: Fix compilation error in C++ mode on MSVC.
6338         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
6339         _GL_CXXALIAS_RPL invocation.
6341 2019-12-08  Bruno Haible  <bruno@clisp.org>
6343         Fix compilation errors in C++ mode on Haiku.
6344         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
6345         non-glibc systems.
6346         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
6347         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6348         posix_spawnattr_setschedparam): Likewise.
6349         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
6350         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6351         * lib/unistd.in.h (usleep): Likewise.
6353 2019-12-08  Bruno Haible  <bruno@clisp.org>
6355         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
6356         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
6357         * modules/fseeko (configure.ac-early): Require it instead of
6358         AC_FUNC_FSEEKO.
6359         * modules/ftello (configure.ac-early): Likewise.
6360         * modules/fflush (configure.ac-early): Likewise.
6362 2019-12-08  Bruno Haible  <bruno@clisp.org>
6364         Fix compilation error in C++ mode on HP-UX 11.
6365         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
6366         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
6368 2019-12-08  Bruno Haible  <bruno@clisp.org>
6370         Fix compilation errors on HP-UX 11/ia64.
6371         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
6372         _GL_FUNCDECL_SYS.
6374 2019-12-08  Bruno Haible  <bruno@clisp.org>
6376         Fix compilation error in C++ mode on OpenBSD.
6377         * lib/signal.in.h (signal): Declare on OpenBSD.
6379 2019-12-08  Bruno Haible  <bruno@clisp.org>
6381         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
6382         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
6383         instead of #error.
6385 2019-12-08  Bruno Haible  <bruno@clisp.org>
6387         Fix compilation errors in C++ mode on FreeBSD.
6388         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
6389         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
6390         * lib/threads.in.h (thrd_exit): Likewise.
6391         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
6393 2019-12-08  Bruno Haible  <bruno@clisp.org>
6395         Fix compilation errors in C++ mode on macOS and FreeBSD.
6396         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
6397         or FreeBSD with clang, use the approach without C preprocessor macro.
6399 2019-12-07  Bruno Haible  <bruno@clisp.org>
6401         Fix compilation errors in C++ mode on AIX with xlclang++.
6402         Reported by Christian Biesinger <cbiesinger@google.com> in
6403         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6404         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
6406 2019-12-07  Bruno Haible  <bruno@clisp.org>
6408         Document compilation error in C++ mode on NetBSD 8.0.
6409         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
6411 2019-12-07  Bruno Haible  <bruno@clisp.org>
6413         Fix compilation errors in C++ mode on Solaris 10.
6414         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
6415         to non-empty on Solaris with a non-GCC compiler.
6416         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
6418 2019-12-07  Bruno Haible  <bruno@clisp.org>
6420         Reword NEWS entry.
6421         * NEWS: Reword the latest NEWS entry.
6423 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
6425         Move xstrtol_fatal to a new xstrtol-error module.
6426         * lib/xstrtol.h: Stop including <getopt.h>.
6427         (xstrtol_fatal): Move ...
6428         * lib/xstrtol-error.h: ... here.  New file.
6429         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
6430         * tests/test-xstrtol.c: Likewise.
6431         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
6432         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
6433         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
6434         * modules/xstrtol-error: New file.
6435         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
6436         * MODULES.html.sh: Add xstrtol-error.
6437         * NEWS: Document the change.
6439 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
6441         nstrftime: better width support for %N, %z
6442         * lib/nstrftime.c (width_add, width_add1, width_cpy):
6443         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
6444         a new WIDTH parameter.
6445         (add, add1, cpy): Use these macros.
6446         (width_add): Do not treat digits == 0 as a special case,
6447         do not pad if padding is ‘-’, and do not use a negative width.
6448         (__strftime_internal): Redo formatting of nanoseconds and numeric
6449         timezones to avoid buffer misuse in unusual cases, and so that
6450         widths make more sense.  Add support for widths greater than 9 to
6451         the %N format; they are zero filled on the right.
6452         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
6454 2019-12-05  Bruno Haible  <bruno@clisp.org>
6456         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
6457         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
6458         set REPLACE_ISFINITE to 1.
6459         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
6460         REPLACE_ISINF to 1.
6461         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
6462         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
6463         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6464         * lib/threads.in.h (call_once): Likewise.
6465         * lib/iconv.in.h (iconv): Likewise.
6467 2019-12-05  Bruno Haible  <bruno@clisp.org>
6469         wchar: Add more C++ tests.
6470         Reported by Christian Biesinger <cbiesinger@google.com> in
6471         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6472         * tests/test-wchar-c++3.cc: New file.
6473         * modules/wchar-c++-tests (Files): Add it.
6474         (Makefile.am): Compile it.
6476 2019-12-05  Bruno Haible  <bruno@clisp.org>
6478         Add more C++ tests.
6480         assert-h: Add C++ tests.
6481         * tests/test-assert-h-c++.cc: New file.
6482         * tests/test-assert-h-c++2.cc: New file.
6483         * modules/assert-h-c++-tests: New file.
6484         * modules/assert-h-tests: New file.
6486         ctype: Add C++ tests.
6487         * tests/test-ctype-c++.cc: New file.
6488         * tests/test-ctype-c++2.cc: New file.
6489         * modules/ctype-c++-tests: New file.
6490         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
6492         errno: Add C++ tests.
6493         * tests/test-errno-c++.cc: New file.
6494         * tests/test-errno-c++2.cc: New file.
6495         * modules/errno-c++-tests: New file.
6496         * modules/errno-tests (Depends-on): Add errno-c++-tests.
6498         float: Add C++ tests.
6499         * tests/test-float-c++.cc: New file.
6500         * tests/test-float-c++2.cc: New file.
6501         * modules/float-c++-tests: New file.
6502         * modules/float-tests (Depends-on): Add float-c++-tests.
6504         inttypes: Add more C++ tests.
6505         * tests/test-inttypes-c++2.cc: New file.
6506         * modules/inttypes-c++-tests (Files): Add it.
6507         (Makefile.am): Compile it.
6509         limits-h: Add C++ tests.
6510         * tests/test-limits-h-c++.cc: New file.
6511         * tests/test-limits-h-c++2.cc: New file.
6512         * modules/limits-h-c++-tests: New file.
6513         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
6515         stdarg: Add C++ tests.
6516         * tests/test-stdarg-c++.cc: New file.
6517         * tests/test-stdarg-c++2.cc: New file.
6518         * modules/stdarg-c++-tests: New file.
6519         * modules/stdarg-tests: New file.
6521         stdbool: Add C++ tests.
6522         * tests/test-stdbool-c++.cc: New file.
6523         * tests/test-stdbool-c++2.cc: New file.
6524         * modules/stdbool-c++-tests: New file.
6525         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
6527         stddef: Add C++ tests.
6528         * tests/test-stddef-c++.cc: New file.
6529         * tests/test-stddef-c++2.cc: New file.
6530         * modules/stddef-c++-tests: New file.
6531         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
6533         stdint: Add C++ tests.
6534         * tests/test-stdint-c++.cc: New file.
6535         * tests/test-stdint-c++2.cc: New file.
6536         * modules/stdint-c++-tests: New file.
6537         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
6539         wchar: Add more C++ tests.
6540         * tests/test-wchar-c++2.cc: New file.
6541         * modules/wchar-c++-tests (Files): Add it.
6542         (Makefile.am): Compile it.
6544         wctype-h: Add more C++ tests.
6545         * tests/test-wctype-h-c++2.cc: New file.
6546         * modules/wctype-h-c++-tests (Files): Add it.
6547         (Makefile.am): Compile it.
6549 2019-12-04  Bruno Haible  <bruno@clisp.org>
6551         Fix compilation errors in C++ mode with xlclang++ on AIX.
6552         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
6553         C++ mode on AIX.
6554         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
6555         without C preprocessor macro.
6556         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
6557         _GL_CXXALIAS_SYS.
6558         * lib/threads.in.h (thrd_exit): Likewise.
6560 2019-12-04  Bruno Haible  <bruno@clisp.org>
6562         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
6563         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
6564         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
6566 2019-12-04  Bruno Haible  <bruno@clisp.org>
6568         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
6569         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
6570         _GL_CXXALIASWARN invocation on non-glibc systems.
6571         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
6572         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
6573         iswctype, towlower, towupper): Likewise.
6575 2019-12-03  Bruno Haible  <bruno@clisp.org>
6577         Avoid hassles caused by [[noreturn]] in C++.
6578         Reported by Christian Biesinger <cbiesinger@google.com> in
6579         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
6580         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
6581         * lib/_Noreturn.h: Likewise.
6583 2019-12-02  Bruno Haible  <bruno@clisp.org>
6585         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
6586         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
6587         LIBMULTITHREAD.
6588         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
6589         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
6590         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
6591         gl_THREADLIB.
6592         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
6594 2019-12-02  Bruno Haible  <bruno@clisp.org>
6596         Fix some more link errors with --enable-threads=isoc.
6597         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
6598         * modules/pthread-rwlock (Depends-on): Likewise.
6600 2019-12-02  Bruno Haible  <bruno@clisp.org>
6602         Fix link errors with --enable-threads=posix on AIX.
6603         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
6604         program with $(LIBTHREAD).
6605         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
6606         program with $(LIBTHREAD).
6608 2019-12-02  Bruno Haible  <bruno@clisp.org>
6610         Fix link errors with --enable-threads=posix on AIX.
6611         * modules/mbrtowc (Link): New section.
6612         * modules/acl (Link): Likewise.
6613         * modules/argmatch (Link): Likewise.
6614         * modules/backup-rename (Link): Likewise.
6615         * modules/backupfile (Link): Likewise.
6616         * modules/closein (Link): Likewise.
6617         * modules/closeout (Link): Likewise.
6618         * modules/copy-file (Link): Likewise.
6619         * modules/csharpcomp (Link): Likewise.
6620         * modules/csharpexec (Link): Likewise.
6621         * modules/dfa (Link): Likewise.
6622         * modules/exclude (Link): Likewise.
6623         * modules/fnmatch (Link): Likewise.
6624         * modules/fnmatch-gnu (Link): Likewise.
6625         * modules/fnmatch-posix (Link): Likewise.
6626         * modules/glob (Link): Likewise.
6627         * modules/human (Link): Likewise.
6628         * modules/javacomp (Link): Likewise.
6629         * modules/javaexec (Link): Likewise.
6630         * modules/javaversion (Link): Likewise.
6631         * modules/mbfile (Link): Likewise.
6632         * modules/mbiter (Link): Likewise.
6633         * modules/mbmemcasecmp (Link): Likewise.
6634         * modules/mbmemcasecoll (Link): Likewise.
6635         * modules/mbrlen (Link): Likewise.
6636         * modules/mbscasecmp (Link): Likewise.
6637         * modules/mbscasestr (Link): Likewise.
6638         * modules/mbschr (Link): Likewise.
6639         * modules/mbscspn (Link): Likewise.
6640         * modules/mbsinit (Link): Likewise.
6641         * modules/mbslen (Link): Likewise.
6642         * modules/mbsncasecmp (Link): Likewise.
6643         * modules/mbsnlen (Link): Likewise.
6644         * modules/mbsnrtowcs (Link): Likewise.
6645         * modules/mbspbrk (Link): Likewise.
6646         * modules/mbspcasecmp (Link): Likewise.
6647         * modules/mbsrchr (Link): Likewise.
6648         * modules/mbsrtowcs (Link): Likewise.
6649         * modules/mbssep (Link): Likewise.
6650         * modules/mbsspn (Link): Likewise.
6651         * modules/mbsstr (Link): Likewise.
6652         * modules/mbstok_r (Link): Likewise.
6653         * modules/mbswidth (Link): Likewise.
6654         * modules/mbuiter (Link): Likewise.
6655         * modules/mkdir-p (Link): Likewise.
6656         * modules/propername (Link): Likewise.
6657         * modules/quote (Link): Likewise.
6658         * modules/quotearg (Link): Likewise.
6659         * modules/quotearg-simple (Link): Likewise.
6660         * modules/regex-quote (Link): Likewise.
6661         * modules/rpmatch (Link): Likewise.
6662         * modules/sh-quote (Link): Likewise.
6663         * modules/system-quote (Link): Likewise.
6664         * modules/trim (Link): Likewise.
6665         * modules/unistdio/ulc-asnprintf (Link): Likewise.
6666         * modules/unistdio/ulc-fprintf (Link): Likewise.
6667         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
6668         * modules/unistdio/ulc-vasprintf (Link): Likewise.
6669         * modules/unistdio/ulc-vfprintf (Link): Likewise.
6670         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
6671         * modules/unistdio/ulc-vsprintf (Link): Likewise.
6672         * modules/xfreopen (Link): Likewise.
6673         * modules/xmemcoll (Link): Likewise.
6674         * modules/yesno (Link): Likewise.
6675         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
6676         * modules/argmatch-tests (Makefile.am): Likewise.
6677         * modules/closein-tests (Makefile.am): Likewise.
6678         * modules/copy-file-tests (Makefile.am): Likewise.
6679         * modules/dfa-tests (Makefile.am): Likewise.
6680         * modules/fnmatch-tests (Makefile.am): Likewise.
6681         * modules/glob-tests (Makefile.am): Likewise.
6682         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6683         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6684         * modules/mbrtowc-tests (Makefile.am): Likewise.
6685         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6686         * modules/mbscasestr-tests (Makefile.am): Likewise.
6687         * modules/mbschr-tests (Makefile.am): Likewise.
6688         * modules/mbscspn-tests (Makefile.am): Likewise.
6689         * modules/mbsinit-tests (Makefile.am): Likewise.
6690         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6691         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6692         * modules/mbspbrk-tests (Makefile.am): Likewise.
6693         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6694         * modules/mbsrchr-tests (Makefile.am): Likewise.
6695         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6696         * modules/mbsspn-tests (Makefile.am): Likewise.
6697         * modules/mbsstr-tests (Makefile.am): Likewise.
6698         * modules/quotearg-tests (Makefile.am): Likewise.
6699         * modules/quotearg-simple-tests (Makefile.am): Likewise.
6700         * modules/readtokens-tests (Makefile.am): Likewise.
6701         * modules/regex-quote-tests (Makefile.am): Likewise.
6702         * modules/sh-quote-tests (Makefile.am): Likewise.
6703         * modules/system-quote-tests (Makefile.am): Likewise.
6704         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
6705         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6706         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
6707         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
6708         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
6709         * modules/yesno-tests (Makefile.am): Likewise.
6711 2019-12-02  Bruno Haible  <bruno@clisp.org>
6713         Simplify link sections.
6714         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
6715         * modules/lock (Link): Likewise.
6716         * modules/cond (Link): Likewise.
6717         * modules/tls (Link): Likewise.
6718         * modules/yield (Link): Likewise.
6719         * modules/regex (Link): Likewise.
6720         * modules/localename (Link): Likewise.
6721         * modules/unicase/locale-language (Link): Likewise.
6722         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
6724 2019-12-02  Bruno Haible  <bruno@clisp.org>
6726         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
6727         * tests/test-thread_self.c (main): Disable test on AIX.
6729 2019-12-01  Bruno Haible  <bruno@clisp.org>
6731         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
6732         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
6733         gl_THREADLIB_EARLY_BODY.
6734         (gl_THREADLIB_EARLY_BODY): Invoke it.
6735         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
6736         (gl_THREADLIB_BODY): Invoke it.
6737         (gl_PTHREADLIB): New macro.
6738         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
6739         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
6740         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
6741         * modules/pthread-h (Files): Add threadlib.m4.
6742         (Depends-on): Remove threadlib.
6743         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
6744         and _THREAD_SAFE here.
6745         (Link): Use LIBPTHREAD, not LIBTHREAD.
6746         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
6747         LIBMULTITHREAD.
6748         * modules/pthread-once (Link): Likewise.
6749         * modules/pthread-mutex (Link): Likewise.
6750         * modules/pthread-rwlock (Link): Likewise.
6751         * modules/pthread-cond (Link): Likewise.
6752         * modules/pthread-tss (Link): Likewise.
6753         * modules/pthread-spin (Link): Likewise.
6754         * modules/pthread (Link): Likewise.
6755         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
6756         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
6757         * modules/pthread-once-tests (test_pthread_once1_LDADD,
6758         test_pthread_once2_LDADD): Likewise.
6759         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
6760         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
6761         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
6762         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
6764 2019-12-01  Bruno Haible  <bruno@clisp.org>
6766         cond: State linking requirements.
6767         * modules/cond (Link): New section.
6769 2019-12-01  Bruno Haible  <bruno@clisp.org>
6771         threadlib: Remove unnecessary file (left over from 2019-07-06).
6772         * modules/threadlib (Files): Remove config.rpath.
6774 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
6776         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
6777         Reported by Dagobert Michelsen <dam@opencsw.org> in
6778         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
6779         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
6780         list of strings instead of one string.
6781         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
6782         * pygnulib/GLImport.py (execute): Likewise.
6784 2019-11-27  Bruno Haible  <bruno@clisp.org>
6786         openpty, forkpty: Fix build error on Solaris 11.4.
6787         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
6788         also in <termios.h>.
6789         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
6790         of the function also in <termios.h>.
6791         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
6792         * doc/glibc-functions/forkpty.texi: Likewise.
6794 2019-11-27  Bruno Haible  <bruno@clisp.org>
6796         New options --enable-threads=isoc and --enable-threads=isoc+posix.
6797         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
6798         --enable-threads=isoc and --enable-threads=isoc+posix.
6799         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
6800         When both the ISO C and the POSIX threads API are available, choose
6801         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
6802         --enable-threads=isoc+posix was specified. When only the ISO C threads
6803         API is available and --enable-threads=iso was specified, choose
6804         USE_ISOC_THREADS.
6805         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
6806         USE_ISOC_AND_POSIX_THREADS.
6807         * lib/glthread/lock.c: Likewise.
6808         * lib/glthread/cond.h: Likewise.
6809         * lib/glthread/cond.c: Likewise.
6810         * lib/glthread/tls.h: Likewise.
6811         * lib/glthread/tls.c: Likewise.
6812         * lib/glthread/yield.h: Likewise.
6813         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
6814         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
6815         * lib/glthread/thread.c: Likewise.
6816         * lib/glthread/threadlib.c: Likewise.
6817         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
6818         USE_ISOC_AND_POSIX_THREADS.
6819         * tests/test-cond.c: Consider USE_ISOC_THREADS and
6820         USE_ISOC_AND_POSIX_THREADS.
6821         * tests/test-tls.c: Likewise.
6822         * tests/test-thread_create.c (main): Likewise.
6823         * tests/test-pthread-cond.c: Likewise.
6824         * tests/test-pthread-mutex.c: Likewise.
6825         * tests/test-pthread-once2.c: Likewise.
6826         * tests/test-pthread-rwlock.c: Likewise.
6827         * tests/test-pthread-tss.c: Likewise.
6828         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
6829         USE_POSIX_THREADS.
6831 2019-11-24  Bruno Haible  <bruno@clisp.org>
6833         mbrtowc: Modernize autoconf test.
6834         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
6835         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
6836         try a UTF-8 locale.
6837         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
6839 2019-11-24  Bruno Haible  <bruno@clisp.org>
6841         Fix errors in C++ mode on mingw.
6842         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
6843         instead of _GL_CXXALIAS_SYS.
6844         * lib/signal.in.h (pthread_sigmask): Likewise.
6845         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
6846         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6847         Likewise.
6848         * lib/wchar.in.h (btowc): Likewise.
6850 2019-11-24  Bruno Haible  <bruno@clisp.org>
6852         sys_time: Fix errors in C++ mode on mingw.
6853         * lib/sys_time.in.h (timeval): Restore the redirection
6854         '#define timeval rpl_timeval', for when the symbol timeval is being used
6855         outside the 'gnulib' namespace.
6856         * lib/sys_select.in.h (select): In C++, write 'timeval', not
6857         'struct timeval'.
6859 2019-11-24  Bruno Haible  <bruno@clisp.org>
6861         iswctype: Fix errors in C++ mode on mingw.
6862         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
6863         is 1.
6864         * lib/iswctype.c (iswctype): Add another implementation, for the
6865         GNULIB_defined_wint_t case.
6866         * modules/iswctype (configure.ac): Compile iswctype.c also if
6867         GNULIB_OVERRIDES_WINT_T is 1.
6869 2019-11-24  Bruno Haible  <bruno@clisp.org>
6871         windows-timedmutex: Fix errors in C++ mode on mingw.
6872         * lib/windows-timedmutex.h: Add closing brace.
6874 2019-11-24  Bruno Haible  <bruno@clisp.org>
6876         Fix errors in C++ mode on Cygwin.
6877         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
6878         _GL_CXXALIAS_SYS.
6880 2019-11-24  Bruno Haible  <bruno@clisp.org>
6882         time_r: Fix for mingw (regression from 2019-11-16).
6883         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
6884         AC_LINK_IFELSE test only if the function does not appear to exist.
6886 2019-11-24  Bruno Haible  <bruno@clisp.org>
6888         wcstok: Add tests.
6889         * tests/test-wcstok.c: New file.
6890         * modules/wcstok-tests: New file.
6892 2019-11-24  Bruno Haible  <bruno@clisp.org>
6894         wcstok: Work around wrong signature on native Windows.
6895         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
6896         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
6897         REPLACE_WCSTOK.
6898         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
6899         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
6900         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
6901         * doc/posix-functions/wcstok.texi: Mention the problem.
6903 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
6905         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
6906         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
6907         remove workaround for GCC bug 91450 as the bug should be fixed
6908         there too.
6910 2019-11-21  Bruno Haible  <bruno@clisp.org>
6912         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
6913         Reported by Christian Biesinger <cbiesinger@google.com> in
6914         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
6915         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
6916         non-glibc systems.
6917         * lib/locale.in.h (localeconv, setlocale): Likewise.
6918         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
6919         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
6920         rint, round, trunc): Likewise.
6921         * lib/monetary.in.h (strfmon_l): Likewise.
6922         * lib/pthread.in.h (pthread_mutexattr_getrobust,
6923         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
6924         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
6925         pthread_spin_destroy): Likewise.
6926         * lib/signal.in.h (raise, signal): Likewise.
6927         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
6928         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
6929         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
6930         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
6931         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
6932         Likewise.
6933         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
6934         Likewise.
6935         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
6936         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
6937         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
6938         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
6939         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
6940         wcsftime): Likewise.
6941         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
6943 2019-11-21  Bruno Haible  <bruno@clisp.org>
6945         Fix various errors in _GL_CXXALIAS_SYS invocations.
6946         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
6947         _GL_CXXALIAS_SYS.
6948         * lib/pthread.in.h (pthread_mutexattr_gettype,
6949         pthread_mutexattr_getrobust): Likewise.
6950         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
6951         * lib/sys_socket.in.h (recv, send): Likewise.
6952         * lib/unistd.in.h (getdtablesize): Likewise.
6953         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
6954         'struct timeval'.
6956 2019-11-21  Bruno Haible  <bruno@clisp.org>
6958         math tests: Update after 2019-08-28 change.
6959         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
6960         return type of 'bool', not 'int'.
6962 2019-11-21  Bruno Haible  <bruno@clisp.org>
6964         pthread-spin: Fix errors in C++ mode.
6965         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
6966         functions as nonexistent when <pthread.h> exists but does not define
6967         the pthread_spinlock_t type.
6969 2019-11-21  Bruno Haible  <bruno@clisp.org>
6971         pthread-mutex: Fix errors in C++ mode.
6972         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
6973         pthread_mutexattr_getrobust exists. If not, define
6974         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
6975         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
6976         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
6977         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
6978         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
6979         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
6980         definition.
6982 2019-11-19  Bruno Haible  <bruno@clisp.org>
6984         threads-h tests: Fix typo.
6985         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
6987 2019-11-19  Bruno Haible  <bruno@clisp.org>
6989         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
6990         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
6991         to 'const pthread_attr_t *'.
6992         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
6993         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
6995 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
6997         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
6998         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
6999         work around GCC bug 91450 as the bug should be fixed there.
7001 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7003         glob: get closer to glibc glob.c
7004         Omit differences from glibc when the differences don’t matter.
7005         * lib/glob.c [_LIBC]: Include shlib-compat.h.
7006         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
7007         (glob_lstat): New function.
7008         (glob_in_dir): Use it.
7009         (GLOB_ATTRIBUTE): Define to empty if not already defined.
7010         Use changed.
7012 2019-11-18  Bruno Haible  <bruno@clisp.org>
7014         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
7015         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
7016         UINTPTR_MAX): Consider _WIN64.
7017         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
7018         a pointer.
7020 2019-11-18  Bruno Haible  <bruno@clisp.org>
7022         stdint: Fix value of WINT_MAX when we override wint_t.
7023         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
7024         when GNULIB_OVERRIDES_WINT_T is 1.
7026 2019-11-18  Bruno Haible  <bruno@clisp.org>
7028         vcs-to-changelog: New module.
7029         * modules/vcs-to-changelog: New file.
7030         * MODULES.html.sh (func_all_modules): Add it.
7032 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7034         vcs-to-changelog: New script to generate ChangeLog-like output.
7035         Discussion:
7036         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
7037         * build-aux/vcs_to_changelog.py: New file.
7038         * build-aux/vcstocl/frontend_c.py: New file.
7039         * build-aux/vcstocl/misc_util.py: New file.
7040         * build-aux/vcstocl/vcs_git.py: New file.
7042 2019-11-18  Bruno Haible  <bruno@clisp.org>
7044         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
7045         Reported by Keith Marshall <keith@users.osdn.me> in
7046         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
7047         and <https://osdn.net/projects/mingw/ticket/39677>.
7048         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
7049         already been defined by mingw's <crtdefs.h>.
7051 2019-11-18  Bruno Haible  <bruno@clisp.org>
7053         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
7054         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
7055         conditionally enabled.
7057 2019-11-18  Bruno Haible  <bruno@clisp.org>
7059         gc: Mirror libgcrypt.m4 from libgcrypt.
7060         * config/srclistvars.sh (LIBGCRYPT): New variable.
7061         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
7063 2019-11-17  Bruno Haible  <bruno@clisp.org>
7065         locale, localename: Improve z/OS support.
7066         Reported by Daniel Richard G. in
7067         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
7068         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
7069         gl_LOCALE_H.
7070         (gl_LOCALE_H): Require it.
7071         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
7072         defined, don't even check for newlocale, duplocale, freelocale.
7073         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
7074         locale_t is not defined.
7076 2019-11-17  Bruno Haible  <bruno@clisp.org>
7078         havelib: Make libdirstems processing more flexible.
7079         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
7080         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
7081         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
7082         patch from 2017-02-19).
7083         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
7084         libdirs, even when the first one exists as a directory.
7086 2019-11-17  Bruno Haible  <bruno@clisp.org>
7088         havelib: Match the bitness when searching for libraries.
7089         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
7090         acl_is_expected_elfclass.
7091         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
7092         file exists, in ELF, also test whether it has the ELF class that
7093         corresponds to the host's bitness.
7095 2019-11-17  Bruno Haible  <bruno@clisp.org>
7097         host-cpu-c-abi: Add support for unknown CPUs.
7098         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
7099         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
7100         32-bit or 64-bit.
7102 2019-11-17  Bruno Haible  <bruno@clisp.org>
7104         havelib: Remove redundant code.
7105         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
7106         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
7108 2019-11-17  Bruno Haible  <bruno@clisp.org>
7110         havelib: Fix a bug in dependency processing.
7111         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
7112         of .la files, don't overwrite the value of additional_libdir for the
7113         next rounds.
7115 2019-11-16  Bruno Haible  <bruno@clisp.org>
7117         wctype-h: When overriding wint_t, override also the related functions.
7118         Reported by Christian Biesinger <cbiesinger@google.com> in
7119         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
7120         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
7121         REPLACE_ISWCNTRL to 1.
7122         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
7123         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
7124         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
7125         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
7126         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
7127         on mingw.
7128         * doc/posix-headers/wctype.texi: Likewise.
7130 2019-11-16  Bruno Haible  <bruno@clisp.org>
7132         time_r: Fix for mingw.
7133         Reported by Christian Biesinger <cbiesinger@google.com> in
7134         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
7135         * lib/time.in.h: On mingw, include <unistd.h>.
7136         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
7137         <time.h>. Test for localtime_r in a way that works when it is defined
7138         as an inline function.
7140 2019-11-13  Bruno Haible  <bruno@clisp.org>
7142         havelib: Revert last change.
7143         * build-aux/config.rpath: Revert last change. We can add msys2 support
7144         when it has been added to libtool.m4 upstream.
7146 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7148         config: add msys support
7149         Requested by Arnold Robbins in:
7150         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
7151         He also requested a change to config.guess, which I’ll forward
7152         upstream.
7153         * build-aux/ar-lib (func_file_conv):
7154         * build-aux/compile (func_file_conv):
7155         * build-aux/config.rpath (wl, with_gnu_ld)
7156         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
7157         Treat msys like cygwin.
7159 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7161         regex: now back in sync with glibc
7162         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
7163         regexec.c got merged into glibc and are now copies again.
7165 2019-10-27  Bruno Haible  <bruno@clisp.org>
7167         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
7168         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
7169         statement.
7170         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
7171         32-bit CPUs.
7173 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7175         timespec-add, timespec-sub: simplify
7176         * lib/timespec-add.c (timespec_add):
7177         * lib/timespec-sub.c (timespec_sub):
7178         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
7179         work on unsigned integers.
7181 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7183         nstrftime: speed up integer overflow checking
7184         * lib/nstrftime.c: Include intprops.h.
7185         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
7186         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
7187         instead of doing it by hand.
7188         * modules/nstrftime (Depends-on): Add intprops.
7190         Port better to GCC under macOS
7191         Work around macOS header that has ‘#define __has_builtin(x) 0’
7192         when compiled by GCC.  Apple really, really doesn’t want you to
7193         use GCC, apparently.  Rroblem reported by Akim Demaille in:
7194         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
7195         The fix is to not trust __has_builtin when being compiled by
7196         recent-enough GCC.
7197         * lib/intprops.h (__has_builtin)
7198         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
7199         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
7200         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
7201         Remove.  All uses removed.
7202         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
7203         directly, if defined and if not newer GCC.
7204         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
7205         New macro, that use __has_builtin directly, if defined and if
7206         not newer GCC.
7207         (assume): Use them.
7209 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
7211         maintainer-makefile: update rule for argmatch.
7212         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
7214 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
7216         bitset: let freeing functions accept NULL.
7217         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
7218         given NULL.
7219         * lib/bitset.h: Document that.
7220         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
7222 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
7224         inttypes: use more-robust test for int range
7225         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
7226         Problem reported by Dagobert Michelsen in:
7227         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
7228         * lib/inttypes.in.h: Rely only on limits.h when checking
7229         int range.
7231 2019-10-15  Bruno Haible  <bruno@clisp.org>
7233         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
7234         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
7235         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
7236         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
7237         term_ostream_set_hyperlink): New functions.
7238         (term_styled_ostream_get_hyperlink_ref,
7239         term_styled_ostream_get_hyperlink_id,
7240         term_styled_ostream_set_hyperlink): New function aliases.
7242 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7244         update-copyright: use en dashes in .texi ranges
7245         * build-aux/update-copyright: Match year ranges like "1998--2019",
7246         which are used in the Autoconf manual.  Also, update ranges in
7247         .tex, .texi, and .texinfo files to use en dashes instead of
7248         hyphens.
7250 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7252         * config/srclist.txt: Remove posix/regex_internal.c for now.
7254 2019-10-13  Bruno Haible  <bruno@clisp.org>
7256         git-version-gen: Allow 'snapshot' as .tarball-version contents.
7257         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
7258         contents to the empty string.
7260 2019-10-12  Bruno Haible  <bruno@clisp.org>
7262         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
7263         * tests/test-intprops.c (main): Disable two more tests when using
7264         HP-UX cc.
7266 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7268         Simplify and regularize regex use of ‘assert’
7269         Also, tell GCC about the asserts even when compiling without
7270         debugging, to give it further optimization opportunities.
7271         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
7272         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
7273         (parse_expression, parse_bracket_exp):
7274         * lib/regex_internal.c (build_wcs_buffer)
7275         (build_wcs_upper_buffer, re_string_reconstruct)
7276         (re_string_context_at):
7277         * lib/regexec.c (re_search_stub, re_copy_regs)
7278         (re_search_internal, prune_impossible_nodes, check_matching)
7279         (check_halt_state_context, set_regs, sift_states_backward)
7280         (build_sifted_states, transit_state_mb, transit_state_bkref)
7281         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7282         (match_ctx_add_subtop):
7283         Use it instead of plain ‘assert’.
7285 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
7287         regex: omit debug assignment when not debugging
7288         * lib/regexec.c (re_search_internal) [!DEBUG]:
7289         Remove unnecessary assignment.
7291         regex: tell compiler there’s at most 256 arcs out
7292         Partly this is to help the reader (and maybe help GCC);
7293         partly this is to pacify Coverity.
7294         * lib/regex_internal.h: Include verify.h.
7295         * lib/regexec.c (group_nodes_into_DFAstates):
7296         Tell the compiler that ndests cannot exceed SBC_MAX.
7297         * modules/regex (Depends-on): Add ‘verify’.
7299         regex: simplify by assuming C99
7300         * config/srclist.txt: Comment out regex_internal.h and regexec.c
7301         temporarily.
7302         * lib/regex_internal.h (lock_define, re_match_context_t):
7303         Simplify by assuming C99 macros and const.
7304         * lib/regexec.c (re_search_internal): Simplify by assuming C99
7305         initializers.  Remove unnecessary assignment, as mctx is now
7306         safely initialized earlier.
7308         regex: avoid copying of uninitialized storage
7309         * config/srclist.txt: Comment out regcomp.c temporarily.
7310         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
7311         Initialize even when not checking for lint, as the behavior is
7312         arguably undefined otherwise and Coverity warns about it.
7314 2019-10-06  Bruno Haible  <bruno@clisp.org>
7316         access tests: Fix test failure when run as root.
7317         * tests/test-access.c: Include root-uid.h.
7318         (geteuid): Define fallback.
7319         (main): Don't expect that writing to a read-only file would fail when
7320         running as root. Also, remove the created files at the end.
7321         * modules/access-tests (Depends-on): Add root-uid.
7322         (configure.ac): Test whether geteuid exists.
7324 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
7326         users.txt: add GNU nano
7327         Nano has been making use of gnulib since March 2017, version 2.8.0.
7329 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7331         bootstrap: simplify debugging of wget failures
7332         Problem reported by Tim Rühsen in:
7333         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
7334         * build-aux/bootstrap (po_download_command_format):
7335         Invoke wget with -nv instead of -q, to make debugging easier.
7337 2019-09-29  Bruno Haible  <bruno@clisp.org>
7339         avltree-list: Fix compilation warning (introduced on 2014-09-16).
7340         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
7341         'const' attribute.
7343 2019-09-29  Bruno Haible  <bruno@clisp.org>
7345         fbufmode: Fix compilation error on glibc >= 2.28 systems.
7346         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
7348 2019-09-28  Bruno Haible  <bruno@clisp.org>
7350         Update comments that refer to POSIX.
7351         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
7352         sentence about trailing slashes.
7353         * lib/fflush.c: Clarify the reasoning.
7354         * tests/test-fflush2.c: Cite the relevant sentence.
7356 2019-09-28  Bruno Haible  <bruno@clisp.org>
7358         access: Document limitations on Windows.
7359         Suggested by Zaretskii <eliz@gnu.org>.
7360         * doc/posix-functions/access.texi: Mention two limitations on Windows.
7362 2019-09-28  Bruno Haible  <bruno@clisp.org>
7364         findprog-in: Fix comment.
7365         Reported by Eli Zaretskii <eliz@gnu.org>.
7366         * lib/findprog.h (find_in_given_path): Extend description of EACCES
7367         condition.
7368         * lib/stat.c (rpl_stat): Fix typo in comment.
7369         * lib/utime.c (_gl_utimens_windows): Likewise.
7371 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7373         Update URLs and associated text
7374         (Thanks to Bruno Haible for proofreading this patch.)
7375         Prefer https: to http: in URLs where either will do, for the usual
7376         security reasons.  I also updated broken and/or moved URLs
7377         discovered during the process. In a few places I had to resort to
7378         archive.org, since I didn't find the originals elsewhere.
7380 2019-09-15  Paul Smith  <psmith@gnu.org>
7381             Bruno Haible  <bruno@clisp.org>
7383         findprog-in: Set errno when the search fails.
7384         * lib/findprog-in.c: Include <errno.h>.
7385         (find_in_given_path): Set errno before returning NULL.
7386         * lib/findprog.h (find_in_given_path): Update comment accordingly.
7387         Define the term "slash".
7389 2019-09-15  Bruno Haible  <bruno@clisp.org>
7391         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
7392         * modules/findprog (Depends-on): Add access.
7393         * modules/findprog-lgpl (Depends-on): Likewise.
7394         * modules/findprog-in (Depends-on): Likewise.
7396 2019-09-15  Bruno Haible  <bruno@clisp.org>
7398         access: Add tests.
7399         * tests/test-access.c: New file.
7400         * modules/access-tests: New file.
7402         access: New module.
7403         * lib/unistd.in.h (access): New declaration.
7404         * lib/access.c: New file.
7405         * m4/access.m4: New file.
7406         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
7407         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
7408         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
7409         REPLACE_ACCESS.
7410         * modules/access: New file.
7411         * tests/test-unistd-c++.cc (access): Check signature.
7412         * doc/posix-functions/access.texi: Mention the new module.
7414 2019-09-15  Bruno Haible  <bruno@clisp.org>
7416         fcntl-h: Fix compilation error of creat.c on MSVC.
7417         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
7418         defined.
7420 2019-09-15  Bruno Haible  <bruno@clisp.org>
7422         creat: Add tests.
7423         * tests/test-creat.c: New file, based on tests/test-open.h.
7424         * modules/creat-tests: New file.
7426         creat: New module.
7427         * lib/fcntl.in.h (creat): New declaration.
7428         * lib/creat.c: New file, based on lib/open.c.
7429         * m4/creat.m4: New file.
7430         * m4/open-slash.m4: New file, extracted from m4/open.m4.
7431         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
7432         Invoke gl_OPEN_TRAILING_SLASH_BUG.
7433         * modules/open (Files): Add m4/open-slash.m4.
7434         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
7435         REPLACE_CREAT.
7436         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
7437         * modules/creat: New file.
7438         * tests/test-fcntl-h-c++.cc (creat): Check signature.
7439         * doc/posix-functions/creat.texi: Mention the new module.
7441 2019-09-15  Bruno Haible  <bruno@clisp.org>
7443         open tests: Enhance test.
7444         * tests/test-open.h (test_open): Test the creation of an executable
7445         regular file. Also improve initial cleanup.
7447 2019-09-15  Bruno Haible  <bruno@clisp.org>
7449         intprops tests: Avoid build failure with HP-UX cc.
7450         * tests/test-intprops.c: Disable a check that makes HP cc choke with
7451         "error 4018: Macro param too large after substitution - use -H option.".
7453 2019-09-14  Bruno Haible  <bruno@clisp.org>
7455         Make autoconf tests work with -Werror=implicit-function-declaration.
7456         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
7457         towupper() declaration.
7458         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
7459         declaration.
7461 2019-09-14  Bruno Haible  <bruno@clisp.org>
7463         findprog-in: Better mimic the system on native Windows.
7464         Reported by Paul Smith <psmith@gnu.org>.
7465         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
7466         non-empty suffixes when the file name already contains a '.'.
7468 2019-09-10  Bruno Haible  <bruno@clisp.org>
7470         wctob: Fix autoconf test.
7471         Based on patch by Florian Weimer <fweimer@redhat.com>.
7472         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
7474 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
7476         xhash: provide hash_xinitialize.
7477         Suggested by Egor Pugin <egor.pugin@gmail.com>
7478         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
7479         * modules/xhash, lib/xhash.c: New.
7480         * lib/hash.h (hash_xinitialize): New.
7482 2019-09-09  Bruno Haible  <bruno@clisp.org>
7484         findprog-in: Make exec optimization optional.
7485         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
7486         (find_in_given_path): Add optimize_for_exec parameter.
7487         * lib/findprog-in.c (find_in_given_path): Likewise.
7489 2019-09-08  Bruno Haible  <bruno@clisp.org>
7491         Add option to assume the best, not the worst, when cross-compiling.
7492         Suggested by Jonas Termansen <sortie@maxsi.org>.
7493         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
7494         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
7495         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
7496         lt_cv_sys_argz_works.
7497         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
7498         ac_cv_func_calloc_0_nonnull.
7499         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
7500         --enable-cross-guesses for gl_cv_func_realpath_works.
7501         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
7502         gl_cv_func_cbrtl_ieee.
7503         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
7504         gl_cv_func_ceil_ieee.
7505         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
7506         gl_cv_func_ceilf_ieee.
7507         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
7508         gl_cv_func_ceill_ieee.
7509         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
7510         ac_cv_func_chown_works.
7511         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
7512         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
7513         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
7514         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
7515         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
7516         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
7517         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
7518         gl_cv_func_expl_works.
7519         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
7520         gl_cv_func_expm1_ieee.
7521         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
7522         gl_cv_func_expm1l_works.
7523         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
7524         gl_cv_func_open_directory_works.
7525         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
7526         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
7527         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
7528         gl_cv_func_fchownat_empty_filename_works.
7529         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
7530         gl_cv_func_fdopendir_works.
7531         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
7532         gl_cv_func_floor_ieee.
7533         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
7534         gl_cv_func_floorf_ieee.
7535         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
7536         gl_cv_func_fma_works.
7537         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
7538         gl_cv_func_fmaf_works.
7539         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
7540         gl_cv_func_fmal_works.
7541         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
7542         gl_cv_func_fmod_ieee.
7543         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
7544         gl_cv_func_fmodf_ieee.
7545         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
7546         gl_cv_func_fmodl_ieee.
7547         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
7548         gl_cv_func_fpurge_works.
7549         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
7550         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
7551         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
7552         gl_cv_func_getcwd_null.
7553         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
7554         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
7555         gl_cv_func_working_getdelim.
7556         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
7557         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
7558         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
7559         gl_cv_func_getgroups_works.
7560         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
7561         am_cv_func_working_getline.
7562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
7563         for gl_cv_func_getopt_gnu.
7564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
7565         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
7566         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
7567         gl_cv_func_hypot_ieee.
7568         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
7569         gl_cv_func_hypotf_ieee.
7570         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
7571         gl_cv_func_hypotl_ieee.
7572         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
7573         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
7574         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
7575         gl_cv_func_link_works.
7576         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
7577         gl_cv_func_linkat_slash.
7578         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
7579         gl_cv_func_log_ieee.
7580         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
7581         gl_cv_func_logf_ieee.
7582         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
7583         gl_cv_func_logl_works.
7584         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
7585         gl_cv_func_log10_ieee.
7586         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
7587         gl_cv_func_log10f_ieee.
7588         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
7589         gl_cv_func_log10l_works.
7590         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
7591         gl_cv_func_log1p_ieee.
7592         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
7593         gl_cv_func_log1pf_ieee.
7594         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
7595         gl_cv_func_log1pl_ieee.
7596         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
7597         gl_cv_func_log2_ieee.
7598         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
7599         gl_cv_func_log2f_ieee.
7600         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
7601         --enable-cross-guesses for
7602         gl_cv_func_lstat_dereferences_slashed_symlink.
7603         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
7604         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
7605         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
7606         gl_cv_C_locale_sans_EILSEQ.
7607         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
7608         gl_cv_func_memchr_works.
7609         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
7610         gl_cv_func_memmem_works_always.
7611         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
7612         gl_cv_func_memmem_works_fast.
7613         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
7614         gl_cv_func_mkdir_trailing_slash_works,
7615         gl_cv_func_mkdir_trailing_dot_works.
7616         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
7617         gl_cv_func_mkfifo_works.
7618         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
7619         gl_cv_func_mknod_works.
7620         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
7621         gl_cv_func_working_mkstemp.
7622         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
7623         gl_cv_func_working_mktime.
7624         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
7625         gl_cv_func_modf_ieee.
7626         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
7627         gl_cv_func_modff_ieee.
7628         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
7629         gl_cv_func_modfl_ieee.
7630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
7631         gl_cv_func_nanosleep.
7632         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
7633         gl_cv_func_perror_works.
7634         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
7635         gl_cv_func_printf_sizes_c99.
7636         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
7637         gl_cv_func_printf_infinite.
7638         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
7639         gl_cv_func_printf_infinite_long_double.
7640         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
7641         gl_cv_func_printf_directive_a.
7642         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
7643         gl_cv_func_printf_directive_f.
7644         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
7645         gl_cv_func_printf_flag_zero.
7646         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
7647         gl_cv_func_printf_enomem.
7648         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
7649         gl_cv_func_snprintf_truncation_c99.
7650         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
7651         gl_cv_func_snprintf_retval_c99.
7652         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
7653         gl_cv_func_snprintf_directive_n.
7654         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
7655         gl_cv_func_vsnprintf_zerosize_c99.
7656         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
7657         gl_cv_func_pselect_detects_ebadf.
7658         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
7659         Obey --enable-cross-guesses for
7660         gl_cv_pthread_rwlock_rdlock_prefer_writer.
7661         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
7662         gl_cv_func_ptsname_sets_errno.
7663         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
7664         gl_cv_func_svid_putenv.
7665         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
7666         gl_cv_func_readlink_works.
7667         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
7668         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
7669         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
7670         gl_cv_func_re_compile_pattern_working.
7671         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
7672         gl_cv_func_remainder_ieee.
7673         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
7674         gl_cv_func_remainderf_ieee.
7675         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
7676         gl_cv_func_remainderl_ieee.
7677         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
7678         gl_cv_func_rintl_works.
7679         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
7680         gl_cv_func_rmdir_works.
7681         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
7682         gl_cv_func_round_ieee.
7683         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
7684         gl_cv_func_roundf_ieee.
7685         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
7686         gl_cv_func_roundl_ieee.
7687         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
7688         gl_cv_func_select_detects_ebadf.
7689         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
7690         gl_cv_func_setenv_works.
7691         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
7692         gl_cv_func_unsetenv_works.
7693         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
7694         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
7695         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
7696         gl_cv_func_sleep_works.
7697         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
7698         gl_cv_func_stat_file_slash.
7699         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
7700         gl_cv_func_stpncpy.
7701         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
7702         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
7703         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
7704         gl_cv_func_strcasestr_linear.
7705         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
7706         gl_cv_func_working_strerror.
7707         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
7708         gl_cv_func_strerror_0_works.
7709         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
7710         --enable-cross-guesses for gl_cv_func_strerror_r_works.
7711         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
7712         gl_cv_func_strstr_works_always.
7713         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
7714         gl_cv_func_strstr_linear.
7715         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
7716         gl_cv_func_strtod_works.
7717         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
7718         gl_cv_func_strtold_works.
7719         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
7720         gl_cv_func_symlink_works.
7721         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
7722         gl_cv_func_symlinkat_works.
7723         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
7724         gl_cv_func_trunc_ieee.
7725         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
7726         gl_cv_func_truncf_ieee.
7727         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
7728         gl_cv_func_truncl_ieee.
7729         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
7730         gl_cv_func_tzset_clobber.
7731         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
7732         gl_cv_func_ungetc_works.
7733         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
7734         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
7735         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
7736         gl_cv_func_usleep_works.
7737         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
7738         gl_cv_func_futimesat_works.
7739         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
7740         gl_cv_func_working_utimes.
7741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
7742         gl_cv_func_wcwidth_works.
7743         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
7744         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
7745         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
7746         links for testing. Obey --enable-cross-guesses for
7747         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
7748         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
7750 2019-09-08  Bruno Haible  <bruno@clisp.org>
7752         Clarify that cross-compilation guesses are guesses.
7753         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
7754         cross-compiling.
7756 2019-09-08  Bruno Haible  <bruno@clisp.org>
7758         chown: Fix configure output (regression from 2019-03-23).
7759         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
7760         gl_cv_func_chown_follows_symlink variable.
7762 2019-09-08  Bruno Haible  <bruno@clisp.org>
7764         findprog-in: New module.
7765         Suggested by Paul Smith <psmith@gnu.org>.
7766         * lib/findprog.h (find_in_given_path): New declaration.
7767         * lib/findprog-in.c: New file, based on lib/findprog.c.
7768         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
7769         * modules/findprog-in: New file.
7771 2019-09-08  Bruno Haible  <bruno@clisp.org>
7773         findprog: Remove unused dependency.
7774         * modules/findprog (Depends-on): Remove strdup.
7776 2019-09-08  Bruno Haible  <bruno@clisp.org>
7778         findprog: Remove test that is obsolete since 2006-04-24.
7779         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
7781 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
7783         bitset: style changes
7784         * lib/bitset/vector.c (vbitset_resize): Factor computation.
7785         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
7786         xzalloc to xcalloc.
7787         Suggested by Paul Eggert.
7789 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
7791         bitset: check memory allocation
7792         Reported by 江 祖铭 (Zu-Ming Jiang).
7793         With help from Paul Eggert.
7794         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
7795         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
7796         instead of realloc.
7797         When shrinking, accept failures.
7798         * lib/bitset/vector.c (vbitset_resize): Likewise.
7800 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
7802         scratch_buffer: sync from glibc
7803         * config/srclist.txt: Add the scratch_buffer source
7804         code from glibc, since these should be in sync.
7805         Autoupdate.
7807 2019-09-07  Bruno Haible  <bruno@clisp.org>
7809         doc: Update for glibc 2.30.
7810         * doc/glibc-functions/gettid.texi: New file.
7811         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
7812         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
7813         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
7814         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
7815         * doc/glibc-functions/sem_clockwait.texi: New file.
7816         * doc/glibc-functions/tgkill.texi: New file.
7817         * doc/glibc-functions/twalk_r.texi: New file.
7818         * doc/gnulib.texi: Include them.
7819         (Glibc semaphore.h): New section.
7820         * doc/pastposix-functions/h_errno.texi: Update.
7821         * doc/posix-functions/*.texi: Likewise.
7823 2019-09-06  Bruno Haible  <bruno@clisp.org>
7825         symlink tests: Avoid test failure on Linux with Lustre file system.
7826         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
7827         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
7828         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
7830 2019-09-01  Bruno Haible  <bruno@clisp.org>
7832         gitsub.sh: Add support for shallow-cloning of subdirectories.
7833         * top/gitsub.sh (func_usage): Document allowed git options with
7834         'git pull'.
7835         (func_pull): Accept GIT_OPTIONS argument.
7836         (pull): Parse git options before complaining about too many arguments.
7837         Pass the git options to func_pull.
7839 2019-08-29  Bruno Haible  <bruno@clisp.org>
7841         lock: Fix cross-compilation guesses.
7842         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
7843         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
7844         platforms.
7846 2019-08-28  Bruno Haible  <bruno@clisp.org>
7848         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
7849         Reported by Martin Storsjö <martin@martin.st> in
7850         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
7851         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
7852         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
7853         files from GCC 6 or newer, use an override through '#define', because
7854         the inline definitions in the platform's <cmath> cannot be overridden
7855         in another way.
7857 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
7859         Revert macOS INT_MULTIPLY_WRAPV patch
7860         Problem reported by Bruno Haible in:
7861         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
7862         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
7863         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
7864         Go back to working around the Clang bug on macOS.
7866 2019-08-27  Bruno Haible  <bruno@clisp.org>
7868         libtool-next-version: Fix error output.
7869         * build-aux/libtool-next-version (func_fatal_error): Fix the program
7870         name.
7872 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
7874         Speed up INT_MULTIPLY_WRAPV on macOS
7875         Assume that __builtin_mul_overflow works OK with Clang on macOS.
7876         Mattias Engdegård says it’s safe to assume the relevant library
7877         is always available there.
7878         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
7879         New temporary internal macro.
7880         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
7881         No need to work around the Clang bug on macOS.
7883 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
7885         intprops.h, verify.h: port better to clang
7886         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
7887         with Clang.  Problem reported privately by Mattias Engdegård.
7888         Also, insulate intprops.h and verify.h better against each other’s
7889         definitions of __has_builtin on non-Clang hosts.
7890         * lib/intprops.h (__has_builtin): Define a temporary substitute
7891         if __has_builtin is not already defined.
7892         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
7893         New temporary internal macros.
7894         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
7895         Now two separate macros, replacing the old
7896         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
7897         __builtin_mul_overflow is like the rest.  All uses changed.
7898         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
7899         Adjust to above changes.
7900         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
7901         longer relevant.  All uses changed.
7902         * lib/verify.h (__has_builtin): Treat like intprops.h,
7903         so that the two .h files do not collide with each other.
7904         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
7905         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
7907 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7909         intprops: say why not Clang __builtin_add_overflow
7910         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
7911         Mention Clang in comment, responding to a query from
7912         Mattias Engdegård.
7914 2019-08-24  Bruno Haible  <bruno@clisp.org>
7916         doc: Document most of the files outside of modules.
7917         * doc/gnulib.texi (Build Infrastructure Files,
7918         Release Management Files): New chapters.
7920 2019-08-24  Bruno Haible  <bruno@clisp.org>
7922         bootstrap: Keep in sync with the 'gettext' module.
7923         Reported by Assaf Gordon in
7924         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
7925         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
7926         * build-aux/po/remove-potcdate.sin: Likewise.
7928 2019-08-24  Bruno Haible  <bruno@clisp.org>
7930         crypto/gc-sha512: Add tests.
7931         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
7932         * modules/crypto/gc-sha512-tests: New file.
7934         crypto/gc-sha256: Add tests.
7935         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
7936         * modules/crypto/gc-sha256-tests: New file.
7938         crypto/gc-sha256, crypto/gc-sha512: New modules.
7939         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
7940         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
7941         (MAX_DIGEST_SIZE): Set to 64.
7942         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
7943         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
7944         (gc_sha256, gc_sha512): New functions.
7945         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
7946         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
7947         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
7949 2019-08-24  Bruno Haible  <bruno@clisp.org>
7951         crypto/gc-sha1 tests: Improve output when the test fails.
7952         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
7953         output.
7955 2019-08-24  Bruno Haible  <bruno@clisp.org>
7957         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
7958         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
7959         LIBGCRYPT_HAS_MD_SM3.
7960         * lib/gc-libgcrypt.c: Include sm3.h.
7961         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
7962         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
7963         implementation if libgcrypt does not support SM3.
7965 2019-08-24  Bruno Haible  <bruno@clisp.org>
7967         crypto/gc-md2: Optimize and clarify code.
7968         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
7969         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
7970         is not needed.
7972 2019-08-24  Bruno Haible  <bruno@clisp.org>
7974         crypto/gc-md2: Add comment.
7975         * lib/gc-libgcrypt.c: Add comment.
7977 2019-08-24  Bruno Haible  <bruno@clisp.org>
7979         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
7980         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
7981         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
7982         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
7983         variable.
7985 2019-08-24  Bruno Haible  <bruno@clisp.org>
7987         crypto/gc: Fix link error with --with-libgcrypt.
7988         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
7989         AC_LIB_HAVE_LINKFLAGS invocation.
7991 2019-08-24  Bruno Haible  <bruno@clisp.org>
7993         crypto/gc: Access the module indicators correctly.
7994         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
7995         * lib/gc-libgcrypt.c: Likewise.
7997 2019-08-24  Bruno Haible  <bruno@clisp.org>
7999         crypto/gc: Fix configuration with --with-libgcrypt.
8000         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
8001         * modules/crypto/gc (Files): Add it.
8002         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
8004 2019-08-24  Bruno Haible  <bruno@clisp.org>
8006         Remove unused file.
8007         * m4/stat-macros.m4: Remove file.
8009 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
8011         New strip-trailing-space option for srclist-update
8012         * config/srclist-update (fixfile): Support new option.
8013         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
8014         Use it.
8016 2019-08-20  Eric Blake  <eblake@redhat.com>
8018         accept4: Support SOCK_NONBLOCK, if defined
8019         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
8021         accept4: Fix compilation when native accept4() exists.
8022         Reported by Richard W.M. Jones <rjones@redhat.com> in
8023         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
8024         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
8026 2019-08-18  Bruno Haible  <bruno@clisp.org>
8028         Defeat -flto GCC optimization in math autoconf tests.
8029         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
8030         at <https://savannah.gnu.org/bugs/?56109>.
8031         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
8032         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
8033         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8034         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8035         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8036         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
8037         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8038         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
8039         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
8040         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8041         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8042         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8044 2019-08-17  Bruno Haible  <bruno@clisp.org>
8046         windows-spin: Implement declared functions.
8047         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8048         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
8049         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
8050         name.
8052 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8054         intprops: port to Oracle Developer Studio 12.6
8055         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
8056         typos that were in a section not compiled by GCC.
8058 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8060         intprops: support uchar, ushort _WRAPV dests
8061         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
8062         when __builtin_add_overflow etc. and _Generic are not used.
8063         (_GL_INT_OP_WRAPV): Use it to support destinations that
8064         are unsigned char or unsigned short, even in compilers
8065         that lack __typeof__ and are not C11-compatible.
8067         intprops: pacify picky GCC
8068         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
8069         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
8070         possibly-incorrect result.
8071         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
8072         about (A) used as a boolean, when A is an expression like 3 * 4.
8074         intprops: support unsigned *_WRAPV results
8075         Add support for unsigned, unsigned long, and unsigned long long
8076         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
8077         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
8078         bug with unsigned inputs reported by Eli Zaretskii in:
8079         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
8080         * config/srclist.txt: Break the glibc connection for intprops.h
8081         temporarily, while more testing is done in Gnulib-using apps.
8082         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
8083         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
8084         Support unsigned results no narrower than unsigned int.  Report
8085         overflow correctly if some arguments are unsigned.
8086         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
8087         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
8088         the right thing with narrow args.
8089         (_GL_INT_OP_CALC1): Remove.  All callers removed.
8090         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
8091         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
8092         * tests/test-intprops.c: Check for bugs and test new behavior.
8094 2019-08-14  Bruno Haible  <bruno@clisp.org>
8096         get_progname_of: New module.
8097         * lib/get_progname_of.h: New file.
8098         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
8099         * lib/getprogname.c (getprogname): Tweak coding style.
8100         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
8101         * modules/get_progname_of: New file.
8103 2019-08-14  Bruno Haible  <bruno@clisp.org>
8105         get_ppid_of: New module.
8106         * lib/get_ppid_of.h: New file.
8107         * lib/get_ppid_of.c: New file.
8108         * modules/get_ppid_of: New file.
8110 2019-08-13  Bruno Haible  <bruno@clisp.org>
8112         libtextstyle-optional tests: Support the NO_COLOR environment variable.
8113         * tests/test-libtextstyle.c (main): Do not emit styling when the
8114         environment variable NO_COLOR is set.
8116 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
8118         verify: improve diagnostic quality in recent GCC
8119         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
8120         useful line number containing the top-level caller of the macro.
8121         So, bring back the older way of issuing a diagnostic containing
8122         the top-level call’s arg, so that it is easier to diagnose
8123         ‘verify’ failures with recent GCC.
8124         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
8125         Bring back DIAGNOSTIC arg.  All callers changed.
8126         (verify): Just use _GL_VERIFY.
8128 2019-08-11  Bruno Haible  <bruno@clisp.org>
8130         localcharset: Add more aliases for OS/2.
8131         Based on patch by KO Myung-Hun <komh78@gmail.com> in
8132         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
8133         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
8135 2019-08-10  Eric Blake  <eblake@redhat.com>
8137         configmake: Update advice on usage.
8138         * modules/configmake (Include): No longer necessary to include
8139         last, since configmake.h itself worries about collision avoidance.
8141 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
8143         parse-datetime: fix 'T' military timezone handling
8144         * lib/parse-datetime.y (zone):
8145         follow-up to the previous commit: the 'T' case is handled outside the
8146         conversion table (used as either military timezone UTC-7 or ISO8601
8147         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
8148         timezone letters.
8150 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
8152         parse-datetime: fix military timezone letters
8153         Problem and trivial fix reported by Neil Hoggarth in:
8154         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
8155         * lib/parse-datetime.y (military_table):
8156         Do it the right way, not the RFC 822 way.
8158 2019-08-08  Eric Blake  <eblake@redhat.com>
8160         configmake: Avoid namespace pollution issue on mingw.
8161         * modules/configmake (Makefile.am): If the project uses
8162         <winsock2.h>, include that header before defining DATADIR.
8164 2019-07-28  Bruno Haible  <bruno@clisp.org>
8166         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
8167         * tests/test-mbrtowc.c (main): Fix expected value of wc.
8169 2019-07-24  Bruno Haible  <bruno@clisp.org>
8171         pthread-h: Fix definitions of types and macros on mingw.
8172         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
8173         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
8174         not in use.
8175         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
8176         'pthread-once' is not in use.
8177         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
8178         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
8179         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
8180         in use.
8181         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
8182         Define also when module 'pthread-rwlock' is not in use.
8183         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
8184         also when module 'pthread-cond' is not in use.
8185         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
8186         'pthread-tss' is not in use.
8187         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
8188         use.
8190 2019-07-24  Simon Josefsson  <simon@josefsson.org>
8192         crypto/gc: Cope with libgcrypt without SM3.
8193         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
8195 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
8197         backupfile: fix resource leak on memory failure
8198         Problem found by Coverity (CID 1484214).
8199         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
8201 2019-07-22  Bruno Haible  <bruno@clisp.org>
8203         Avoid missing-declarations warning in various tests.
8204         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
8205         test6, test_optional, test7, test8, test9, test10, test11, test12,
8206         test13, test14, test15, test_fun): Declare static.
8207         * tests/test-cnd.c (test_cnd_wait): Likewise.
8208         * tests/test-cond.c (test_cond): Likewise.
8210 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
8212         pthread tests: Avoid missing-declarations warning.
8213         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
8215 2019-07-19  Bruno Haible  <bruno@clisp.org>
8217         parse-datetime: Avoid warnings from bison versions >= 3.3.
8218         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
8219         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
8221 2019-07-19  Bruno Haible  <bruno@clisp.org>
8223         parse-datetime: Require Bison 2.4 or newer.
8224         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
8225         Code taken from gettext's intl.m4.
8226         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
8227         of YACC.
8229 2019-07-19  Bruno Haible  <bruno@clisp.org>
8231         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
8232         * lib/areadlink-with-size.c: Include <string.h>.
8233         * lib/areadlinkat-with-size.c: Likewise.
8234         * lib/xgethostname.c: Likewise.
8235         * lib/xgetdomainname.c: Likewise.
8237 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
8239         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
8240         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
8241         "%pure-parser".  The former is available since Bison 2.3b (2008),
8242         while the latter is marked as obsolete since version 3.4 (May 2019).
8244 2019-07-16  Bruno Haible  <bruno@clisp.org>
8246         update-copyright: Make it work again (regression from 2019-06-15).
8247         Reported by Brian C. Lane <bcl@redhat.com>.
8248         * build-aux/update-copyright: Add back the -0777, -p, -i options.
8250 2019-07-14  Bruno Haible  <bruno@clisp.org>
8252         doc: Update info about <pthread.h>.
8253         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
8254         of 'pthread'.
8256 2019-07-14  Bruno Haible  <bruno@clisp.org>
8258         pthread_sigmask tests: Use new multithread modules.
8259         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
8260         glthread/thread.h.
8261         (main_thread, killer_thread): Change type to pthread_t.
8262         (main): Update accordingly.
8263         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
8264         thread.
8266 2019-07-14  Bruno Haible  <bruno@clisp.org>
8268         pthread-tss: Add tests.
8269         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
8270         tests/test-tss.c.
8271         * modules/pthread-tss-tests: New file.
8273 2019-07-14  Bruno Haible  <bruno@clisp.org>
8275         pthread-cond: Add tests.
8276         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
8277         tests/test-cnd.c.
8278         * modules/pthread-cond-tests: New file.
8280 2019-07-14  Bruno Haible  <bruno@clisp.org>
8282         pthread-rwlock: Add tests.
8283         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
8284         * modules/pthread-rwlock-tests: New file.
8286 2019-07-14  Bruno Haible  <bruno@clisp.org>
8288         pthread-mutex: Add tests.
8289         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
8290         tests/test-mtx.c.
8291         * modules/pthread-mutex-tests: New file.
8293 2019-07-14  Bruno Haible  <bruno@clisp.org>
8295         pthread-once: Add tests.
8296         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
8297         tests/test-call_once.c.
8298         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
8299         tests/test-mtx.c.
8300         * modules/pthread-once-tests: New file.
8302 2019-07-14  Bruno Haible  <bruno@clisp.org>
8304         pthread-thread: Add tests.
8305         * tests/test-pthread-thread.c: New file, based on
8306         tests/test-thread_create.c and tests/test-thrd_create.c.
8307         * modules/pthread-thread-tests: New file.
8309 2019-07-14  Bruno Haible  <bruno@clisp.org>
8311         pthread: Turn into a convenience module.
8312         * lib/pthread.in.h: Remove declarations for extern inline functions.
8313         * lib/pthread.c: Remove file.
8314         * modules/pthread (Files): Remove it.
8315         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
8316         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
8317         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
8318         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
8319         GNULIB_PTHREAD.
8320         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
8322 2019-07-14  Bruno Haible  <bruno@clisp.org>
8324         pthread-spin: New module.
8325         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
8326         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
8327         inline definitions.
8328         * lib/pthread-spin.c: New file.
8329         * m4/pthread-spin.m4: New file.
8330         * modules/pthread-spin: New file.
8331         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
8332         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
8333         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
8334         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
8335         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
8337 2019-07-14  Bruno Haible  <bruno@clisp.org>
8339         pthread-tss: New module.
8340         * lib/pthread-tss.c: New file.
8341         * m4/pthread-tss.m4: New file.
8342         * modules/pthread-tss: New file.
8343         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
8344         * doc/posix-functions/pthread_setspecific.texi: Likewise.
8345         * doc/posix-functions/pthread_getspecific.texi: Likewise.
8346         * doc/posix-functions/pthread_key_delete.texi: Likewise.
8348 2019-07-14  Bruno Haible  <bruno@clisp.org>
8350         pthread-cond: New module.
8351         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
8352         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
8353         * lib/pthread-cond.c: New file.
8354         * m4/pthread-cond.m4: New file.
8355         * modules/pthread-cond: New file.
8356         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
8357         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
8358         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
8359         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
8360         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
8361         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
8362         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
8363         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
8365 2019-07-14  Bruno Haible  <bruno@clisp.org>
8367         pthread-rwlock: New module.
8368         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
8369         * m4/pthread-rwlock.m4: New file.
8370         * modules/pthread-rwlock: New file.
8371         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
8372         and the Android problem.
8373         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
8374         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
8375         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
8376         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
8377         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
8378         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
8379         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
8380         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
8381         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
8382         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
8384 2019-07-14  Bruno Haible  <bruno@clisp.org>
8386         pthread-mutex: New module.
8387         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
8388         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
8389         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
8390         pthread_mutex_unlock): Remove inline definitions.
8391         * lib/pthread-mutex.c: New file.
8392         * m4/pthread-mutex.m4: New file.
8393         * modules/pthread-mutex: New file.
8394         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
8395         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
8396         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
8397         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
8398         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8399         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8400         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
8401         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
8402         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
8403         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
8404         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
8405         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
8407 2019-07-14  Bruno Haible  <bruno@clisp.org>
8409         pthread-once: New module.
8410         * lib/pthread-once.c: New file.
8411         * m4/pthread-once.m4: New file.
8412         * modules/pthread-once: New file.
8413         * doc/posix-functions/pthread_once.texi: Mention the new module.
8415 2019-07-14  Bruno Haible  <bruno@clisp.org>
8417         pthread-thread: New module.
8418         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
8419         inline definitions.
8420         * lib/pthread-thread.c: New file.
8421         * m4/pthread-thread.m4: New file.
8422         * modules/pthread-thread: New file.
8423         * doc/posix-functions/pthread_create.texi: Mention the new module.
8424         * doc/posix-functions/pthread_attr_init.texi: Likewise.
8425         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
8426         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
8427         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
8428         * doc/posix-functions/pthread_self.texi: Likewise.
8429         * doc/posix-functions/pthread_equal.texi: Likewise.
8430         * doc/posix-functions/pthread_detach.texi: Likewise.
8431         * doc/posix-functions/pthread_join.texi: Likewise.
8432         * doc/posix-functions/pthread_exit.texi: Likewise.
8434 2019-07-14  Bruno Haible  <bruno@clisp.org>
8436         pthread-h: Prepare for adding new modules.
8437         * lib/pthread.in.h: Define the types and macros for each of the
8438         facilities separately.
8439         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
8440         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8441         HAVE_PTHREAD_PROCESS_SHARED.
8442         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
8443         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8444         HAVE_PTHREAD_PROCESS_SHARED.
8445         * modules/pthread-h (Makefile.am): Substitute
8446         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
8447         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
8449 2019-07-14  Bruno Haible  <bruno@clisp.org>
8451         pthread-h: Add declarations of essential pthread functions.
8452         * lib/pthread.in.h: Include snippets.
8453         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
8454         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
8455         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
8456         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
8457         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
8458         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
8459         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
8460         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
8461         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
8462         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
8463         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
8464         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
8465         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
8466         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
8467         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
8468         pthread_key_create, pthread_setspecific, pthread_getspecific,
8469         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
8470         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
8471         declarations.
8472         (pthread_mutex_timedlock): Move declaration.
8473         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
8474         declared.
8475         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
8476         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
8477         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
8478         HAVE_* and REPLACE_* variables for the new functions.
8479         * modules/pthread-h (Depends-on): Add snippet/c++defs,
8480         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
8481         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
8482         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
8483         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
8484         variables for the new functions. Split the sed script, to avoid the
8485         limit of 99 commands of HP-UX sed.
8486         * tests/test-pthread-c++.cc: Check the signature of the new functions.
8488 2019-07-14  Bruno Haible  <bruno@clisp.org>
8490         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
8491         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
8492         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
8493         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
8494         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
8495         * modules/pthread-h (Depends-on): Add threadlib.
8496         (Link): Change to $(LIBTHREAD).
8497         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
8498         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
8500 2019-07-14  Bruno Haible  <bruno@clisp.org>
8502         pthread-h: Add C++ tests.
8503         * tests/test-pthread-c++.cc: New file.
8504         * modules/pthread-h-c++-tests: New file.
8506 2019-07-14  Bruno Haible  <bruno@clisp.org>
8508         pthread-h: Add tests.
8509         * tests/test-pthread.c: New file.
8510         * modules/pthread-h-tests: New file.
8512 2019-07-14  Bruno Haible  <bruno@clisp.org>
8514         pthread-h: New module.
8515         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
8516         is 1.
8517         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
8518         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
8519         <pthread.h> pollutes the namespace; instead, prepare for generating a
8520         pthread.h always. Substitute HAVE_PTHREAD_H here.
8521         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
8522         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
8523         * modules/pthread-h: New file, based on modules/pthread.
8524         * modules/pthread: Rely on 'pthread-h'.
8525         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
8526         Update.
8527         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
8528         pthread.
8530 2019-07-14  Bruno Haible  <bruno@clisp.org>
8532         sched_yield: New module.
8533         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
8534         (sched_yield): New declaration.
8535         * lib/sched_yield.c: New file.
8536         * m4/sched_yield.m4: New file.
8537         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
8538         provide a replacement sched.h always. Test whether sched_yield is
8539         declared.
8540         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
8541         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
8542         (Makefile.am): Provide a replacement sched.h always. Substitute
8543         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
8544         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
8545         * modules/sched_yield: New file.
8546         * doc/posix-functions/sched_yield.texi: Mention the new module.
8548 2019-07-14  Bruno Haible  <bruno@clisp.org>
8550         windows-spin: New module.
8551         * lib/windows-spin.h: New file.
8552         * lib/windows-spin.c: New file.
8553         * modules/windows-spin: New file.
8555 2019-07-14  Bruno Haible  <bruno@clisp.org>
8557         windows-timedrwlock: New module.
8558         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
8559         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
8560         windows-cond.c.
8561         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
8562         redefinition conflict with windows-timedrwlock.h.
8563         * modules/windows-timedrwlock: New file.
8565 2019-07-14  Bruno Haible  <bruno@clisp.org>
8567         windows-rwlock: New module.
8568         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
8569         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
8570         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
8571         windows-initguard.h.
8572         (gl_rwlock_t): Define using glwthread_rwlock_t.
8573         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
8574         (glthread_rwlock_init): Define using glwthread_rwlock_init.
8575         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
8576         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
8577         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
8578         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
8579         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
8580         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
8581         glthread_rwlock_destroy_func): Remove declarations.
8582         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
8583         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
8584         gl_waitqueue_notify_all, glthread_rwlock_init_func,
8585         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
8586         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
8587         functions.
8588         * modules/windows-rwlock: New file.
8589         * modules/lock (Depends-on): Add windows-rwlock.
8591 2019-07-14  Bruno Haible  <bruno@clisp.org>
8593         windows-thread: Add support for creating a thread in detached state.
8594         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
8595         (glwthread_thread_create): Add attr argument.
8596         * lib/windows-thread.c (glwthread_thread_create): Likewise.
8597         * lib/glthread/thread.h (glthread_create): Update.
8598         * lib/thrd.c (thrd_create): Update.
8600 2019-07-14  Bruno Haible  <bruno@clisp.org>
8602         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
8603         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
8604         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
8605         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
8606         * lib/windows-mutex.h: Update.
8607         * lib/windows-recmutex.h: Likewise.
8608         * lib/windows-timedmutex.h: Likewise.
8609         * lib/windows-timedrecmutex.h: Likewise.
8610         * lib/windows-cond.h: Likewise.
8611         * lib/glthread/lock.h: Likewise.
8612         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
8613         lib/windows-spinlock.h.
8614         * modules/windows-recmutex (Files): Likewise.
8615         * modules/windows-timedmutex (Files): Likewise.
8616         * modules/windows-timedrecmutex (Files): Likewise.
8617         * modules/windows-cond (Files): Likewise.
8618         * modules/threads-h (Files): Likewise.
8620 2019-07-14  Bruno Haible  <bruno@clisp.org>
8622         doc: Fix info about pthread API in HP-UX.
8623         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
8625 2019-07-14  Bruno Haible  <bruno@clisp.org>
8627         threads-h: Fix generation of threads.h.
8628         * modules/threads-h (Makefile.am): Insert the required header file
8629         snippets.
8631 2019-07-09  Bruno Haible  <bruno@clisp.org>
8633         striconveh test: Fix a compilation failure when iconv is not available.
8634         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8635         * tests/test-striconveh.c (main): Move iconv_close invocations inside
8636         HAVE_ICONV.
8638 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
8640         argmatch: adjust columns for help2man.
8641         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
8642         requires column 20 or more, return 20.
8644 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8646         areadlink-with-size: avoid realloc when size==0
8647         * lib/areadlink-with-size.c (areadlink_with_size):
8648         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
8649         Reallocate at the end to the actual size, to avoid memory waste,
8650         as suggested by Bruno Haible.  But when the guessed size is zero -
8651         useful when the size is unknown - do the initial small readlink
8652         into the stack, to avoid that realloc in the usual case.
8654 2019-07-06  Pádraig Brady  <P@draigBrady.com>
8656         areadlink-with-size: guess a buffer size with 0 size
8657         The size is usually taken from st_size, which can be zero,
8658         resulting in inefficient operation.
8659         Instead let zero select an initial memory allocation
8660         of 128 bytes, which most symlinks fit within.
8661         * lib/areadlink-with-size.c (areadlink_with_size):
8662         Start with a 128 byte buffer, for SIZE == 0.
8663         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
8665 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
8667         Replace manually crafted hex regexes with [:xdigit:]
8668         * build-aux/gitlog-to-changelog (parse_amend_file)
8669         (git_dir_option):
8670         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
8671         This patch is backported from Emacs (Bug#36167).
8673 2019-07-06  Bruno Haible  <bruno@clisp.org>
8675         error: Fix documentation.
8676         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
8677         module provides.
8678         * doc/glibc-functions/error_message_count.texi: Likewise.
8679         * doc/glibc-functions/error_one_per_line.texi: Likewise.
8680         * doc/glibc-functions/error_print_progname.texi: Likewise.
8682 2019-07-06  Bruno Haible  <bruno@clisp.org>
8684         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
8685         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
8686         and older is unsupported.
8687         * doc/**/*.texi: Update.
8689 2019-07-06  Bruno Haible  <bruno@clisp.org>
8691         doc: Remove documentation of Linux libc5 as a supported platform.
8692         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
8693         to Linux libc5.
8694         * doc/posix-functions/iswalpha.texi: Likewise.
8695         * doc/posix-functions/iswblank.texi: Likewise.
8696         * doc/posix-functions/iswcntrl.texi: Likewise.
8697         * doc/posix-functions/iswdigit.texi: Likewise.
8698         * doc/posix-functions/iswgraph.texi: Likewise.
8699         * doc/posix-functions/iswlower.texi: Likewise.
8700         * doc/posix-functions/iswprint.texi: Likewise.
8701         * doc/posix-functions/iswpunct.texi: Likewise.
8702         * doc/posix-functions/iswspace.texi: Likewise.
8703         * doc/posix-functions/iswupper.texi: Likewise.
8704         * doc/posix-functions/iswxdigit.texi: Likewise.
8705         * doc/posix-functions/snprintf.texi: Likewise.
8706         * doc/posix-functions/vsnprintf.texi: Likewise.
8708 2019-07-06  Bruno Haible  <bruno@clisp.org>
8710         doc: Remove documentation of Tandem/NSK as a supported platform.
8711         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
8712         Tandem/NSK.
8713         * doc/**/*.texi: Update.
8715 2019-07-06  Bruno Haible  <bruno@clisp.org>
8717         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
8718         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
8719         and older is unsupported.
8720         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
8721         Mac OS X 10.4 and older.
8722         * doc/posix-functions/asinl.texi: Likewise.
8723         * doc/posix-functions/atanl.texi: Likewise.
8724         * doc/posix-functions/cosl.texi: Likewise.
8725         * doc/posix-functions/expl.texi: Likewise.
8726         * doc/posix-functions/frexpl.texi: Likewise.
8727         * doc/posix-functions/gettimeofday.texi: Likewise.
8728         * doc/posix-functions/logl.texi: Likewise.
8729         * doc/posix-functions/mkstemp.texi: Likewise.
8730         * doc/posix-functions/sinl.texi: Likewise.
8731         * doc/posix-functions/sqrtl.texi: Likewise.
8732         * doc/posix-functions/tanl.texi: Likewise.
8733         * doc/posix-functions/wcswidth.texi: Likewise.
8734         * doc/**/*.texi: Update.
8736 2019-07-06  Bruno Haible  <bruno@clisp.org>
8738         doc: Remove documentation of AIX 4 as a supported platform.
8739         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
8740         unsupported.
8741         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
8742         workarounds.
8743         * doc/posix-functions/strnlen.texi: Likewise.
8744         * doc/posix-headers/inttypes.texi: Likewise.
8745         * doc/**/*.texi: Update.
8747 2019-07-06  Bruno Haible  <bruno@clisp.org>
8749         doc: Remove documentation of HP-UX 10 as a supported platform.
8750         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
8751         unsupported.
8752         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
8753         workarounds.
8754         * doc/posix-functions/gmtime_r.texi: Likewise.
8755         * doc/posix-functions/localtime_r.texi: Likewise.
8756         * doc/posix-functions/mkstemp.texi: Likewise.
8757         * doc/**/*.texi: Update.
8759 2019-07-06  Bruno Haible  <bruno@clisp.org>
8761         doc: Remove documentation of Interix 3.5 as a supported platform.
8762         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
8763         unsupported.
8764         * doc/posix-functions/select.texi: Don't mention Interix specific
8765         workarounds.
8766         * doc/posix-headers/signal.texi: Likewise.
8767         * doc/**/*.texi: Update.
8769 2019-07-06  Bruno Haible  <bruno@clisp.org>
8771         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
8772         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
8773         unsupported.
8774         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
8775         workarounds.
8776         * doc/posix-functions/nl_langinfo.texi: Likewise.
8777         * doc/posix-functions/remainder.texi: Likewise.
8778         * doc/posix-functions/towlower.texi: Likewise.
8779         * doc/posix-functions/towupper.texi: Likewise.
8780         * doc/posix-functions/vsnprintf.texi: Likewise.
8781         * doc/posix-functions/wcscat.texi: Likewise.
8782         * doc/posix-functions/wcschr.texi: Likewise.
8783         * doc/posix-functions/wcscmp.texi: Likewise.
8784         * doc/posix-functions/wcscpy.texi: Likewise.
8785         * doc/posix-functions/wcscspn.texi: Likewise.
8786         * doc/posix-functions/wcslen.texi: Likewise.
8787         * doc/posix-functions/wcsncat.texi: Likewise.
8788         * doc/posix-functions/wcsncmp.texi: Likewise.
8789         * doc/posix-functions/wcsncpy.texi: Likewise.
8790         * doc/posix-functions/wcspbrk.texi: Likewise.
8791         * doc/posix-functions/wcsrchr.texi: Likewise.
8792         * doc/posix-functions/wcsspn.texi: Likewise.
8793         * doc/posix-headers/langinfo.texi: Likewise.
8794         * doc/posix-headers/signal.texi: Likewise.
8795         * doc/posix-headers/wchar.texi: Likewise.
8796         * doc/posix-headers/wctype.texi: Likewise.
8797         * doc/**/*.texi: Update.
8799 2019-07-05  Bruno Haible  <bruno@clisp.org>
8801         doc: Remove documentation of OSF/1 as supported platform.
8802         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
8803         unsupported.
8804         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
8805         workarounds.
8806         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
8807         * doc/glibc-functions/ptsname_r.texi: Likewise.
8808         * doc/posix-functions/ceil.texi: Likewise.
8809         * doc/posix-functions/ceilf.texi: Likewise.
8810         * doc/posix-functions/ceill.texi: Likewise.
8811         * doc/posix-functions/fchdir.texi: Likewise.
8812         * doc/posix-functions/floor.texi: Likewise.
8813         * doc/posix-functions/floorf.texi: Likewise.
8814         * doc/posix-functions/fmod.texi: Likewise.
8815         * doc/posix-functions/fmodf.texi: Likewise.
8816         * doc/posix-functions/fmodl.texi: Likewise.
8817         * doc/posix-functions/log.texi: Likewise.
8818         * doc/posix-functions/logf.texi: Likewise.
8819         * doc/posix-functions/logl.texi: Likewise.
8820         * doc/posix-functions/log10.texi: Likewise.
8821         * doc/posix-functions/log10f.texi: Likewise.
8822         * doc/posix-functions/log10l.texi: Likewise.
8823         * doc/posix-functions/log2.texi: Likewise.
8824         * doc/posix-functions/log2f.texi: Likewise.
8825         * doc/posix-functions/log2l.texi: Likewise.
8826         * doc/posix-functions/mbrtowc.texi: Likewise.
8827         * doc/posix-functions/recv.texi: Likewise.
8828         * doc/posix-functions/recvfrom.texi: Likewise.
8829         * doc/posix-functions/remainder.texi: Likewise.
8830         * doc/posix-functions/remainderf.texi: Likewise.
8831         * doc/posix-functions/remainderl.texi: Likewise.
8832         * doc/posix-functions/round.texi: Likewise.
8833         * doc/posix-functions/roundf.texi: Likewise.
8834         * doc/posix-functions/roundl.texi: Likewise.
8835         * doc/posix-functions/send.texi: Likewise.
8836         * doc/posix-functions/sendto.texi: Likewise.
8837         * doc/posix-functions/setenv.texi: Likewise.
8838         * doc/posix-functions/snprintf.texi: Likewise.
8839         * doc/posix-functions/tcgetsid.texi: Likewise.
8840         * doc/posix-functions/trunc.texi: Likewise.
8841         * doc/posix-functions/truncf.texi: Likewise.
8842         * doc/posix-functions/truncl.texi: Likewise.
8843         * doc/posix-functions/ttyname_r.texi: Likewise.
8844         * doc/posix-functions/unsetenv.texi: Likewise.
8845         * doc/posix-functions/wcsrtombs.texi: Likewise.
8846         * doc/posix-headers/sys_select.texi: Likewise.
8847         * doc/posix-headers/wchar.texi: Likewise.
8848         * doc/posix-headers/wctype.texi: Likewise.
8849         * doc/**/*.texi: Update.
8851 2019-07-05  Bruno Haible  <bruno@clisp.org>
8853         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
8854         * doc/**/*.texi: Update.
8856 2019-07-05  Bruno Haible  <bruno@clisp.org>
8858         doc: Remove documentation of Solaris 8 and older as supported platforms.
8859         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
8860         unsupported.
8861         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
8862         workarounds.
8863         * doc/posix-functions/memcmp.texi: Likewise.
8864         * doc/posix-functions/rename.texi: Likewise.
8865         * doc/posix-functions/tzset.texi: Likewise.
8866         * doc/posix-headers/wctype.texi: Likewise.
8867         * doc/**/*.texi: Update.
8869 2019-07-05  Bruno Haible  <bruno@clisp.org>
8871         doc: Remove documentation of Interix 3.5 as a supported platform.
8872         * doc/**/*.texi: Update.
8874 2019-07-05  Bruno Haible  <bruno@clisp.org>
8876         doc: Remove documentation of BeOS as a supported platform.
8877         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
8878         unsupported.
8879         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
8880         * doc/posix-functions/getdelim.texi: Likewise.
8881         * doc/**/*.texi: Update.
8883 2019-07-05  Bruno Haible  <bruno@clisp.org>
8885         thread, lock, cond, tls: Remove support for Pth threads.
8886         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
8887         --enable-threads=pth any more.
8888         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
8889         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
8890         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
8891         threads and ISO C11 threads.
8892         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
8893         * lib/glthread/lock.h: Likewise.
8894         * lib/glthread/lock.c: Likewise.
8895         * lib/glthread/cond.h: Likewise.
8896         * lib/glthread/cond.c: Likewise.
8897         * lib/glthread/tls.h: Likewise.
8898         * lib/glthread/tls.c: Likewise.
8899         * lib/glthread/yield.h: Likewise.
8900         * lib/regex_internal.h: Likewise.
8901         * tests/test-thread_create.c: Likewise.
8902         * tests/test-lock.c: Likewise.
8903         * tests/test-cond.c: Likewise.
8904         * tests/test-tls.c: Likewise.
8905         * tests/test-rwlock1.c: Don't include glthread/yield.h.
8906         (main): Sleep without calling gl_thread_yield.
8908 2019-07-05  Bruno Haible  <bruno@clisp.org>
8910         thread, lock, cond, tls: Remove support for old Solaris threads.
8911         Solaris >= 2.5.1 has POSIX threads.
8912         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
8913         --enable-threads=solaris any more.
8914         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
8915         * lib/glthread/thread.c: Update comment.
8916         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
8917         * lib/glthread/lock.h: Likewise.
8918         * lib/glthread/lock.c: Likewise.
8919         * lib/glthread/cond.h: Likewise.
8920         * lib/glthread/cond.c: Likewise.
8921         * lib/glthread/tls.h: Likewise.
8922         * lib/glthread/tls.c: Likewise.
8923         * lib/glthread/yield.h: Likewise.
8924         * lib/regex_internal.h: Likewise.
8925         * tests/test-thread_create.c: Likewise.
8926         * tests/test-lock.c: Likewise.
8927         * tests/test-cond.c: Likewise.
8928         * tests/test-tls.c: Likewise.
8930 2019-07-05  Bruno Haible  <bruno@clisp.org>
8932         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
8933         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
8934         needed size is equal to the allocated size.
8935         * lib/getcwd.c (__getcwd): Likewise.
8937 2019-07-05  Bruno Haible  <bruno@clisp.org>
8939         xgetdomainname: Don't return an excessive memory allocation.
8940         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
8941         before returning it.
8943 2019-07-05  Bruno Haible  <bruno@clisp.org>
8945         xgethostname: Don't return an excessive memory allocation.
8946         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
8947         returning it.
8949 2019-07-05  Bruno Haible  <bruno@clisp.org>
8951         areadlinkat-with-size: Don't return an excessive memory allocation.
8952         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
8953         before returning it.
8955 2019-07-05  Bruno Haible  <bruno@clisp.org>
8957         areadlink-with-size: Don't return an excessive memory allocation.
8958         Reported by Andreas Dilger <adilger@whamcloud.com>.
8959         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
8960         before returning it.
8962 2019-07-03  Bruno Haible  <bruno@clisp.org>
8964         renameatu: Fix test failure on MSVC.
8965         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
8966         empty string.
8968 2019-07-03  Bruno Haible  <bruno@clisp.org>
8970         mbrtowc: Fix invalid use of mbtowc() on MSVC.
8971         * lib/mbrtowc.c: Include glthread/lock.h.
8972         (mbtowc_lock): New variable.
8973         (mbrtowc): Treat UTF-8 encoding without locking. For the other
8974         encodings, explicitly reset the internal state of mbtowc, and protect
8975         this through a lock.
8976         * modules/mbrtowc (Depends-on): Add lock.
8978 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
8980         argmatch: don't define _ in the header.
8981         Reported by Jim Meyering.
8982         * lib/argmatch.h (N_, _): Don't define.
8983         Use gettext instead.
8984         * lib/argmatch.h (_): Define.
8985         * tests/test-argmatch.c (N_): Define.
8987 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
8989         verify: document ‘assume’ better
8990         * lib/verify.h: Reword doc (Bug#36370).
8992 2019-07-02  Bruno Haible  <bruno@clisp.org>
8994         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
8995         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
8996         "CPutf8".
8997         * lib/nl_langinfo.c (ctype_codeset): Likewise.
8999 2019-07-02  Bruno Haible  <bruno@clisp.org>
9001         getcwd: Fix crash when invoked with size = 0 on MSVC.
9002         * lib/getcwd.c: Include msvc-inval.h.
9003         (getcwd_nothrow): New function/macro.
9004         (getcwd_system): New macro.
9005         (__getcwd): Use it instead of getcwd.
9006         * modules/getcwd (Depends-on): Add msvc-inval.
9007         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
9009 2019-07-02  Bruno Haible  <bruno@clisp.org>
9011         nonblocking-pipe tests: Fix test failure on MSVC.
9012         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
9013         native Windows.
9015 2019-07-02  Bruno Haible  <bruno@clisp.org>
9017         usleep: Implement with millisecond resolution on native Windows.
9018         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
9019         * doc/pastposix-functions/usleep.texi: Update accordingly.
9021 2019-07-02  Bruno Haible  <bruno@clisp.org>
9023         lstat tests: Fix test failure on MSVC.
9024         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
9025         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9027 2019-07-02  Bruno Haible  <bruno@clisp.org>
9029         stat tests: Fix test failure on MSVC.
9030         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
9031         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9033 2019-07-02  Bruno Haible  <bruno@clisp.org>
9035         getaddrinfo tests: Fix test failure on MSVC.
9036         * tests/test-getaddrinfo.c: Include sockets.h.
9037         (main): Invoke gl_sockets_startup.
9038         * modules/getaddrinfo-tests (Depends-on): Add sockets.
9040 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
9042         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
9043         * lib/poll.c: Call Windows native select() with Windows native timeval.
9045 2019-06-30  Bruno Haible  <bruno@clisp.org>
9047         argmatch: Fix compilation errors.
9048         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
9049         * tests/test-argmatch.c (main): Update after last-minute function names
9050         change.
9052 2019-06-30  Bruno Haible  <bruno@clisp.org>
9054         Include <stdlib.h> when needed.
9055         * lib/cnd.c: Include <stdlib.h>, needed for abort().
9056         * lib/fcntl.c: Likewise.
9057         * lib/mbscasestr.c: Likewise.
9058         * lib/mbssep.c: Likewise.
9059         * lib/mbsstr.c: Likewise.
9060         * lib/openat.c: Include <stdlib.h>, needed for free().
9061         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
9062         abort().
9064 2019-06-30  Bruno Haible  <bruno@clisp.org>
9066         Include <stdlib.h> when needed.
9067         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
9068         * lib/faccessat.c: Likewise.
9069         * lib/fchmodat.c: Likewise.
9070         * lib/fchownat.c: Likewise.
9071         * lib/fstatat.c: Likewise.
9072         * lib/mkfifoat.c: Likewise.
9073         * lib/mknodat.c: Likewise.
9074         * lib/readlinkat.c: Likewise.
9075         * lib/symlinkat.c: Likewise.
9076         * lib/utimensat.c: Likewise.
9077         * lib/mkdirat.c: Likewise. Include also the specification header.
9079 2019-06-30  Bruno Haible  <bruno@clisp.org>
9081         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
9082         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
9083         from gl_PREREQ_SYS_H_SOCKET.
9084         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
9085         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
9086         gl_PREREQ_SYS_H_WS2TCPIP.
9087         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
9088         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
9089         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
9091 2019-06-30  Bruno Haible  <bruno@clisp.org>
9093         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
9094         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
9095         REPLACE_INET_NTOP to 1 always.
9096         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
9097         REPLACE_INET_PTON to 1 always.
9099 2019-06-30  Bruno Haible  <bruno@clisp.org>
9101         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
9102         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
9103         not REPLACE_INET_NTOP.
9105 2019-06-30  Bruno Haible  <bruno@clisp.org>
9107         poll: Add comment.
9108         * lib/poll.c: Add comment about WSAPoll.
9110 2019-06-30  Bruno Haible  <bruno@clisp.org>
9112         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
9113         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
9114         * lib/poll.in.h: Include <winsock2.h>.
9115         (POLL*, pollfd): Override on native Windows.
9116         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9117         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
9118         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9120 2019-06-28  Bruno Haible  <bruno@clisp.org>
9122         accept4: Fix compilation error on OpenIndiana.
9123         Reported by Michal Nowak <mnowak@startmail.com>
9124         via Mark H Weaver <mhw@netris.org>.
9125         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
9126         whether it exists as a function.
9128 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
9130         strverscmp: sync from glibc
9131         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
9132         comments, include libc-config.h, define __strverscmp to be
9133         strverscmp, and don’t assume types line uint8_t and int8_t that
9134         that C99 doesn’t guarantee.
9135         [!_LIBC]: Include libc-config.h; define __strverscmp.
9136         Include stdint.h.
9137         (__strverscmp): Assume C99.  Use uint_least8_t
9138         and int_least8_t instead of unsigned char and signed char.
9139         * modules/strverscmp (Depends-on): Add libc-config, stdint.
9141 2019-06-25  Bruno Haible  <bruno@clisp.org>
9143         tss tests: Add tests for destructors and races.
9144         * tests/test-tss.c (worker_thread): Fix typo in debug message.
9145         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
9146         functions.
9147         (main): Invoke them.
9148         * modules/tls-tests (Depends-on): Add mtx.
9150 2019-06-25  Bruno Haible  <bruno@clisp.org>
9152         tls tests: Add tests for destructors and races.
9153         * tests/test-tls.c: Include glthread/lock.h.
9154         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
9155         functions.
9156         (main): Invoke them.
9157         * modules/tls-tests (Depends-on): Add lock.
9159 2019-06-25  Bruno Haible  <bruno@clisp.org>
9161         windows-tls: Implement TLS key destructors for native Windows.
9162         * lib/windows-tls.h (glwthread_tls_process_destructors): New
9163         declaration.
9164         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
9165         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
9166         (dtor_table_init_once, dtor_table_lock: New variables.
9167         (struct dtor): New type.
9168         (dtor_table, dtors_count, dtors_used, dtors_allocated,
9169         dtor_processing_threads): New variables.
9170         (dtor_table_initialize, dtor_table_ensure_initialized,
9171         dtor_table_shrink_used, glwthread_tls_process_destructors): New
9172         functions.
9173         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
9174         handle non-NULL destructors.
9175         * modules/windows-tls (Depends-on): Add windows-once.
9176         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
9177         Use the functions declared in windows-tls.h.
9178         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
9179         GLWTHREAD_DESTRUCTOR_ITERATIONS.
9180         * lib/windows-thread.c: Include windows-tls.h.
9181         (wrapper_func, glwthread_thread_exit): Invoke
9182         glwthread_tls_process_destructors.
9183         * modules/windows-thread (Depends-on): Add windows-tls.
9185 2019-06-25  Bruno Haible  <bruno@clisp.org>
9187         threadlib: Avoid autoconf warning "was expanded before it was required".
9188         * modules/threadlib (configure.ac): Require gl_THREADLIB.
9190 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
9192         argmatch: remove duplicate const qualifier
9193         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
9195 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9197         unistd: stddef.h and sys/types.h namespace cleanup
9198         * lib/unistd.in.h [__GLIBC__]:
9199         Do not include stddef.h or sys/types.h.
9200         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
9201         supposed to declare off_t and ssize_t.  Problem found when looking
9202         at why @GNULIB_PWRITE@ was different from the newly-added
9203         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
9205 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9207         maintainer-makefile: restore portability to non-GNU awks
9208         Reported by Tim Rühsen.
9209         * top/maint.mk (AWK): New variable.  Use it.
9210         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
9212 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9214         Document setvbuf _IOLBF problem
9215         * doc/posix-functions/setvbuf.texi (setvbuf):
9216         Document MS-Windows portability problem with _IOLBF.
9218         Document lseek SEEK_DATA/SEEK_HOLE
9219         * doc/posix-functions/lseek.texi (lseek):
9220         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
9222 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9224         argmatch: put all the docs member last.
9225         Reported by Bruno Haible.
9226         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
9227         member before the docs done.
9228         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
9230 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
9232         argmatch: add support to generate the usage message.
9233         * lib/argmatch.c: Move some #includes and gettext support to...
9234         * lib/argmatch.h: here.
9235         (ARGMATCH_DEFINE_GROUP): New macro.
9236         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
9237         (argmatch_backup_group): New.
9238         (CHECK): New.
9239         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
9240         argmatch_backup_argument and argmatch_backup_usage.
9241         * modules/argmatch: We depend on c99.
9242         * doc/argmatch.texi (Recognizing Option Arguments): New.
9243         * doc/gnulib.texi: Use it.
9245 2019-06-21  Bruno Haible  <bruno@clisp.org>
9247         thrd: Add comment.
9248         * lib/thrd.c (pthread_main_func): Add comment.
9250 2019-06-21  Bruno Haible  <bruno@clisp.org>
9252         threads-h: Define 'thread_local' if and only if it actually works.
9253         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
9254         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
9255         Oracle Solaris Studio C. Compile a simple program, to see whether
9256         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
9257         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
9258         * lib/threads.in.h (thread_local): Undefine if it does not work.
9259         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
9260         (Link): Mention LIBTHREADLOCAL.
9261         * tests/test-threads.c: Don't check that thread_local is defined.
9262         * tests/test-thread_local.c: New file.
9263         * modules/threads-h-tests (Files): Add it and macros.h.
9264         (Depends-on): Add thrd and stdint.
9265         (configure.ac): Test whether 'alarm' is declared.
9266         (Makefile.am): Arrange to build and link test-thread_local.
9267         * doc/posix-headers/threads.texi: Mention the platforms that don't
9268         support 'thread_local'.
9270 2019-06-20  Bruno Haible  <bruno@clisp.org>
9272         threads-h: Simplify link dependencies.
9273         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
9274         Don't set LTLIBSTDTHREAD.
9275         * modules/thrd (Link): Simplify accordingly.
9276         * modules/mtx (Link): Likewise.
9277         * modules/cnd (Link): Likewise.
9278         * modules/tss (Link): Likewise.
9279         * modules/threads (Link): Likewise.
9281 2019-06-20  Bruno Haible  <bruno@clisp.org>
9283         threads-h: Fix link error on FreeBSD 11.
9284         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
9285         also with -lpthread.
9287 2019-06-20  Bruno Haible  <bruno@clisp.org>
9289         threadlib: Fix typo (regression from today).
9290         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
9292 2019-06-20  Bruno Haible  <bruno@clisp.org>
9294         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
9295         * lib/windows-thread.c: Include <errno.h>.
9296         * lib/windows-tls.c: Likewise.
9298 2019-06-20  Bruno Haible  <bruno@clisp.org>
9300         tss tests: Small improvement.
9301         * tests/test-tss.c (test_tss): Pass a different id to each thread.
9303 2019-06-20  Bruno Haible  <bruno@clisp.org>
9305         threads: New module.
9306         * modules/threads: New file.
9308 2019-06-20  Bruno Haible  <bruno@clisp.org>
9310         tss: Add tests.
9311         * tests/test-tss.c: New file, based on tests/test-tls.c.
9312         * modules/tss-tests: New file.
9314 2019-06-20  Bruno Haible  <bruno@clisp.org>
9316         cnd: Add tests.
9317         * tests/test-cnd.c: New file, based on tests/test-cond.c.
9318         * modules/cnd-tests: New file.
9320 2019-06-20  Bruno Haible  <bruno@clisp.org>
9322         mtx: Add tests.
9323         * tests/test-mtx.c: New file, based on tests/test-lock.c.
9324         * tests/test-call_once.c: New file, based on tests/test-once.c.
9325         * modules/mtx-tests: New file.
9327 2019-06-20  Bruno Haible  <bruno@clisp.org>
9329         thrd: Add tests.
9330         * tests/test-thrd_create.c: New file, based on
9331         tests/test-thread_create.c.
9332         * tests/test-thrd_current.c: New file, based on
9333         tests/test-thread_self.c.
9334         * modules/thrd-tests: New file.
9336 2019-06-20  Bruno Haible  <bruno@clisp.org>
9338         tss: New module.
9339         * lib/tss.c: New file.
9340         * modules/tss: New file.
9341         * doc/posix-functions/tss_create.texi: Mention the new module.
9342         * doc/posix-functions/tss_set.texi: Likewise.
9343         * doc/posix-functions/tss_get.texi: Likewise.
9344         * doc/posix-functions/tss_delete.texi: Likewise.
9346 2019-06-20  Bruno Haible  <bruno@clisp.org>
9348         cnd: New module.
9349         * lib/cnd.c: New file.
9350         * modules/cnd: New file.
9351         * doc/posix-functions/cnd_init.texi: Mention the new module.
9352         * doc/posix-functions/cnd_wait.texi: Likewise.
9353         * doc/posix-functions/cnd_timedwait.texi: Likewise.
9354         * doc/posix-functions/cnd_signal.texi: Likewise.
9355         * doc/posix-functions/cnd_broadcast.texi: Likewise.
9356         * doc/posix-functions/cnd_destroy.texi: Likewise.
9358 2019-06-20  Bruno Haible  <bruno@clisp.org>
9360         mtx: New module.
9361         * lib/mtx.c: New file.
9362         * modules/mtx: New file.
9363         * doc/posix-functions/call_once.texi: Mention the new module.
9364         * doc/posix-functions/mtx_init.texi: Likewise.
9365         * doc/posix-functions/mtx_lock.texi: Likewise.
9366         * doc/posix-functions/mtx_trylock.texi: Likewise.
9367         * doc/posix-functions/mtx_timedlock.texi: Likewise.
9368         * doc/posix-functions/mtx_unlock.texi: Likewise.
9369         * doc/posix-functions/mtx_destroy.texi: Likewise.
9371 2019-06-20  Bruno Haible  <bruno@clisp.org>
9373         thrd: New module.
9374         * lib/thrd.c: New file.
9375         * m4/thrd.m4: New file.
9376         * modules/thrd: New file.
9377         * doc/posix-functions/thrd_current.texi: Mention the new module.
9378         * doc/posix-functions/thrd_detach.texi: Likewise.
9379         * doc/posix-functions/thrd_equal.texi: Likewise.
9380         * doc/posix-functions/thrd_exit.texi: Likewise.
9381         * doc/posix-functions/thrd_sleep.texi: Likewise.
9382         * doc/posix-functions/thrd_yield.texi: Likewise.
9383         * doc/posix-functions/thrd_create.texi: Mention the new module and the
9384         AIX bug.
9385         * doc/posix-functions/thrd_join.texi: Mention the new module and the
9386         AIX and Solaris bugs.
9388 2019-06-20  Bruno Haible  <bruno@clisp.org>
9390         threads-h: Add tests.
9391         * tests/test-threads.c: New file.
9392         * modules/threads-h-tests: New file.
9393         * tests/test-threads-c++.cc: New file.
9394         * modules/threads-h-c++-tests: New file.
9396 2019-06-20  Bruno Haible  <bruno@clisp.org>
9398         threads-h: New module.
9399         * lib/threads.in.h: New file.
9400         * m4/threads.m4: New file.
9401         * m4/yield.m4 (gl_YIELD): Update comment.
9402         * modules/threads-h: New file.
9403         * modules/yields (configure.ac): Use AC_REQUIRE.
9404         * doc/posix-headers/threads.texi: Mention the new module and the AIX
9405         bugs.
9407 2019-06-20  Bruno Haible  <bruno@clisp.org>
9409         windows-thread: New module.
9410         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
9411         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
9412         * lib/glthread/thread.h: Include windows-thread.h.
9413         (gl_thread_t): Define using glwthread_thread_t.
9414         (glthread_create): Define using glwthread_thread_create.
9415         (glthread_join): Define using glwthread_thread_join.
9416         (gl_thread_self): Define using glwthread_thread_self.
9417         (gl_thread_exit): Define using glwthread_thread_exit.
9418         (glthread_create_func, glthread_join_func, gl_thread_self_func,
9419         gl_thread_exit_func): Remove declarations.
9420         * lib/glthread/thread.c (self_key): Remove variable.
9421         (do_init_self_key, init_self_key): Remove functions.
9422         (struct gl_thread_struct): Remove type.
9423         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
9424         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
9425         functions.
9426         * modules/windows-thread: New file.
9427         * modules/thread (Depends-on): Add windows-thread.
9429 2019-06-20  Bruno Haible  <bruno@clisp.org>
9431         windows-tls: New module.
9432         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
9433         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
9434         * lib/glthread/tls.h: Include windows-tls.h.
9435         (gl_tls_key_t): Define using glwthread_tls_key_t.
9436         * modules/windows-tls: New file.
9437         * modules/tls (Depends-on): Add windows-tls.
9439 2019-06-20  Bruno Haible  <bruno@clisp.org>
9441         windows-cond: New module.
9442         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
9443         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
9444         * lib/glthread/cond.h: Include windows-cond.h.
9445         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
9446         (gl_cond_t): Define using glwthread_cond_t.
9447         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
9448         (glthread_cond_init): Define using glwthread_cond_init.
9449         (glthread_cond_wait): Define using glwthread_cond_wait.
9450         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
9451         (glthread_cond_signal): Define using glwthread_cond_signal.
9452         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
9453         (glthread_cond_destroy): Define using glwthread_cond_destroy.
9454         (glthread_cond_init_func, glthread_cond_wait_func,
9455         glthread_cond_timedwait_func, glthread_cond_signal_func,
9456         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9457         declarations.
9458         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
9459         types.
9460         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
9461         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
9462         glthread_cond_init_func, glthread_cond_wait_func,
9463         glthread_cond_timedwait_func, glthread_cond_signal_func,
9464         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9465         functions.
9466         * modules/windows-cond: New file.
9467         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
9469 2019-06-20  Bruno Haible  <bruno@clisp.org>
9471         windows-timedrecmutex: New module.
9472         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
9473         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
9474         * modules/windows-timedrecmutex: New file.
9476 2019-06-20  Bruno Haible  <bruno@clisp.org>
9478         windows-timedmutex: New module.
9479         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
9480         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
9481         * modules/windows-timedmutex: New file.
9483 2019-06-20  Bruno Haible  <bruno@clisp.org>
9485         windows-recmutex: New module.
9486         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
9487         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
9488         * lib/glthread/lock.h: Include windows-recmutex.h.
9489         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
9490         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
9491         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
9492         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
9493         (glthread_recursive_lock_unlock): Define using
9494         glwthread_recmutex_unlock.
9495         (glthread_recursive_lock_destroy): Define using
9496         glwthread_recmutex_destroy.
9497         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
9498         glthread_recursive_lock_unlock_func,
9499         glthread_recursive_lock_destroy_func): Remove declarations.
9500         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
9501         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
9502         glthread_recursive_lock_destroy_func): Remove functions.
9503         * modules/windows-recmutex: New file.
9504         * modules/lock (Depends-on): Add windows-recmutex.
9506 2019-06-20  Bruno Haible  <bruno@clisp.org>
9508         windows-mutex: New module.
9509         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
9510         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
9511         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
9512         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
9513         (gl_spinlock_t): Remove type.
9514         (gl_lock_t): Define using glwthread_mutex_t.
9515         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
9516         (glthread_lock_init): Define using glwthread_mutex_init.
9517         (glthread_lock_lock): Define using glwthread_mutex_lock.
9518         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
9519         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
9520         (glthread_lock_init_func, glthread_lock_lock_func,
9521         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
9522         declarations.
9523         Use glwthread_spinlock_t instead of gl_spinlock_t.
9524         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
9525         GLWTHREAD_SPINLOCK_INIT.
9526         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
9527         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
9528         functions.
9529         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
9530         gl_spinlock_t.
9531         * modules/windows-mutex: New file.
9532         * modules/lock (Depends-on): Add windows-mutex.
9534 2019-06-20  Bruno Haible  <bruno@clisp.org>
9536         windows-once: New module.
9537         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
9538         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
9539         * lib/glthread/lock.h: Include windows-once.h.
9540         (gl_once_t): Define using glwthread_once_t.
9541         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
9542         (glthread_once): Define using glwthread_once.
9543         (glthread_once_func): Remove declaration.
9544         * lib/glthread/lock.c (glthread_once_func): Remove function.
9545         * modules/windows-once: New file.
9546         * modules/lock (Depends-on): Add windows-once.
9548 2019-06-20  Bruno Haible  <bruno@clisp.org>
9550         lock, cond: Avoid possible counter wraparound on Windows.
9551         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
9552         field of the guard unchanged if it was already positive.
9553         (glthread_rwlock_rdlock_func): Likewise.
9554         (glthread_rwlock_wrlock_func): Likewise.
9555         (glthread_recursive_lock_lock_func): Likewise.
9556         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
9557         (glthread_cond_timedwait_func): Likewise.
9559 2019-06-20  Bruno Haible  <bruno@clisp.org>
9561         cond: Make glthread_cond_timedwait more reliable on Windows.
9562         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
9563         condition variable before looking at the current time.
9565 2019-06-20  Bruno Haible  <bruno@clisp.org>
9567         pthread_mutex_timedlock: New module.
9568         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
9569         new declaration.
9570         * lib/pthread_mutex_timedlock.c: New file.
9571         * m4/pthread_mutex_timedlock.m4: New file.
9572         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
9573         whether pthread_mutex_timedlock is declared.
9574         (gl_PTHREAD_MODULE_INDICATOR): New macro.
9575         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
9576         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
9577         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
9578         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
9579         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
9580         * modules/pthread_mutex_timedlock: New file.
9581         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
9582         module.
9584 2019-06-20  Bruno Haible  <bruno@clisp.org>
9586         thread, lock, cond, tls: Recognize C11 multithreaded applications.
9587         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
9588         * lib/glthread/thread.h (c11_threads_in_use): New macro.
9589         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9590         * lib/glthread/lock.h (c11_threads_in_use): New macro.
9591         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9592         * lib/glthread/cond.h (c11_threads_in_use): New macro.
9593         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9594         * lib/glthread/tls.h (c11_threads_in_use): New macro.
9595         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9597 2019-06-20  Bruno Haible  <bruno@clisp.org>
9599         tls tests: Small improvements.
9600         * tests/test-tls.c: Include <stdint.h>.
9601         (worker_thread): Avoid gcc warning on 64-bit mingw.
9602         (test_tls): Pass a different id to each thread.
9603         * modules/tls-tests (Depends-on): Add stdint.
9605 2019-06-20  Bruno Haible  <bruno@clisp.org>
9607         cond tests: Simplify.
9608         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
9610 2019-06-20  Bruno Haible  <bruno@clisp.org>
9612         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
9613         * tests/test-lock.c (test_once): Don't reference fire_signal if
9614         !ENABLE_LOCKING.
9616 2019-06-19  Bruno Haible  <bruno@clisp.org>
9618         nanosleep: Relicense under LGPLv2+.
9619         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
9620         * modules/nanosleep (License): Change to LGPLv2+.
9622 2019-06-19  Bruno Haible  <bruno@clisp.org>
9624         Reorder pieces of header in perl scripts.
9625         The desired order is
9626         - Prologue part 1 (2 lines with #!)
9627         - Program short description
9628         - Copyright and license notice
9629         - Written-by notice
9630         - Program short description (optional)
9631         - Program long description (optional)
9632         - Prologue part 2
9633         - Time stamp
9634         - Code
9635         Reported by Paul Eggert.
9636         * build-aux/announce-gen: Reorder header.
9637         * build-aux/gitlog-to-changelog: Likewise.
9638         * build-aux/useless-if-before-free: Likewise.
9639         * build-aux/prefix-gnulib-mk: Add copyright notice and short
9640         description.
9641         * build-aux/update-copyright: Likewise. Add short description. Bump
9642         time-stamp-line-limit to 200.
9644 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
9646         verify-tests: work around xlc bug
9647         Problem reported by Bruno Haible in:
9648         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
9649         * tests/test-verify.c (item): Move the arithmetic inside the
9650         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
9652 2019-06-16  Bruno Haible  <bruno@clisp.org>
9654         Restore Emacs time-stamp hook applicability.
9655         Reported by Darshit Shah <darnir@gnu.org>.
9656         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
9657         * build-aux/announce-gen: Likewise.
9658         * build-aux/gitlog-to-changelog: Likewise.
9659         * build-aux/prefix-gnulib-mk: Likewise.
9660         * build-aux/update-copyright: Likewise.
9662 2019-06-15  Bruno Haible  <bruno@clisp.org>
9664         Fix scripts to have valid executable format on Alpine Linux.
9665         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
9666         Idea by Paul Eggert.
9667         * build-aux/useless-if-before-free: Use a prologue that starts with
9668         '#!/bin/sh'.
9669         * build-aux/announce-gen: Likewise.
9670         * build-aux/gitlog-to-changelog: Likewise.
9671         * build-aux/prefix-gnulib-mk: Likewise.
9672         * build-aux/update-copyright: Likewise.
9673         * tests/test-update-copyright.sh: Update test program accordingly.
9675 2019-06-10  Bruno Haible  <bruno@clisp.org>
9677         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
9678         Reported by Nikita Ermakov <arei@altlinux.org> in
9679         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
9680         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
9681         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
9683 2019-06-10  Bruno Haible  <bruno@clisp.org>
9685         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
9686         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
9687         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
9688         a copy of the path argument.
9689         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
9690         it.
9692 2019-06-10  Bruno Haible  <bruno@clisp.org>
9694         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
9695         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
9696         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
9697         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
9698         a copy of the path argument.
9699         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
9700         it.
9702 2019-06-10  Bruno Haible  <bruno@clisp.org>
9704         posix_spawn_file_actions_addfchdir: Add tests.
9705         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
9706         * tests/test-posix_spawn5.c: New file.
9707         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
9709 2019-06-10  Bruno Haible  <bruno@clisp.org>
9711         posix_spawn_file_actions_addfchdir: New module.
9712         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
9713         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
9714         union member 'fchdir_action'.
9715         * lib/spawn_faction_addfchdir.c: New file.
9716         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
9717         * m4/posix_spawn_faction_addfchdir.m4: New file.
9718         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
9719         'posix_spawn_file_actions_addfchdir' is present and whether
9720         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
9721         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
9722         posix_spawn_file_actions_addfchdir is declared.
9723         (gl_SPAWN_H_DEFAULTS): Initialize
9724         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
9725         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
9726         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
9727         * modules/spawn (Makefile.am): Substitute
9728         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
9729         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
9730         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
9731         * modules/posix_spawn_file_actions_addfchdir: New file.
9732         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
9733         signature.
9734         * doc/posix-functions/posix_spawn.texi: Mention the new module.
9735         * doc/posix-functions/posix_spawnp.texi: Likewise.
9736         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
9737         Likewise.
9739 2019-06-10  Bruno Haible  <bruno@clisp.org>
9741         doc: Document existence of posix_spawn_file_actions_addchdir module.
9742         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
9743         the posix_spawn_file_actions_addchdir module.
9745 2019-06-10  Bruno Haible  <bruno@clisp.org>
9747         posix_spawn-internal: Fix module description.
9748         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
9749         from here...
9750         * modules/posix_spawnp (configure.ac): ... and here...
9751         * modules/posix_spawn-internal (configure.ac): ... to here.
9753 2019-06-10  Bruno Haible  <bruno@clisp.org>
9755         doc: Update and improve documentation of glibc functions.
9756         This is a series of commits that
9757         - updates the documentation to the state of glibc 2.29,
9758         - adds references to Linux man pages and glibc documentation,
9759         - marks Linux specific functions as such.
9760         These are the commits:
9761         doc: Update after removal of crypt functions from glibc 2.28.
9762         doc: Remove mention of function vm86 (does not exist on x86_64).
9763         doc: Remove mention of functions that are gone from glibc.
9764         doc: Mention that glibc no longer provides h_errno.
9765         doc: Mention the availability of specific functions in glibc versions.
9766         doc: Mention eaccess.
9767         doc: Add references to Linux man pages.
9768         doc: Add references to glibc documentation.
9769         doc: Mention inotify_* functions.
9770         doc: Mention ppoll.
9771         doc: Mention sched_getcpu.
9772         doc: Mention sync_file_range.
9773         doc: Mention epoll_pwait.
9774         doc: Mention eventfd, eventfd_read, eventfd_write.
9775         doc: Mention signalfd.
9776         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
9777         doc: Mention epoll_create1.
9778         doc: Mention getauxval.
9779         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
9780         doc: Mention nextdown, nextup.
9781         doc: Mention more ISO TS 18661-1 <math.h> functions.
9782         doc: Mention ISO TS 18661-1 <fenv.h> functions.
9783         doc: Mention getrandom, getentropy.
9784         doc: Mention strfromf, strfromd, strfroml.
9785         doc: Mention preadv2, pwritev2.
9786         doc: Mention copy_file_range.
9787         doc: Mention memfd_create.
9788         doc: Mention mlock2.
9789         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
9790         doc: Mention more ISO TS 18661-1 <math.h> functions.
9791         doc: Mention renameat2.
9792         doc: Mention statx.
9793         doc: Mention the ISO C11 multithreading header and functions.
9794         doc: Mention getcpu.
9795         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
9796         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
9797         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
9798         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
9799         doc: Some glibc functions also exist on Solaris 11.
9800         doc: Some glibc functions also exist on Solaris 11.4.
9801         doc: Some glibc functions also exist on FreeBSD.
9802         doc: Some glibc functions also exist on BeOS.
9803         doc: Some glibc functions also exist on Haiku.
9804         doc: Mark functions which exist only on Linux.
9805         doc: Mark functions which exist only on Linux and illumos.
9807 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
9809         copy-file: fix typo
9810         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
9812         copy-file-range: simplify into a stub
9813         Based on a comment by Florian Weimer in:
9814         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
9815         It turns out that Emacs (which will use this module) won’t need an
9816         emulation and I suspect other programs won’t either, because these
9817         programs will need to fall back on read+write anyway.  Perhaps I
9818         am wrong and other programs will be able to use an emulation; if
9819         so, this patch can be reverted.
9820         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
9821         Just call it copy_file_range.
9822         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
9823         Check via AC_LINK_IFELSE.
9824         * modules/copy-file-range (Depends-on): Remove modules no longer used.
9826 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
9828         copy-file: prefer copy_file_range
9829         * lib/copy-file.c: Do not include xalloc.h.
9830         (qcopy_file_preserving): Allocate a buffer only if
9831         copy_file_range does not suffice.  If the allocation fails
9832         don't give up; just use a small stack-based buffer.
9833         Prefer copy_file_range if it works.
9834         * modules/copy-file (Depends-on): Add copy-file-range.
9835         Remove xalloc.
9837         copy-file-range: new module
9838         * MODULES.html.sh: Add copy-file-range.
9839         * lib/copy-file-range.c, m4/copy-file-range.m4:
9840         * modules/copy-file-range: New files.
9841         * lib/unistd.in.h (copy_file_range): Declare.
9842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
9843         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
9844         * modules/unistd (unistd.h): Substitute them.
9846 2019-05-28  Bruno Haible  <bruno@clisp.org>
9848         binary-io: Attempted use of O_BINARY on consoles no longer fails.
9849         Reported by KO Myung-Hun <komh78@gmail.com> in
9850         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
9851         * lib/binary-io.h (__gl_setmode_check): Remove function.
9852         (set_binary_mode): Declare as notinline on DJGPP and EMX.
9853         * lib/binary-io.c (__gl_setmode_check): Remove function.
9854         (set_binary_mode): Define here on DJGPP and EMX. Inline
9855         __gl_setmode_check. In case of a tty, don't return an error code.
9857 2019-05-28  James Youngman  <jay@gnu.org>
9859         dirent-safer: Make opendir_safer usable from C++.
9860         * lib/dirent-safer.h: use extern "C".
9862 2019-05-28  James Youngman  <jay@gnu.org>
9864         canonicalize: Make canonicalize_filename_mode usable from C++.
9865         * lib/canonicalize.h: use extern "C".
9867 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
9869         prefix-gnulib-mk: Fix CPPFLAGS migration.
9870         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
9871         _a part of the library name.
9873 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9875         flexmember: update comments again
9876         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
9878         flexmember: update comment
9879         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
9881 2019-05-20  Bruno Haible  <bruno@clisp.org>
9883         setlocale: Improve fallback on macOS.
9884         * lib/setlocale.c (search): Optimize away a redundant strcmp()
9885         invocation.
9886         (locales_with_principal_territory): New array.
9887         (langcmp, get_main_locale_with_same_language): New functions.
9888         (locales_with_principal_language): New array.
9889         (terrcmp, get_main_locale_with_same_territory): New functions.
9890         (rpl_setlocale): When setlocale_single failed, try again with a locale
9891         that is more likely to exist. Don't warn if the environment variable
9892         SETLOCALE_VERBOSE is not set.
9894 2019-05-19  Bruno Haible  <bruno@clisp.org>
9896         localename: Fix default on macOS.
9897         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
9898         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
9899         (gl_locale_name_environ, gl_locale_name_default): Remove code for
9900         HAVE_CFLOCALECOPYCURRENT.
9901         * lib/localename.h (gl_locale_name_default): Update.
9903 2019-05-19  Karl Berry  <karl@freefriends.org>
9905         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
9906         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
9907         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
9909 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
9911         maintainer-makefile: catch uses of $< in non-implicit rules
9912         * top/maint.mk (sc_prohibit_magic_number_exit): New.
9914 2019-05-18  Bruno Haible  <bruno@clisp.org>
9916         threadlib: Provide an easy way to avoid mingw's winpthreads library.
9917         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
9918         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
9919         gl_use_threads accordingly.
9921 2019-05-18  Bruno Haible  <bruno@clisp.org>
9923         pthread_sigmask: Fix compilation error with --enable-threads=windows.
9924         Reported by Tim Rühsen in
9925         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
9926         and Michele Locati in
9927         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
9928         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
9929         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
9930         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
9931         in use and regardless which threads API is chosen.
9933 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
9935         close-stream, closein, closeout: simplify
9936         I noticed this opportunity for simplification while drafting a
9937         new, related module that I haven’t had time to finish yet.
9938         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
9939         * modules/close-stream (Files): Remove m4/close-stream.m4.
9940         (configure.ac): Omit gl_CLOSE_STREAM.
9941         * modules/closein (Files): Remove m4/closein.m4
9942         (configure.ac): Omit gl_CLOSEIN.
9943         * modules/closeout (Files): Remove m4/closeout.m4.
9944         (configure.ac): Omit gl_CLOSEOUT.
9946 2019-05-12  Bruno Haible  <bruno@clisp.org>
9948         libtool-next-version: New program.
9949         * build-aux/libtool-next-version: New file.
9951 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
9952             Bruno Haible  <bruno@clisp.org>
9954         version-etc: Ease translation.
9955         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
9956         URLs and formatting newlines out of translatable string.
9958 2019-05-11  Bruno Haible  <bruno@clisp.org>
9960         gnupload: Explain how to create symlinks.
9961         * build-aux/gnupload (usage): Add an example that creates symlinks.
9963 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
9965         fpucw: port to gcc -pedantic
9966         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
9967         Use __extension__ if using ({ ... }).
9969         crypto/af_alg: port to strict C compilers
9970         * lib/af_alg.c: Include af_alg.h regardless, so that the
9971         compilation unit is nonempty.
9973 2019-05-10  Bruno Haible  <bruno@clisp.org>
9975         base64: Avoid false positive warning from Coverity.
9976         Reported by Kamil Dudka <kdudka@redhat.com>.
9977         Idea by Paul Eggert.
9978         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
9979         '& 0x3f' to the array index expressions. This convinces Coverity that
9980         there is no out-of-bounds array reference, regardless of the input.
9982 2019-05-09  Bruno Haible  <bruno@clisp.org>
9984         gettext: Update to gettext 0.20.
9985         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
9986         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
9987         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
9988         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
9989         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
9990         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
9991         (configure.ac): Request infrastructure compatible with gettext 0.20.
9992         * m4/glibc2.m4: Remove file.
9993         * m4/intdiv0.m4: Remove file.
9994         * m4/intl.m4: Remove file.
9995         * m4/intldir.m4: Remove file.
9996         * m4/intmax.m4: Remove file.
9997         * m4/printf-posix.m4: Remove file.
9998         * m4/uintmax_t.m4: Remove file.
9999         * m4/gettext.m4: Update from gettext 0.20.
10000         * m4/po.m4: Likewise.
10002 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
10004         verify: remove verify_true
10005         * NEWS: Mention this.
10006         * lib/verify.h (verify_true): Remove.
10007         * tests/test-verify.c (item): Test verify_expr, not verify_true.
10009         Support C2X and C++17 static_assert
10010         C2X and C++17 finally added support for a simple, single-argument
10011         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
10012         doing back in 2005.  Implement static_assert on older platforms.
10013         The only remaining advantage of ‘verify’ is a shorter name.
10014         * doc/posix-headers/assert.texi (assert.h):
10015         * doc/verify.texi (Compile-time Assertions):
10016         Modernize for C2X and C++17.
10017         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
10018         New macros.
10019         (_GL_HAVE__STATIC_ASSERT): Remove.
10020         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
10021         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
10022         string.  All callers changed.
10023         (_GL_VERIFY): Require 3 or more args, of which only the first 2
10024         are used.  All callers changed.
10025         (_Static_assert): Allow either 1 or 2 args, and define if
10026         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
10027         !_GL_HAVE__STATIC_ASSERT.
10028         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
10029         of defining if !_GL_HAVE_STATIC_ASSERT.
10030         (verify_expr, verify): Don’t bother trying to copy the expression
10031         into the diagnostic, since 1-argument static_assert doesn’t.
10032         (verify): Prefer 1-argument _Static_assert if it works.
10033         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
10035 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10037         Fix _GL_HAVE__STATIC_ASSERT typo
10038         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
10039         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
10041 2019-05-05  Bruno Haible  <bruno@clisp.org>
10043         wcwidth: Ensure width 1, not 2, for ambiguous characters.
10044         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
10045         via Akim Demaille <akim.demaille@gmail.com>.
10046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
10047         en_US.UTF-8 locale, since that is more likely to be present than an
10048         fr_FR.UTF-8 locale.
10049         * tests/test-wcwidth.c (main): Check the width of U+2202.
10050         * doc/posix-functions/wcwidth.texi: Mention the issue.
10052 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
10054         Port manywarnings to GCC 9
10055         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
10056         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
10057         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
10058         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
10059         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
10060         --help=warnings output.
10061         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
10062         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
10063         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
10065 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
10067         Sync lib/mktime-internal.h from glibc
10068         * config/srclist.txt: Add entry for lib/mktime-internal.h.
10069         * lib/mktime-internal.h: Autoupdate.
10071 2019-04-28  Bruno Haible  <bruno@clisp.org>
10073         tls tests: Prevent that the test takes too long.
10074         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
10075         (main): Let the test fail if it takes more than 10 minutes.
10076         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
10078 2019-04-27  Bruno Haible  <bruno@clisp.org>
10080         lock tests: Prevent that the test takes too long.
10081         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
10082         (main): Let the test fail if it takes more than 10 minutes.
10083         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
10085 2019-04-27  Bruno Haible  <bruno@clisp.org>
10087         localename: Fix crash on mingw (regression from 2018-11-23).
10088         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
10089         locale name that is null.
10091 2019-04-27  Bruno Haible  <bruno@clisp.org>
10093         Fix gcc warnings on 64-bit mode mingw.
10094         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
10095         * lib/gl_array_list.c: Likewise.
10096         * lib/gl_array_map.c: Likewise.
10097         * lib/gl_array_set.c: Likewise.
10098         * lib/gl_carray_list.c: Likewise.
10099         * lib/gl_sublist.c: Likewise.
10100         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
10101         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
10102         * lib/gl_hash_map.c (uintptr_t): Likewise.
10103         * lib/gl_hash_set.c (uintptr_t): Likewise.
10104         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
10105         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
10106         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
10107         * lib/iconv.c (uintptr_t): Likewise.
10108         * lib/iconv_close.c (uintptr_t): Likewise.
10109         * tests/test-lock.c: Include <stdint.h>.
10110         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
10111         'long'.
10112         * modules/clean-temp (Depends-on): Add stdint.
10113         * modules/array-list (Depends-on): Likewise.
10114         * modules/array-map (Depends-on): Likewise.
10115         * modules/array-set (Depends-on): Likewise.
10116         * modules/carray-list (Depends-on): Likewise.
10117         * modules/sublist (Depends-on): Likewise.
10118         * modules/lock-tests (Depends-on): Likewise.
10120 2019-04-27  Bruno Haible  <bruno@clisp.org>
10122         error: Tweak indentation.
10123         * lib/error.c: Correct indentation.
10125 2019-04-27  Bruno Haible  <bruno@clisp.org>
10127         term-style-control: Fix gcc warning on mingw.
10128         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
10129         of i.
10131 2019-04-26  Bruno Haible  <bruno@clisp.org>
10133         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
10134         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
10136 2019-04-26  Bruno Haible  <bruno@clisp.org>
10138         relocatable-prog: Fix gcc warning on mingw.
10139         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
10140         on EMX.
10142 2019-04-02  Bruno Haible  <bruno@clisp.org>
10144         gitsub.sh: New file.
10145         * top/gitsub.sh: New file.
10147 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
10149         argmatch: use void* for raw memory pointers
10150         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
10151         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
10152         to "values", keep char* for strings.
10154 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
10156         prefix-gnulib-mk: fix the support for gnulib-po
10157         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
10158         Don't touch HAVE_* variables.
10159         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
10161 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
10163         di-set: allow free with 'ino_map' being NULL.
10164         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
10165         is NULL.  Bug introduced in commit 3703dbbe88dd.
10166         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
10167         as a test.
10169 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
10171         * lib/str-two-way.h: Fix comment typo.
10173 2019-04-13  Bruno Haible  <bruno@clisp.org>
10175         x-to-1: Restore ability to use original calling convention.
10176         * build-aux/x-to-1.in: Add comments. Accept the original form of
10177         HELP2MAN argument as well as the form expected since 2012-12-12.
10179 2019-04-13  Bruno Haible  <bruno@clisp.org>
10181         x-to-1: Avoid failure due to missing perl modules.
10182         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
10183         needs are installed.
10185 2019-04-13  Bruno Haible  <bruno@clisp.org>
10187         openmp-init: New module.
10188         * modules/openmp-init: New file.
10189         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
10190         the changes from 2019-04-09.
10192 2019-04-12  Bruno Haible  <bruno@clisp.org>
10194         signbit: Fix compilation error when gnulib's math.h exists twice.
10195         * lib/math.in.h (GNULIB_defined_signbit): New macro.
10197 2019-04-12  Bruno Haible  <bruno@clisp.org>
10199         openmp: Fix compilation error on platforms without OpenMP.
10200         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
10202 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
10204         mountlist: make parsing /proc/self/mountinfo more robust
10205         Cater for the following issues with mountinfo parsing (the first
10206         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
10207         in <https://bugs.gnu.org/35137>).
10208         1. The fields source, target, mntroot and fstype may contain characters
10209         like '\r'; sscanf(3) fails to read such values with the %s format
10210         specifier because it would stop at such characters.
10211         Example: "mount -t tmpfs tmpfs /foo^Mbar".
10212         The only true separator in that file is the ' ' character.
10213         2. The source field may be an empty string, which happens e.g. with
10214         "mount -t tmpfs '' /target".
10215         3. The fstype field may contain mangled characters as well which need
10216         unescaping.
10217         * lib/mountlist.c (terminate_at_blank): Add utility function.
10218         (read_file_system_list): In the block trying to read the mountinfo file,
10219         avoid using sscanf(3) with %s format; instead, parse the above fields
10220         separated by spaces one by one.
10221         This also handles the case when the source field is an empty string.
10222         Unescape the fstype field.
10224 2019-04-09  Bruno Haible  <bruno@clisp.org>
10226         openmp: Add workaround for 32-bit programs on AIX.
10227         * lib/omp.in.h: New file.
10228         * lib/omp-init.c: New file, based on lib/nproc.c.
10229         * m4/omp_h.m4: New file.
10230         * modules/openmp (Files): Add them.
10231         (Depends-on): Add include_next, c-ctype, setenv.
10232         (configure.ac): Invoke gl_OMP_H.
10233         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
10234         (Include): Mention <omp.h>.
10236 2019-04-09  Bruno Haible  <bruno@clisp.org>
10238         nproc: Fix return value for privileged processes.
10239         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
10240         getpid().
10242 2019-04-07  Bruno Haible  <bruno@clisp.org>
10244         Add copyright notices in several files.
10245         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
10246         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
10247         * lib/libunistring.valgrind: Likewise.
10248         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
10249         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
10250         * lib/memchr.valgrind: Likewise.
10251         * lib/memchr2.valgrind: Likewise.
10252         * lib/rawmemchr.valgrind: Likewise.
10253         * lib/relocatable.valgrind: Likewise.
10254         * lib/strchrnul.valgrind: Likewise.
10256 2019-03-25  Bruno Haible  <bruno@clisp.org>
10258         term-style-control tests: Fix link error.
10259         Reported by Tom G. Christensen in
10260         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
10261         * modules/term-style-control-tests (Makefile.am): Link
10262         test-term-style-control-hello and test-term-style-control-yes against
10263         LIBINTL.
10265 2019-03-24  Bruno Haible  <bruno@clisp.org>
10267         term-style-control: Add tests.
10268         * tests/test-term-style-control-hello.c: New file.
10269         * tests/test-term-style-control-yes.c: New file.
10270         * modules/term-style-control-tests: New file.
10272         term-style-control: New module.
10273         * lib/term-style-control.h: New file, based on libtextstyle's
10274         term-ostream.oo.h and term-ostream.oo.c.
10275         * lib/term-style-control.c: New file, based on libtextstyle's
10276         term-ostream.oo.c.
10277         * modules/term-style-control: New file.
10279 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10281         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
10282         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
10283         C++98 appears to be supported by Clang, but not by GCC nor ICC.
10285 2019-03-23  Bruno Haible  <bruno@clisp.org>
10287         Support cross-compilation to musl libc.
10288         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
10289         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
10290         musl libc.
10291         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10292         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
10293         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10294         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10295         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10296         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
10297         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10298         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
10299         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10300         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
10301         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
10302         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
10303         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10304         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10305         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
10306         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
10307         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
10308         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10309         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
10310         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10311         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10312         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10313         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
10314         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10315         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
10316         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
10317         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
10318         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
10319         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
10320         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10321         * m4/log.m4 (gl_FUNC_LOG): Likewise.
10322         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
10323         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
10324         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
10325         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
10326         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
10327         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
10328         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
10329         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
10330         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
10331         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
10332         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
10333         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
10334         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10335         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
10336         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
10337         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
10338         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
10339         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
10340         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
10341         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
10342         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
10343         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10344         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
10345         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10346         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
10347         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
10348         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
10349         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
10350         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10351         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10352         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10353         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10354         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
10355         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10356         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10357         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10358         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
10359         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10360         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
10361         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10362         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10363         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10364         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
10365         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
10366         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
10367         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10368         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10370 2019-03-23  Bruno Haible  <bruno@clisp.org>
10372         posix_spawn_file_actions_*: Document musl libc bugs.
10373         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10374         the bug.
10375         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
10376         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
10377         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
10378         cross-compiling to a musl system, guess no.
10379         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
10380         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
10382 2019-03-23  Bruno Haible  <bruno@clisp.org>
10384         futimens: Document musl libc bug.
10385         * doc/posix-functions/futimens.texi: Mention the bug.
10386         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
10387         cross-compiling, guess no on glibc and musl systems.
10389 2019-03-23  Bruno Haible  <bruno@clisp.org>
10391         Clarify that cross-compilation guesses are guesses.
10392         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
10393         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
10394         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
10395         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
10396         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
10397         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
10398         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
10399         gl_cv_glob_lists_symlinks.
10400         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
10401         'guessing ' to ac_cv_func_malloc_0_nonnull.
10402         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
10403         'guessing ' to ac_cv_func_realloc_0_nonnull.
10404         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
10405         'guessing ' to gl_cv_func_poll.
10406         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
10407         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
10408         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
10410 2019-03-23  Bruno Haible  <bruno@clisp.org>
10412         strtold: Fix typo.
10413         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
10415 2019-03-23  Bruno Haible  <bruno@clisp.org>
10417         noreturn: In C++ mode with clang, use _Noreturn as fallback.
10418         Reported by Akim Demaille.
10419         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
10420         [[noreturn]] would not work, use _Noreturn instead.
10422 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10424         libtextstyle-optional: Fix compiler warnings.
10425         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
10426         as unused.
10428 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10430         bitset: fix memory leaks
10431         Reported by Bruno Haible.
10432         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
10433         * lib/bitset/vector.c (vbitset_free): New.
10434         (vbitset_vtable): Use it.
10436 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10438         bitset: minor changes
10439         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
10440         * lib/bitset/table.c: Formatting changes.
10441         Remove useless braces.
10442         Prefer using else in cascades of if/else-if with returns.
10443         * lib/bitset/vector.c: Reduce scopes.
10445 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10447         bitset: expose bitset_resize
10448         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
10449         * tests/test-bitset.c (check_attributes): Check bitset_resize.
10450         (main): Use a variable bitset as reference, since fixed does not support resize.
10452 2019-03-19  Bruno Haible  <bruno@clisp.org>
10454         doc: Document the 'stdnoreturn' and 'noreturn' modules.
10455         Reported by Akim Demaille.
10456         * doc/noreturn.texi: New file.
10457         * doc/gnulib.texi: Include it.
10459 2019-03-19  Bruno Haible  <bruno@clisp.org>
10461         doc: Document how to use 'static inline'.
10462         * doc/static-inline.texi: New file.
10463         * doc/gnulib.texi: Include it.
10465 2019-03-19  Bruno Haible  <bruno@clisp.org>
10467         libtextstyle-optional: Add tests.
10468         * tests/test-libtextstyle.c: New file, based on libtextstyle's
10469         adhoc-tests/hello.c.
10470         * tests/test-libtextstyle-default.css: New file, copied from
10471         libtextstyle's adhoc-tests/hello-default.css.
10472         * modules/libtextstyle-optional-tests: New file.
10474         libtextstyle-optional: New module.
10475         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
10476         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
10477         * modules/libtextstyle-optional: New file.
10479 2019-03-19  Bruno Haible  <bruno@clisp.org>
10481         c-stack: Make signal handlers more reliable.
10482         * lib/c-stack.c (progname): New variable.
10483         (die): Use it.
10484         (c_stack_action): Initialize it.
10485         (segv_handler): Save and restore errno.
10487 2019-03-19  Bruno Haible  <bruno@clisp.org>
10489         Help making signal handlers more reliable.
10490         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
10491         _GL_ASYNC_SAFE into config.h.
10492         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
10493         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
10494         argument.
10495         * lib/fatal-signal.c (action_t, uninstall_handlers,
10496         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
10497         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
10498         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
10499         _GL_ASYNC_SAFE.
10500         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
10501         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
10503 2019-03-18  Bruno Haible  <bruno@clisp.org>
10505         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
10506         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
10507         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
10509 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
10511         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
10512         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
10513         GCC 4.8.
10515 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
10517         fts: minor simplification
10518         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
10520 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
10522         bitset, timevar: Depend on c99.
10523         Reported by Bruno Haible.
10524         * modules/bitset, modules/timevar (Depends-on): Add c99.
10526 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
10528         bitset: a bit (...) more tests
10529         * tests/test-bitset.c (check_attributes): Check zero and ones.
10531 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
10533         bitset: fix overflows.
10534         Reported by Bruno Haible.
10535         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
10536         * lib/bitset/table.c (tbitset_test): last_bit is the position of
10537         the bit in the array of bitset_word, so be sure to take its modulo
10538         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
10539         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
10541 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
10543         bitset: style changes.
10544         * lib/bitset/table.c: Use NULL, not 0, for pointers.
10545         Formatting changes.
10546         (tbitset_list): Reduce scopes.
10548 2019-03-16  Bruno Haible  <bruno@clisp.org>
10550         fatal-signal: Pass the signal number to the action.
10551         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
10552         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
10553         (fatal_signal_handler): Pass the signal number to the action.
10554         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
10555         signal number as parameter.
10556         (create_temp_dir): Update.
10557         * lib/wait-process.c (cleanup_slaves_action): New function.
10558         (register_slave_subprocess): Update at_fatal_signal invocation.
10559         * NEWS: Mention the change.
10561 2019-03-16  Bruno Haible  <bruno@clisp.org>
10563         fatal-signal: Add function that lists the fatal signals.
10564         * lib/fatal-signal.h (get_fatal_signals): New declaration.
10565         * lib/fatal-signal.c (get_fatal_signals): New function.
10567 2019-03-14  Bruno Haible  <bruno@clisp.org>
10569         isatty: Make it return true in Cygwin consoles on native Windows.
10570         * lib/isatty.c: Include <string.h>.
10571         (GetProcAddress): New macro.
10572         (GetNamedPipeClientProcessIdFuncType): New type.
10573         (GetNamedPipeClientProcessIdFunc): New variable.
10574         (QueryFullProcessImageNameFuncType): New type.
10575         (QueryFullProcessImageNameFunc): New variable.
10576         (initialized): New variable.
10577         (initialize): New function.
10578         (IsCygwinConsoleHandle): New function.
10579         (isatty): Invoke it.
10580         * doc/posix-functions/isatty.texi: Mention the issue.
10582 2019-03-14  Bruno Haible  <bruno@clisp.org>
10584         all: Update URLs to msdn.microsoft.com.
10585         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
10586         was moved to docs.microsoft.com.
10588 2019-03-13  Bruno Haible  <bruno@clisp.org>
10590         gnulib-tool: Clarify the coding style.
10591         Suggested by Pavel Raiskup <praiskup@redhat.com>.
10592         * gnulib-tool: Add comment about coding style.
10594 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
10596         strtod: fix clash with strtold
10597         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
10598         * lib/strtod.c (compute_minus_zero, minus_zero):
10599         Simplify by remving the macro / external variable,
10600         and having just a function.  User changed.  This avoids
10601         the need for an external variable that might clash.
10603 2019-03-10  Bruno Haible  <bruno@clisp.org>
10605         alloca-opt: Fix conflict mingw's new <alloca.h> file.
10606         Reported by Eli Zaretskii <eliz@gnu.org>.
10607         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
10608         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
10609         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
10611 2019-03-10  Bruno Haible  <bruno@clisp.org>
10613         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
10614         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
10615         is in use.
10616         * tests/test-printf-posix2.c: Likewise.
10618 2019-03-10  Bruno Haible  <bruno@clisp.org>
10620         uninorm tests: Free allocated memory.
10621         * tests/uninorm/test-u32-normalize-big.h
10622         (struct normalization_test_file): Remove 'const' from allocated member.
10623         (free_normalization_test_file): New declaration.
10624         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
10625         memory.
10626         (free_normalization_test_file): New function.
10627         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
10628         'struct normalization_test_file' contents.
10629         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
10630         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
10631         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
10633 2019-03-10  Bruno Haible  <bruno@clisp.org>
10635         di-set: Fix memory leak.
10636         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
10637         not free().
10639 2019-03-10  Bruno Haible  <bruno@clisp.org>
10641         tests: Free allocated memory.
10642         Reported by <deltatau@protonmail.com> via Assaf Gordon.
10643         * tests/test-astrxfrm.c (main): Free allocated memory.
10644         * tests/test-bitset.c (compare, check_attributes): Free allocated
10645         bitsets.
10646         * tests/test-filenamecat.c (main): Free allocated memory.
10647         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
10648         * tests/test-freadptr.c (main): Likewise.
10649         * tests/test-freadptr2.c (main): Free allocated memory.
10650         * tests/test-freadseek.c (main): Likewise.
10651         * tests/test-gc-arcfour.c (main): Close allocated context.
10652         * tests/test-gc-arctwo.c (main): Likewise.
10653         * tests/test-gc-des.c (main): Close all allocated contexts.
10654         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
10655         * tests/test-pipe-filter-ii1.c (main): Likewise.
10656         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
10657         allocated file actions.
10658         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
10659         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
10660         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
10661         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
10662         * tests/test-strfmon_l.c (main): Free allocated locales.
10663         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
10664         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
10665         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
10666         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
10667         * tests/unistr/test-chr.h (main): Free input32.
10668         * tests/unistr/test-strchr.h (test_strchr): Likewise.
10670 2019-03-10  Bruno Haible  <bruno@clisp.org>
10672         tests: Prepare for using valgrind.
10673         * tests/*.sh: Invoke all test programs through ${CHECKER}.
10674         * tests/*/*.sh: Likewise.
10675         * tests/test-freadptr.c (main): Update accordingly.
10676         * tests/test-freadseek.c (main): Likewise.
10678 2019-03-09  Bruno Haible  <bruno@clisp.org>
10680         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
10681         * lib/get-rusage-as.c (get_rusage_as): When compiled by
10682         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
10683         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
10684         before exiting.
10686 2019-03-09  Jim Meyering  <meyering@fb.com>
10688         test-userspec.c: don't print NULL
10689         * tests/test-userspec.c (main): A test release of gcc,
10690         9.0.1 20190310, warned that this test would attempt to
10691         print a NULL pointer via a %s printf format.  Fix that
10692         and remove the unnecessary preceding "!diag" conjunct.
10693         Also add a comment.
10695 2019-03-03  Bruno Haible  <bruno@clisp.org>
10697         getloadavg: Write NULL for the null pointer.
10698         Reported by Michal Privoznik <mprivozn@redhat.com>.
10699         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
10701 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
10703         alloca, tsearch-tests: Write NULL for the null pointer.
10704         * lib/alloca.c (i00afunc): Write NULL instead of 0.
10705         * tests/test-tsearch.c (mangle_tree): Likewise.
10707 2019-03-09  Bruno Haible  <bruno@clisp.org>
10709         strfmon_l: Fix -fsanitize=address finding.
10710         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
10711         <string.h>.
10712         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
10713         (directive_t, directives_t): New types.
10714         (fmon_parse): New function.
10715         (rpl_strfmon_l): Don't call va_arg more often than needed for the
10716         format string. Consume 'long double' arguments in places where the
10717         format string indicates so.
10718         * modules/strfmon_l (Depends-on): Add 'stdbool'.
10720 2019-03-09  Bruno Haible  <bruno@clisp.org>
10722         crypto/des: Fix undefined behaviour.
10723         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
10724         shift operations on 'int'.
10726 2019-03-09  Bruno Haible  <bruno@clisp.org>
10728         Fix undefined behaviour.
10729         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
10730         'unsigned int', to avoid shift operations on 'int'.
10731         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
10732         * tests/test-count-leading-zeros.c (main): Use a random number that has
10733         as many bits as TYPE, not only 2*15 or 2*31 bits.
10734         * tests/test-count-trailing-zeros.c (main): Likewise.
10735         * tests/test-count-one-bits.c (main): Likewise.
10736         * tests/test-memmem.c: Don't include "null-ptr.h".
10737         (main): Use zerosize_ptr() instead of null_ptr().
10738         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
10740 2019-03-08  Bruno Haible  <bruno@clisp.org>
10742         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
10743         Reported by Jeffrey Walton <noloader@gmail.com>.
10744         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
10745         invoke memset with a zero size.
10746         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
10747         Likewise.
10748         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
10749         Adjust accordingly.
10751 2019-03-08  Bruno Haible  <bruno@clisp.org>
10753         unistr/*, uniconv/*: Fix undefined behaviour.
10754         Reported by Jeffrey Walton <noloader@gmail.com>.
10755         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
10756         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
10757         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
10758         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10760 2019-03-08  Bruno Haible  <bruno@clisp.org>
10762         unistr/u8-cmp: Fix undefined behaviour.
10763         Reported by Jeffrey Walton <noloader@gmail.com>.
10764         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
10766 2019-03-08  Bruno Haible  <bruno@clisp.org>
10768         unictype/numeric: Fix undefined behaviour.
10769         Reported by Jeffrey Walton <noloader@gmail.com>.
10770         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
10771         on shift overflow, caught by "gcc -fsanitize=undefined".
10772         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
10773         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
10774         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
10776 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
10778         git-version-gen: fix --version copyright year
10779         * build-aux/git-version-gen, build-aux/move-if-change (version):
10780         --version output copyright year is now taken from script year,
10781         so that it no longer needs to be updated by hand.
10783 2019-03-04  Bruno Haible  <bruno@clisp.org>
10785         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
10786         This approach supports relocatable installation of shared libraries
10787         which depend on other shared libraries from the same package.
10788         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
10789         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
10790         wrapper around the original LIBTOOL.
10791         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
10792         token '@loader_path' instead of '$ORIGIN'.
10793         * build-aux/libtool-reloc: New file.
10794         * modules/relocatable-prog (Files): Add it.
10795         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
10796         the recent changes. Document the need to set the *_LDFLAGS of libraries.
10797         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
10798         Makefile.am, not in configure.ac.
10800 2019-03-04  Bruno Haible  <bruno@clisp.org>
10802         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
10803         * build-aux/install-reloc: Revert change.
10804         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
10806 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10808         nstrftime: support the ‘+’ flag
10809         * lib/nstrftime.c (add, __strftime_internal):
10810         Add support for the ‘+’ flag introduced in POSIX.1-2017.
10811         (__strftime_internal): New arg ‘width’.  All uses changed.
10812         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
10814 2019-02-24  Bruno Haible  <bruno@clisp.org>
10816         relocatable-prog: Improve verbose output.
10817         * build-aux/install-reloc (func_verbose): Escape characters that would
10818         be interpreted by the shell.
10820 2019-02-24  Bruno Haible  <bruno@clisp.org>
10822         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
10823         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
10824         "sys/stat.h".
10825         * lib/lstat.c: Likewise.
10826         * lib/fstat.c: Likewise.
10827         * lib/fstatat.c: Likewise.
10829 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
10831         long-options: add parse_gnu_standard_options_only
10832         Discussed in https://bugs.gnu.org/33468 .
10834         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
10835         (parse_gnu_standard_options_only): Add function to process
10836         the GNU default options --help and --version and fail for
10837         any other unknown long or short option. See
10838         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
10839         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
10840         * modules/long-options (depends-on): Add stdbool, exitfail.
10841         * top/maint.mk (sc_prohibit_long_options_without_use): Update
10842         syntax-check rule, add new function name.
10844 2019-02-23  Bruno Haible  <bruno@clisp.org>
10846         relocatable-prog: Update documentation.
10847         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
10848         the recent changes.
10850 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
10852         nstrftime: tweak arg order
10853         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
10854         All callers changed.  Suggested by TAMUKI Shoichi in:
10855         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
10857 2019-02-23  Bruno Haible  <bruno@clisp.org>
10859         relocatable-prog: Use wrapper-free installation also on Mac OS X.
10860         Reported by Paul Smith <psmith@gnu.org>.
10861         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
10862         (func_relativize): New function, from gnulib-tool.
10863         Handle mode 'macosx' through invocations of 'otool' and
10864         'install_name_tool'.
10865         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
10866         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
10867         'install-reloc' invocation with mode 'macosx'.
10869 2019-02-23  Bruno Haible  <bruno@clisp.org>
10871         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
10872         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
10873         Hurd with glibc >= 2.27.
10875 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
10877         nstrftime: merge glibc strftime changes
10878         This incorporates:
10879         2019-02-11 Fix a few whitespace arrangement inconsistencies
10880         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
10881         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
10882         2019-01-11 strftime: use the "L_" macro with character literals
10883         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
10884         callers changed.  Default width of %Ey is now 2.  This is needed
10885         for proper handling of Japanese dates starting on 2019-05-01.
10887 2019-02-19  Bruno Haible  <bruno@clisp.org>
10889         relocatable-prog: Use $ORIGIN trick on more platforms.
10890         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
10891         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
10892         Solaris >= 10, Haiku. But don't use it on Android.
10893         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
10894         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
10896 2019-02-19  Bruno Haible  <bruno@clisp.org>
10898         progreloc: Speed up executable lookup on various platforms.
10899         * lib/progreloc.c: Include <errno.h>.
10900         (safe_read, full_read): New functions.
10901         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
10902         prefer the information from the /proc file system to a PATH search.
10904 2019-02-19  Bruno Haible  <bruno@clisp.org>
10906         progreloc: Simplify code for Android.
10907         * lib/progreloc.c (executable_fd): Don't define on Android.
10908         (maybe_executable, find_executable): Don't use executable_fd on Android.
10910 2019-02-15  Bruno Haible  <bruno@clisp.org>
10912         gnulib-tool: Support --import with just a few tests, not --with-tests.
10913         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
10914         'inctests' when generating files; use 'inctests' only for computing the
10915         transitive closure.
10917 2019-02-14  Bruno Haible  <bruno@clisp.org>
10919         gnulib-tool: Improve handling of multiple --local-dir options.
10920         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
10921         options work.
10922         * gnulib-tool (func_path_prepend): Remove function.
10923         (func_path_foreach): Make IFS handling more robust.
10924         (local_gnulib_path): Collect --local-dir values using func_path_append,
10925         not func_path_prepend.
10926         (func_determine_path_separator): Make IFS handling more robust.
10927         (func_lookup_file_cb): New function.
10928         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
10929         func_lookup_local_file. Apply the patches in the reverse order of their
10930         origin in $local_gnulib_path.
10931         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
10932         * NEWS: Mention that the first --local-dir option is the one with
10933         highest priority.
10935 2019-02-10  Bruno Haible  <bruno@clisp.org>
10937         libtextstyle: New module.
10938         * m4/libtextstyle.m4: New file.
10939         * modules/libtextstyle: New file.
10941 2019-02-05  Bruno Haible  <bruno@clisp.org>
10943         declared.sh: Fix bug with variables of pointer type.
10944         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
10945         before the symbol to be omitted if the preceding character is a '*'.
10947 2019-02-04  Bruno Haible  <bruno@clisp.org>
10949         Add script for running tests under valgrind.
10950         * build-aux/run-test: New file, from GNU libunistring.
10951         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
10952         as well.
10954 2019-02-04  Bruno Haible  <bruno@clisp.org>
10956         declared.sh: Fix --version output.
10957         * build-aux/declared.sh (func_version): Update package name.
10959 2019-02-03  Bruno Haible  <bruno@clisp.org>
10961         Add script for determining the set of symbols to export from a library.
10962         * build-aux/declared.sh: New file, from GNU libunistring.
10963         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
10964         Mention it.
10966 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
10968         vla: add commentary about VLA_ELEMS
10969         * lib/vla.h (VLA_ELEMS): Add commentary,
10970         some inspired by Bruno Haible’s proposal in:
10971         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
10973         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
10974         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
10975         assume the C99 signatures for strtod and strtold.  Programs that
10976         require stricter adherence to C99 should also use the strtod and
10977         strtold modules as needed, and we no longer need the
10978         HAVE_C99_STRTOLD macro.
10979         * NEWS: Mention this.
10980         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
10981         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
10982         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
10983         (Files): Remove m4/c-strtod.m4.
10984         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
10985         exists.
10987 2019-02-02  Bruno Haible  <bruno@clisp.org>
10989         fma: Improve code style.
10990         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
10992 2019-02-02  Colin Watson  <cjwatson@debian.org>
10994         *-map tests: Fix compilation error.
10995         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
10996         * tests/test-hash_map.c: Likewise.
10997         * tests/test-linkedhash_map.c: Likewise.
10999 2019-01-31  Bruno Haible  <bruno@clisp.org>
11001         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
11002         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
11003         GNULIB_defined_strtold_function): New macros.
11004         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
11005         (STRTOD): Ignore HAVE_C99_STRTOLD.
11006         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
11007         deemed buggy. But do use it on platforms where uselocale exists and is
11008         usable.
11009         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
11010         deemed buggy. On platforms where uselocale exists and is usable, use
11011         uselocale and strtod/strtold.
11012         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
11013         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
11014         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
11015         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
11016         (Depends-on): Add strtod.
11017         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
11018         (Depends-on): Add strtold.
11020 2019-01-31  Bruno Haible  <bruno@clisp.org>
11022         strtod, strtold: Use the locale's decimal point.
11023         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
11024         (decimal_point_char): New function, copied from lib/vasnprintf.c.
11025         (parse_number): Add a radixchar argument. Use it instead of '.'.
11026         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
11027         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
11028         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
11029         * tests/test-strtod1.c: New file.
11030         * tests/test-strtod1.sh: New file.
11031         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
11032         locale-fr.m4 and its dependencies.
11033         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11034         (Makefile.am): Arrange to compile test-strtod1.c and run
11035         test-strtod1.sh.
11036         * tests/test-strtold1.c: New file.
11037         * tests/test-strtold1.sh: New file.
11038         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
11039         locale-fr.m4 and its dependencies.
11040         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11041         (Makefile.am): Arrange to compile test-strtold1.c and run
11042         test-strtold1.sh.
11044 2019-01-31  Bruno Haible  <bruno@clisp.org>
11046         strtod, strtold tests: Simplify tests.
11047         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
11048         * tests/test-strtold.c (main): Likewise.
11050 2019-01-31  Bruno Haible  <bruno@clisp.org>
11052         strtod, strtold: Avoid unnecessary rounding errors.
11053         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
11054         decimal to DOUBLE conversion.
11056 2019-01-31  Bruno Haible  <bruno@clisp.org>
11058         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
11059         * lib/strtod.c (STRTOD): When there is an extra character after the
11060         exponent marker 'p', reparse the number.
11061         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
11062         * doc/posix-functions/strtold.texi: Likewise.
11064 2019-01-29  Bruno Haible  <bruno@clisp.org>
11066         strtold: Add tests.
11067         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
11068         * modules/strtold-tests: New file.
11070 2019-01-29  Bruno Haible  <bruno@clisp.org>
11072         strtold: New module.
11073         * lib/stdlib.in.h (strtold): New declaration.
11074         * lib/strtold.c: New file.
11075         * lib/strtod.c: Consider USE_LONG_DOUBLE.
11076         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
11077         USE_LDEXP): New macros.
11078         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
11079         USE_LONG_DOUBLE.
11080         (underlying_strtod): Remove function. Replace with some macros.
11081         Re-add the code for a missing underlying function that was removed on
11082         2013-02-19.
11083         * m4/strtold.m4: New file.
11084         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
11085         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
11086         REPLACE_STRTOLD.
11087         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
11088         REPLACE_STRTOLD.
11089         * modules/strtold: New file.
11090         * doc/posix-functions/strtold.texi: Document the new module.
11092 2019-01-29  Bruno Haible  <bruno@clisp.org>
11094         strtod: Fix compilation error on IRIX 6.5.
11095         * modules/strtod (Depends-on): Add 'math'.
11097 2019-01-28  Bruno Haible  <bruno@clisp.org>
11099         Fix build error when building a shared libunistring on Android.
11100         * tests/uninorm/test-nfc.c (n): Don't define on Android.
11101         (main): Add 'volatile', to defeat a GCC optimization that would
11102         eliminate the reference.
11103         * tests/uninorm/test-nfd.c (n): Don't define on Android.
11104         (main): Add 'volatile', to defeat a GCC optimization that would
11105         eliminate the reference.
11106         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
11107         (main): Add 'volatile', to defeat a GCC optimization that would
11108         eliminate the reference.
11109         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
11110         (main): Add 'volatile', to defeat a GCC optimization that would
11111         eliminate the reference.
11113 2019-01-27  Bruno Haible  <bruno@clisp.org>
11115         Avoid build errors due to wrong references between modules.
11116         * lib/uninorm/canonical-decomposition.c: Include
11117         "uninorm/decomposition-table.h", not "decomposition-table.h".
11118         * lib/uninorm/decomposition.c: Likewise.
11119         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
11120         not "decompose-internal.h".
11121         * lib/uninorm/u16-normalize.c: Likewise.
11122         * lib/uninorm/u32-normalize.c: Likewise.
11123         * lib/uninorm/uninorm-filter.c: Likewise.
11124         * lib/uninorm/nfkc.c: Likewise.
11125         * lib/uninorm/nfkd.c: Likewise.
11126         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
11127         "caseprop.h".
11128         * lib/unicase/u8-ct-totitle.c: Likewise.
11129         * lib/unicase/u8-prefix-context.c: Likewise.
11130         * lib/unicase/u8-suffix-context.c: Likewise.
11131         * lib/unicase/u16-casemap.c: Likewise.
11132         * lib/unicase/u16-ct-totitle.c: Likewise.
11133         * lib/unicase/u16-prefix-context.c: Likewise.
11134         * lib/unicase/u16-suffix-context.c: Likewise.
11135         * lib/unicase/u32-casemap.c: Likewise.
11136         * lib/unicase/u32-ct-totitle.c: Likewise.
11137         * lib/unicase/u32-prefix-context.c: Likewise.
11138         * lib/unicase/u32-suffix-context.c: Likewise.
11139         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
11140         "unicasemap.h".
11141         * lib/unicase/u8-toupper.c: Likewise.
11142         * lib/unicase/u8-ct-tolower.c: Likewise.
11143         * lib/unicase/u8-ct-toupper.c: Likewise.
11144         * lib/unicase/u16-tolower.c: Likewise.
11145         * lib/unicase/u16-toupper.c: Likewise.
11146         * lib/unicase/u16-ct-tolower.c: Likewise.
11147         * lib/unicase/u16-ct-toupper.c: Likewise.
11148         * lib/unicase/u32-tolower.c: Likewise.
11149         * lib/unicase/u32-toupper.c: Likewise.
11150         * lib/unicase/u32-ct-tolower.c: Likewise.
11151         * lib/unicase/u32-ct-toupper.c: Likewise.
11152         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
11153         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
11154         * lib/unicase/u16-ct-casefold.c: Likewise.
11155         * lib/unicase/u32-ct-casefold.c: Likewise.
11157 2019-01-27  Bruno Haible  <bruno@clisp.org>
11159         gperf: Fix error when this module is required by some test module.
11160         * modules/gperf (Applicability): Set to 'all'.
11162 2019-01-27  Bruno Haible  <bruno@clisp.org>
11164         tmpfile: Add support for Android.
11165         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
11166         works.
11167         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
11168         Android.
11169         * modules/tmpfile (Depends-on): Add 'stdbool'.
11170         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
11171         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
11173 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
11175         bitsetv: allow free on NULL.
11176         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
11178 2019-01-27  Bruno Haible  <bruno@clisp.org>
11180         test-framework-sh: Improve maintainability.
11181         * tests/init.sh: Clarify what belongs together. Reorder definitions.
11183 2019-01-27  Bruno Haible  <bruno@clisp.org>
11185         tests: Don't assume that /tmp exists.
11186         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
11187         * tests/test-copy-acl-1.sh: Likewise.
11188         * tests/test-file-has-acl-1.sh: Likewise.
11189         * tests/test-copy-file-1.sh: Likewise.
11191 2019-01-27  Bruno Haible  <bruno@clisp.org>
11193         tests: Accommodate a shell that is not in /bin/sh.
11194         * tests/init.sh (setup_): Set srcdir and builddir.
11195         (BOURNE_SHELL): New variable.
11196         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
11197         * modules/file-has-acl-tests (Depends-on): Likewise.
11198         * modules/copy-file-tests (Depends-on): Likewise.
11199         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
11200         scripts through $BOURNE_SHELL.
11201         * tests/test-set-mode-acl-2.sh: Likewise.
11202         * tests/test-copy-acl-1.sh: Likewise.
11203         * tests/test-copy-acl-2.sh: Likewise.
11204         * tests/test-file-has-acl-1.sh: Likewise.
11205         * tests/test-file-has-acl-2.sh: Likewise.
11206         * tests/test-copy-file-1.sh: Likewise.
11207         * tests/test-copy-file-2.sh: Likewise.
11208         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
11209         invoker.
11210         * tests/test-copy-acl.sh (builddir): Likewise.
11211         * tests/test-file-has-acl.sh (builddir): Likewise.
11212         * tests/test-copy-file.sh (builddir): Likewise.
11213         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
11214         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
11215         * tests/test-vc-list-files-git.sh: Likewise.
11217 2019-01-27  Bruno Haible  <bruno@clisp.org>
11219         tests: Fix some "unused variable" warnings.
11220         * tests/test-fts.c (fts_dealloc): Remove unused variable.
11221         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
11222         * tests/test-striconveh.c (main): Move some variable into the
11223         '#if HAVE_ICONV'.
11224         * tests/test-striconveha.c (main): Likewise.
11225         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
11226         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11227         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11228         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
11229         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11230         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11231         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11232         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11233         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11234         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
11235         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
11236         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
11237         * tests/test-tsearch.c (main): Move some variable into the
11238         '#if HAVE_INITSTATE'.
11240 2019-01-27  Bruno Haible  <bruno@clisp.org>
11242         unigbrk/uc-grapheme-breaks: Fix build failure.
11243         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
11244         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
11246 2019-01-27  Bruno Haible  <bruno@clisp.org>
11248         mountlist: Merge two .m4 files.
11249         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
11250         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
11251         * m4/ls-mntd-fs.m4: Remove file.
11252         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
11254 2019-01-27  Bruno Haible  <bruno@clisp.org>
11256         tests: Enable Linux specific tests on Android.
11257         * tests/test-flock.c (main): Treat Android like Linux.
11258         * tests/test-openat-safer.c (main): Likewise.
11260 2019-01-27  Bruno Haible  <bruno@clisp.org>
11262         relocatable-prog: Use Linux code on Android.
11263         * lib/progreloc.c: Treat Android like Linux.
11265 2019-01-26  Bruno Haible  <bruno@clisp.org>
11267         getloadavg: Add support for Android.
11268         * lib/getloadavg.c: Treat Android like Linux.
11270 2019-01-26  Bruno Haible  <bruno@clisp.org>
11272         vma-iter: Add support for Android.
11273         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
11274         * lib/vma-iter.c: Treat Android like Linux.
11275         * lib/get-rusage-data.c (get_rusage_data): Likewise.
11277 2019-01-26  Bruno Haible  <bruno@clisp.org>
11279         fts: Optimize on Android.
11280         * lib/fts.c: Treat Android like Linux.
11282 2019-01-26  Bruno Haible  <bruno@clisp.org>
11284         fts: Add support for Android.
11285         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
11286         defined by this module and the ones in libc.
11287         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
11289 2019-01-26  Bruno Haible  <bruno@clisp.org>
11291         mountlist: Use Linux code on Android.
11292         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
11293         (unescape_tab, read_file_system_list): Enable Linux code on Android
11294         as well.
11295         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
11296         and endmntent.
11297         * modules/mountlist (Depends-on): Add 'getline'.
11299 2019-01-26  Bruno Haible  <bruno@clisp.org>
11301         localename tests: Fix test failure on Android.
11302         * modules/localename-tests (Depends-on): Add 'setlocale'.
11304 2019-01-26  Bruno Haible  <bruno@clisp.org>
11306         mountlist: Port better to Android.
11307         * lib/mountlist.c (MOUNTED): Redefine on Android.
11308         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
11309         Android.
11311 2019-01-26  Bruno Haible  <bruno@clisp.org>
11313         striconveh: Fix use of uninitialized iconv_t.
11314         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
11315         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
11316         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
11318 2019-01-26  Bruno Haible  <bruno@clisp.org>
11320         nonblocking-socket-tests: Fix test failure on Android 4.3.
11321         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
11322         also on Android.
11324 2019-01-26  Bruno Haible  <bruno@clisp.org>
11326         sh-filename: Add support for Android 4.3.
11327         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
11329 2019-01-26  Bruno Haible  <bruno@clisp.org>
11331         ptsname_r: Work around bug on Android 4.3.
11332         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
11333         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
11334         correct.
11335         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
11336         is defined, just fix the return value.
11337         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
11338         The behaviour of musl libc is nothing to be "fixed", since it is
11339         compliant with the next POSIX standard.
11341 2019-01-26  Bruno Haible  <bruno@clisp.org>
11343         ttyname_r: Work around bug on Android 4.3.
11344         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
11345         * lib/ttyname_r.c (ttyname_r): Implement for Android.
11346         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
11347         * doc/posix-functions/ttyname.texi: Likewise.
11349 2019-01-25  Bruno Haible  <bruno@clisp.org>
11351         getprogname: Port to Android 4.3.
11352         * lib/getprogname.c (getprogname): On Android, take only the last
11353         component of __progname.
11355 2019-01-25  Bruno Haible  <bruno@clisp.org>
11357         wcrtomb: Work around bug on Android 4.3.
11358         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
11359         the C locale.
11360         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
11361         which does not have the 'wctomb' function.
11362         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
11363         * tests/test-wcrtomb.c (main): Accept argument '5'.
11364         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
11366 2019-01-25  Bruno Haible  <bruno@clisp.org>
11368         setlocale: Work around bug on Android 4.3.
11369         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
11370         the "C" locale.
11371         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
11372         * doc/posix-functions/setlocale.texi: Mention the Android bug.
11374 2019-01-24  Bruno Haible  <bruno@clisp.org>
11376         memchr: Work around bug on Android <= 5.0.
11377         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
11378         * doc/posix-functions/memchr.texi: Mention the Android bug.
11380 2019-01-24  Bruno Haible  <bruno@clisp.org>
11382         random: Fix compilation error on Android 4.3.
11383         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
11384         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
11385         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
11386         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
11387         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
11389         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11390         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
11391         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11392         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
11393         REPLACE_INITSTATE, REPLACE_SETSTATE.
11394         * doc/posix-functions/random.texi: Correct the description of the
11395         situation on Android.
11396         * doc/posix-functions/srandom.texi: Likewise.
11397         * doc/posix-functions/rand.texi: Likewise.
11398         * doc/posix-functions/srand.texi: Likewise.
11400 2019-01-24  Bruno Haible  <bruno@clisp.org>
11402         mbtowc: Fix compilation error on Android 4.3.
11403         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
11404         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
11405         HAVE_MBTOWC.
11406         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
11407         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
11408         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
11409         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
11410         * doc/posix-functions/mbtowc.texi: Mention the change.
11412 2019-01-24  Bruno Haible  <bruno@clisp.org>
11414         fdatasync: Fix compilation error on Android 4.3.
11415         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
11416         test whether fdatasync() exists.
11418 2019-01-24  Bruno Haible  <bruno@clisp.org>
11420         unlinkat: Fix compilation error on Android 4.3.
11421         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
11422         also on Android.
11423         * doc/posix-functions/unlinkat.texi: Mention the issue.
11425 2019-01-24  Bruno Haible  <bruno@clisp.org>
11427         renameat: Fix compilation error on Android 4.3.
11428         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
11429         * doc/posix-functions/renameat.texi: Mention the issue.
11431 2019-01-24  Bruno Haible  <bruno@clisp.org>
11433         fchownat: Fix compilation error on Android 4.3.
11434         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
11435         use.
11436         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
11437         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
11438         * doc/posix-functions/fchownat.texi: Mention the issue.
11440 2019-01-23  Bruno Haible  <bruno@clisp.org>
11442         gnulib-tool: Support running testdirs on Android.
11443         * build-aux/test-driver.diff: New file.
11444         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
11445         build-aux/test-driver after running automake.
11447 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11449         relocatable-prog: avoid warnings from Automake
11450         * modules/relocatable-prog: Don't declare PHONY dependencies in
11451         Automake conditionals.
11453 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11455         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
11456         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
11458 2019-01-23  Bruno Haible  <bruno@clisp.org>
11460         threadlib: Revert commit from 2018-06-25. We now have a better fix.
11461         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
11462         preceding -Wl,--as-needed option. Don't check whether the linker
11463         supports --as-needed/--no-as-needed and --push-state/--pop-state.
11465 2019-01-23  Bruno Haible  <bruno@clisp.org>
11467         thread: Force linking with -lpthread, even when --as-needed is in use.
11468         Reported by Richard W.M. Jones <rjones@redhat.com> in
11469         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
11470         * lib/glthread/thread.h (pthread_create): Don't declare weak.
11472 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
11473             Bruno Haible  <bruno@clisp.org>
11475         relocatable: avoid compiler warnings (-Wshadow)
11476         * lib/relocatable.c (compute_curr_prefix): Rename local variables
11477         to avoid name collisions with global variables.
11479 2019-01-22  Bruno Haible  <bruno@clisp.org>
11481         vasnprintf: Don't use %n on Android.
11482         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
11483         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
11484         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
11486 2019-01-22  Bruno Haible  <bruno@clisp.org>
11488         *printf: Support cross-compilation to Android.
11489         * m4/printf.m4: Add cross-compilation guesses for Android.
11491 2019-01-21  Bruno Haible  <bruno@clisp.org>
11493         diacrit: Mark deprecated.
11494         * modules/diacrit (Status, Notice): Mark as deprecated.
11495         * NEWS: Mention it.
11497 2019-01-20  Bruno Haible  <bruno@clisp.org>
11499         rintl: Override broken implementation on NetBSD.
11500         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
11501         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
11502         REPLACE_RINTL.
11503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
11504         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
11505         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
11506         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
11508 2019-01-20  Bruno Haible  <bruno@clisp.org>
11510         log10l: Work around inaccurate implementation on NetBSD.
11511         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
11512         * lib/log10l.c: Comment out too simplistic override.
11513         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
11515 2019-01-20  Bruno Haible  <bruno@clisp.org>
11517         logl: Work around inaccurate implementation on NetBSD.
11518         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
11519         * lib/logl.c: Comment out unused code.
11520         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
11522 2019-01-20  Bruno Haible  <bruno@clisp.org>
11524         expm1l: Work around inaccurate implementation on NetBSD.
11525         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
11526         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
11527         REPLACE_EXPM1L.
11528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
11529         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
11530         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
11531         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
11533 2019-01-20  Bruno Haible  <bruno@clisp.org>
11535         expl: Work around inaccurate implementation on NetBSD.
11536         * lib/math.in.h (expl): Test also REPLACE_EXPL.
11537         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
11538         REPLACE_EXPL.
11539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
11540         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
11541         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
11542         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
11544 2019-01-20  Bruno Haible  <bruno@clisp.org>
11546         exp2l: Work around inaccurate implementation on NetBSD.
11547         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
11548         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
11550 2019-01-20  Bruno Haible  <bruno@clisp.org>
11552         floor, floorl: Avoid autoconf warnings.
11553         * modules/floor (configure.ac): Use AC_REQUIRE.
11554         * modules/floorl (configure.ac): Likewise.
11556 2019-01-20  Bruno Haible  <bruno@clisp.org>
11558         Defeat current GCC optimizations in math autoconf tests.
11559         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
11560         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11561         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11562         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11563         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
11564         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11565         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11566         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11567         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
11568         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
11569         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
11570         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
11571         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
11572         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
11573         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
11574         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
11575         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
11576         * m4/log.m4 (gl_FUNC_LOG): Likewise.
11577         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
11578         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
11579         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
11580         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
11581         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
11582         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
11583         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
11584         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
11585         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
11586         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
11587         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
11588         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
11589         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
11590         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
11591         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11592         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11593         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11594         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11595         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11596         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11598 2019-01-19  Pádraig Brady  <P@draigBrady.com>
11600         gettext: support disabling use of VLAs
11601         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
11603 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
11605         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
11606         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
11608 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
11610         fcntl: Fix syntax error (regression from 2018-10-05).
11611         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
11613 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
11615         relocatable: improve documentation.
11616         * doc/relocatable-maint.texi (Supporting Relocation): For
11617         substitutions performed by config.status, we need more variables
11618         (for instance datarootdir defaults to '${prefix}/share' so we need
11619         prefix).
11621 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
11623         backup: update dependencies
11624         * modules/backup-rename (Depends-on): It now depends on opendirat
11625         instead of opendir.  It also uses stdint, and xalloc-oversized.
11626         But no longer dirfd.
11627         * modules/backupfile (Depends-on): Add xalloc-oversized.
11629 2019-01-13  Bruno Haible  <bruno@clisp.org>
11631         getcwd: Fix test failure when building on a Linux 9p file system.
11632         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
11633         EINVAL from mkdir like ENAMETOOLONG.
11634         * tests/test-getcwd.c (test_long_name): Likewise.
11636 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
11638         Fix typos found by codespell.
11639         * lib/*.[hc]: Fix typos in comments.
11640         * pygnulib/*.py: Fix typos in error messages and comments.
11642 2019-01-12  Bruno Haible  <bruno@clisp.org>
11644         doc: Fix documentation about container data types.
11645         Reported by Werner Lemberg <wl@gnu.org>.
11646         * doc/containers.texi (Container data types): Fix typo.
11648 2019-01-10  Bruno Haible  <bruno@clisp.org>
11650         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
11651         Reported by Reuben Thomas <rrt@sc3d.org>.
11652         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
11654 2019-01-06  Bruno Haible  <bruno@clisp.org>
11656         maintainer-makefile: Make the configure.ac section optional.
11657         * top/maint.mk (GREP, SED): Define if not defined.
11659 2019-01-06  Bruno Haible  <bruno@clisp.org>
11661         localename: Assume setlocale function.
11662         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
11663         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
11665 2019-01-06  Bruno Haible  <bruno@clisp.org>
11667         doc: Add documentation about container data types.
11668         * doc/containers.texi: New file.
11669         * doc/gnulib.texi (Particular Modules): Include it.
11671 2019-01-06  Bruno Haible  <bruno@clisp.org>
11673         doc: Update documentation about 'progname' module.
11674         * doc/progname.texi: Rename from doc/error.texi. Change node name and
11675         title. Rewrite.
11676         * doc/gnulib.texi (Particular Modules): Update.
11678 2019-01-06  Bruno Haible  <bruno@clisp.org>
11680         doc: Document the xstdopen and *-safer modules.
11681         * doc/xstdopen.texi: New file.
11682         * doc/gnulib.texi (Particular Modules): Include it.
11684 2019-01-06  Bruno Haible  <bruno@clisp.org>
11686         xstdopen: Add tests.
11687         * tests/test-xstdopen.c: New file.
11688         * tests/test-xstdopen.sh: New file.
11689         * modules/xstdopen-tests: New file.
11691         xstdopen: New module.
11692         * lib/xstdopen.h: New file.
11693         * lib/xstdopen.c: New file.
11694         * modules/xstdopen: New file.
11696 2019-01-06  Bruno Haible  <bruno@clisp.org>
11698         stdopen: Fix compilation error with IRIX cc.
11699         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
11701 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
11703         xfreopen need not include stdio--.h
11704         * lib/xfreopen.c: Do not include stdio--.h.
11706         xfreopen need not depend on freopen-safer
11707         * modules/xfreopen (Depends-on):
11708         Depend on freopen, not freopen-safer.
11710         stdopen: modernize and simplify
11711         * lib/stdopen.c: Update copyright date
11712         Do not include sys/types.h; no longer needed these days.
11713         (stdopen): Use C99-style decl in loop.  Return int errno
11714         value, rather than just a bool.  Do not worry about fd mismatches,
11715         since the caller cares only if 0, 1, 2 are occupied.
11716         * lib/stdopen.h: No need to include <stdbool.h>.
11717         * m4/stdopen.m4: Remove.
11718         * modules/stdopen: New file.
11720         stdopen: copy from last use in coreutils
11721         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
11722         New files, taken from their last commit in coreutils
11723         2007-07-23T12:35:58Z!jim@meyering.net
11724         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
11726 2019-01-05  Bruno Haible  <bruno@clisp.org>
11728         argp: Don't pass an invalid argument to dgettext().
11729         Reported by He X <xw897002528@gmail.com>.
11730         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
11731         dgettext().
11733 2019-01-05  Bruno Haible  <bruno@clisp.org>
11735         argp: Don't pass an invalid argument to dgettext().
11736         Reported by He X <xw897002528@gmail.com>.
11737         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
11738         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
11739         dgettext().
11741 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11743         stdioext: port to newer 32-bit Android
11744         Problem reported by Tom Yan in:
11745         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
11746         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
11747         (fp_) [__ANDROID__]: Use it.
11749 2019-01-04  Bruno Haible  <bruno@clisp.org>
11751         lock: Fix link error with --enable-threads=pth.
11752         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
11753         Mark as weak.
11755 2019-01-04  Bruno Haible  <bruno@clisp.org>
11757         Fix link errors in unit tests.
11758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11759         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
11760         * modules/array-map-tests (Makefile.am): Link test-array_map against
11761         libintl.
11762         * modules/array-set-tests (Makefile.am): Link test-array_set against
11763         libintl.
11764         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
11765         libintl.
11766         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
11767         libintl.
11768         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
11769         against libintl.
11770         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
11771         against libintl.
11773 2019-01-04  Bruno Haible  <bruno@clisp.org>
11775         Fix incorrect 'Link' sections.
11776         * modules/regex (Link): Mention the link requirement of module 'lock'.
11777         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
11779 2019-01-04  Bruno Haible  <bruno@clisp.org>
11781         Fix some 'Link' sections.
11782         * modules/c-stack (Link): Add link directive from the 'gettext-h'
11783         dependency.
11784         * modules/getaddrinfo (Link): Likewise.
11786 2019-01-04  Bruno Haible  <bruno@clisp.org>
11788         Remove redundant 'Link' sections.
11789         * modules/canon-host (Link): Remove section.
11790         * modules/timevar (Link): Likewise.
11792 2019-01-04  Bruno Haible  <bruno@clisp.org>
11794         Remove incorrect 'Link' sections.
11795         * modules/acl (Link): Remove section. Use combined 'Link' sections from
11796         the dependencies instead.
11797         * modules/crypto/md5 (Link): Likewise.
11798         * modules/crypto/sha1 (Link): Likewise.
11799         * modules/crypto/sha256 (Link): Likewise.
11800         * modules/crypto/sha512 (Link): Likewise.
11801         * modules/faccessat (Link): Likewise.
11802         * modules/fdutimensat (Link): Likewise.
11803         * modules/iconv_open-utf (Link): Likewise.
11804         * modules/propername (Link): Likewise.
11805         * modules/qacl (Link): Likewise.
11806         * modules/unicodeio (Link): Likewise.
11807         * modules/utimecmp (Link): Likewise.
11808         * modules/utimensat (Link): Likewise.
11809         * modules/xstriconv (Link): Likewise.
11810         * modules/xstriconveh (Link): Likewise.
11812 2019-01-04  Bruno Haible  <bruno@clisp.org>
11814         gnulib-tool: New option --extract-recursive-link-directive.
11815         * gnulib-tool (func_usage): Document the new options
11816         --extract-recursive-dependencies, --extract-recursive-link-directive.
11817         (func_verify_module): Document output variables.
11818         (func_get_dependencies_recursively): New function.
11819         (func_get_link_directive_recursively): New function.
11820         Use them to implement the new options
11821         --extract-recursive-dependencies, --extract-recursive-link-directive.
11822         * doc/gnulib-tool.texi (Link-time requirements): New section.
11824 2019-01-04  Bruno Haible  <bruno@clisp.org>
11826         Clarify meaning of 'Link' section in module description.
11827         * doc/gnulib.texi (Module description): Clarify the meaning of the
11828         'Link' section versus the one of the dependencies.
11829         * NEWS: Mention the change.
11831 2019-01-04  Bruno Haible  <bruno@clisp.org>
11833         pselect: Fix module description.
11834         * modules/pselect (Link): Put one link option per line.
11836 2019-01-04  Bruno Haible  <bruno@clisp.org>
11838         cosl: Fix module description.
11839         * modules/cosl (Link): Fix typo.
11840         * modules/mathl (configure.ac): Likewise.
11842 2019-01-04  Bruno Haible  <bruno@clisp.org>
11844         c-xvasprintf: Fix module dependencies.
11845         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
11847 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
11849         bootstrap: die when some submodules are not initialized
11850         * build-aux/bootstrap: Make sure all submodules are initialized.
11852 2019-01-04  Bruno Haible  <bruno@clisp.org>
11854         bitsetv: Fix module dependencies.
11855         * lib/bitsetv.c: Include xalloc.h.
11856         * modules/bitsetv (Depends-on): Add 'xalloc'.
11858 2019-01-04  Bruno Haible  <bruno@clisp.org>
11860         xmemdup0: Remove redundant code.
11861         * lib/xmemdup0.h (xalloc_die): Remove declaration.
11863 2019-01-04  Bruno Haible  <bruno@clisp.org>
11865         backupfile: Fix module dependencies.
11866         * modules/backupfile (Depends-on): Add 'xalloc'.
11868 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
11870         bitset, crypto/gc: fix conflicts with Solaris 11
11871         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
11872         avoid clash with Solaris 11 <sys/bitset.h>.
11873         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
11874         with Solaris 11 <xorg/gc.h>.
11876 2019-01-04  Bruno Haible  <bruno@clisp.org>
11878         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
11879         Reported by Andy Fiddaman <andy@omniosce.org>.
11880         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
11882 2019-01-03  Eric Blake  <eblake@redhat.com>
11884         maintainer-makefile: fix typo in previous patch
11885         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
11886         of Roman's work.
11888 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
11890         maintainer-makefile: prefer $(GREP) over grep
11891         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
11892         defined.
11893         * top/maint.mk: Use it everywhere.
11895         maintainer-makefile: split long argument lines
11896         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
11897         it would be too long for exec limits on BSD.
11899 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11901         mkfifo: bring back HAVE_MKFIFO macro
11902         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
11903         Problem reported by Andrew Janke in:
11904         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
11906 2018-12-21  Bruno Haible  <bruno@clisp.org>
11908         Assume Autoconf >= 2.63.
11909         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
11910         versions < 2.60.
11912 2018-12-21  Bruno Haible  <bruno@clisp.org>
11914         memcmp: Mention the clang bug.
11915         * tests/test-memcmp.c: Add comment about a known test failure.
11916         * doc/posix-functions/memcmp.texi: Mention the clang bug.
11918 2018-12-20  Jim Meyering  <meyering@fb.com>
11920         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
11921         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
11922           echo '123-x'|LC_ALL=C grep -E '.\bx'
11923         The goal is to revert the first, but reverting it requires to restore
11924         the function deleted in the second. I ran this to restore the deleted
11925         function:
11926           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
11927             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
11928             | patch -R -p1
11929         * lib/dfa.c (charclass_context): Restore deleted function.
11930         Reverting the primary commit removes this change:
11931         dfa: Simplify a building state
11932         * lib/dfa.c (build_state): Simplify a building state.
11934 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11936         version-etc: allow zero authors
11937         * lib/version-etc.c (version_etc_arn): If no authors are given,
11938         omit authorship info instead of dumping core.
11940 2018-12-19  Bruno Haible  <bruno@clisp.org>
11942         lchown tests: Be more permissive regarding errno values.
11943         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
11944         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
11945         alternative to ENOSYS.
11946         * modules/lchown-tests (Depends-on): Add 'errno'.
11947         * modules/fchownat-tests (Depends-on): Likewise.
11949 2018-12-18  Bruno Haible  <bruno@clisp.org>
11951         duplocale: Avoid test failure on AIX 7.
11952         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
11953         (configure.ac): Invoke gt_FUNC_USELOCALE.
11954         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
11955         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
11956         works.
11958 2018-12-18  Bruno Haible  <bruno@clisp.org>
11960         localename: Fix test failure on AIX 7.
11961         Reported by Assaf Gordon in
11962         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
11963         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
11964         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
11965         instead of ac_cv_func_uselocale.
11966         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
11967         HAVE_USELOCALE.
11968         * lib/localename-table.h: Likewise.
11969         * lib/localename-table.c: Likewise.
11970         * tests/test-localename.c: Likewise.
11971         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
11973 2018-12-18  Bruno Haible  <bruno@clisp.org>
11975         localename: Update comments regarding Cygwin.
11976         * lib/localename.c: Update comment.
11977         * doc/posix-functions/uselocale.texi: Update platforms list.
11978         * doc/posix-functions/newlocale.texi: Likewise.
11979         * doc/posix-functions/duplocale.texi: Likewise.
11980         * doc/posix-functions/freelocale.texi: Likewise.
11982 2018-12-16  Bruno Haible  <bruno@clisp.org>
11984         c-stack: Fix for Linux/sparc.
11985         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
11986         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
11988 2018-12-16  Bruno Haible  <bruno@clisp.org>
11990         localename: Avoid test failure on some glibc systems.
11991         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
11992         Unset environment variables that might disturb the first setlocale call,
11993         and verify that this setlocale call succeeds.
11995 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
11997         random: Fix build error on native Windows (regression from 2018-06-21).
11998         * lib/random.c (__srandom, __initstate, __setstate, __random,
11999         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
12000         to the symbols without '__' prefix.
12002 2018-12-16  Bruno Haible  <bruno@clisp.org>
12004         obstack, libc-config: Support HP-UX cc in C99 mode.
12005         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
12006         compiler, even when in C99 mode.
12007         * lib/cdefs.h (__flexarr): Likewise.
12008         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
12010 2018-12-16  Bruno Haible  <bruno@clisp.org>
12012         localename: Fix test failure on OpenBSD >= 6.2.
12013         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
12014         locale system. Define HAVE_FAKE_LOCALES in this case.
12015         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
12016         HAVE_USELOCALE.
12017         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
12018         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
12019         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
12020         platforms list.
12021         * doc/posix-functions/newlocale.texi: Likewise.
12022         * doc/posix-functions/duplocale.texi: Update platforms list.
12023         * doc/posix-functions/freelocale.texi: Likewise.
12025 2018-12-16  Bruno Haible  <bruno@clisp.org>
12027         duplocale tests: Re-enable the test on platforms without <monetary.h>.
12028         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
12029         of the test, on platforms without <monetary.h>.
12031 2018-12-16  Bruno Haible  <bruno@clisp.org>
12033         localename: Update comments.
12034         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
12036 2018-12-15  Jim Meyering  <meyering@fb.com>
12038         regex: fix indentation
12039         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
12041 2018-12-15  Bruno Haible  <bruno@clisp.org>
12043         openat-safer tests: Avoid test failure on NetBSD 8.
12044         * tests/test-openat-safer.c (main): Execute a Linux specific test only
12045         on Linux.
12047 2018-12-15  Jim Meyering  <meyering@fb.com>
12049         regex: work around a bug in glibc-2.27 and prior
12050         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
12051         assertion for /0|()0|\1|0/.
12052         * tests/test-regex.c (main): Add the same test here.
12054 2018-12-15  Bruno Haible  <bruno@clisp.org>
12056         localename: Fix use of uninitialized shell variable.
12057         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
12058         gt_cv_locale_solaris114 always before use. Remove assignment without
12059         effect.
12061 2018-12-15  Bruno Haible  <bruno@clisp.org>
12063         dfa tests: Avoid test failure on Alpine Linux.
12064         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
12065         command found on Alpine Linux.
12067 2018-12-15  Jim Meyering  <meyering@fb.com>
12069         dfa: avoid new warnings from gcc
12070         These would prevent building with -Werror and a Dec snapshot of gcc.
12071         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
12072         Rename each inner instance to "p".
12073         (charclass_context): Remove unused static function.
12075 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
12077         mkdir-p: improve diagnostic for FUSE mounts
12078         Problem reported by Niklas Hambüchen in:
12079         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
12080         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
12081         errno to mkdir errno if the stat errno is likely more interesting.
12083 2018-12-14  Bruno Haible  <bruno@clisp.org>
12085         hash-map: Add tests.
12086         * tests/test-hash_map.c: New file.
12087         * modules/hash-map-tests: New file.
12089         linkedhash-map: Add tests.
12090         * tests/test-linkedhash_map.c: New file.
12091         * modules/linkedhash-map-tests: New file.
12093         array-map: Add tests.
12094         * tests/test-array_map.c: New file.
12095         * modules/array-map-tests: New file.
12097         xmap: New module.
12098         * lib/gl_xmap.h: New file.
12099         * lib/gl_xmap.c: New file.
12100         * modules/xmap: New file.
12102         hash-map: New module.
12103         * lib/gl_hash_map.h: New file.
12104         * lib/gl_hash_map.c: New file.
12105         * modules/hash-map: New file.
12107         linkedhash-map: New module.
12108         * lib/gl_linkedhash_map.h: New file.
12109         * lib/gl_linkedhash_map.c: New file.
12110         * lib/gl_anyhash1.h: Update comments.
12111         * lib/gl_anyhash2.h: Likewise.
12112         * modules/linkedhash-map: New file.
12114         array-map: New module.
12115         * lib/gl_array_map.h: New file.
12116         * lib/gl_array_map.c: New file.
12117         * modules/array-map: New file.
12119         map: New module.
12120         * lib/gl_map.h: New file.
12121         * lib/gl_map.c: New file.
12122         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
12123         conflict with gl_map.h.
12124         * modules/map: New file.
12126 2018-12-13  Bruno Haible  <bruno@clisp.org>
12128         select tests: Avoid test failure on Cygwin.
12129         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
12131 2018-12-13  Bruno Haible  <bruno@clisp.org>
12133         localtime-buffer: Avoid endless recursion in localtime and gmtime.
12134         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
12136 2018-12-13  Bruno Haible  <bruno@clisp.org>
12138         localeconv tests: Avoid test failure on Cygwin.
12139         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
12140         'mon_grouping' tests.
12142 2018-12-11  Bruno Haible  <bruno@clisp.org>
12144         omap: Don't dispose the old value when the function returns it.
12145         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
12146         here.
12147         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12148         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12149         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
12150         here.
12152         array-omap, avltree-omap, rbtree-omap: Tweak style.
12153         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
12154         false.
12155         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
12157         rbtree-omap: Add tests.
12158         * tests/test-rbtree_omap.c: New file.
12159         * modules/rbtree-omap-tests: New file.
12161         avltree-omap: Add tests.
12162         * tests/test-avltree_omap.c: New file.
12163         * modules/avltree-omap-tests: New file.
12165         array-omap: Add tests.
12166         * tests/test-array_omap.c: New file.
12167         * modules/array-omap-tests: New file.
12169         xomap: New module.
12170         * lib/gl_xomap.h: New file.
12171         * lib/gl_xomap.c: New file.
12172         * modules/xomap: New file.
12174         rbtree-omap: New module.
12175         * lib/gl_rbtree_omap.h: New file.
12176         * lib/gl_rbtree_omap.c: New file.
12177         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
12178         Parameterize.
12179         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
12180         * modules/rbtree-omap: New file.
12181         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
12182         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
12184         avltree-omap: New module.
12185         * lib/gl_avltree_omap.h: New file.
12186         * lib/gl_avltree_omap.c: New file.
12187         * lib/gl_avltree_ordered.h: Code moved to here from
12188         lib/gl_avltree_oset.c. Parameterize.
12189         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
12190         * lib/gl_anytree_omap.h: New file.
12191         * modules/avltree-omap: New file.
12192         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
12193         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
12195         array-omap: New module.
12196         * lib/gl_array_omap.h: New file.
12197         * lib/gl_array_omap.c: New file.
12198         * modules/array-omap: New file.
12200         omap: New module.
12201         * lib/gl_omap.h: New file.
12202         * lib/gl_omap.c: New file.
12203         * modules/omap: New file.
12205 2018-12-11  Bruno Haible  <bruno@clisp.org>
12207         hash-set, linkedhash-set: Reduce code duplication.
12208         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
12209         lib/gl_anyhash_set1.h.
12210         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
12211         lib/gl_anyhash_set2.h. Parameterize.
12212         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
12213         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
12214         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
12215         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
12216         * lib/gl_rbtreehash_list.c: Likewise.
12217         * lib/gl_linkedhash_list.c: Likewise.
12218         (hash_resize_after_add): Remove function.
12219         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
12220         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
12221         * gl_hash_set.c: Likewise.
12222         * modules/avltreehash-list (Files, Makefile.am): Update file list.
12223         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
12224         * modules/linkedhash-list (Files, Makefile.am): Likewise.
12225         * modules/linkedhash-set (Files, Makefile.am): Likewise.
12226         * modules/hash-set (Files, Makefile.am): Likewise.
12228 2018-12-11  Bruno Haible  <bruno@clisp.org>
12230         array-set: Optimize.
12231         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
12232         outside the loop, not inside the loop.
12234 2018-12-11  Bruno Haible  <bruno@clisp.org>
12236         times: Fix tests.
12237         * tests/test-times.c (doublecmp): Implement a total order.
12239 2018-12-11  Bruno Haible  <bruno@clisp.org>
12241         array-set, linkedhash-set, hash-set: Fix tests.
12242         * tests/test-array_set.c (cmp_objects_in_array): New function.
12243         (check_equals): Use it.
12244         * tests/test-hash_set.c: Likewise.
12245         * tests/test-linkedhash_set.c: Likewise.
12247 2018-12-08  Bruno Haible  <bruno@clisp.org>
12249         Fix comments.
12250         * lib/gl_list.h (gl_list_free): Clarify what it does.
12251         * lib/gl_oset.h (gl_oset_free): Likewise.
12252         * lib/gl_set.h (gl_set_free): Likewise.
12253         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
12254         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
12255         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
12256         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
12258 2018-12-03  Bruno Haible  <bruno@clisp.org>
12260         hash-set: Add tests.
12261         * tests/test-hash_set.c: New file.
12262         * modules/hash-set-tests: New file.
12264         linkedhash-set: Add tests.
12265         * tests/test-linkedhash_set.c: New file.
12266         * modules/linkedhash-set-tests: New file.
12268         array-set: Add tests.
12269         * tests/test-array_set.c: New file.
12270         * modules/array-set-tests: New file.
12272         xset: New module.
12273         * lib/gl_xset.h: New file.
12274         * lib/gl_xset.c: New file.
12275         * modules/xset: New file.
12277         hash-set: New module.
12278         * lib/gl_hash_set.h: New file.
12279         * lib/gl_hash_set.c: New file.
12280         * modules/hash-set: New file.
12282         linkedhash-set: New module.
12283         * lib/gl_linkedhash_set.h: New file.
12284         * lib/gl_linkedhash_set.c: New file.
12285         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
12286         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
12287         * lib/gl_anyhash_primes.h: New file, extracted from
12288         lib/gl_anyhash_list2.h.
12289         * lib/gl_anyhash_list2.h: Include it.
12290         (primes, next_prime): Remove definitions.
12291         * modules/linkedhash-set: New file.
12292         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
12293         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12294         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
12295         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12296         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
12297         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12299         array-set: New module.
12300         * lib/gl_array_set.h: New file.
12301         * lib/gl_array_set.c: New file.
12302         * modules/array-set: New file.
12304         set: New module.
12305         * lib/gl_set.h: New file.
12306         * lib/gl_set.c: New file.
12307         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
12308         gl_set.h.
12309         * modules/set: New file.
12311 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
12313         bison: don't force the Yacc mode
12314         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
12315         errors when Bison features are used in the grammar file.  Some of
12316         these features (such as %expect) were flagged non-yacc recently.  Most
12317         of the time, -y is actually used to please Automake's ylwrap which
12318         expects the output to be y.tab.c.
12319         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
12321 2018-12-01  Bruno Haible  <bruno@clisp.org>
12323         gnupload: Document short options.
12324         * build-aux/gnupload (usage): Document the short options.
12326 2018-11-28  Ben Elliston  <bje@gnu.org>
12328         gnupload: Support option -h as alias of --help.
12329         * build-aux/gnupload: Support -h.
12331 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
12333         memrchr: port better to clang
12334         * lib/memrchr.c (__memrchr): Cast to void * instead of to
12335         longword *, to pacify clang -Wcast-align (Bug#33544).
12337 2018-11-29  Eric Blake  <eblake@redhat.com>
12339         docs: mention printf %m considerations
12340         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
12341         is not portable, and is easy enough to work around.
12342         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
12343         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
12344         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
12345         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
12346         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12347         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12348         * doc/posix-functions/printf.texi (printf): Likewise.
12349         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
12350         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
12351         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
12352         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12353         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12354         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12355         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12356         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12357         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
12358         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
12359         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12360         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12362 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
12364         bitset: rename ebitset/expandable.* as tbitset/table.*
12365         See
12366         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
12367         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
12368         * lib/bitset/table.h, lib/bitset/table.c: these.
12369         Rename all the ebitset* symbols as tbitset*.
12370         Adjust dependencies.
12372 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12374         bitset: check the operations
12375         * tests/test-bitset.c (bitset_random): New.
12376         Use it.
12377         * lib/bitset/expandable.c (ebitset_not): Fix typo.
12379 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12381         bitset: properly use false/true instead of 0/1 for Booleans
12382         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
12383         0/1, as Booleans.
12385 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12387         bitset: rename BITSET_VARRAY as BITSET_VECTOR
12388         For consistency with the name of the file.
12389         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
12390         * lib/bitset/stats.c, lib/bitset/vector.c
12391         (BITSET_VARRAY): Rename as...
12392         (BITSET_VECTOR): this.
12394 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12396         strerror_r-posix: memmove, not memcpy
12397         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
12398         since the source and destination might overlap in the call
12399         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
12400         Simplify.
12402 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12404         bitsetv: new module
12405         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
12407 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12409         bitset: add tests and doc
12410         First stabs at providing a documentation and test for the bitset
12411         module.
12412         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
12414 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12416         bitset: new module
12417         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
12418         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
12419         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
12420         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
12421         * lib/bitset/vector.h, modules/bitset:
12422         New.
12424 2018-11-23  Bruno Haible  <bruno@clisp.org>
12426         localename: Fix gettext test failures on mingw.
12427         * lib/localename.c (gl_locale_name_posix): Convert the result of
12428         gl_locale_name_environ to XPG syntax.
12430 2018-11-23  Karl Berry  <karl@freefriends.org>
12432         * config/srclistvars.txt,
12433         * config/srclist.txt: remove all gettext references;
12434         the gettext maintainers will sync as needed.
12436 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
12438         mktime: add libc-config dependency
12439         I missed this when we synced from glibc.
12440         * modules/mktime (Depends-on): Add libc-config.
12442 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12444         longlong: fix comment typo
12445         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
12447 2018-11-11  Bruno Haible  <bruno@clisp.org>
12449         havelib: Remove the need to include asm-underscore.m4.
12450         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
12451         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
12452         gl_HOST_CPU_C_ABI.
12453         * modules/havelib (Files): Add host-cpu-c-abi.m4.
12454         (Depends-on): Remove host-cpu-c-abi.
12456 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12458         parse-datetime: simplify test for mktime failure
12459         * lib/parse-datetime.y (mktime_ok): Simplify.
12460         Remove args TZ and T; no longer needed.  Callers changed.
12462         posixtm: simplify test for mktime failure
12463         * lib/posixtm.c (posixtime): Simplify.
12465         nstrftime: simplify test for mktime failure
12466         * lib/nstrftime.c (__strftime_internal): Simplify.
12468 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12470         gnulib-common.m4: port _Noreturn to C++
12471         Problem reported by Akim Demaille in:
12472         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
12473         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
12474         Merge adjustments from _Noreturn.h and from glibc into the non-C++
12475         version.
12476         * lib/_Noreturn.h: Match gnulib-common.
12478 2018-10-30  Bruno Haible  <bruno@clisp.org>
12480         gnu-make: Fix for NetBSD 8 'make'.
12481         Reported by Reuben Thomas in
12482         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
12483         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
12484         output, ignoring exit codes.
12486 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
12488         maintainer-makefile: fix syntax-check rule for "same.h"
12489         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
12490         for 'same_nameat', too.
12492 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
12494         havelib: fix nested ‘configure’ chatter
12495         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
12496         AC_CACHE_CHECK calls, which resulted in confusing output like
12497         “checking for the common suffixes of directories in the library
12498         search path... checking for 64-bit host... no lib,lib”.
12500         backupfile: tweak for better code
12501         * lib/backupfile.c: Sort include directives, and remove
12502         unnecessary <limits.h> include.
12503         (FALLTHROUGH): New macro, copied from other modules.
12504         (backupfile_internal): Use it to avoid code duplication.
12505         This lets GCC 8.2.1 generate better code by inlining the
12506         call to check_extension.
12508 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12510         backupfile: new dir_fd args
12511         New module opendirat with code taken from fts.
12512         Use this module to let backupfile use a directory file descriptor.
12513         * NEWS: Document the incompatible change.
12514         * lib/backup-find.c (find_backup_file_name):
12515         * lib/backup-rename.c (backup_file_rename):
12516         New arg DIR_FD.
12517         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
12518         (SIZE_MAX): Remove.
12519         Include opendirat.h rather than dirent--.h.
12520         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
12521         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
12522         (backupfile_internal): New arg DIR_FD.  All callers changed.
12523         * lib/fts.c: Include opendirat.h.
12524         (opendirat): Move to opendirat.c.
12525         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
12526         * modules/backupfile (Depends-on): Remove dirfd, opendir.
12527         Add opendirat.
12528         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
12529         Add opendirat.
12531 2018-10-23  Bruno Haible  <bruno@clisp.org>
12533         localename: Simplify support for per-thread locales on Solaris 11.4.
12534         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
12535         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
12536         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
12537         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
12538         specific code.
12539         * lib/localename-table.h: Update comments.
12540         * lib/localename-table.c: Update comments.
12541         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
12542         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
12543         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
12544         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
12545         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
12546         HAVE_NAMELESS_LOCALES here.
12547         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
12548         m4/intlsolaris.m4.
12549         * modules/gettext (Files): Likewise.
12551 2018-10-22  Bruno Haible  <bruno@clisp.org>
12553         std-gnu11: Support Autoconf versions < 2.64.
12554         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
12555         when _AC_DO_LIMIT does not exist.
12557 2018-10-22  Bruno Haible  <bruno@clisp.org>
12559         Assume Autoconf >= 2.63.
12560         * DEPENDENCIES: Mention the requirement.
12562         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
12563         (func_get_filelist): Don't list m4/onceonly.m4 any more.
12564         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
12565         * m4/onceonly.m4: Remove file.
12567         * m4/openmp.m4: Remove file.
12568         * modules/openmp (Files): Remove m4/openmp.m4.
12570         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
12571         htmldir, dvidir, pdfdir, psdir, localedir.
12572         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
12574         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
12575         Autoconf < 2.60.
12576         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
12577         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
12579         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
12580         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
12581         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
12583         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
12584         exists.
12585         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
12587         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
12588         Autoconf < 2.61.
12590         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
12591         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
12592         Autoconf >= 2.52.
12594         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
12595         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
12596         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
12598 2018-10-22  Bruno Haible  <bruno@clisp.org>
12600         Assume Automake >= 1.11.
12601         * m4/configmake.m4: Update comments.
12602         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
12603         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
12604         of 'eval'.
12605         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
12606         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
12607         requires Automake >= 1.11.
12609 2018-10-22  Bruno Haible  <bruno@clisp.org>
12611         localename: Fix typo in comment.
12612         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
12614 2018-10-22  Bruno Haible  <bruno@clisp.org>
12616         Fix failure of 'gnulib-tool --create-testdir' with all modules.
12617         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
12619 2018-10-21  Bruno Haible  <bruno@clisp.org>
12621         locale: Ease integration with GNU libintl.
12622         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
12623         GNULIB_defined_freelocale): New macros.
12625 2018-10-21  Bruno Haible  <bruno@clisp.org>
12627         localename: Fine-tune support for per-thread locales on Solaris 11.4.
12628         * lib/localename-table.h: New file, extracted from lib/localename.c.
12629         * lib/localename-table.c: Likewise.
12630         * lib/localename.c: Include localename-table.h.
12631         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
12632         locale_hash_function instead of pointer_hash.
12633         * modules/localename (Files): Add lib/localename-table.h,
12634         lib/localename-table.c.
12635         (lib_SOURCES): Add localename-table.c.
12636         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
12637         for Solaris 11.4 locale system only on Solaris. Test for it
12638         independently whether getlocalename_l exists.
12639         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
12640         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
12641         HAVE_NAMELESS_LOCALES.
12642         * modules/gettext (Files): Add m4/intlsolaris.m4.
12644 2018-10-21  Bruno Haible  <bruno@clisp.org>
12646         Small update from gettext.
12647         * m4/intl.m4: Update from gettext:
12648         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
12649         mode on AIX.
12650         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
12651         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
12653 2018-10-16  Bruno Haible  <bruno@clisp.org>
12655         mountlist: Remove support for Cray with UNICOS 9.
12656         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
12657         MOUNTED_LISTMNTENT.
12658         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
12660 2018-10-16  Bruno Haible  <bruno@clisp.org>
12662         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
12663         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
12664         STAT_STATFS2_FS_DATA.
12665         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
12666         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
12667         MOUNTED_GETMNT.
12668         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
12669         * lib/getloadavg.c (decstation): Remove definition and case.
12670         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
12671         * lib/getgroups.c: Likewise.
12672         * doc/posix-functions/getgroups.texi: Likewise.
12673         * lib/time.in.h: Update comments.
12675 2018-10-16  Bruno Haible  <bruno@clisp.org>
12677         getloadavg: Remove support for ConvexOS.
12678         * lib/getloadavg.c: Remove convex case.
12680 2018-10-16  Bruno Haible  <bruno@clisp.org>
12682         getloadavg: Remove support for Sony NEWS.
12683         * lib/getloadavg.c: Remove sony_news case.
12685 2018-10-16  Bruno Haible  <bruno@clisp.org>
12687         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
12688         * lib/fsusage.c: Remove _SEQUENT_ case.
12689         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
12690         * lib/mountlist.c: Don't test for MNTTABNAME.
12691         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
12692         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
12693         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
12694         * lib/stat-size.h: Don't mention the Sequent bug.
12695         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
12697 2018-10-16  Bruno Haible  <bruno@clisp.org>
12699         fsusage: Remove support for AIX 3.
12700         * lib/fsusage.c: Remove code for AIX 3.
12701         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
12703 2018-10-16  Bruno Haible  <bruno@clisp.org>
12705         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
12706         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
12707         * lib/fsusage.c: Remove code for AIX PS/2.
12708         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
12709         * lib/getloadavg.c: Likewise.
12711 2018-10-16  Bruno Haible  <bruno@clisp.org>
12713         getloadavg: Remove support for HP-UX on m68k.
12714         * lib/getloadavg.c: Remove hp9000s300 case.
12716 2018-10-16  Bruno Haible  <bruno@clisp.org>
12718         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
12719         * lib/fsusage.c: Remove DOLPHIN case.
12720         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
12721         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
12723 2018-10-16  Bruno Haible  <bruno@clisp.org>
12725         getloadavg: Remove support for Alliant FX/2800.
12726         * lib/getloadavg.c: Remove alliant case.
12728 2018-10-16  Bruno Haible  <bruno@clisp.org>
12730         getloadavg: Remove support for tek4300.
12731         * lib/getloadavg.c: Remove tek4300 case.
12733 2018-10-16  Bruno Haible  <bruno@clisp.org>
12735         getloadavg: Remove support for Ardent.
12736         * lib/getloadavg.c: Remove ardent case.
12738 2018-10-16  Bruno Haible  <bruno@clisp.org>
12740         mountlist: Remove support for SVR2.
12741         Reported by Andrew Borodin <aborodin@vmail.ru> in
12742         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
12743         * lib/mountlist.c: Remove MOUNTED_FREAD case.
12744         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
12745         MOUNTED_FREAD.
12747 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12749         libc-config: merge from glibc
12750         * lib/cdefs.h (__glibc_has_attribute): New macro.
12752         regex: depend on libc-config
12753         * modules/regex (Depends-on): Add libc-config.
12754         This is needed after the recent autoupdate from glibc.
12756 2018-10-14  Bruno Haible  <bruno@clisp.org>
12758         localename: Add support for per-thread locales on Solaris 11.4.
12759         * lib/locale.in.h (newlocale, freelocale): New declarations.
12760         (duplocale): Declare also when the 'localename' module requests it.
12761         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
12762         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
12763         (struniq): Update.
12764         (struct locale_categories_names, struct locale_hash_node): New types.
12765         (LOCALE_HASH_TABLE_SIZE): New constant.
12766         (locale_hash_table, locale_lock): New variables.
12767         (pointer_hash, get_locale_t_name): New functions.
12768         (newlocale, duplocale, freelocale): New overridden functions.
12769         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
12770         * m4/intlsolaris.m4: New file.
12771         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
12772         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
12773         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
12774         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
12775         declared.
12776         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
12777         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
12778         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
12779         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
12780         * modules/localename (Files): Add intlsolaris.m4.
12781         (Depends-on): Add 'locale'.
12782         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
12783         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
12784         the signatures.
12786 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
12788         timevar: use gethrxtime to get wall clock time
12789         clock_gettime is not portable.  gethrxtime takes the best available
12790         option to get the wall clock time, including clock_gettime (monotonic
12791         clock), and gettime (non monotonic).
12792         Also, using xtime_t instead of float preserves the precision.
12793         Suggested by Bruno Haible.
12794         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
12795         * modules/timevar (Depends-on): We need gethrxtime.
12796         We no longer use times().
12797         (Link): Update.
12798         * lib/timevar.h (timevar_time_def): Use xtime_t.
12799         * lib/timevar.c (set_to_current_time): Use gethrxtime.
12800         (timevar_print): Instead of checking whether the timings themselves
12801         are large enough for the timevar to be printed, check the percentages.
12803 2018-10-14  Bruno Haible  <bruno@clisp.org>
12805         wcsnrtombs: Work around Solaris 11.4 bug.
12806         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
12807         macro.
12808         (gl_FUNC_WCSNRTOMBS): Invoke it.
12809         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
12811 2018-10-14  Bruno Haible  <bruno@clisp.org>
12813         mbsnrtowcs: Work around Solaris 11.4 bug.
12814         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
12815         macro.
12816         (gl_FUNC_MBSNRTOWCS): Invoke it.
12817         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
12819 2018-10-14  Bruno Haible  <bruno@clisp.org>
12821         doc: Update for Solaris 11.4.
12822         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
12823         mention Solaris 11.4.
12824         * m4/printf.m4: Update comments about Solaris.
12825         * m4/log.m4: Likewise.
12826         * m4/log10.m4: Likewise.
12827         * m4/logb.m4: Likewise.
12828         * m4/logbf.m4: Likewise.
12829         * m4/logbl.m4: Likewise.
12830         * m4/rename.m4: Likewise.
12831         * m4/wcrtomb.m4: Likewise.
12832         * m4/hostent.m4: Likewise.
12833         * m4/servent.m4: Likewise.
12835 2018-10-14  Bruno Haible  <bruno@clisp.org>
12837         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
12838         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
12839         pointer.
12840         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
12841         pointer.
12842         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
12843         pointer.
12844         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
12845         pointer.
12846         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
12847         pointer.
12849 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
12851         bootstrap: fix wget command for po files.
12852         * build-aux/bootstrap (po_download_command_format): Fix comment,
12853         and adjust callers.
12855 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
12857         timevar: improve the output format
12858         Suggested by Bruno Haible.
12859         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
12860         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
12861         wall, since its resolution is much higher.
12863 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
12865         timevar: expect that getrusage is available.
12866         Don't keep both times and getrusage as backend: both are guaranteed by
12867         gnulib, a single one suffices.  Using getrusage is open to possibly
12868         tracking other types of resources in the future.
12869         * modules/timevar (Depends-on): Add getrusage.
12870         (configure.ac): Remove gl_TIMEVAR.
12871         (Files): Remove m4/timevar.m4.
12872         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
12873         * lib/timevar.h (timevar_enabled): Clarify documentation.
12874         * lib/timevar.c: Remove all the code about times.
12875         Remove all the CPP guards about getrusage: expect it to be present
12876         (courtesy of gnulib).
12878 2018-10-12  Bruno Haible  <bruno@clisp.org>
12880         mountlist: Improve support for Solaris in 64-bit mode.
12881         Reported by David Wood <David.Wood@deshaw.com> in
12882         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
12883         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
12884         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
12885         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
12887 2018-10-12  Bruno Haible  <bruno@clisp.org>
12889         mountlist: Add support for Minix.
12890         Reported by Assaf Gordon in
12891         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
12892         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
12893         AC_CHECK_FUNCS to check for 'getmntinfo'.
12894         * lib/mountlist.c: Update comments.
12896 2018-10-12  Bruno Haible  <bruno@clisp.org>
12898         Make better use of Autoconf.
12899         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
12900         * m4/manywarnings.m4: Likewise.
12901         * m4/manywarnings-c++.m4: Likewise.
12902         * m4/socklen.m4: Likewise.
12903         * m4/sockpfaf.m4: Likewise.
12904         * m4/stdarg.m4: Likewise.
12905         * m4/visibility.m4: Likewise.
12906         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
12907         indentation.
12908         * m4/ls-mntd-fs.m4: Likewise.
12910 2018-10-11  Bruno Haible  <bruno@clisp.org>
12912         mountlist: Modernize platform lists.
12913         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
12914         platforms, deemphasizing the obsolete ones.
12915         * lib/mountlist.c: Likewise.
12917 2018-10-11  Bruno Haible  <bruno@clisp.org>
12919         getprogname: Add support for 32-bit programs on HP-UX.
12920         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
12921         try the similar functions 32-bit programs on 64-bit HP-UX.
12923 2018-10-11  Bruno Haible  <bruno@clisp.org>
12925         getprogname: Work around program name truncation when possible.
12926         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
12927         possibly use pst_cmd instead.
12929 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12931         fts: cleanup after FTS_NOATIME removal
12932         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
12933         (FTS_STOP): Shrink to minimal values.  We don’t need to
12934         worry about binary compatibility in Gnulib, and the old way
12935         of doing things had a hole in the user options that caused
12936         FTS_OPTIONMASK to not work as desired.
12938 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
12940         fts: remove FTS_NOATIME
12941         This reverts commit da4d6974013c822af1498941e32db774b2031765.
12942         We cannot guarantee that O_NOATIME works: e.g. openat fails
12943         with EPERM if the effective user ID of the caller does not match
12944         the owner of the file and the caller is not privileged.
12945         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
12946         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
12947         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
12948         (FTS_OPTIONMASK): Adjust.
12949         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
12950         (fd_ring_check): Likewise.
12952 2018-10-08  Bruno Haible  <bruno@clisp.org>
12954         csharpcomp*, csharpexec*: Remove support for pnet.
12955         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
12956         HAVE_CSCC.
12957         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
12958         Don't test HAVE_CSCC.
12959         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
12960         (compile_csharp_class): Don't invoke it.
12961         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
12962         HAVE_ILRUN.
12963         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
12964         Don't test HAVE_ILRUN.
12965         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
12966         (execute_csharp_program): Don't invoke it.
12967         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
12968         any more.
12970 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
12972         renameatu: prefer renameat2 to syscall
12973         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
12974         Use renameat2 instead of syscall (Bug#32796).
12975         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
12977 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
12979         bootstrap, gnulib-tool: use https instead of insecure rsync
12980         * build-aux/bootstrap (download_po_files, po_download_command_format):
12981         Don't try using rsync; always use wget over https to fetch PO files.
12982         * gnulib-tool (func_import): Likewise.
12983         * pygnulib/GLImport.py (GLImport.execute): Likewise.
12985 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
12987         bootstrap, gnulib-tool: correct the translations wget command
12988         * build-aux/bootstrap (po_download_command_format2): Restrict
12989         recursion to a single level.
12990         * gnulib-tool (func_import): Likewise.
12991         * pygnulib/GLImport.py (GLImport.execute): Likewise.
12993 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
12995         doc: the gnulib snapshots are not maintained
12996         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
12998 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13000         timevar: add to lib_SOURCES
13001         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
13003 2018-10-07  Bruno Haible  <bruno@clisp.org>
13005         dirent: Update documentation.
13006         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
13008 2018-10-05  Bruno Haible  <bruno@clisp.org>
13010         strpbrk: Make it possible to namespace the defined symbol.
13011         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
13013 2018-10-05  Bruno Haible  <bruno@clisp.org>
13015         strcspn: Make it possible to namespace the defined symbol.
13016         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
13018 2018-10-05  Bruno Haible  <bruno@clisp.org>
13020         raise: Make it possible to namespace the defined symbol.
13021         * lib/raise.c (raise): Undefine only after the replacement function has
13022         been defined.
13023         (raise): Renamed from rpl_raise.
13024         (raise_nothrow): Move to the end of the compilation unit.
13026 2018-10-05  Bruno Haible  <bruno@clisp.org>
13028         memcmp: Make it possible to namespace the defined symbol.
13029         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
13031 2018-10-05  Bruno Haible  <bruno@clisp.org>
13033         explicit_bzero: Make it possible to namespace the defined symbol.
13034         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
13035         glibc.
13037 2018-10-05  Bruno Haible  <bruno@clisp.org>
13039         mkdir-p: Depend on 'mkdir'.
13040         * modules/mkdir-p (Depends-on): Add 'mkdir'.
13042 2018-10-05  Bruno Haible  <bruno@clisp.org>
13044         tempname: Depend on 'mkdir'.
13045         Reported by Maarten Bosmans <mkbosmans@gmail.com>
13046         at <https://savannah.gnu.org/bugs/?33379>.
13047         * modules/tempname (Depends-on): Add 'mkdir'.
13049 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
13051         timevar: rely on gnulib modules for time portability.
13052         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
13053         * m4/timevar.m4: Don't check for clock_t and struct tms,
13054         guaranteed by gnulib.
13055         * lib/timevar.h: Use extern "C" protection.
13056         Include <stdio.h> for FILE.
13057         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
13058         they are guaranteed by gnulib.
13059         Remove uses of clock as (now useless) fallback.
13061 2018-10-04  Bruno Haible  <bruno@clisp.org>
13063         sh-filename: New module.
13064         * m4/sh-filename.m4: New file.
13065         * modules/sh-filename: New file.
13066         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
13067         "/bin/sh".
13068         * tests/test-posix_spawn1.c (main): Likewise.
13069         * tests/test-posix_spawn2.c (main): Likewise.
13070         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
13071         is_envjavac_gcj43): Likewise.
13072         * lib/javaexec.c (execute_java_class): Likewise.
13073         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
13074         * modules/posix_spawnp-tests (Depends-on): Likewise.
13075         * modules/javacomp (Depends-on): Likewise.
13076         * modules/javaexec (Depends-on): Likewise.
13078 2018-10-04  Bruno Haible  <bruno@clisp.org>
13080         spawn-pipe tests: Avoid test failure on native Windows.
13081         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
13082         that fd 2 is closed.
13084 2018-10-04  Bruno Haible  <bruno@clisp.org>
13086         fcntl: Make it possible to namespace the defined symbol.
13087         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
13088         been defined.
13089         (fcntl): Renamed from rpl_fcntl.
13090         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
13091         from fcntl.
13092         (klibc_fcntl): Move to the end of the compilation unit.
13094 2018-10-02  Bruno Haible  <bruno@clisp.org>
13096         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
13097         * tests/test-vasnprintf.c (test_function): Change the test added on
13098         2018-09-23 to check only the 18 most significant digits.
13100         vasnprintf tests: Avoid test failure on Cygwin.
13101         * tests/test-vasnprintf.c (test_function): Change the test added on
13102         2018-09-23 to check only the 42 most significant digits.
13104 2018-10-01  Bruno Haible  <bruno@clisp.org>
13106         mkostemp, mkostemps: Update documentation.
13107         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
13108         * doc/glibc-functions/mkostemps.texi: Likewise.
13110 2018-10-01  Tom Tromey  <tom@tromey.com>
13112         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
13113         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
13114         on OS X.
13116 2018-09-30  Pádraig Brady  <P@draigBrady.com>
13118         hmac-*: refactor to remove repetitive code
13119         * lib/hmac.c: A new parameterized single implementation.
13120         * lib/hmac-md5.c: Define parameters and include implementation.
13121         * lib/hmac-sha1.c: Likewise.
13122         * lib/hmac-sha256.c: Likewise.
13123         * lib/hmac-sha512.c: Likewise.
13124         * modules/crypto/hmac-md5: Reference the new implementation file.
13125         * modules/crypto/hmac-sha1: Likewise.
13126         * modules/crypto/hmac-sha256: Likewise.
13127         * modules/crypto/hmac-sha512: Likewise.
13128         * tests/test-hmac-md5.c: Refactor common code to a single function.
13129         * tests/test-hmac-sha1.c: Likewise.
13130         * tests/test-hmac-sha256.c: Likewise.
13131         * tests/test-hmac-sha512.c: Likewise.
13133 2018-09-30  Zhang Qing  <zhangqingl@126.com>
13135         hmac-sha512: fix hash for keys > blocksize (128 bytes)
13136         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
13137         key length to that output by sha512, not the blocksize.
13138         Otherwise uninitialized data from the stack
13139         is used when computing the hash.
13140         * tests/test-hmac-sha512.c: Add a shortened key test case.
13141         Reported at https://github.com/coreutils/gnulib/pull/5
13143 2018-09-30  Bruno Haible  <bruno@clisp.org>
13145         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
13146         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
13147         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
13148         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
13149         'unsigned int' before comparison with an unsigned value.
13151 2018-09-30  Bruno Haible  <bruno@clisp.org>
13153         grantpt: Remove unnecessary dependency.
13154         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
13156 2018-09-30  Bruno Haible  <bruno@clisp.org>
13158         timevar: Small tweaks.
13159         * lib/timevar.h: Fix comments. Add parameter names to function
13160         declarations.
13161         * lib/timevar.c: Include timevar.h immediately after config.h.
13162         * lib/timevar.def: Fix comments.
13163         * modules/timevar (Maintainer): List Akim Demaille.
13165 2018-09-30  Bruno Haible  <bruno@clisp.org>
13167         timevar: Include documentation in gnulib manual.
13168         * doc/timevar.texi: Change node and section name to 'Profiling of
13169         program phases'.
13170         In the code snippets, tweak the #includes and use GNU coding style.
13171         * doc/gnulib.texi: Include timevar.texi.
13173 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
13175         timevar: import from Bison.
13176         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
13177         New files.
13178         * lib/timevar.def: New file.
13179         * doc/timevar.texi: New file.
13181 2018-09-26  Bruno Haible  <bruno@clisp.org>
13183         javacomp-script, javacomp: Add preliminary support for Java 12..17.
13184         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
13185         * lib/javacomp.c (default_target_version): Likewise.
13187 2018-09-26  Bruno Haible  <bruno@clisp.org>
13189         javacomp-script, javacomp: Add support for Java 11.
13190         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
13191         target-version 11.
13192         * lib/javaversion.h: Update comments.
13193         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
13194         source_version_index, get_goodcode_snippet, get_failcode_snippet,
13195         TARGET_VERSION_BOUND, target_version_index,
13196         corresponding_classfile_version): Accept source_version 11 and
13197         target_version 11.
13198         * lib/javacomp.h: Update comments accordingly.
13200 2018-09-23  Bruno Haible  <bruno@clisp.org>
13202         vasnprintf: Fix heap memory overrun bug.
13203         Reported by Ben Pfaff <blp@cs.stanford.edu> in
13204         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
13205         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
13206         memory.
13207         * tests/test-vasnprintf.c (test_function): Add another test.
13209 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13211         maint: mktime.c now shared with glibc
13212         * config/srclist.txt: intprops.h, timegm.c and mktime.c
13213         are now the same in Gnulib and glibc.
13215         mktime: fix _LIBC typo
13216         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
13218 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13220         dfa: optimization for state merge
13221         * lib/dfa.c (merge2): New function.
13222         (merge_nfa_state): Use it.
13224 2018-09-18  Jim Meyering  <meyering@fb.com>
13226         dfa: trivial comment fix: s/is/if/
13227         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
13229 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13231         dfa: use more-informative function name
13232         * lib/dfa.c (maybe_disable_superset_dfa):
13233         Rename from dfautf8noss.  Use change.
13235         dfa: tweak allocation performance
13236         * lib/dfa.c (merge_nfa_state, dfaoptimize):
13237         Prefer ptrdiff_t for indexes some more.
13238         Use char for flags, as it’s wide enough.
13239         Allocate queue and flags together, with one malloc call.
13240         No need to use xnmalloc since the multiplication and
13241         addition cannot overflow (it’s already been checked by
13242         earlier allocation).  Prefer memset to open-coding.
13244         dfa: prune states as we go
13245         * lib/dfa.c (prune): Remove.
13246         dfa: reorder enum for efficiency
13247         (merge_nfa_state): Prune as we go instead of at the end.
13248         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
13250         * lib/dfa.c (END): Now -1 again.  Reorder other elements
13251         of the enumeration to make it easier for GCC to generate
13252         efficient code by using fewer comparisons to check for
13253         ranges of values.
13254         (atom): Take advantage of the reordering.
13256 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13258         dfa: optimize alternation in NFA
13259         Even when similar states exist in alternation, the DFA treats them
13260         as separate items, which may complicate the transition in NFA and
13261         cause slowdown.  This change assembles the states into one.  For
13262         example, ab|ac is changed into a(b|c).  This change speeds-up
13263         matching for many branched patterns.  For example, grep speeds up
13264         more than 30× in:
13266           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
13267           time -p env LC_ALL=C grep -vf in in
13269         * lib/dfa.c (prune): New function.
13270         (merge_nfa_state): New function.  It merges similar NFA states.
13271         (dfaoptimize): New function.  It seeks merged and removed nodes.
13272         (dfaanalyze): Call new function.
13273         (dfautf8noss): Change name from dfaoptimize because of addition of new
13274         function.
13275         (dfacomp): Update caller.
13277         dfa: simplify initial state
13278         Simplifying the initial state enables easier optimization of the NFA.
13279         * lib/dfa.c (enum token): Add new element BEG.
13280         (prtok): Adjust due to adding element BEG.
13281         (dfaparse): Put BEG at a head of tokens.
13282         (state_index): Adjust due to adding element BEG.
13283         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
13284         build initial state.
13285         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
13287 2018-09-18  Bruno Haible  <bruno@clisp.org>
13289         file-has-acl: Fix test failure on Cygwin 2.9.
13290         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
13291         * lib/acl-internal.h: Likewise.
13292         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
13293         * lib/acl-internal.c: Update comments regarding Cygwin.
13294         * lib/acl_entries.c: Likewise.
13295         * lib/file-has-acl.c: Likewise.
13296         (file_has_acl): For Cygwin, use a different way to determine whether
13297         the "default" ACL of a directory is nontrivial.
13298         * lib/get-permissions.c: Update comments regarding Cygwin.
13299         * lib/set-permissions.c: Likewise.
13301 2018-09-18  Bruno Haible  <bruno@clisp.org>
13303         stat-time tests: Fix test failure on Cygwin.
13304         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
13306 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13308         doc: OS X 10.11 lacked ns time functions
13309         According to <https://github.com/zeromq/libzmq/issues/2175>,
13310         nanosecond-resolution timestamp functions were introduced
13311         in macOS 10.12, so document the last version (OS X 10.11)
13312         where they were absent.
13314         gettime: nanotime never existed
13315         Problem reported by Bruno Haible in:
13316         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
13317         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
13318         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
13320 2018-09-18  Bruno Haible  <bruno@clisp.org>
13322         doc: Update statement about target platforms.
13323         Reported by Simon Sobisch.
13324         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
13325         restrictions on MSVC versions.
13327 2018-09-18  Bruno Haible  <bruno@clisp.org>
13329         posix_spawn tests: Fix link error on 64-bit Cygwin.
13330         * tests/test-posix_spawn1.c (environ): Remove declaration.
13331         * tests/test-posix_spawn2.c (environ): Likewise.
13332         * tests/test-posix_spawn3.c (environ): Likewise.
13333         * tests/test-posix_spawn4.c (environ): Likewise.
13334         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
13335         * modules/posix_spawnp-tests (Depends-on): Likewise.
13337 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13339         timespec: new function current_timespec
13340         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
13341         and don’t worry about it failing on a CLOCK_REALTIME arg.
13342         POSIX requires it to succeed and I don’t know of any
13343         counterexamples where the fallbacks would work.
13344         (current_timespec): New function, taken from Emacs.  It is more
13345         convenient than gettime, and can help register allocation.
13346         * lib/timespec.h: Include arg-nonnull.h.
13347         (current_timespec): New declaration.
13348         (gettime, settime): Declare args to be nonnull.
13349         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
13351 2018-09-16  Bruno Haible  <bruno@clisp.org>
13353         setlocale: Improve locale handling on macOS 10.12 or newer.
13354         * lib/setlocale.c: Include header files for CoreFoundation. Declare
13355         gl_locale_name_canonicalize.
13356         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
13357         and LC_MESSAGES.
13358         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
13360 2018-09-16  Bruno Haible  <bruno@clisp.org>
13362         Update list of locale names with scripts on macOS.
13363         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
13364         match Mac OS X 10.13 and recent glibc.
13366 2018-09-16  Bruno Haible  <bruno@clisp.org>
13368         gettext: Use newer macOS APIs when possible.
13369         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
13370         CFLocaleCopyPreferredLanguages.
13372 2018-09-16  Bruno Haible  <bruno@clisp.org>
13374         localename: Revisit macOS specific code.
13375         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
13376         Fix comments about Mac OS X versions.
13378 2018-09-15  Bruno Haible  <bruno@clisp.org>
13380         setlocale: Improve support for locales not supported by libc.
13381         Reported by Dapeng Gao <peter@dpgao.cc> at
13382         <https://savannah.gnu.org/bugs/?54479>.
13383         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
13384         (libintl_setlocale): Use a more error-tolerant strategy when the locale
13385         to be set is not supported by libc: Emit warnings instead of failing.
13387 2018-09-15  Bruno Haible  <bruno@clisp.org>
13389         strstr, strcasestr: Add workaround against glibc-2.28 bug.
13390         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
13391         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
13392         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
13393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
13394         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
13395         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
13396         * doc/glibc-functions/strcasestr.texi: Likewise.
13398 2018-09-14  Bruno Haible  <bruno@clisp.org>
13400         doc: Fix bottom of top-level page.
13401         Reported by Akim Demaille <akim.demaille@gmail.com> in
13402         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
13403         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
13404         mode.
13405         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
13406         accordingly.
13408 2018-09-12  Bruno Haible  <bruno@clisp.org>
13410         Add test case from a recent glibc bug.
13411         * tests/test-strstr.c (main): Add test of long needle.
13412         * tests/test-strcasestr.c (main): Likewise.
13413         * tests/test-c-strstr.c (main): Likewise.
13414         * tests/test-c-strcasestr.c (main): Likewise.
13415         * tests/test-memmem.c (main): Likewise.
13417 2018-09-12  Bruno Haible  <bruno@clisp.org>
13419         Apply Eric Blake's improvements from 2011-02-25 to more tests.
13420         * tests/test-c-strstr.c (main): Add the same tests here as well.
13422 2018-09-12  Bruno Haible  <bruno@clisp.org>
13424         Apply Jim Meyering's fix from 2015-01-11 to more tests.
13425         * tests/test-memmem.c (main): Free haystack.
13426         * tests/test-strcasestr.c (main): Likewise.
13427         * tests/test-c-strcasestr.c (main): Likewise.
13429 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
13431         xstrtol: fix missing-TYPE_SIGNED typo
13432         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
13434 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13436         timespec: fix resolution confusion
13437         In normal usage, clock resolution is given in seconds, but the
13438         code was mistakenly using inverse seconds and calling it
13439         “resolution”.  Fix this, partly by renaming two identifiers.
13440         The old names will be kept for a bit, to ease transition.
13441         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
13442         New constants, replacing TIMESPEC_RESOLUTION and
13443         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
13444         All uses changed.
13446 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
13448         mktime: simplify in prep for glibc merge
13449         * lib/mktime.c, lib/timegm.c [_LIBC]:
13450         Include mktime-internal.h (a small file just for glibc)
13451         instead of using a typedef.
13453 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
13455         intprops: minor clarification of code
13456         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
13457         Use _GL_INT_CONVERT rather than reinventing it.
13459 2018-09-07  Bruno Haible  <bruno@clisp.org>
13461         Fix a comment.
13462         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
13464 2018-09-07  Bruno Haible  <bruno@clisp.org>
13466         posix_spawn_file_actions_addchdir: Add tests.
13467         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
13468         * tests/test-posix_spawn4.c: New file.
13469         * modules/posix_spawn_file_actions_addchdir-tests: New file.
13471 2018-09-07  Bruno Haible  <bruno@clisp.org>
13473         posix_spawn_file_actions_addchdir: New module.
13474         Suggested by Eric Blake in
13475         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
13476         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
13477         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
13478         union member 'chdir_action'.
13479         * lib/spawn_faction_addchdir.c: New file.
13480         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
13481         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
13482         HAVE_WORKING_POSIX_SPAWN.
13483         * lib/spawn_faction_adddup2.c: Likewise.
13484         * lib/spawn_faction_addopen.c: Likewise.
13485         * m4/posix_spawn_faction_addchdir.m4: New file.
13486         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13487         'posix_spawn_file_actions_addchdir' is present and whether
13488         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
13489         instead of HAVE_WORKING_POSIX_SPAWN.
13490         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13491         posix_spawn_file_actions_addchdir is declared.
13492         (gl_SPAWN_H_DEFAULTS): Initialize
13493         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13494         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13495         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
13496         * modules/spawn (Makefile.am): Substitute
13497         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13498         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13499         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
13500         * modules/posix_spawn_file_actions_addchdir: New file.
13501         * modules/posix_spawn_file_actions_addclose (Depends-on,
13502         configure.ac): Test also REPLACE_POSIX_SPAWN.
13503         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
13504         configure.ac): Likewise.
13505         * modules/posix_spawn_file_actions_addopen (Depends-on,
13506         configure.ac): Likewise.
13507         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
13508         signature.
13509         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13510         * doc/posix-functions/posix_spawnp.texi: Likewise.
13512 2018-09-06  Bruno Haible  <bruno@clisp.org>
13514         stddef: Override max_align_t on NetBSD 8.0/x86.
13515         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
13516         the value of __alignof__ (max_align_t).
13517         * doc/posix-headers/stddef.texi: Mention the issue.
13519 2018-09-06  Bruno Haible  <bruno@clisp.org>
13521         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
13522         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
13523         system fcntl.
13524         * doc/posix-functions/fcntl.texi: Document the issue.
13526 2018-09-06  Bruno Haible  <bruno@clisp.org>
13528         count-trailing-zeros tests: Rely on limits-h module.
13529         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
13530         definition.
13531         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
13533 2018-09-06  Bruno Haible  <bruno@clisp.org>
13535         count-leading-zeros tests: Rely on limits-h module.
13536         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
13537         definition.
13538         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
13540 2018-09-06  Bruno Haible  <bruno@clisp.org>
13542         count-one-bits tests: Rely on limits-h module.
13543         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
13544         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
13546 2018-09-06  Bruno Haible  <bruno@clisp.org>
13548         xstrtoll: Rely on limits-h module.
13549         * lib/xstrtol.c: Don't include intprops.h.
13550         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
13551         * modules/xstrtol (Depends-on): Remove 'intprops'.
13552         * modules/xstrtoll (Depends-on): Add 'limits-h'.
13554 2018-09-06  Bruno Haible  <bruno@clisp.org>
13556         strtoll, strtoull: Rely on limits-h module.
13557         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
13558         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
13559         * modules/strtoll (Depends-on): Add limits-h.
13560         * modules/strtoull (Depends-on): Likewise.
13562 2018-09-06  Bruno Haible  <bruno@clisp.org>
13564         intprops tests: Fix compilation error with pre-C99 compiler.
13565         * tests/test-intprops.c (verify_stmt): New macro.
13566         (VERIFY, main): Use it.
13568 2018-09-06  Bruno Haible  <bruno@clisp.org>
13570         limits-h: Provide numerical limits macros.
13571         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
13572         IRIX and for GCC.
13573         (WORD_BIT, LONG_BIT): Define.
13574         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
13575         <limits.h> does not define LLONG_MAX or WORD_BIT.
13576         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
13577         TYPE_MAXIMUM): New macros, from intprops.h.
13578         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
13579         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
13580         provides.
13582 2018-09-05  Bruno Haible  <bruno@clisp.org>
13584         fcntl: Don't access nonexistent optional argument.
13585         Reported by Frank Busse <f.busse@imperial.ac.uk> in
13586         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
13587         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
13588         don't consume an argument. For actions that take an 'int' argument,
13589         consume an 'int' argument.
13591 2018-09-05  Eric Blake  <eblake@redhat.com>
13593         doc: mention environ pitfall
13594         * doc/posix-functions/environ.texi (environ): Assigning NULL to
13595         environ is a glibc extension.
13597 2018-09-03  Bruno Haible  <bruno@clisp.org>
13599         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
13600         Reported by Antoine Luong <antoine.luong@c-s.fr> in
13601         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
13602         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
13603         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
13604         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
13606 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13608         mktime: fix unlikely race+overflow bug
13609         Problem reported by Alexandre Oliva in:
13610         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
13611         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
13612         to avoid an unlikely race if the compiler delays a load and
13613         if this cascades into a signed integer overflow.
13615 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13617         mktime, timegm: simplify glibc time64_t
13618         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
13619         Now long int, not time_t, since long int is the longstanding type
13620         for this in glibc and there is no need to change it even if time_t
13621         becomes 64 bits - even int would do, though this would be a change
13622         to the glibc generated code.  When this change is merged into
13623         glibc, it should simplify the time_t vs time64_t situation.
13625         mktime, timegm: simplify merge to glibc
13626         Move code around to make a merge to glibc easier to audit.
13627         This should not change behavior.
13628         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
13629         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
13630         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
13631         simplify later conditionals; default the others to zero.  In uses
13632         of these conditionals, explicitly spell out how _LIBC affects
13633         things, so it’s easier to review from a glibc viewpoint.
13634         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
13635         compartmentalize tzset issues.  Move system-dependent tzsettish
13636         code here from mktime.
13637         (mktime): Move tzsettish code to my_tzset, and move
13638         localtime_offset to within mktime so that it doesn’t
13639         need a separate ifdef.
13641 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
13643         intprops: avoid evaluation of some expressions
13644         This makes EXPR_SIGNED (e) easier to use, as it no longer
13645         evaluates the expression E.  Formerly, E was required to be free
13646         of side effects.
13647         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
13648         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
13649         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
13651 2018-08-23  Bruno Haible  <bruno@clisp.org>
13653         getcwd: Add cross-compilation guesses.
13654         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
13655         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
13656         Based on a patch by Paul Eggert.
13657         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
13658         guesses for all GNU systems.
13660 2018-08-19  Bruno Haible  <bruno@clisp.org>
13662         glob-h: Formalize side effects from other modules.
13663         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
13664         * m4/glob.m4 (gl_GLOB): Invoke it.
13666         fnmatch-h: Formalize side effects from other modules.
13667         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
13668         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
13670         limits-h: Formalize side effects from other modules.
13671         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
13672         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
13674 2018-08-19  Bruno Haible  <bruno@clisp.org>
13676         getpass: Move declaration to <unistd.h>.
13677         * lib/unistd.in.h (getpass): New declaration.
13678         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
13679         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
13680         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
13681         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
13682         On glibc systems, don't set REPLACE_GETPASS to 1.
13683         * modules/getpass (Depends-on): Add 'unistd'.
13684         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
13685         (Include): Specify <unistd.h> instead of "getpass.h".
13686         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
13687         (configure.ac): Sync with the configure.ac section of modules/getpass.
13688         (Include): Specify <unistd.h> instead of "getpass.h".
13689         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
13690         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
13691         REPLACE_GETPASS.
13692         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
13693         REPLACE_GETPASS.
13694         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
13695         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
13696         and musl.
13697         * NEWS: Mention the change.
13699 2018-08-19  Bruno Haible  <bruno@clisp.org>
13701         glob: Fix over-optimization due to attribute __nonnull__.
13702         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
13704 2018-08-19  Bruno Haible  <bruno@clisp.org>
13706         glob: Fix another compilation error when glob.h is not replaced.
13707         Reported by Reuben Thomas <rrt@sc3d.org> in
13708         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
13709         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
13710         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
13712 2018-08-18  Bruno Haible  <bruno@clisp.org>
13714         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
13715         Reported by Reuben Thomas <rrt@sc3d.org> in
13716         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
13717         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
13718         in config.h.
13720 2018-08-18  Bruno Haible  <bruno@clisp.org>
13722         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
13723         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
13724         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
13725         Solution proposed by Eli Zaretskii.
13726         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
13727         * lib/gettimeofday.c (GetProcAddress): Likewise.
13728         * lib/link.c (GetProcAddress): Likewise.
13729         * lib/physmem.c (GetProcAddress): Likewise.
13730         * lib/poll.c (GetProcAddress): Likewise.
13731         * lib/select.c (GetProcAddress): Likewise.
13732         * lib/stat-w32.c (GetProcAddress): Likewise.
13734 2018-08-18  Bruno Haible  <bruno@clisp.org>
13736         glob: Fix another compilation error when glob.h is not replaced.
13737         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
13738         * lib/globfree.c: Include <libc-config.h>.
13740 2018-08-18  Bruno Haible  <bruno@clisp.org>
13742         glob: Fix compilation error when glob.h is not replaced.
13743         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
13744         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
13745         * lib/glob_pattern_p.c: Include <libc-config.h>.
13746         * modules/glob (Depends-on): Add libc-config.
13748 2018-08-18  Bruno Haible  <bruno@clisp.org>
13750         scratch_buffer: Add tests.
13751         * tests/test-scratch-buffer.c: New file.
13752         * modules/scratch_buffer-tests: New file.
13754 2018-08-18  Bruno Haible  <bruno@clisp.org>
13756         scratch_buffer: Fix include file.
13757         Reported by Reuben Thomas <rrt@sc3d.org> in
13758         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
13759         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
13760         double-inclusion guard.
13762 2018-08-18  Bruno Haible  <bruno@clisp.org>
13764         glob-h: Revert Paul Eggert's revert.
13765         * m4/glob_h.m4: Revert to previous state.
13766         * modules/glob-h: Likewise.
13768 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13770         glob-h: always build glob.h
13771         This works around a problem reported by Reuben Thomas in:
13772         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
13773         This workaround always builds glob.h, even on platforms that
13774         do not need it; perhaps this could be improved someday.
13775         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
13776         is always created now.
13777         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
13779 2018-08-13  Bruno Haible  <bruno@clisp.org>
13781         monetary: Simplify m4 code.
13782         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
13783         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
13785 2018-08-13  Bruno Haible  <bruno@clisp.org>
13787         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
13788         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
13789         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
13790         and by Paul J. Lucas <paul@lucasmail.org> in
13791         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
13792         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
13794 2018-08-11  Bruno Haible  <bruno@clisp.org>
13796         setlocale: Trivial simplification.
13797         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
13799 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13801         verify: port 'assume' to traditional tools
13802         * lib/verify.h (assume): Port better to Oracle Studio 12.6
13803         and other tools that use /*NOTREACHED*/ comments.
13805 2018-08-10  Bruno Haible  <bruno@clisp.org>
13807         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
13808         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13809         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
13810         'fnmatch-gnu' is in use.
13812 2018-08-07  Bruno Haible  <bruno@clisp.org>
13814         glob-h: Add tests.
13815         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
13816         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
13817         tests/test-glob-h.c.
13818         * modules/glob-h-tests: New file.
13819         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
13820         conditions.
13821         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
13822         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
13824 2018-08-07  Bruno Haible  <bruno@clisp.org>
13826         glob-h: New module.
13827         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
13828         replacements.
13829         * lib/glob.c: Include <config.h>.
13830         * m4/glob_h.m4: New file.
13831         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
13832         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
13833         REPLACE_GLOB_PATTERN_P as appropriate.
13834         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
13835         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
13836         * modules/glob-h: New file.
13837         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
13838         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
13839         lstat, sys_stat. Change conditions.
13840         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
13841         REPLACE_GLOB_PATTERN_P. Set module indicator.
13842         (Makefile.am): Remove code that is moved to glob-h.
13843         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
13844         * modules/posixcheck (Depends-on): Add glob-h.
13846 2018-08-06  Bruno Haible  <bruno@clisp.org>
13848         Force generation of substitute .h file when C++ support is enabled.
13849         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
13850         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
13851         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
13852         FNMATCH_H to non-empty.
13853         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
13854         ICONV_H to non-empty.
13855         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
13856         MONETARY_H to non-empty.
13857         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
13858         non-empty.
13860 2018-08-06  Bruno Haible  <bruno@clisp.org>
13862         fnmatch-h: Fix test compilation error on mingw (regression from today).
13863         * lib/fnmatch.in.h: Fix conditions.
13865 2018-08-06  Bruno Haible  <bruno@clisp.org>
13867         sys_resource: Relicense under LGPLv2+.
13868         John Malmberg's approval is in
13869         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
13870         * modules/sys_resource (License): Change to LGPLv2+.
13872 2018-08-06  Bruno Haible  <bruno@clisp.org>
13874         fnmatch-h: Add tests.
13875         * tests/test-fnmatch-h.c: New file.
13876         * modules/fnmatch-h-tests: New file.
13877         * tests/test-fnmatch-h-c++.cc: New file.
13878         * modules/fnmatch-h-c++-tests: New file.
13880 2018-08-06  Bruno Haible  <bruno@clisp.org>
13882         fnmatch-h: New module.
13883         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
13884         replacements.
13885         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
13886         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
13887         'posixcheck' warning.
13888         * m4/fnmatch_h.m4: New file.
13889         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
13890         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
13891         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
13892         as appropriate.
13893         * modules/fnmatch-h: New file.
13894         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
13895         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
13896         conditions.
13897         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
13898         indicator.
13899         (Makefile.am): Remove code that is moved to fnmatch-h.
13900         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
13901         REPLACE_FNMATCH.
13902         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
13903         * modules/posixcheck (Depends-on): Add fnmatch-h.
13905 2018-08-06  Bruno Haible  <bruno@clisp.org>
13907         Enable more C++ tests.
13908         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
13909         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
13910         * modules/strings-tests (Depends-on): Add strings-c++-tests.
13911         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
13912         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
13914 2018-08-06  Bruno Haible  <bruno@clisp.org>
13916         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
13917         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
13918         getopt.h.
13919         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
13921 2018-08-05  Bruno Haible  <bruno@clisp.org>
13923         utime-h: Generate header file when module 'posixcheck' is in use.
13924         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
13925         UTIME_H to non-empty.
13927 2018-08-05  Bruno Haible  <bruno@clisp.org>
13929         monetary: Generate header file when module 'posixcheck' is in use.
13930         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
13931         use, set MONETARY_H to non-empty.
13933 2018-08-05  Bruno Haible  <bruno@clisp.org>
13935         iconv-h: Generate header file when module 'posixcheck' is in use.
13936         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
13937         set ICONV_H to non-empty.
13939 2018-08-05  Bruno Haible  <bruno@clisp.org>
13941         Optimize the "checking whether ... is declared without a macro" checks.
13942         Suggested by Paul Eggert in
13943         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
13944         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
13945         Gnulib module 'posixcheck' is not in use.
13947 2018-08-05  Bruno Haible  <bruno@clisp.org>
13949         iconv-h: Enable 'posixcheck' warnings.
13950         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
13951         iconv_open.
13952         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
13954 2018-08-05  Bruno Haible  <bruno@clisp.org>
13956         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
13957         * m4/extern-inline.m4: Add more comments.
13958         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
13959         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
13960         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
13962 2018-08-04  Bruno Haible  <bruno@clisp.org>
13964         New module 'posixcheck'.
13965         * modules/posixcheck: New file.
13966         * m4/posixcheck.m4: New file.
13967         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
13968         (Which modules?): Reference it.
13970 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
13972         dfa: fix memory leak
13973         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
13975 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
13977         ieee754-h: new module
13978         It looks like Emacs can use this for some NaN processing.
13979         Emacs uses it only on double NaNs so it should be safe.
13980         * MODULES.html.sh (func_all_modules): Add ieee754-h.
13981         * config/srclist.txt: Mention ieee754.h in a comment.
13982         * doc/glibc-headers/ieee754.texi (ieee754.h):
13983         Gnulib now has a substitute that should work
13984         except for long double and for non-IEEE platforms.
13985         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
13986         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
13988 2018-07-27  Bruno Haible  <bruno@clisp.org>
13990         iswcntrl: Mention minor problem on macOS.
13991         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
13993 2018-07-26  Colin Watson  <cjwatson@debian.org>
13995         bootstrap, gnulib-tool: fix translations rsync
13996         Previously, we created files such as $pobase/Makefile.in.in and then the
13997         subsequent rsync would immediately delete them.
13998         * build-aux/bootstrap (po_download_command_format): Avoid deleting
13999         non-.po files in target directory when rsyncing translations.
14000         * gnulib-tool (func_import): Likewise.
14001         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14003 2018-07-25  Jim Meyering  <meyering@fb.com>
14005         bootstrap: reinstate definition fo gnulib_mk.
14006         That variable is used at least by cppi.
14007         * build-aux/bootstrap (gnulib_mk): Restore definition.
14008         This reverts the deletion from v0.1-1844-gc66dba9ba.
14010 2018-07-23  Bruno Haible  <bruno@clisp.org>
14012         doc: For module names, use texinfo markup @code{} or @samp{}.
14013         * doc/alloca.texi: Mark gnulib module names with @code.
14014         * doc/alloca-opt.texi: Likewise.
14015         * doc/quote.texi: Likewise.
14016         * doc/posix-functions/freopen.texi: Likewise.
14017         * doc/posix-functions/open.texi: Likewise.
14018         * doc/posix-functions/readlink.texi: Likewise.
14019         * doc/posix-functions/readlinkat.texi: Likewise.
14020         * doc/posix-functions/stdout.texi: Likewise.
14021         * doc/posix-functions/stderr.texi: Likewise.
14022         * doc/posix-functions/unlink.texi: Likewise.
14023         * doc/posix-functions/unlinkat.texi: Likewise.
14024         * doc/posix-functions/utime.texi: Likewise.
14025         * doc/posix-functions/utimensat.texi: Likewise.
14026         * doc/posix-functions/utimes.texi: Likewise.
14027         * doc/posix-headers/stdint.texi: Likewise.
14028         * doc/glibc-functions/futimesat.texi: Likewise.
14029         * doc/glibc-functions/lutimes.texi: Likewise.
14030         * doc/glibc-functions/memmem.texi: Likewise.
14032 2018-07-23  Werner LEMBERG  <wl@gnu.org>
14034         doc: Avoid some overfull lines in the TeX output.
14035         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
14036         @example.
14037         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
14038         newline before the long URL.
14039         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
14040         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
14041         Add line breaks in code snippets.
14043 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
14045         hard-locale: simplify by removing hard-locale.m4
14046         * m4/hard-locale.m4: Remove.
14047         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
14048         (configure.ac): Do not call gl_HARD_LOCALE.
14050         gnulib-tool: limit line length for git send-email
14051         * gnulib-tool (func_import): Break actioncmd log line
14052         into multiple lines.
14054 2018-07-16  Bruno Haible  <bruno@clisp.org>
14056         ffs: Ensure declaration on mingw.
14057         Reported by Daniel P. Berrangé <berrange@redhat.com>
14058         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
14059         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
14060         also declared.
14062 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
14064         regex-tests: add dependency
14065         * modules/regex-tests (Depends-on): Add gettext-h.
14066         This is needed given the recent changes to regex,
14067         which no longer depends on gettext-h.
14069 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14071         regex: now in sync with glibc
14072         * config/srclist.txt: Gnulib and glibc regex code
14073         are synchronized again.
14075 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14077         renameatu: rename from renameat2
14078         It's looking like Glibc will add a renameat2 function
14079         that is incompatible with Gnulib renameat2; see:
14080         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
14081         To help avoid future confusion, rename renameat2 to something else.
14082         Use the name 'renameatu', as the Gnulib function is close to the
14083         Glibc function.  Perhaps someday there will also be a renameat2
14084         Gnulib module, which mimicks the future glibc renameat2, but that
14085         can wait as nobody seems to need such a module now.
14086         * NEWS: Mention this.
14087         * lib/renameatu.c: Rename from lib/renameat2.c.
14088         * lib/renameatu.h: Rename from lib/renameat2.h.
14089         * modules/renameatu: Rename from modules/renameat2.
14090         * modules/renameatu-tests: Rename from modules/renameat2-tests.
14091         All uses of "renameat2" in identifiers or file name
14092         changed to "renameatu", except for two instances in
14093         lib/renameatu.c that deal with the Linux kernel's
14094         renameat2 syscall.
14096 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14098         gnulib-tool: minor tweaks for --gnu-make
14099         * gnulib-tool: Do not allow --gnu-make in test modes,
14100         since they all require automake.
14101         (func_emit_lib_Makefile_am): Don’t emit automake comment
14102         if --gnu-make.
14104         regex: work around conditional-dependencies glitch
14105         * modules/regex (Depends-on): Add langinfo.
14106         Without this change, I had problems building an experimental
14107         version of GNU Emacs.  The symptom of the bug was a message
14108         ‘./configure: line 12726: test: =: unary operator expected’.
14109         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
14110         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
14111         was unset.  Although gl_FUNC_NL_LANGINFO has
14112         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
14113         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
14114         --conditional-dependencies sometimes arranges for the
14115         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
14116         code.  Since the regex code includes <langinfo.h> it should be
14117         depending on the langinfo module anyway, and this happens to work
14118         around the bug, so install that as a workaround for now.  To
14119         reproduce the original problem, run the following shell script on
14120         the version of Gnulib just before this patch was installed.
14121                 rm -fr foo
14122                 mkdir foo
14123                 cat >foo/configure.ac <<'EOF'
14124                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
14125                 gl_EARLY
14126                 gl_INIT
14127                 AC_OUTPUT
14128                 EOF
14129                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
14130                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
14131                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
14132                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
14133                 cd foo
14134                 aclocal -I m4
14135                 autoconf
14136                 ./configure --with-included-regex
14138 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14140         wchar: fix bug when checking for ‘inline’
14141         I discovered this when looking into using the regex module
14142         with Emacs.
14143         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
14144         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
14145         conftest1.c and conftest2.c but these files were not created.
14146         As far as I can see, this check never worked and nobody reported
14147         it until now, which is a bit worrisome.
14149 2018-06-30  Jim Meyering  <meyering@fb.com>
14151         bootstrap: s/--option val/--option=val/
14152         * build-aux/bootstrap (gnulib_tool_options): Change the
14153         spelling of "--option val" pairs to "--option=val", for
14154         aesthetics, and also so that this file no longer triggers
14155         a common help2man syntax-check warning when copied into
14156         projects like grep, gzip, etc.
14158 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14160         manywarnings: omit -Wswitch-default
14161         This should make things more consistent, as we already ignore
14162         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
14163         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
14164         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
14165         Add -Wswitch-default.
14166         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
14167         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
14168         Remove -Wswitch-default.
14170         regex: revert most trimming
14171         Problems reported by Bruno Haible in:
14172         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
14173         * modules/regex (Depends-on): Add lock, memcmp, memmove,
14174         and wctype back in.  lock because regex users shouldn’t
14175         need to know that regex needs locking, and the rest because
14176         gnulib-tool should ordinarily ignore them anyway.
14178 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14180         regex: trim module dependencies
14181         * modules/regex (Depends-on): Remove gettext-h and lock,
14182         since the regex code should work OK without these modules,
14183         and Emacs uses it that way.  Also remove memcmp, memmove,
14184         and wctype, as these modules are obsolete and should not be
14185         needed any more.
14187 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
14189         regex: glibc does not use intprops.h
14190         Maybe we can talk glibc into using intprops.h someday, but
14191         now doesn’t seem to be a good time.
14192         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
14193         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
14194         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
14196 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
14198         regex: port to recently proposed glibc regex merge
14199         This patch is inspired by Adhemerval Zanella's recent proposal
14200         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
14201         to merge glibc and Gnulib regex.  It aims to simplify the merge on
14202         the glibc side, without keeping Gnulib portable.
14203         * lib/regex.h: Fix a problem with glibc installed-header checking,
14204         as follows:
14205         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
14206         (_Restrict_arr_): Prefer __restrict_arr if defined,
14207         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
14208         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
14209         (build_wcs_upper_buffer, build_upper_buffer)
14210         (re_string_translate_buffer, re_string_context_at):
14211         Move decls here from lib/regex_internal.h, for glibc internal tests.
14212         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
14213         glibc BZ #18496.
14214         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
14215         -Wunused-value.
14216         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
14217         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
14218         (bitset_mask): Now static inline, and without any __attribute__
14219         ((unused)) decoration, for glibc internal tests.
14221 2018-06-25  Bruno Haible  <bruno@clisp.org>
14223         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
14224         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
14225         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
14226         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
14227         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
14228         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
14229         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
14230         / -lthread / -lpth does not get optimized away by a preceding
14231         --as-needed option.
14233 2018-06-25  Bruno Haible  <bruno@clisp.org>
14235         Continue to use spaces for indentation, not tabs.
14236         * MODULES.html.sh: Untabify.
14237         * doc/regex.texi: Likewise.
14238         * lib/acl-internal.c: Likewise.
14239         * lib/dfa.c: Likewise.
14240         * lib/exclude.c: Likewise.
14241         * lib/exclude.h: Likewise.
14242         * lib/get-permissions.c: Likewise.
14243         * lib/gettimeofday.c: Likewise.
14244         * lib/parse-datetime.y: Likewise.
14245         * lib/pselect.c: Likewise.
14246         * lib/set-permissions.c: Likewise.
14247         * lib/time.in.h: Likewise.
14248         * m4/canonicalize.m4: Likewise.
14249         * m4/gc.m4: Likewise.
14250         * m4/gnulib-common.m4: Likewise.
14251         * m4/pthread_sigmask.m4: Likewise.
14252         * m4/vararrays.m4: Likewise.
14253         * tests/test-digest.h: Likewise.
14254         * tests/test-fcntl-h.c: Likewise.
14255         * tests/test-timespec.c: Likewise.
14256         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
14258 2018-06-25  Bruno Haible  <bruno@clisp.org>
14260         manywarnings: Don't enable -Wjump-misses-init warnings by default.
14261         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
14262         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
14263         -Wjump-misses-init.
14265 2018-06-25  Jim Meyering  <meyering@fb.com>
14267         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
14268         * lib/acl-internal.h (free_permission_context): Remove that
14269         attribute directive.  Otherwise, it would provoke this from GCC 9:
14270         lib/acl-internal.h:300:3: error: 'const' attribute on function \
14271           returning 'void' [-Werror=attributes]
14273 2018-06-24  Jim Meyering  <meyering@fb.com>
14275         parse-datetime: accommodate gcc-4.8.5
14276         Bruno Haible reported the build failure in
14277         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
14278         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
14279         on declaration of new local.
14281 2018-06-24  Bruno Haible  <bruno@clisp.org>
14283         af_alg: Fail in continuable manner on Linux/powerpc64le.
14284         Reported by Assaf Gordon <assafgordon@gmail.com>
14285         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
14286         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
14287         byte send() as the first round.
14289 2018-06-24  Bruno Haible  <bruno@clisp.org>
14291         af_alg: Fix state of stream after sendfile() succeeds.
14292         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
14293         the stream is correctly positioned afterwards.
14294         * modules/crypto/af_alg (Depends-on): Add fflush.
14295         * tests/test-digest.h (test_digest_on_files): Verify that after the
14296         operation the stream is positioned at end of file.
14298 2018-06-24  Jim Meyering  <meyering@fb.com>
14300         canon-host: take GCC9's advice rather than ignoring warning
14301         Pádraig Brady suggested not to ignore this GCC9 advice.
14302         * lib/canon-host.c: Undo preceding change.
14303         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
14305         parse-datetime.y: avoid spurious GCC 9 warning
14306         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
14307         a function local prior to the first "goto fail".  The prior use would
14308         evoke this:
14309         parse-datetime.y: In function 'parse_datetime2':
14310         parse-datetime.y:1791:19: error: jump skips variable initialization \
14311           [-Werror=jump-misses-init]
14312         parse-datetime.y:2385:2: note: label 'fail' defined here
14313         parse-datetime.y:188:43: note: '({anonymous})' declared here
14314         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
14316         canon-host.c: avoid spurious GCC 9 warning
14317         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
14319         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
14320         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
14321         * m4/manywarnings.m4: Remove them.
14322         Otherwise, building coreutils, I would see this:
14323         cc1: error: deprecated command line option '-Wchkp' [-Werror]
14324         cc1: error: -Wabi won't warn about anything [-Werror=abi]
14325         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
14326           which is also used by default
14327         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
14329 2018-06-24  Bruno Haible  <bruno@clisp.org>
14331         af_alg tests: Add another test.
14332         * tests/test-digest.h (test_digest_on_files): Also check a large file
14333         with a skipped header.
14334         * tests/test-md5.c: Include macros.h.
14335         * tests/test-sha1.c: Likewise.
14336         * tests/test-sha256.c: Likewise.
14337         * tests/test-sha512.c: Likewise.
14338         * modules/crypto/md5-tests (Files): Add tests/macros.h.
14339         * modules/crypto/sha1-tests (Files): Likewise.
14340         * modules/crypto/sha256-tests (Files): Likewise.
14341         * modules/crypto/sha512-tests (Files): Likewise.
14343 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14345         maint: clarify comments about sticky EOF
14346         * lib/af_alg.c: Be more direct that we can't
14347         assume stickiness of EOF for portability reasons.
14348         * lib/md5.c: Clarify that this isn't just a glibc issue.
14349         * lib/sha1.c: Likewise.
14350         * lib/sha256.c: Likewise.
14351         * lib/sha512.c: Likewise.
14353 2018-06-24  Bruno Haible  <bruno@clisp.org>
14355         af_alg: Comment and style improvements.
14356         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
14357         (afalg_buffer, afalg_stream): Improve comments.
14359 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14361         af_alg: disable kernel hash functions by default
14362         All the kernel routines were seen to be significantly slower
14363         with these relatively recent components on an i3-2310M system:
14364           kernel-4.10.6-200.fc25.x86_64
14365           openssl-1.0.2m-1.fc25.x86_64
14366         sha1 was nearly twice as slow in the kernel for example.
14367         Further considerations why this should not be the default, at:
14368         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
14370         * m4/af_alg.m4: Require --with-linux-crypto to enable.
14371         * m4/gl-openssl.m4: Tweak accordingly.
14373 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14375         af_alg: avoid hangs when reading from streams
14376         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
14377         and thus avoid doing a fread() when feof() is set.
14378         * lib/md5.c: Ensure feof() is called before fread().
14379         * lib/sha1.c: Likewise.
14380         * lib/sha256.c: Likewise.
14381         * lib/sha512.c: Likewise.
14383 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14385         af_alg: fix error handling when hash not returned
14386         * lib/af_alg.c (afalg_stream): Handle the case where we've
14387         successfully written data to the kernel in the read/write loop,
14388         but the kernel doesn't respond with the hash.
14390 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14392         libc-config: merge from glibc
14393         * lib/cdefs.h (__inline, __restrict):
14394         Copy from current glibc.  This fixes glibc bug 17721,
14395         which Gnulib had already fixed in a different way.
14396         (__nonnull): Lessen the distance from glibc by using the
14397         glibc definition inside an ‘#ifndef __nonnull’.
14398         (__attribute_nonstring__): New macro, copied from
14399         current glibc.
14400         * lib/libc-config.h (__attribute_nonstring__): New undef.
14401         (__restrict): Remove; workaround no longer needed.
14402         Keep the __inline workaround, though, as it uses HAVE___INLINE to
14403         support more compilers than the glibc __inline can.
14405 2018-06-24  Bruno Haible  <bruno@clisp.org>
14407         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
14408         * lib/mbrtowc.c (enc_t): New enum type.
14409         (locale_enc, locale_enc_cached): New functions.
14410         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
14411         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
14412         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
14413         instead.
14414         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
14415         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
14416         * modules/wcwidth (configure.ac): Invoke it.
14418 2018-06-24  Bruno Haible  <bruno@clisp.org>
14420         wchar-single: Fix test failure in wcwidth tests.
14421         * tests/test-wcwidth.c (main): If the wchar-single module is present,
14422         skip the tests in the C locale.
14424 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14426         crypto: mention --without-linux-crypto in --with-openssl --help
14427         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
14428         routines take precedence in --with-openssl help output.
14430 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14432         wchar-single: a new module to enable optimizations in wchar replacements
14433         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
14434         GNULIB_WCHAR_SINGLE is enabled.
14435         * lib/wcwidth.c (wcwidth): Likewise.
14437 2018-06-23  Bruno Haible  <bruno@clisp.org>
14439         libc-config: Fix conflict with FreeBSD include files.
14440         * lib/cdefs.h (__nonnull): Remove definition.
14441         * lib/libc-config.h (__nonnull): Remove undefinition.
14443 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14445         random_r: do not crash if state is unaligned
14446         Problem reported by Bruce Korb in:
14447         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
14448         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
14449         with 'cc -O2 -xmemalign=8s'.
14450         * lib/random_r.c: Include string.h, for memcpy.
14451         (get_int32, set_int32): New functions.
14452         (__srandom_r, __initstate_r, __setstate_r, __random_r):
14453         Use them to avoid assumption that state pointer is aligned.
14454         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
14455         * tests/test-random_r.c (test_failed): New function.
14456         (main): Use it, to test for alignment bugs.
14458         random_r: omit unnecessary include
14459         * lib/random_r.c: Do not include limits.h.
14461         random, random_r: merge from glibc
14462         * lib/random.c, lib/random_r.c:
14463         Include libc-config.h if !_LIBC, not config.h unilaterally.
14464         * lib/random.c:
14465         Do not include stdint.h or time.h; not needed.
14466         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
14467         (unsafe_state): Rename from generator.  All uses changed.
14468         Use C99-style initializers.
14469         (__random, __srandom, __initstate, __setstate): Rename from
14470         non-underscored version, but define it to non-underscored version
14471         on Gnulib.  Add a lock.
14472         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
14473         Likewise.
14474         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
14475         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
14476         (__srandom_r): Use int32_t instead of long int where int32_t will do.
14477         (__random_r): Use uint32 to fix glibc bug 17343.
14478         * modules/random, modules/random_r (Depends-on): Add libc-config.
14479         Depend on stdint only if $HAVE_RANDOM = 0.
14481 2018-06-19  Jim Meyering  <meyering@fb.com>
14483         README-release: also run any check-very-expensive tests
14484         * top/README-release: Adjust instructions so they run the
14485         check-very-expensive tests when there is such a target.
14487 2018-06-18  Bruno Haible  <bruno@clisp.org>
14489         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
14490         * m4/pthread_rwlock_rdlock.m4: Add comment.
14491         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
14492         are reader-preferring in glibc.
14493         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
14494         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
14496 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14498         crypto: use byteswap
14499         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
14500         * lib/sm3.c: Include <byteswap.h>.
14501         (SWAP): Use its macros rather than reinventing the wheel.
14502         * modules/crypto/md4, modules/crypto/md5-buffer:
14503         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
14504         * modules/crypto/sha512-buffer, modules/crypto/sm3:
14505         (Depends-on): Add byteswap.
14507 2018-06-17  Pádraig Brady  <P@draigBrady.com>
14509         gendocs.sh: fix support for legacy --texi2html
14510         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
14511         to the default makeinfo invocation.
14512         Reported by Bruce Korb
14514 2018-06-17  Bruno Haible  <bruno@clisp.org>
14516         gettext po infrastructure: Update from current gettext git.
14517         Reported by Akim Demaille <akim@lrde.epita.fr>.
14518         * build-aux/po/Makefile.in.in: Update from current gettext git.
14519         * build-aux/po/remove-potcdate.sin: Likewise.
14520         * config/srclist.txt: Temporarily disable sync for these files.
14522 2018-06-17  Bruno Haible  <bruno@clisp.org>
14524         getloadavg: Return 0 on Windows without Cygwin.
14525         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
14527 2018-06-17  Paul Smith  <psmith@gnu.org>
14529         getloadavg: Allow building on Windows without Cygwin
14530         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
14531         * m4/getloadavg.m4: Check for unistd.h.
14533 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
14535         Port crypto/af_alg to GCC 4.8.4
14536         Problem reported by Peter Simons in:
14537         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
14538         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
14540 2018-05-27  Colin Watson  <cjwatson@debian.org>
14542         bootstrap: document source fetching in --help
14543         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
14545 2018-04-09  Colin Watson  <cjwatson@debian.org>
14547         bootstrap: allow non-submodule control of gnulib
14548         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
14549         bootstrap.conf when fetching gnulib using "git clone" or via
14550         GNULIB_SRCDIR.
14552 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14554         crypto: omit stream ops Emacs doesn’t need
14555         * lib/md5.c (md5_stream):
14556         * lib/sha1.c (sha1_stream):
14557         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
14558         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
14559         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
14560         defined.  Emacs needs this, as it does not use the stream
14561         operations and doesn’t need all the af_alg stuff we’ve recently
14562         added.  Perhaps a similar change is needed to the other crypto
14563         modules, but this patch changes only those needed for Emacs.
14564         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
14565         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
14566         New modules, used by Emacs.
14567         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
14568         * modules/crypto/sha512: Rewrite to depend on the new modules.
14570 2018-05-20  Pádraig Brady  <P@draigBrady.com>
14572         fts: avoid a memory leak edge case
14573         * lib/fts.c (fts_open): Set an appropriate fts_level
14574         so that an immediate fts_close() will free the allocation.
14575         * tests/test-fts.c (fts_dealloc): Add a test case which
14576         will trigger under valgrind or address sanitizer.
14577         Fixes https://bugs.gnu.org/31439
14579 2018-05-20  Bruno Haible  <bruno@clisp.org>
14581         wcwidth tests: Fix link error.
14582         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
14583         $(LIBUNISTRING).
14585 2018-05-20  Bruno Haible  <bruno@clisp.org>
14587         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
14588         * modules/regex (Files): Add m4/glibc21.m4.
14590 2018-05-20  Bruno Haible  <bruno@clisp.org>
14592         localcharset: Optimize.
14593         * lib/localcharset.c (alias_table): Comment out no-op mappings for
14594         platforms where these don't matter. This reduces the table size,
14595         which in turn reduces the lookup time.
14597 2018-05-19  Bruno Haible  <bruno@clisp.org>
14599         localcharset: Map the locale encodings found in newer OSes.
14600         * lib/localcharset.c (alias_table): Add mapping for locale encodings
14601         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
14602         IRIX 6.5, Minix 3.3.
14603         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
14605 2018-05-19  Bruno Haible  <bruno@clisp.org>
14607         localcharset: Move mapping tables into the code. Use a binary search.
14608         * lib/localcharset.h: Document the GNU canonical names for character
14609         encodings here.
14610         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
14611         relocatable.h, configmake.h.
14612         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
14613         macros.
14614         (charset_aliases): Remove variable.
14615         (get_charset_aliases): Remove function.
14616         (struct table_entry): New type.
14617         (alias_table, locale_table): New constants.
14618         (locale_charset): Use the alias_table or locale_table to get the
14619         canonicalized encoding name.
14620         * lib/config.charset: Remove file.
14621         * lib/ref-add.sin: Remove file.
14622         * lib/ref-del.sin: Remove file.
14623         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
14624         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
14625         * modules/localcharset (Notice): Remove.
14626         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
14627         glibc21.m4.
14628         (Depends-on): Remove configmake.
14629         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
14630         (Makefile.am): Simplify.
14631         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
14633 2018-05-19  Bruno Haible  <bruno@clisp.org>
14635         localcharset: Add a manual test.
14636         * tests/test-localcharset.c: New file.
14637         * modules/localcharset-tests: New file.
14639 2018-05-19  Bruno Haible  <bruno@clisp.org>
14641         localcharset: Remove support for obsolete platforms.
14642         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
14643         Mac OS X 10.2. Comment out dubious entry for Solaris.
14645 2018-05-19  Jim Meyering  <meyering@fb.com>
14647         gnupload: adjust comment
14648         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
14649         more likely we'll remove the just-added code in a year or two.
14651 2018-05-19  Bruno Haible  <bruno@clisp.org>
14653         gnupload: Fix "gpg-agent is not available in this session" error.
14654         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
14656 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14658         crypto/af_alg: fix --help
14659         * m4/af_alg.m4: Avoid spurious newline in --help output.
14661 2018-05-13  Bruno Haible  <bruno@clisp.org>
14663         nl_langinfo: Fix compilation error on Android.
14664         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
14665         INT_CURR_SYMBOL, etc. only if these items are defined.
14667 2018-05-13  Bruno Haible  <bruno@clisp.org>
14669         truncate: Fix compilation error on Android.
14670         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
14671         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
14672         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
14673         HAVE_TRUNCATE.
14674         * modules/truncate: Likewise.
14675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
14676         not HAVE_TRUNCATE.
14677         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
14678         HAVE_TRUNCATE.
14679         * doc/posix-functions/truncate.texi: Mention the issue.
14681 2018-05-13  Bruno Haible  <bruno@clisp.org>
14683         pthread: Fix compilation error on Android.
14684         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
14685         recursive inclusion of this file.
14687 2018-05-13  Bruno Haible  <bruno@clisp.org>
14689         posix_spawn: Fix compilation error on Android.
14690         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
14691         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
14692         (posix_spawn_file_actions_t): Consider also the case
14693         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
14695 2018-05-13  Bruno Haible  <bruno@clisp.org>
14697         tsearch: Move from K&R C to ANSI C.
14698         * lib/tsearch.c (tfind): Convert definition to ANSI C.
14700 2018-05-13  Bruno Haible  <bruno@clisp.org>
14702         tsearch: Fix compilation error on Android.
14703         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
14704         is 0.
14705         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
14706         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
14707         GNULIB_defined_tsearch is true.
14708         (twalk): Define only if GNULIB_defined_twalk is true.
14709         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
14710         is 0.
14711         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
14712         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
14713         * modules/search (Makefile.am): Substitute HAVE_TWALK.
14715 2018-05-13  Bruno Haible  <bruno@clisp.org>
14717         imaxdiv: Fix compilation error on Android.
14718         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
14719         is not defined.
14720         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
14721         HAVE_DECL_IMAXDIV, is 0.
14722         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
14723         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
14725 2018-05-13  Bruno Haible  <bruno@clisp.org>
14727         Support selective inclusion mechanism of recent mingw.org header files.
14728         Reported by Eli Zaretskii <eliz@gnu.org>.
14729         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
14730         __need_ssize_t, or __need_time_t is defined, just include the system's
14731         <sys/types.h>.
14732         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
14733         include the system's <locale.h>.
14735 2018-05-13  Bruno Haible  <bruno@clisp.org>
14737         Avoid compilation error due to 'mmap' on Android.
14738         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
14739         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
14740         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
14741         Undefine on Android.
14743 2018-05-13  Bruno Haible  <bruno@clisp.org>
14745         Add cross-compilation guesses for Linux systems without glibc.
14746         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
14747         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
14748         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14749         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14750         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
14751         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14752         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14753         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
14754         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
14755         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
14756         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14757         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14758         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
14759         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14760         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14761         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14762         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14763         * m4/utimens.m4 (gl_UTIMENS): Likewise.
14765 2018-05-13  Bruno Haible  <bruno@clisp.org>
14767         getpagesize: Fix compilation error on Android.
14768         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
14769         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
14770         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
14771         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
14772         HAVE_GETPAGESIZE accordingly.
14773         * modules/getcwd (Files): Add m4/getpagesize.m4.
14775 2018-05-13  Bruno Haible  <bruno@clisp.org>
14777         tcgetsid: Fix compilation error on Android.
14778         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
14779         AC_CHECK_FUNC.
14781 2018-05-13  Bruno Haible  <bruno@clisp.org>
14783         getpass: Fix configure test for Android.
14784         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
14785         AC_CHECK_FUNC.
14787 2018-05-13  Bruno Haible  <bruno@clisp.org>
14789         ffs: Fix compilation error on Android.
14790         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
14792 2018-05-13  Bruno Haible  <bruno@clisp.org>
14794         mkfifo: Fix compilation error on Android.
14795         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
14796         AC_CHECK_FUNC.
14798 2018-05-13  Bruno Haible  <bruno@clisp.org>
14800         c-strtod: Fix configure test for Android.
14801         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
14802         AC_CHECK_FUNC.
14804 2018-05-13  Bruno Haible  <bruno@clisp.org>
14806         random: Fix compilation error on Android.
14807         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
14808         AC_CHECK_FUNC.
14810 2018-05-13  Bruno Haible  <bruno@clisp.org>
14812         grantpt: Fix compilation error on Android.
14813         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
14814         AC_CHECK_FUNC.
14816 2018-05-13  Bruno Haible  <bruno@clisp.org>
14818         stdioext: Fix compilation errors with newer Android headers.
14819         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
14820         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
14821         fallbacks for Android.
14822         * lib/fpending.c: Update comments.
14823         * lib/fpurge.c: Likewise.
14824         * lib/freadable.h: Likewise.
14825         * lib/freadable.c: Likewise.
14826         * lib/freadahead.c: Likewise.
14827         * lib/freading.h: Likewise.
14828         * lib/freadptr.c: Likewise.
14829         * lib/fseterr.c: Likewise.
14830         * lib/fwritable.h: Likewise.
14831         * lib/fwritable.c: Likewise.
14832         * lib/fwriting.h: Likewise.
14833         * lib/fwriting.c: Likewise.
14835 2018-05-13  Bruno Haible  <bruno@clisp.org>
14837         doc: Add info about Android versions 2.0 to 8.1.
14838         * doc/**/*.texi: Add info about functions in all released versions of
14839         Bionic.
14841 2018-05-12  Bruno Haible  <bruno@clisp.org>
14843         fseeko: On mingw, don't use the hidden function _fseeki64.
14844         Reported by Eli Zaretskii <eliz@gnu.org>.
14845         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
14846         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
14848 2018-05-12  Bruno Haible  <bruno@clisp.org>
14850         glob: Choose 'dirent_type' in a way that works better on mingw.
14851         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
14852         * lib/glob.c (dirent_type): Define as uint_fast32_t.
14854 2018-05-12  Bruno Haible  <bruno@clisp.org>
14856         execute, spawn-pipe: Avoid warning about redefining 'close'.
14857         Reported by Eli Zaretskii <eliz@gnu.org>.
14858         * lib/execute.c: Undefine 'close' before redefining it.
14859         * lib/spawn-pipe.c: Likewise.
14861 2018-05-12  Bruno Haible  <bruno@clisp.org>
14863         nanosleep: Avoid test failure on mingw when it has nanosleep.
14864         Reported by Eli Zaretskii <eliz@gnu.org>.
14865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
14866         If it does not exist, use a simpler test program that does not call
14867         alarm().
14869 2018-05-10  Bruno Haible  <bruno@clisp.org>
14871         lock, cond, thread, tls: Use a different symbol as libpthread witness.
14872         Reported by Devin Hussey <husseydevin@gmail.com>.
14873         Based on a patch by Paul Eggert.
14874         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
14875         as witness of libpthread.
14876         * lib/glthread/cond.h (pthread_in_use): Likewise.
14877         * lib/glthread/thread.h (pthread_in_use): Likewise.
14878         * lib/glthread/tls.h (pthread_in_use): Likewise.
14880 2018-05-10  Bruno Haible  <bruno@clisp.org>
14882         cond tests: Fix compilation error on Solaris.
14883         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
14884         macro.
14886 2018-05-10  Bruno Haible  <bruno@clisp.org>
14888         doc: Add partial info about Android 4.3.
14889         * doc/*-functions/*.texi: Add info about functions that were added
14890         to Bionic between Android 4.3 and Android 9.0.
14892 2018-05-10  Bruno Haible  <bruno@clisp.org>
14894         doc: Add info about Android 9.0.
14895         * doc/**/*.texi: Add info about functions and headers in Bionic from
14896         Android 9.0.
14898 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
14900         af_alg: fix my typo in afalg_buffer
14901         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
14902         (afalg_stream): Simplify and avoid the need for a runtime test
14903         at the end.
14905         af_alg: recover better from crypto failures
14906         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
14907         input stream is seekable, by repositioning the stream back to
14908         where it was, possibly by just calling sendfile with an offset
14909         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
14910         cases, which lets our callers try again with user-mode code.
14911         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
14912         instead of on fflush and lseek.
14914         af_alg: distiguish I/O errors better
14915         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
14916         not -EIO, if it’s OK for the caller to try again with user-mode code.
14917         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
14918         some other error number) if fflush fails, as the caller should not
14919         try again that case.
14921         af_alg: avoid gotos
14922         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
14923         gotos, as they were a source of unreliability and made the code a
14924         bit harder to follow.
14926         af_alg: don’t leak file descriptors into children
14927         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
14928         This code should be compiled only on recent GNU/Linux platforms
14929         so we shouldn’t have to also depend on the accept4 module.
14931         af_alg: coalesce socket creation
14932         * lib/af_alg.c (alg_socket): New function.
14933         (afalg_buffer, afalg_stream): Use it.  This avoids some
14934         code duplication and gotos.
14936         af_alg: fix file descriptor leak
14937         * lib/af_alg.c (afalg_stream): Close leak.
14939         af_alg: Pacify --enable-gcc-warnings on GCC 8
14940         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
14941         and checking to pacify gcc -Wjump-misses-init on GCC 8.
14943 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
14945         af_alg: Pacify --enable-gcc-warnings
14946         Problem reported by Assaf Gordon in:
14947         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
14948         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
14949         gcc -Wjump-misses-init.
14950         * lib/sha512.c (shaxxx_stream): Now static.
14952 2018-05-06  Bruno Haible  <bruno@clisp.org>
14954         af_alg: Add ability to use Linux kernel crypto API on data in memory.
14955         * lib/af_alg.h (afalg_buffer): New declaration.
14956         * lib/af_alg.c (afalg_buffer): New function.
14958 2018-05-06  Bruno Haible  <bruno@clisp.org>
14960         af_alg: Avoid warnings.
14961         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
14962         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
14964 2018-05-06  Bruno Haible  <bruno@clisp.org>
14966         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
14967         * tests/bench-digest.h: New file.
14968         * tests/bench-md5.c: New file.
14969         * tests/bench-sha1.c: New file.
14970         * tests/bench-sha224.c: New file.
14971         * tests/bench-sha256.c: New file.
14972         * tests/bench-sha384.c: New file.
14973         * tests/bench-sha512.c: New file.
14974         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
14975         tests/bench-digest.h.
14976         (Depends-on): Add getrusage, gettimeofday.
14977         (Makefile.am): Add variables to build bench-md5.
14978         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
14979         tests/bench-digest.h.
14980         (Depends-on): Add getrusage, gettimeofday.
14981         (Makefile.am): Add variables to build bench-sha1.
14982         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
14983         tests/bench-sha256.c, tests/bench-digest.h.
14984         (Depends-on): Add getrusage, gettimeofday.
14985         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
14986         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
14987         tests/bench-sha512.c, tests/bench-digest.h.
14988         (Depends-on): Add getrusage, gettimeofday.
14989         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
14991 2018-05-06  Bruno Haible  <bruno@clisp.org>
14993         af_alg: Fix a resource leak.
14994         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
14995         New local variable 'result'.
14997 2018-05-06  Bruno Haible  <bruno@clisp.org>
14999         af_alg: Fix bug with streams that are not at position 0.
15000         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
15001         assume that the stream is positioned at position 0.
15002         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
15003         of the stream.
15004         * lib/md5.h (md5_stream): Likewise.
15005         * lib/sha1.h (sha1_stream): Likewise.
15006         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
15007         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
15008         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
15010         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
15011         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
15012         stream that is not positioned at the beginning.
15014 2018-05-06  Bruno Haible  <bruno@clisp.org>
15016         af_alg: Add configure option to enable/disable use of Linux crypto API.
15017         Suggested by Assaf Gordon <assafgordon@gmail.com>.
15018         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
15019         USE_LINUX_CRYPTO_API.
15020         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
15021         * lib/af_alg.c: Likewise.
15023 2018-05-06  Bruno Haible  <bruno@clisp.org>
15025         Followup to 'af_alg: New module.'.
15026         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
15027         * modules/crypto/sha1 (Depends-on): Likewise.
15028         * modules/crypto/sha256 (Depends-on): Likewise.
15029         * modules/crypto/sha512 (Depends-on): Likewise.
15031 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15033         crypto/{md5,sha1,sha256,sha512}: simplify
15034         * lib/md5.c (md5_stream):
15035         * lib/sha1.c (sha1_stream):
15036         * lib/sha256.c (shaxxx_stream):
15037         Simplify, partly by assuming C99.
15038         * lib/sha256.c (shaxxx_stream):
15039         New function, which implements both sha256 and sha224.
15040         Simplify, partly by assuming C99.
15041         (sha256_stream, sha224_stream):
15042         Use it to avoid code duplication, removing a FIXME.
15043         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15044         Likewise.
15046         af_alg: Improve comments.
15047         * lib/af_alg.h: Use imperatives and tighten up wording.
15049 2018-05-05  Bruno Haible  <bruno@clisp.org>
15051         af_alg: Improve comments.
15052         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
15054 2018-05-05  Bruno Haible  <bruno@clisp.org>
15056         af_alg: New module.
15057         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
15058         * lib/af_alg.c: Include "af_alg.h" before the other header files.
15059         * lib/md5.c: Include "af_alg.h" unconditionally.
15060         (md5_stream): Invoke afalg_stream unconditionally.
15061         * lib/sha1.c: Include "af_alg.h" unconditionally.
15062         (sha1_stream): Invoke afalg_stream unconditionally.
15063         * lib/sha256.c: Include "af_alg.h" unconditionally.
15064         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
15065         * lib/sha512.c: Include "af_alg.h" unconditionally.
15066         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
15067         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
15068         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
15069         * modules/crypto/af_alg: New file.
15070         * modules/crypto/md5 (Files): Remove files that are now in the
15071         'crypto/af_alg' module.
15072         (Depends-on): Add crypto/af_alg.
15073         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15074         (Makefile.am): Don't mention af_alg.c here.
15075         * modules/crypto/sha1 (Files): Remove files that are now in the
15076         'crypto/af_alg' module.
15077         (Depends-on): Add crypto/af_alg.
15078         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15079         (Makefile.am): Don't mention af_alg.c here.
15080         * modules/crypto/sha256 (Files): Remove files that are now in the
15081         'crypto/af_alg' module.
15082         (Depends-on): Add crypto/af_alg.
15083         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15084         (Makefile.am): Don't mention af_alg.c here.
15085         * modules/crypto/sha512 (Files): Remove files that are now in the
15086         'crypto/af_alg' module.
15087         (Depends-on): Add crypto/af_alg.
15088         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15089         (Makefile.am): Don't mention af_alg.c here.
15091 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15093         crypto tests: pacify GCC
15094         * tests/test-digest.h (test_digest_on_files):
15095         Don’t assume digest size fits in int (!).
15097         af_alg: minor style improvements
15098         * lib/af_alg.c (afalg_stream): Prefer C99 style
15099         decl-after-statement, since we’re already assuming C99.  Clarify
15100         by strengthening the bind test and omit unnecessary assignment.
15102 2018-05-05  Bruno Haible  <bruno@clisp.org>
15104         af_alg: Fix bug on empty files.
15105         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
15106         stream is empty.
15108 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15110         sys-limits.h: new file for crypto and safe I/O
15111         * lib/af_alg.c: Include sys-limits.h.
15112         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
15113         (afalg_stream): Also reject negative sizes for sendfile; they
15114         should not happen and the code is a bit cleaner and faster this way.
15115         * lib/safe-read.c: Include sys-limits.h.
15116         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
15117         * lib/sys-limits.h: New file, with values and commentary derived
15118         from the old safe-read.c and from GNU Emacs sysdep.c.
15119         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15120         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
15121         Add lib/sys-limits.h to Files section.
15123 2018-05-05  Bruno Haible  <bruno@clisp.org>
15125         af_alg: Improve function signature.
15126         * lib/af_alg.h (afalg_stream): Swap second and third argument.
15127         * lib/af_alg.c (afalg_stream): Likewise.
15128         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
15130 2018-05-05  Bruno Haible  <bruno@clisp.org>
15132         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
15133         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
15134         * modules/crypto/sha1 (Depends-on): Likewise.
15135         * modules/crypto/sha256 (Depends-on): Likewise.
15136         * modules/crypto/sha512 (Depends-on): Likewise.
15138 2018-05-05  Bruno Haible  <bruno@clisp.org>
15140         crypto/{md5,sha1,sha256,sha512}: Fix module description.
15141         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
15142         * modules/crypto/sha1 (Depends-on): Likewise.
15143         * modules/crypto/sha256 (Depends-on): Likewise.
15144         * modules/crypto/sha512 (Depends-on): Likewise.
15146 2018-05-05  Bruno Haible  <bruno@clisp.org>
15148         af_alg: Add documentation.
15149         * lib/af_alg.h: Add comments.
15151 2018-05-05  Bruno Haible  <bruno@clisp.org>
15153         sha512: Add tests.
15154         * tests/test-sha512.c: New file.
15155         * modules/crypto/sha512-tests: New file.
15157 2018-05-05  Bruno Haible  <bruno@clisp.org>
15159         sha256: Add tests.
15160         * tests/test-sha256.c: New file.
15161         * modules/crypto/sha256-tests: New file.
15163 2018-05-05  Bruno Haible  <bruno@clisp.org>
15165         sha1 tests: Add test for sha1_stream.
15166         * tests/test-sha1.c: Include test-digest.h.
15167         (main): Invoke test_digest_on_files on 'sha1_stream'.
15168         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
15170 2018-05-05  Bruno Haible  <bruno@clisp.org>
15172         md5 tests: Add test for md5_stream.
15173         * tests/test-digest.h: New file.
15174         * tests/test-md5.c: Include test-digest.h.
15175         (main): Invoke test_digest_on_files on 'md5_stream'.
15176         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
15178 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15180         md5sum: Use AF_ALG when available.
15181         * lib/md5.c: Include af_alg.h.
15182         (md5_stream): Use afalg_stream when available.
15183         * modules/crypto/md5 (Files): Add the af_alg files.
15184         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15185         (Makefile.am): Add af_alg.c.
15187 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15189         sha512sum: Use AF_ALG when available.
15190         * lib/sha512.c: Include af_alg.h.
15191         (sha512_stream, sha384_stream): Use afalg_stream when available.
15192         * modules/crypto/sha512 (Files): Add the af_alg files.
15193         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15194         (Makefile.am): Add af_alg.c.
15196 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15198         sha256sum: Use AF_ALG when available.
15199         * lib/sha256.c: Include af_alg.h.
15200         (sha256_stream, sha224_stream): Use afalg_stream when available.
15201         * modules/crypto/sha256 (Files): Add the af_alg files.
15202         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15203         (Makefile.am): Add af_alg.c.
15205 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15207         sha1sum: Use AF_ALG when available.
15208         * lib/af_alg.h: New file.
15209         * lib/af_alg.c: New file.
15210         * lib/sha1.c: Include af_alg.h.
15211         (sha1_stream): Use afalg_stream when available.
15212         * m4/linux-if-alg.m4: New file.
15213         * modules/crypto/sha1 (Files): Add the new files.
15214         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15215         (Makefile.am): Add af_alg.c.
15217 2018-05-05  Bruno Haible  <bruno@clisp.org>
15219         all: Replace more http URLs by https URLs.
15220         * lib/localename.c: Use https: URL.
15221         * lib/timespec.h: Likewise.
15223 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15225         maint: port more modules to GCC 8
15226         * lib/dirname.h (base_name):
15227         * lib/exclude.h (new_exclude):
15228         * lib/xstrndup.h (xstrndup):
15229         Add malloc attribute.
15230         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
15231         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
15232         This pacifies GCC 8.
15233         * m4/gnulib-common.m4 (gl_COMMON_BODY):
15234         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
15236 2018-05-03  Bruno Haible  <bruno@clisp.org>
15238         Simplify code. Drop support for Borland C++ on Windows.
15239         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
15240         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
15241         'defined _WIN32'.
15242         * lib/canonicalize-lgpl.c: Likewise.
15243         * lib/classpath.c: Likewise.
15244         * lib/clean-temp.c: Likewise.
15245         * lib/csharpexec.c: Likewise.
15246         * lib/ctime.c: Likewise.
15247         * lib/dosname.h: Likewise.
15248         * lib/dup2.c: Likewise.
15249         * lib/errno.in.h: Likewise.
15250         * lib/error.c: Likewise.
15251         * lib/euidaccess.c: Likewise.
15252         * lib/execute.c: Likewise.
15253         * lib/fcntl.in.h: Likewise.
15254         * lib/fcntl.c: Likewise.
15255         * lib/filename.h: Likewise.
15256         * lib/findprog.c: Likewise.
15257         * lib/flock.c: Likewise.
15258         * lib/fopen.c: Likewise.
15259         * lib/freopen.c: Likewise.
15260         * lib/fstat.c: Likewise.
15261         * lib/fsync.c: Likewise.
15262         * lib/gc-gnulib.c: Likewise.
15263         * lib/get-rusage-data.c: Likewise.
15264         * lib/getaddrinfo.c: Likewise.
15265         * lib/getdelim.c: Likewise.
15266         * lib/getdtablesize.c: Likewise.
15267         * lib/gethostname.c: Likewise.
15268         * lib/getlogin.c: Likewise.
15269         * lib/getlogin_r.c: Likewise.
15270         * lib/getopt.c: Likewise.
15271         * lib/getpagesize.c: Likewise.
15272         * lib/getpass.c: Likewise.
15273         * lib/getrusage.c: Likewise.
15274         * lib/gettimeofday.c: Likewise.
15275         * lib/glob.c: Likewise.
15276         * lib/inttypes.in.h: Likewise.
15277         * lib/isapipe.c: Likewise.
15278         * lib/javaexec.c: Likewise.
15279         * lib/link.c: Likewise.
15280         * lib/localcharset.c: Likewise.
15281         * lib/localename.h: Likewise.
15282         * lib/localename.c: Likewise.
15283         * lib/localtime.c: Likewise.
15284         * lib/lseek.c: Likewise.
15285         * lib/mbsinit.c: Likewise.
15286         * lib/mkdir.c: Likewise.
15287         * lib/msvc-nothrow.h: Likewise.
15288         * lib/nanosleep.c: Likewise.
15289         * lib/nl_langinfo.c: Likewise.
15290         * lib/nonblocking.c: Likewise.
15291         * lib/nproc.c: Likewise.
15292         * lib/open.c: Likewise.
15293         * lib/openpty.c: Likewise.
15294         * lib/pathmax.h: Likewise.
15295         * lib/pipe-filter-aux.c: Likewise.
15296         * lib/pipe-filter-gi.c: Likewise.
15297         * lib/pipe-filter-ii.c: Likewise.
15298         * lib/pipe.c: Likewise.
15299         * lib/pipe2.c: Likewise.
15300         * lib/poll.c: Likewise.
15301         * lib/popen.c: Likewise.
15302         * lib/posix_openpt.c: Likewise.
15303         * lib/printf-parse.c: Likewise.
15304         * lib/progreloc.c: Likewise.
15305         * lib/putenv.c: Likewise.
15306         * lib/read.c: Likewise.
15307         * lib/relocatable.c: Likewise.
15308         * lib/rename.c: Likewise.
15309         * lib/same-inode.h: Likewise.
15310         * lib/secure_getenv.c: Likewise.
15311         * lib/select.c: Likewise.
15312         * lib/sethostname.c: Likewise.
15313         * lib/setlocale.c: Likewise.
15314         * lib/sigaction.c: Likewise.
15315         * lib/sigprocmask.c: Likewise.
15316         * lib/sleep.c: Likewise.
15317         * lib/spawn-pipe.h: Likewise.
15318         * lib/spawn-pipe.c: Likewise.
15319         * lib/spawni.c: Likewise.
15320         * lib/stat-time.h: Likewise.
15321         * lib/stat-w32.c: Likewise.
15322         * lib/stat.c: Likewise.
15323         * lib/stdio.in.h: Likewise.
15324         * lib/stdio-impl.h: Likewise.
15325         * lib/stdio-read.c: Likewise.
15326         * lib/stdio-write.c: Likewise.
15327         * lib/stdlib.in.h: Likewise.
15328         * lib/strerror_r.c: Likewise.
15329         * lib/strftime-fixes.c: Likewise.
15330         * lib/sys_stat.in.h: Likewise.
15331         * lib/sys_types.in.h: Likewise.
15332         * lib/sys_wait.in.h : Likewise.
15333         * lib/system-quote.h: Likewise.
15334         * lib/system-quote.c: Likewise.
15335         * lib/tmpdir.c: Likewise.
15336         * lib/tzset.c: Likewise.
15337         * lib/uname.c: Likewise.
15338         * lib/unistd.in.h: Likewise.
15339         * lib/utime.in.h: Likewise.
15340         * lib/utime.c: Likewise.
15341         * lib/utimecmp.c: Likewise.
15342         * lib/utimens.c: Likewise.
15343         * lib/vasnprintf.c: Likewise.
15344         * lib/vma-iter.h: Likewise.
15345         * lib/vma-iter.c: Likewise.
15346         * lib/wait-process.c: Likewise.
15347         * lib/wcsftime.c: Likewise.
15348         * lib/wctype.in.h: Likewise.
15349         * lib/write.c: Likewise.
15350         * tests/nap.h: Likewise.
15351         * tests/test-cloexec.c: Likewise.
15352         * tests/test-dup-safer.c: Likewise.
15353         * tests/test-dup2.c: Likewise.
15354         * tests/test-dup3.c: Likewise.
15355         * tests/test-fcntl.c: Likewise.
15356         * tests/test-get-rusage-data.c: Likewise.
15357         * tests/test-getaddrinfo.c: Likewise.
15358         * tests/test-getlogin.h: Likewise.
15359         * tests/test-isatty.c: Likewise.
15360         * tests/test-localename.c: Likewise.
15361         * tests/test-mbrtowc-w32.c: Likewise.
15362         * tests/test-nonblocking.c: Likewise.
15363         * tests/test-nonblocking-pipe-main.c: Likewise.
15364         * tests/test-nonblocking-socket-main.c: Likewise.
15365         * tests/test-nonblocking-socket.h: Likewise.
15366         * tests/test-pipe.c: Likewise.
15367         * tests/test-pipe2.c: Likewise.
15368         * tests/test-poll.c: Likewise.
15369         * tests/test-pthread_sigmask1.c: Likewise.
15370         * tests/test-select.h: Likewise.
15371         * tests/test-sethostname2.c: Likewise.
15372         * tests/test-sigprocmask.c: Likewise.
15373         * tests/test-spawn-pipe-child.c: Likewise.
15374         * tests/test-stat-time.c: Likewise.
15375         * tests/test-system-quote-main.c: Likewise.
15376         * tests/test-utimens-common.h: Likewise.
15377         * tests/test-wcrtomb-w32.c: Likewise.
15378         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
15379         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15380         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
15381         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
15382         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
15383         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15384         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15385         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15386         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15387         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15388         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
15389         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
15390         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
15391         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15392         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
15393         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15395 2018-05-02  Bruno Haible  <bruno@clisp.org>
15397         localename: Fix test failures on mingw.
15398         * lib/localename.c (gl_locale_name_thread): Remove code specific to
15399         native Windows.
15400         (gl_locale_name_posix): Move code specific to native Windows here.
15401         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15402         Accept result without charset suffix, as it appears on mingw.
15404 2018-04-28  Paul Smith  <psmith@gnu.org>
15406         bootstrap: Avoid gnulib operations if not needed
15407         * build-aux/bootstrap: Remove unused variable gnulib_mk.
15408         Set $gnulib_extra_files early so it can be overridden in .conf.
15409         Remove redundant --import flag from $gnulib_tool_options.
15410         Set $use_gnulib to false if no gnulib modules or files are needed.
15411         If $use_gnulib is false, don't do anything related to gnulib.
15412         A lot of this is just whitespace (indentation) changes.
15414 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
15416         manywarnings: port to GCC 8.0
15417         * build-aux/gcc-warning.spec: Add -Wcatch-value,
15418         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
15419         fact that the GCC help message now mentions operands for
15420         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
15421         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
15422         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
15423         and -Wunused-const-variable.
15424         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
15425         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
15426         -Wmissing-attributes, -Wmultistatement-macros,
15427         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
15428         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
15430 2018-04-24  Bruno Haible  <bruno@clisp.org>
15432         sys_socket: Make SO_REUSEPORT available across platforms.
15433         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15434         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
15435         * doc/posix-headers/sys_socket.texi: Mention the issue.
15436         * tests/test-poll.c (SO_REUSEPORT): Remove.
15437         * tests/test-select.h: Include <sys/socket.h>.
15438         (SO_REUSEPORT): Remove.
15439         * modules/select-tests (Depends-on): Add 'sys_socket'.
15441 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
15443         localcharset: short-circuit the search for an alias on a Mac
15444         * lib/localcharset.c (get_charset_aliases): Add a tautological
15445         UTF-8 entry to speed up the search for this case.
15446         Most machines default to a UTF-8 locale nowadays, so begin the
15447         list of aliases with a dummy UTF-8 entry so it will be found
15448         immediately and a time-consuming search through the rest of
15449         the list is avoided.
15451 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
15453         fts: add comment
15454         * lib/fts.c (fts_build): Explain why ==, not >.
15455         See remark by Bernhard Voelker in:
15456         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
15458         fts: fix bug in find across filesystems
15459         This fixes a bug I introduced last summer.
15460         Problem reported by Kamil Dudka in:
15461         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
15462         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
15463         (leaf_optimization):
15464         New arg for file descriptor.  All callers changed.
15465         (fts_build): Check for whether inodes should be sorted
15466         before closing the directory.
15468 2018-04-07  Bruno Haible  <bruno@clisp.org>
15470         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
15471         Reported by Genki Sky <sky@genki.is>.
15472         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
15473         version 0.9.10 or newer.
15474         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
15475         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
15476         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
15477         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
15478         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
15480 2018-04-07  Bruno Haible  <bruno@clisp.org>
15482         execute: Update comment.
15483         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
15485 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15487         fts: treat CIFS like NFS
15488         Problem reported by Kamil Dudka in:
15489         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
15490         * lib/fts.c (S_MAGIC_CIFS): New macro.
15491         (dirent_inode_sort_may_be_useful, leaf_optimization):
15492         Treat CIFS like NFS.
15494 2018-03-28  Bruno Haible  <bruno@clisp.org>
15496         c-stack: Fix possible build failure on some platforms.
15497         * lib/c-stack.c (die): Define whenever this function is referenced.
15499 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
15501         time_rz: fix workaround for Mac OS X 10.6 infloop
15502         Problems reported by Charles A. Roelli (Bug#27736#117).
15503         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
15504         Also, discard output, which clutters the 'configure' log.
15506 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15508         havelib: port to Solaris 10 /bin/sh
15509         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
15510         instead of '! test EXPR'.
15512 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
15514         time_rz: work around Mac OS X 10.6 infloop
15515         * doc/posix-functions/localtime.texi:
15516         * doc/posix-functions/localtime_r.texi: Mention the bug.
15517         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
15518         better to fix localtime and localtime_r instead, but that would be
15519         more work and is not needed to fix the Emacs problem.
15520         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
15522 2018-03-24  Jim Meyering  <meyering@fb.com>
15524         test-version-etc.sh: don't use diff directly: use init.sh's compare
15525         We'd rather not sacrifice readable "diff -u" output even for
15526         "diff -c" output (not supported by busybox) or for even less
15527         readable ed-style "diff" output.  So use init.sh's compare function
15528         * tests/test-version-etc.sh: Source init.sh and add "." to path.
15529         Remove "./" from invocation of test-version-etc, so we use path.
15530         And s/diff/compare/.
15531         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
15532         to get init.sh.
15533         Prompted by Eric Blake's comments in
15534         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
15536 2018-03-24  Bruno Haible  <bruno@clisp.org>
15538         javacomp-script, javacomp: Add support for Java 10.
15539         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
15540         target-version 10.
15541         * lib/javaversion.h: Update comments.
15542         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
15543         source_version_index, get_goodcode_snippet, get_failcode_snippet,
15544         TARGET_VERSION_BOUND, target_version_index,
15545         corresponding_classfile_version): Accept source_version 10 and
15546         target_version 10.
15547         * lib/javacomp.h: Update comments accordingly.
15549 2018-03-24  Bruno Haible  <bruno@clisp.org>
15551         javacomp-script, javacomp: Update comments.
15552         * m4/javacomp.m4: Update comments regarding gcj.
15553         * lib/javacomp.h: Likewise.
15555 2018-03-24  Bruno Haible  <bruno@clisp.org>
15557         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
15558         * lib/javaversion.h: Update comments.
15559         * lib/javacomp.h: Likewise.
15560         * lib/javacomp.c (default_target_version, source_version_index,
15561         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
15562         "1.9".
15563         (TARGET_VERSION_BOUND): Bump to 9.
15564         (target_version_index, corresponding_classfile_version): Recognize "9"
15565         instead of "1.9".
15566         (get_source_version_for_javac): New function.
15567         (is_envjavac_nongcj_usable, is_javac_usable): Add
15568         source_version_for_javac argument.
15569         (compile_java_class): Determine and pass source_version_for_javac.
15570         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
15571         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
15572         appropriate.
15574 2018-03-23  Jim Meyering  <meyering@fb.com>
15576         test-version-etc.sh: port to diff without -c
15577         * tests/test-version-etc.sh: Don't use diff's -c option.
15578         This caused spurious test failure on Alpine Linux, which
15579         uses busybox's diff. Reported by Assaf Gordon in
15580         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
15582 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
15584         c-stack: port to recent GCC build
15585         Problem reported by The Fireplace (Bug#30913).
15586         * lib/c-stack.c (die): Define only if used.
15588 2018-03-20  Bruno Haible  <bruno@clisp.org>
15590         euidaccess: Port to native Windows.
15591         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
15592         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
15594 2018-03-19  Bruno Haible  <bruno@clisp.org>
15596         javacomp: Add support for Java 7, 8, 9.
15597         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
15598         source_version_index, get_goodcode_snippet, get_failcode_snippet,
15599         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
15600         and target_version 1,7, 1.8, 1.9.
15601         * lib/javacomp.h: Update comments accordingly.
15603 2018-03-19  Bruno Haible  <bruno@clisp.org>
15605         javacomp-script: Add support for Java 9.
15606         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
15607         target-version 1.9.
15609 2018-03-16  Bruno Haible  <bruno@clisp.org>
15611         glob: Don't compile replacements on recent glibc systems.
15612         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
15613         REPLACE_GLOB is 0, include the system's <glob.h> and use
15614         _GL_CXXALIAS_SYS.
15615         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
15616         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
15617         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
15618         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
15619         Remove snippet/warn-on-use.
15620         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
15621         (Makefile.am): Create glob.h always. Update list of substitutions in
15622         glob.h. Don't depend on $(WARN_ON_USE_H).
15624 2018-03-16  Bruno Haible  <bruno@clisp.org>
15626         glob: Fix link error on native Windows.
15627         * modules/glob (Depends-on): Add 'lstat'.
15629 2018-03-15  Bruno Haible  <bruno@clisp.org>
15631         glob: Fix compilation error in C++ mode.
15632         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
15634 2018-03-15  Bruno Haible  <bruno@clisp.org>
15636         host-cpu-c-abi: Support for RISC-V CPU.
15637         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
15638         riscv32 and riscv64 ABIs.
15639         References:
15640         https://github.com/riscv/riscv-toolchain-conventions
15641         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
15642         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
15644 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
15646         fflush: be more paranoid about libio.h change
15647         Suggested by Eli Zaretskii in:
15648         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
15649         * lib/fbufmode.c (fbufmode):
15650         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15651         (disable_seek_optimization, rpl_fflush):
15652         * lib/fpending.c (__fpending):
15653         * lib/fpurge.c (fpurge):
15654         * lib/freadable.c (freadable):
15655         * lib/freadahead.c (freadahead):
15656         * lib/freading.c (freading):
15657         * lib/freadptr.c (freadptr):
15658         * lib/freadseek.c (freadptrinc):
15659         * lib/fseeko.c (fseeko):
15660         * lib/fseterr.c (fseterr):
15661         * lib/fwritable.c (fwritable):
15662         * lib/fwriting.c (fwriting):
15663         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
15665 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
15667         maint: write-file-hooks -> before-save-hook
15668         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
15669         it's time to use the recommended replacement.
15670         Problem reported by Glenn Morris in:
15671         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
15672         * build-aux/announce-gen, build-aux/bootstrap:
15673         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
15674         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
15675         * build-aux/gnu-web-doc-update, build-aux/gnupload:
15676         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
15677         * build-aux/update-copyright, build-aux/useless-if-before-free:
15678         * build-aux/vc-list-files:
15679         Update hook usage for files where Gnulib is the canonical source.
15681 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
15683         binary-io: pacify gcc -Wunused-parameter
15684         Problem reported by Reuben Thomas in:
15685         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
15686         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
15687         Use _GL_UNUSED where appropriate.
15689         fflush: adjust to glibc 2.28 libio.h removal
15690         Problem reported by Daniel P. Berrangé in:
15691         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
15692         * lib/fbufmode.c (fbufmode):
15693         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15694         (disable_seek_optimization, rpl_fflush):
15695         * lib/fpending.c (__fpending):
15696         * lib/fpurge.c (fpurge):
15697         * lib/freadable.c (freadable):
15698         * lib/freadahead.c (freadahead):
15699         * lib/freading.c (freading):
15700         * lib/freadptr.c (freadptr):
15701         * lib/freadseek.c (freadptrinc):
15702         * lib/fseeko.c (fseeko):
15703         * lib/fseterr.c (fseterr):
15704         * lib/fwritable.c (fwritable):
15705         * lib/fwriting.c (fwriting):
15706         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
15707         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
15708         Define if not already defined.
15710 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
15712         environ: fix link error on 32-bit Cygwin
15713         Problem reported for GNU Emacs by Ken Brown in:
15714         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
15715         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
15717 2018-02-24  Bruno Haible  <bruno@clisp.org>
15719         mbrtowc tests: Fix regression on glibc.
15720         Reported by Bernhard Voelker.
15721         * tests/test-mbrtowc.c (main): Fix expected value of wc.
15723 2018-02-24  Bruno Haible  <bruno@clisp.org>
15725         striconveha, uniconv/*: Avoid test failures on musl libc.
15726         * tests/iconvsupport.c: New file.
15727         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
15728         does not support the ISO-2022-JP-2 encoding.
15729         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15730         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15731         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15732         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15733         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15734         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15735         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
15736         (Makefile.am): Link test-striconveha with iconvsupport.o.
15737         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
15738         tests/iconvsupport.c.
15739         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
15740         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
15741         tests/iconvsupport.c.
15742         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
15743         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
15744         tests/iconvsupport.c.
15745         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
15746         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
15747         tests/iconvsupport.c.
15748         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
15749         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
15750         tests/iconvsupport.c.
15751         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
15752         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
15753         tests/iconvsupport.c.
15754         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
15756 2018-02-24  Bruno Haible  <bruno@clisp.org>
15758         localename: Add support for musl libc.
15759         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
15760         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
15761         on Linux platforms which define NL_LOCALE_NAME.
15763 2018-02-24  Bruno Haible  <bruno@clisp.org>
15765         mbrtowc tests: Don't make assumptions about the charset the C locale.
15766         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
15767         particular mapping in the C locale.
15769 2018-02-24  Bruno Haible  <bruno@clisp.org>
15771         ptsname_r: Don't expect that this function sets errno.
15772         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
15773         from ptsname_r().
15774         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
15776 2018-02-23  Bruno Haible  <bruno@clisp.org>
15778         xmalloca: pacify gcc -Wbad-function-cast
15779         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
15781 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15783         nl_langinfo: pacify gcc -Wunused-function
15784         * lib/nl_langinfo.c (ctype_codeset): Do not define if
15785         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
15786         this case.  Without this change, I got a diagnostic when building
15787         coreutils on Fedora 27 with gcc 7.3.1 20180130.
15789         same: pacify gcc -Wunused-variable
15790         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
15791         Omit unused variable.
15793         malloca: pacify gcc -Wbad-function-cast
15794         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
15795         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
15796         To pacify GCC, I had to cast alloca’s result to some type other
15797         than void * before casting that to uintptr_t.
15799 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15801         utimecmp: new function utimecmpat
15802         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
15803         Do not include utimens.h.
15804         (utimecmpat): New function, generalizing utimecmp.
15805         (utimecmp): Now a thin layer around utimecmpat.
15806         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
15807         utimensat instead of on lstat and utimens.
15809         same: new function same_nameat
15810         * lib/same.c: Include fcntl.h.
15811         * lib/same.c (same_nameat): New function, generalizing same_name.
15812         (same_name): Now a thin layer around same_nameat.
15813         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
15814         * modules/same (Depends-on): Depend on fstatat, openat.
15816 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
15818         warnings: Add support for Objective C.
15819         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
15820         macro.
15822 2018-02-17  Bruno Haible  <bruno@clisp.org>
15824         lock: Fix test-once1 crash on FreeBSD11.
15825         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
15826         'pthread_create', not 'pthread_cancel'.
15828 2018-02-17  Bruno Haible  <bruno@clisp.org>
15830         lock: Add test of gl_once.
15831         * tests/test-once.c: New file.
15832         * modules/lock-tests (Files): Add it.
15833         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
15835 2018-02-17  Bruno Haible  <bruno@clisp.org>
15837         thread: Fix compilation error on IRIX.
15838         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
15839         needed; include it outside the C++ extern "C" {} block.
15840         * doc/posix-headers/pthread.texi: Mention the problem with
15841         pthread_atfork on IRIX.
15843 2018-02-04  Bruno Haible  <bruno@clisp.org>
15845         nl_langinfo: Override the system's nl_langinfo() when needed.
15846         Reported by Jim Meyering.
15847         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
15848         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
15850 2018-02-04  Bruno Haible  <bruno@clisp.org>
15852         signal-h, monetary, strings: Fix build failure in some cases.
15853         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
15854         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
15855         as delimiter in sed command, not '|'.
15856         * modules/monetary (Makefile.am): Likewise.
15857         * modules/strings (Makefile.am): Likewise.
15859 2018-02-03  Jim Meyering  <meyering@fb.com>
15861         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
15862         * top/maint.mk (sc_file_system): Don't complain about
15863         "/proc/filesystems".
15865 2018-02-03  Bruno Haible  <bruno@clisp.org>
15867         stdlib: Fix compilation error on OpenIndiana.
15868         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
15869         <sys/time.h>.
15870         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
15871         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
15873 2018-02-03  Bruno Haible  <bruno@clisp.org>
15875         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
15876         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
15877         and use $EGREP instead of 'grep -E'.
15878         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
15879         'grep -E'.
15881 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
15883         malloca: Add a compile-time verification.
15884         * lib/malloca.c (small_t): Verify that it is wide enough.
15885         * modules/malloca (Depends-on): Add verify.
15887 2018-02-02  Bruno Haible  <bruno@clisp.org>
15889         malloca: Add an argument check.
15890         Suggested by Paul Eggert.
15891         * lib/malloca.c (freea): Check against an invalid argument.
15893 2018-02-02  Bruno Haible  <bruno@clisp.org>
15895         localename: Add support for OpenIndiana.
15896         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
15897         Solaris 11 variants with uselocale() but without getlocalename_l().
15899 2018-02-02  Bruno Haible  <bruno@clisp.org>
15901         malloca, xmalloca: Make multithread-safe.
15902         Reported by Florian Weimer <fweimer@redhat.com>.
15903         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
15904         * lib/malloca.h (malloca): In the stack allocation case, return a
15905         pointer that is a multiple of 2 * sa_alignment_max.
15906         (sa_increment): Remove enum item.
15907         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
15908         a pointer that is a multiple of 2 * sa_alignment_max.
15909         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
15910         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
15911         HASH_TABLE_SIZE, mmalloca_results): Remove.
15912         (small_t): New type.
15913         (mmalloca, free): Rewritten.
15914         * lib/malloca.valgrind: Remove file.
15915         * modules/malloca (Files): Remove it.
15916         (Depends-on): Remove verify.
15918 2018-01-31  Bruno Haible  <bruno@clisp.org>
15920         environ: Fix link error on 64-bit Cygwin.
15921         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
15922         __declspec(dllimport) attribute.
15923         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
15925 2018-01-30  Bruno Haible  <bruno@clisp.org>
15927         get-rusage-data: Add support for Minix 3.
15928         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
15930 2018-01-30  Bruno Haible  <bruno@clisp.org>
15932         vma-iter: Add support for Minix 3.
15933         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
15934         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
15936 2018-01-27  Bruno Haible  <bruno@clisp.org>
15938         Fix malfunction of socket functions on HP-UX in 64-bit mode.
15939         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
15940         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
15941         _HPUX_ALT_XOPEN_SOCKET_API.
15942         * modules/accept (Depends-on): Add 'extensions'.
15943         * modules/getpeername (Depends-on): Likewise.
15944         * modules/getsockname (Depends-on): Likewise.
15945         * modules/getsockopt (Depends-on): Likewise.
15946         * modules/recvfrom (Depends-on): Likewise.
15947         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
15948         * doc/posix-functions/getpeername.texi: Likewise.
15949         * doc/posix-functions/getsockname.texi: Likewise.
15950         * doc/posix-functions/getsockopt.texi: Likewise.
15951         * doc/posix-functions/recvfrom.texi: Likewise.
15953 2018-01-27  Bruno Haible  <bruno@clisp.org>
15955         getsockname tests: More tests.
15956         * tests/test-getsockname.c (open_server_socket): New function, mostly
15957         copied from test-poll.c.
15958         (main): Check that getsockname fills in addr.
15959         * modules/getsockname-tests (Depends-on): Add the necessary
15960         dependencies.
15961         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
15963 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
15965         manywarnings: fix maintainer comment
15966         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
15967         it does not mistakenly think that ‘-1)’ is an option.
15969 2018-01-26  Bruno Haible  <bruno@clisp.org>
15971         langinfo: Fix last commit.
15972         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
15973         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
15975 2018-01-24  Bruno Haible  <bruno@clisp.org>
15977         langinfo, nl_langinfo: Add support for alternative month names.
15978         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
15979         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
15980         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
15981         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
15982         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
15983         * doc/posix-functions/nl_langinfo.texi: Likewise.
15985 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15987         Merge strftime.c changes from glibc
15988         This incorporates:
15989         2017-11-14 [BZ #10871] Implement alternative month names
15990         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
15991         2017-06-20 Use locale_t, not __locale_t, throughout glibc
15992         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
15993         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
15994         Use locale_t, not __locale_t.
15995         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
15996         (__strftime_internal): Add support for alternate months.
15998 2018-01-23  Bruno Haible  <bruno@clisp.org>
16000         doc: Mention another prerequisite for using Gnulib.
16001         Reported at <https://stackoverflow.com/questions/48378214/>.
16002         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
16003         AC_CONFIG_HEADERS.
16005 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
16007         build: GuixSD doesn't have /bin/bash
16008         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
16010 2018-01-21  Bruno Haible  <bruno@clisp.org>
16012         Avoid test failures on Microsoft Windows Subsystem for Linux.
16013         * tests/test-fcntl.c (main): Allow a different errno.
16014         * tests/test-rename.h (test_rename): Likewise.
16015         * tests/test-renameat.c (main): Likewise.
16016         * tests/test-renameat2.c (main): Likewise.
16018 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
16020         filenamecat: make base a suffix of result
16021         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
16022         (mfile_name_concat): Always make BASE a suffix of the result, as
16023         cp expects this.  To implement this, separate with '.' instead of
16024         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
16025         * tests/test-filenamecat.c (main): Adjust tests to match
16026         current behavior.  Check that BASE_IN_RESULT points to
16027         a copy of BASE and is a suffix of the resultk, and that DIR
16028         is a prefix of the result that is no longer than the prefix
16029         indicated by BASE_IN_RESULT.
16031 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
16033         update-copyright: Handle use of ©
16034         * build-aux/update-copyright ($circle_c_re): Update regex to
16035         handle use of © in headers.
16037 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
16039         Fix -Wundef warning in user-included header lib/cdefs.h.
16040         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
16042 2018-01-04  Bruno Haible  <bruno@clisp.org>
16044         pthread_sigmask: Avoid compilation error on mingw.
16045         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16046         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
16047         macro.
16049 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16051         test-framework-sh: ‘ps -ef’, not ‘ps ef’
16052         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
16053         Suggested by Bob Proulx (Bug#29968).
16054         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
16056 2018-01-02  Eric Blake  <eblake@redhat.com>
16058         stat-time: silence -Wunused-parameter regression
16059         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
16060         Prefer attribute over cast-to-void.
16061         (stat_time_normalize): Mark st as potentially unused.
16063 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
16065         test-framework-sh: avoid netstat
16066         Problem reported by Kristýna Streitová (Bug#29947).
16067         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
16068         deprecated on SuSE and it's not that important anyway.
16070 2018-01-01  Jim Meyering  <meyering@fb.com>
16072         update-copyright: add code to handle more special cases
16073         After running "make update-copyright" this year, five files
16074         required additional manual changes.  Automate those adjustments
16075         for next year.
16076         * Makefile (_year_and_prev): Define.
16077         (update-copyright): Add perl commands to induce this year's post-
16078         update-copyright adjustments.
16080 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
16082         version-etc: new year
16083         * build-aux/gendocs.sh (version):
16084         * doc/gendocs_template:
16085         * doc/gendocs_template_min:
16086         * doc/gnulib.texi:
16087         * lib/version-etc.c (COPYRIGHT_YEAR):
16088         Update copyright dates by hand in templates and the like.
16090         maint: fix 'make update-copyright'
16091         * Makefile (update-copyright): Adjust to 2016-11-23 change
16092         to config/srclist-update, which changed the format of srclist.txt.
16094 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16096         chdir-safer: remove this module
16097         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
16098         * NEWS: Document removal.
16099         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
16100         * modules/chdir-safer: Remove these files.
16102 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
16104         Add cross-compilation results for GNU/Hurd.
16105         * m4/calloc.m4: Add GNU/Hurd guess.
16106         * m4/cbrtl.m4: Likewise.
16107         * m4/ceil.m4: Likewise.
16108         * m4/ceilf.m4: Likewise.
16109         * m4/ceill.m4: Likewise.
16110         * m4/chown.m4: Likewise.
16111         * m4/duplocale.m4: Likewise.
16112         * m4/exp2l.m4: Likewise.
16113         * m4/expm1.m4: Likewise.
16114         * m4/fchdir.m4: Likewise.
16115         * m4/floor.m4: Likewise.
16116         * m4/floorf.m4: Likewise.
16117         * m4/fmod.m4: Likewise.
16118         * m4/fmodf.m4: Likewise.
16119         * m4/fmodl.m4: Likewise.
16120         * m4/getcwd.m4: Likewise.
16121         * m4/getgroups.m4: Likewise.
16122         * m4/gettimeofday.m4: Likewise.
16123         * m4/hypot.m4: Likewise.
16124         * m4/hypotf.m4: Likewise.
16125         * m4/hypotl.m4: Likewise.
16126         * m4/link-follow.m4: Likewise.
16127         * m4/link.m4: Likewise.
16128         * m4/linkat.m4: Likewise.
16129         * m4/log.m4: Likewise.
16130         * m4/log10.m4: Likewise.
16131         * m4/log10f.m4: Likewise.
16132         * m4/log1p.m4: Likewise.
16133         * m4/log1pf.m4: Likewise.
16134         * m4/log1pl.m4: Likewise.
16135         * m4/log2.m4: Likewise.
16136         * m4/log2f.m4: Likewise.
16137         * m4/logf.m4: Likewise.
16138         * m4/lstat.m4: Likewise.
16139         * m4/malloc.m4: Likewise.
16140         * m4/mbrlen.m4: Likewise.
16141         * m4/mbrtowc.m4: Likewise.
16142         * m4/mkdir.m4: Likewise.
16143         * m4/mkfifo.m4: Likewise.
16144         * m4/mknod.m4: Likewise.
16145         * m4/mkstemp.m4: Likewise.
16146         * m4/modf.m4: Likewise.
16147         * m4/modff.m4: Likewise.
16148         * m4/modfl.m4: Likewise.
16149         * m4/printf.m4: Likewise.
16150         * m4/pselect.m4: Likewise.
16151         * m4/ptsname.m4: Likewise.
16152         * m4/putenv.m4: Likewise.
16153         * m4/readlink.m4: Likewise.
16154         * m4/realloc.m4: Likewise.
16155         * m4/remainder.m4: Likewise.
16156         * m4/remainderf.m4: Likewise.
16157         * m4/remainderl.m4: Likewise.
16158         * m4/rmdir.m4: Likewise.
16159         * m4/round.m4: Likewise.
16160         * m4/roundf.m4: Likewise.
16161         * m4/roundl.m4: Likewise.
16162         * m4/select.m4: Likewise.
16163         * m4/setenv.m4: Likewise.
16164         * m4/signbit.m4: Likewise.
16165         * m4/sleep.m4: Likewise.
16166         * m4/stat.m4: Likewise.
16167         * m4/strerror.m4: Likewise.
16168         * m4/strtok_r.m4: Likewise.
16169         * m4/symlink.m4: Likewise.
16170         * m4/symlinkat.m4: Likewise.
16171         * m4/trunc.m4: Likewise.
16172         * m4/truncf.m4: Likewise.
16173         * m4/truncl.m4: Likewise.
16174         * m4/tzset.m4: Likewise.
16175         * m4/ungetc.m4: Likewise.
16176         * m4/usleep.m4: Likewise.
16177         * m4/wcwidth.m4: Likewise.
16179 2017-12-28  Bruno Haible  <bruno@clisp.org>
16181         gnulib-tool: Make --conditional-dependencies work better.
16182         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
16183         * gnulib-tool (Options): Don't reject the combination of
16184         --conditional-dependencies with --with-tests.
16185         (func_emit_autoconf_snippets): Add argument referenceable_modules.
16186         Don't reference $modules.
16187         (func_import, func_create_testdir): Pass it.
16189 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16191         regex: use re_malloc etc. consistently
16192         Problem and original patch reported by Arnold Robbins in:
16193         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
16194         * lib/regcomp.c (re_comp):
16195         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
16196         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
16198 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
16199             Paul Eggert  <eggert@cs.ucla.edu>
16201         glob: Silence warning about void pointer arithmetic.
16202         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
16203         arithmetic.
16205 2017-12-15  Bruno Haible  <bruno@clisp.org>
16207         spawn-pipe: Silence a clang warning.
16208         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16209         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
16210         in this file.
16212 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
16214         explicit_bzero: port to macOS + Clang 9.0.0
16215         Problem reported by Marcus Johnson (Bug#29658).
16216         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
16217         Don’t use asm.
16219 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16221         doc: Improve explanation of supporting relocatable libraries.
16222         * doc/relocatable-maint.texi (Supporting Relocation): Explain
16223         properly how to build the relocatable module for
16224         libraries. (Method and example code from Bruno Haible.)
16226 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16228         doc: Use better texinfo tags in a few cases.
16229         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
16230         instead of @samp in a few places.
16232 2017-12-11  Bruno Haible  <bruno@clisp.org>
16234         unistr/base: Update comment.
16235         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
16237 2017-12-10  Pádraig Brady  <P@draigBrady.com>
16239         test-faccessat.c: unlink temp file to avoid subsequent test failure
16240         * tests/test-faccessat.c: Remove the file to avoid failure
16241         to open the file on subsequent runs due to being created
16242         with no permissions.
16244 2017-12-10  Bruno Haible  <bruno@clisp.org>
16246         doc: New sect. "Modifying the build rules of a Gnulib import directory".
16247         * doc/gnulib-tool.texi (Modified build rules): New node.
16249 2017-12-10  Bruno Haible  <bruno@clisp.org>
16251         doc: Tweak wording.
16252         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
16253         "binaries".
16255 2017-12-05  Sam Steingold  <sds@gnu.org>
16256             Bruno Haible  <bruno@clisp.org>
16258         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
16259         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
16260         AC_EGREP_CPP pattern.
16262 2017-12-03  Bruno Haible  <bruno@clisp.org>
16264         all: Replace more http URLs by https URLs.
16265         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
16266         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
16267         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
16268         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
16270 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16272         Port better to CentOS 5
16273         Problems reported by Tom G. Christensen in:
16274         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
16275         * doc/glibc-functions/strverscmp.texi (strverscmp):
16276         Document strverscmp bug with glibc 2.9 and earlier.
16277         * doc/posix-functions/tzset.texi (tzset):
16278         Document that TZ with angle brackets is POSIX-2001 and later.
16279         * tests/test-nstrftime.c: Include unistd.h.
16280         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
16281         (TZ): Use it to skip tests with angle brackets in TZ,
16282         for older systems.
16284         stat: add missing module dependencies
16285         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
16286         Add stat-time.
16288 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
16290         stat: fix compilation failure on macOS Sierra
16291         Reported by Marius Schamschula <mschamschula@gmail.com> in:
16292         https://savannah.gnu.org/bugs/?52546
16293         * lib/stat.c: Add missing include of stat-time.h.
16295 2017-11-28  Jim Meyering  <meyering@fb.com>
16297         test-faccessat.c: correct BASE definition to avoid parallel test failure
16298         * tests/test-faccessat.c (BASE): Define using this file's name, not
16299         that of test-lstat.c.  Using the latter caused this test to fail
16300         sometimes when run concurrently with test-lstat.
16302 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16304         unicase: fix VPATH build
16305         * modules/unicase/special-casing (Makefile.am): Ensure that the
16306         base directory is created when generating
16307         unicase/special-casing.h.
16309 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16311         libunistring: update to Unicode 9.0.0
16312         * lib/gen-uni-tables.c (fill_properties): Recognize
16313         Sentence_Terminal and Prepended_Concatenation_Mark.
16314         (is_property_default_ignorable_code_point): Exclude U+08E2.
16315         (fill_arabicshaping): Allow missing whitespace when parsing;
16316         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
16317         (output_blocks): Increase the element size of the level1 table to
16318         accommodate more blocks.
16319         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
16320         Update each class according to the standard.
16321         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
16322         E_Base_GAZ characters.
16323         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
16324         Glue_After_Zwj, and E_Base_GAZ characters.
16325         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
16326         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
16327         enum value.
16328         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
16329         value.
16330         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
16331         LBP_ZWJ, LBP_EB, and LBP_EM.
16332         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
16333         enum value.
16334         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
16335         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
16336         declaration.
16337         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
16338         (uniwbrk_table): Implement WB14.
16339         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
16340         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
16341         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
16342         uc-is-grapheme-break.
16343         * modules/unigbrk/uc-grapheme-breaks: New module.
16344         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
16345         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
16346         enum value.
16347         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
16348         * lib/unigbrk/u-grapheme-breaks.h: New file.
16349         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
16350         u-grapheme-breaks.h instead of uc_is_grapheme_break.
16351         * lib/unigbrk/uc-grapheme-breaks.c: New file.
16352         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
16353         29.
16354         * tests/unigbrk/test-uc-gbrk-prop.c
16355         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16356         GBP_GAZ, and GBP_EBG.
16357         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
16358         * tests/unigbrk/test-uc-is-grapheme-break.c
16359         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16360         GBP_GAZ, and GBP_EBG.
16361         (main): Skip unsupported rules involving 3 or more characters,
16362         namely GB10, GB12, and GB13.
16363         * lib/uniwidth/width.c (nonspacing_table_data): Update.
16364         * all generated files under lib/uni* and tests/uni*: Regenerate.
16365         * all the affected modules: Bump version.
16367 2017-11-26  Bruno Haible  <bruno@clisp.org>
16369         strfmon_l: Fix compilation error with glibc 2.5.
16370         Reported by Tom G. Christensen <tgc@jupiterrise.com>
16371         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
16372         * lib/monetary.in.h: Include also <locale.h>.
16374 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16376         posixtm: remove PDS_LEADING_YEAR
16377         This changes the API slightly, in a hopefully-innocuous way.
16378         Without this change the code had undefined behavior when a
16379         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
16380         Problem reported by Pádraig Brady in:
16381         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
16382         * NEWS: Mention this.
16383         * lib/posixtm.c (posix_time_parse): Treat the absence of
16384         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
16385         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
16386         present, but define it as zero, for compatibility with existing
16387         source code).  All other PDS_* values moved up.
16388         * tests/test-posixtm.c (LY): New macro.
16389         (T): Use it.  Do not expect a particular numeric encoding
16390         for PDS_CENTURY etc.
16392 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
16394         stat: work around Solaris bug with tv_nsec < 0
16395         * doc/posix-functions/fstat.texi (fstat):
16396         * doc/posix-functions/fstatat.texi (fstatat):
16397         * doc/posix-functions/lstat.texi (lstat):
16398         * doc/posix-functions/stat.texi (stat):
16399         Mention Solaris 11 bug.
16400         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
16401         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
16402         * lib/lstat.c (rpl_lstat):
16403         * lib/stat.c (rpl_stat):
16404         Normalize resulting timestamps.
16405         * lib/fstatat.c (normal_fstatat): New function.
16406         (rpl_fstatat): Use it.
16407         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
16408         (stat_time_normalize): New function.
16409         * m4/fstat.m4 (gl_FUNC_FSTAT):
16410         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
16411         * m4/lstat.m4 (gl_FUNC_LSTAT):
16412         * m4/stat.m4 (gl_FUNC_STAT):
16413         Replace on Solaris.
16414         * modules/fstat (Depends-on):
16415         * modules/fstatat (Depends-on):
16416         Add stat-time.
16417         * modules/stat-time (Depends-on): Add errno, intprops.
16419 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
16421         regex: merge from glibc
16422         * lib/regcomp.c (init_word_char): Add comments.
16424 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16426         regex: merge from glibc
16427         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
16428         * lib/regex_internal.h (internal_function): Remove.
16429         All uses removed.
16431 2017-11-20  Bruno Haible  <bruno@clisp.org>
16433         crypto/gc-sm3: Fix buffer overrun.
16434         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
16435         Reported by Coverity.
16437 2017-11-12  Jim Meyering  <meyering@fb.com>
16439         maint: shorten https://lists.gnu.org/archive/html/... links
16440         Each /archive/html/ part can be replace with /r/.
16441         Run this to induce the change:
16442         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
16443         * ChangeLog: Perform that substitution.
16444         * Makefile: Likewise.
16445         * STATUS-libposix: Likewise.
16446         * build-aux/bootstrap: Likewise.
16447         * doc/maintain.texi: Likewise.
16448         * gnulib-tool: Likewise.
16449         * lib/allocator.h: Likewise.
16450         * lib/argp-ba.c: Likewise.
16451         * lib/argp-pv.c: Likewise.
16452         * lib/canon-host.c: Likewise.
16453         * lib/canonicalize-lgpl.c: Likewise.
16454         * lib/float.in.h: Likewise.
16455         * lib/fstat.c: Likewise.
16456         * lib/getdelim.c: Likewise.
16457         * lib/getprogname.c: Likewise.
16458         * lib/glthread/thread.h: Likewise.
16459         * lib/intprops.h: Likewise.
16460         * lib/mbsrtowcs-state.c: Likewise.
16461         * lib/safe-read.c: Likewise.
16462         * lib/signal.in.h: Likewise.
16463         * lib/stat.c: Likewise.
16464         * lib/stdbool.in.h: Likewise.
16465         * lib/stdio-impl.h: Likewise.
16466         * lib/stdio.in.h: Likewise.
16467         * lib/sysexits.in.h: Likewise.
16468         * lib/timespec.h: Likewise.
16469         * lib/wcsrtombs-state.c: Likewise.
16470         * m4/alloca.m4: Likewise.
16471         * m4/extern-inline.m4: Likewise.
16472         * m4/fstatat.m4: Likewise.
16473         * m4/gnulib-common.m4: Likewise.
16474         * m4/lib-ignore.m4: Likewise.
16475         * m4/printf.m4: Likewise.
16476         * m4/regex.m4: Likewise.
16477         * m4/stat-size.m4: Likewise.
16478         * m4/std-gnu11.m4: Likewise.
16479         * m4/stdbool.m4: Likewise.
16480         * m4/sys_types_h.m4: Likewise.
16481         * m4/threadlib.m4: Likewise.
16482         * m4/vararrays.m4: Likewise.
16483         * pygnulib/GLImport.py: Likewise.
16484         * tests/test-exp.h: Likewise.
16485         * tests/test-exp2.h: Likewise.
16486         * tests/test-expm1.h: Likewise.
16487         * tests/test-fflush2.c: Likewise.
16488         * tests/test-getopt_long.h: Likewise.
16489         * tests/test-intprops.c: Likewise.
16490         * tests/test-log.h: Likewise.
16491         * tests/test-log10.h: Likewise.
16492         * tests/test-log1p.h: Likewise.
16493         * tests/test-log2.h: Likewise.
16494         * tests/test-printf-posix.h: Likewise.
16495         * tests/test-regex.c: Likewise.
16496         * tests/test-snprintf-posix.h: Likewise.
16497         * tests/test-sprintf-posix.h: Likewise.
16498         * tests/test-stdalign.c: Likewise.
16499         * tests/test-stdbool.c: Likewise.
16500         * tests/test-vasnprintf-posix.c: Likewise.
16501         * tests/test-vasprintf-posix.c: Likewise.
16502         * top/maint.mk: Likewise.
16504 2017-11-12  Bruno Haible  <bruno@clisp.org>
16506         faccessat: Make the last change more robust.
16507         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
16508         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
16510 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16512         faccessat: port to macOS (Bug#29231)
16513         macOS faccessat has the same bug that lstat does: if the file
16514         name ends in '/' it ignores the trailing slash.
16515         Problem reported for Emacs by Vincent Zhang.
16516         * doc/posix-functions/faccessat.texi (faccessat): Document this.
16517         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
16518         around the initial includes.  Include errno.h, string.h, sys/stat.h.
16519         (orig_faccessat) [HAVE_FACCESSAT]: New function.
16520         Include "unistd.h" after defining it.
16521         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
16522         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
16523         Handle in the usual way.
16524         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
16525         lstat dereferences symlinks, since faccessat is likely to
16526         have the same problem.
16527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
16528         * modules/faccessat (Depends-on): Add fstatat.
16529         Depend if REPLACE_FACCESSAT is 1, too.
16530         (configure.ac): Link if REPLACE_FACCESSAT is 1.
16531         * modules/faccessat-tests (Depends-on): Add symlink.
16532         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
16533         * tests/test-faccessat.c (main): Test for the bug.
16535 2017-11-11  Bruno Haible  <bruno@clisp.org>
16537         getprogname: Fix compilation error on IRIX.
16538         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
16539         'namesize'.
16541 2017-11-11  Bruno Haible  <bruno@clisp.org>
16543         year2038: Tweak last patch.
16544         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
16546 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
16548         year2038: be more insistent about 64-bit time_t
16549         Applications requiring access to arbitrary files should not be
16550         built with 32-bit time_t on hosts that have 64-bit timestamps,
16551         as this can lead to real trouble at runtime.
16552         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
16553         Check on all systems, not just MinGW.  Use a heuristic involving
16554         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
16555         output a failure or just a warning, to make it more likely that
16556         builders will select 64-bit time_t.
16558 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16560         havelib: fix typo in previous change
16561         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
16563         Don’t use AC_EGREP_CPP if affected by CFLAGS
16564         * m4/float_h.m4 (gl_FLOAT_H):
16565         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
16566         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
16567         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
16568         * m4/year2038.m4 (gl_YEAR2038):
16569         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
16570         likely to be affected by the choice of CFLAGS, since CFLAGS are
16571         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
16572         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
16574         fstatat: pacify GCC on unusual platform
16575         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
16576         Omit, as it’s unused in this case.
16578 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
16580         timespec: prefer ‘assume’ to ‘assure’
16581         This avoids some runtime tests.  The rest of the module makes
16582         similar assumptions and there is little point to testing here.
16583         * lib/timespec.h: Include verify.h instead of assure.h.
16584         (timespec_cmp): Use ‘assume’, not ‘assure’.
16585         Also, remove an unnecessary cast to ‘int’, as lots of other
16586         code in this module now causes -Wconversion to complain, and
16587         this is a problem with -Wconversion not with the code.
16589         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
16591         Port recent gnulib-tool change to Dash
16592         * gnulib-tool (func_create_testdir): Don't assume that the shell
16593         retokenizes after expanding "$@" inside the call to
16594         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
16596 2017-10-27  Jim Meyering  <meyering@fb.com>
16598         timespec.h: use "assure" to avoid a spurious warning
16599         * lib/timespec.h: Include "assure.h" and use it to help
16600         gcc7's -Wstrict-overflow avoid a false positive warning
16601         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
16602         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
16603         * modules/timespec (Depends-on): Add assure.
16605 2017-10-29  Bruno Haible  <bruno@clisp.org>
16607         Avoid several test failures with traditional locales on Haiku.
16608         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
16609         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
16610         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
16611         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
16612         LOCALE_ZH_CN=none.
16614 2017-10-29  Bruno Haible  <bruno@clisp.org>
16616         strerror_r-posix: Fix behaviour and test failure on Haiku.
16617         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
16618         are positive. Work around return value 0 instead of ERANGE on Haiku.
16619         For unknown error numbers, use a format string consistent with perror().
16620         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
16621         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
16622         are positive.
16624 2017-10-29  Bruno Haible  <bruno@clisp.org>
16626         get-rusage-data: Avoid crash on Haiku.
16627         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
16629 2017-10-29  Bruno Haible  <bruno@clisp.org>
16631         get-rusage-as: Avoid crash on Haiku.
16632         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
16634 2017-10-29  Bruno Haible  <bruno@clisp.org>
16636         ilogbl: Ensure replacement on Haiku.
16637         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
16638         REPLACE_ILOGBL if ilogbl does not work.
16639         (gl_FUNC_ILOGBL_WORKS): New macro.
16640         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
16641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
16642         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
16643         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
16644         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
16646 2017-10-29  Bruno Haible  <bruno@clisp.org>
16648         expl: Ensure replacement on Haiku.
16649         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
16650         zero.
16651         * doc/posix-functions/expl.texi: Mention the Haiku problem.
16653 2017-10-29  Bruno Haible  <bruno@clisp.org>
16655         math: Fix test failure on Haiku.
16656         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
16657         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
16658         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16659         * doc/posix-headers/math.texi: Mention the Haiku problem.
16661 2017-10-29  Bruno Haible  <bruno@clisp.org>
16663         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
16664         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
16665         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
16667 2017-10-29  Bruno Haible  <bruno@clisp.org>
16669         crypto/*: Verify that the header file is self-contained.
16670         * tests/test-gc-*.c: Include the module's header file immediately after
16671         <config.h>.
16672         * tests/test-hmac-*.c: Likewise.
16673         * tests/test-arcfour.c: Likewise.
16674         * tests/test-arctwo.c: Likewise.
16675         * tests/test-des.c: Likewise.
16676         * tests/test-md2.c: Likewise.
16677         * tests/test-md4.c: Likewise.
16678         * tests/test-md5.c: Likewise.
16679         * tests/test-rijndael.c: Likewise.
16680         * tests/test-sha1.c: Likewise.
16681         * tests/test-sm3.c: Likewise.
16683 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16684             Bruno Haible  <bruno@clisp.org>
16686         crypto/gc: fix build failure with -Werror=suggest-attribute=const
16687         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
16689 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16691         New module: crypto/gc-sm3
16692         * lib/gc.h: Declare SM3-related stuffs.
16693         * lib/gc-gnulib.c: Support sm3 in internal functions.
16694         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
16695         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
16696         * modules/crypto/gc-sm3: Define gc-sm3 module.
16697         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
16698         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
16699         * MODULES.html.sh: List gc-sm3 module.
16701 2017-10-29  Bruno Haible  <bruno@clisp.org>
16703         random, random_r: Mention different prototypes on Haiku.
16704         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
16705         * doc/glibc-functions/random_r.texi: Likewise.
16706         * doc/glibc-functions/initstate_r.texi: Likewise.
16707         * doc/glibc-functions/setstate_r.texi: Likewise.
16709 2017-10-28  Bruno Haible  <bruno@clisp.org>
16711         posix_spawn: Avoid spurious message in configure output.
16712         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
16713         'cmp' command.
16715 2017-10-28  Bruno Haible  <bruno@clisp.org>
16717         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
16718         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
16719         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
16721 2017-10-28  Bruno Haible  <bruno@clisp.org>
16723         ioctl: Override non-POSIX declaration on Haiku.
16724         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
16725         * lib/sys_ioctl.in.h: Add comment about Haiku.
16726         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
16727         * doc/glibc-headers/sys_ioctl.texi: Likewise.
16729 2017-10-28  Bruno Haible  <bruno@clisp.org>
16731         crypto/sm3: Add overview documentation to the .h file.
16732         * lib/sm3.h: Add comments.
16734 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16736         New module: crypto/sm3
16737         This new module can be used to compute SM3 message digest of files or
16738         memory blocks according to the specification GM/T 004-2012
16739         Cryptographic Hash Algorithm SM3, published by State Cryptography
16740         Administration, China.
16741         The official SM3 cryptographic hash algorithm specification is
16742         available at
16743         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
16744         * lib/sm3.h: Declare the APIs of sm3 module.
16745         * lib/sm3.c: Implement SM3 hash algorithm.
16746         * m4/sm3.m4: m4 file for sm3 module.
16747         * modules/crypto/sm3: Define sm3 module.
16748         * tests/test-sm3.c: Implement SM3 test case.
16749         * modules/crypto/sm3-tests: Define sm3 test module.
16750         * MODULES.html.sh: List sm3 module.
16752 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16754         gc-libgcrypt: fix undefined enum type in switch statement
16755         Resolve the following build failure:
16756         lib/gc-libgcrypt.c: In function 'gc_hash_open':
16757         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
16758         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
16759              case 0:
16760              ^~~~
16761         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
16762         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
16764 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16766         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
16767         Resolve the following build failure:
16768         lib/gc-libgcrypt.c: In function 'gc_hash_read':
16769         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
16770         in signedness [-Werror=pointer-sign]
16771             digest = gcry_md_read (ctx->gch, 0);
16772                    ^
16773         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
16775 2017-10-26  Bruno Haible  <bruno@clisp.org>
16777         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
16778         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
16779         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
16781 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
16783         glob: fix another heap buffer overflow
16784         Problem reported by Tim Rühsen in:
16785         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
16786         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
16788 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
16790         quotearg: pacify compiler re unsigned
16791         * lib/quotearg.c (quotearg_n_options):
16792         Rewrite to avoid diagnostic from overly-picky compiler.
16793         Problem reported by Sami Kerola in:
16794         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
16796         glob: fix heap buffer overflow
16797         * lib/glob.c (glob): Fix off-by-one error introduced into
16798         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
16799         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
16800         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
16801         Fix suggested by Bruno Haible.
16803 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
16805         glob: pacify fuzzer for mempcpy
16806         Problem reported by Tim Rühsen in:
16807         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
16808         * lib/glob.c (glob): Do not pass NULL to mempcpy.
16810 2017-10-12  Bruno Haible  <bruno@clisp.org>
16812         doc: Fix syntax error (regression from 2017-10-03).
16813         * doc/posix-functions/strncpy.texi: Fix syntax error.
16815 2017-10-12  Bruno Haible  <bruno@clisp.org>
16817         doc: Update for Solaris 11.3.
16818         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
16819         mention Solaris 11.3.
16820         * m4/log2.m4: Fix comments.
16821         * m4/log2f.m4: Likewise.
16822         * m4/printf.m4: Update comments.
16823         * m4/rename.m4: Likewise.
16824         * m4/strncat.m4: Likewise.
16826         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
16828 2017-10-10  Bruno Haible  <bruno@clisp.org>
16830         doc: Improve doc about ioctl.
16831         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
16832         prototype.
16834 2017-10-09  Bruno Haible  <bruno@clisp.org>
16836         wcwidth: Don't use obsolete syntax of 'test'.
16837         Reported by Eric Blake.
16838         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
16839         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
16841 2017-10-09  Bruno Haible  <bruno@clisp.org>
16843         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
16844         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
16845         and Daniel P. Berrange <berrange@redhat.com>.
16846         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
16847         on glibc systems. The getopt-pfx-core.h file declares exactly what
16848         unistd.h needs, nothing more.
16850 2017-10-08  Bruno Haible  <bruno@clisp.org>
16852         vma-iter: Improve support for FreeBSD.
16853         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
16854         vma_iterate.
16855         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
16857 2017-10-08  Bruno Haible  <bruno@clisp.org>
16859         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
16860         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
16862 2017-10-07  KO Myung-Hun  <komh@chollian.net>
16864         test-framework-sh: Fix 'invalid path dir' error.
16865         On OS/2, a path separator is ';' not ':'. And ':' is used as a
16866         separator between a drive letter and directory parts.
16867         As a result, an absolute path such as x:/path/to/dir on OS/2 is
16868         treated as an invalid path dir.
16869         * tests/init.sh (PATH_SEPARATOR): Set at startup.
16870         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
16871         instead of hard coded ':'.
16873 2017-10-07  Bruno Haible  <bruno@clisp.org>
16875         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
16876         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
16877         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
16878         (rof_open): On Linux, do multiple read() calls and make sure
16879         MIN_LEFTOVER bytes are left when read() returns.
16881 2017-10-07  Bruno Haible  <bruno@clisp.org>
16883         vma-iter: Improve support for GNU/Hurd.
16884         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
16885         API, not the /proc file system.
16887 2017-10-07  Bruno Haible  <bruno@clisp.org>
16889         test-framework-sh: Don't require bash on Windows and OS/2.
16890         Reported by KO Myung-Hun.
16891         * tests/test-init.sh: Use 'shopt' only when running in bash.
16893 2017-10-06  KO Myung-Hun  <komh@chollian.net>
16895         wcwidth: check a macro version of wcwidth () as well
16896         * lib/wchar.in.h: Revert commit from 2016-01-14.
16897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
16899 2017-10-06  Bruno Haible  <bruno@clisp.org>
16901         getopt-posix: Clarify copyright header.
16902         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
16903         * lib/getopt-pfx-core.h: Likewise.
16904         * lib/getopt-pfx-ext.h: Likewise.
16905         * lib/getopt-cdefs.in.h: Likewise.
16907 2017-10-03  Bruno Haible  <bruno@clisp.org>
16909         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
16910         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
16911         gl_HOST_CPU_C_ABI.
16913 2017-10-03  Bruno Haible  <bruno@clisp.org>
16915         doc: warn about misuse of strncpy and wcsncpy.
16916         * doc/posix-functions/strcpy.texi: Describe requirements on prior
16917         memory allocation.
16918         * doc/posix-functions/wcscpy.texi: Likewise.
16919         * doc/posix-functions/strncpy.texi: Describe what this function is not
16920         useful for.
16921         * doc/posix-functions/wcsncpy.texi: Likewise.
16923 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16925         fsuage: fix typo in previous change
16926         * lib/fsusage.c: Remove stray include of full-read.h.
16927         Problem reported by Sam Steingold for macOS (Bug#28669).
16929 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
16931         fsusage: remove SVR2 support
16932         SVR2 was obsolete by 1986 and is no longer supported by anybody,
16933         and its code was getting in the way of use of this module by
16934         Emacs, which has its own ‘read’ function anyway.
16935         * lib/fsusage.c: Do not include sys/filsys.h.
16936         (get_fs_usage): Remove SVR2-specific code.
16937         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
16938         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
16939         * modules/fsusage (Depends-on): Do not depend on full-read.
16941         Simplify autoupdate of licenses
16942         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
16943         place.
16945 2017-10-01  Bruno Haible  <bruno@clisp.org>
16947         vma-iter: Add support for GNU/Hurd.
16948         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
16949         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
16951 2017-09-30  Bruno Haible  <bruno@clisp.org>
16953         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
16954         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
16955         fail when module 'largefile' is in use.
16956         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
16957         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
16958         Don't test HAVE_SYS_PROCFS_H.
16960 2017-09-30  Bruno Haible  <bruno@clisp.org>
16962         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
16963         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
16964         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
16965         * modules/havelib (Depends-on): Add host-cpu-c-abi.
16967 2017-09-30  Bruno Haible  <bruno@clisp.org>
16969         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
16970         * lib/uniname/uniname.c (unicode_name_character): Add braces around
16971         scope of local variables.
16973 2017-09-28  Bruno Haible  <bruno@clisp.org>
16975         string: code style
16976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
16977         substitutable variables.
16978         * modules/string (Makefile.am): Likewise.
16980 2017-09-26  Bruno Haible  <bruno@clisp.org>
16982         uniname/uniname-tests: Tighten code.
16983         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
16984         local variables into one.
16986 2017-09-26  Bruno Haible  <bruno@clisp.org>
16988         vma-iter: Improvements for Linux and BSD platforms.
16989         - Add support for DragonFly BSD.
16990         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
16991         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
16992         Read the entire file into memory in a single system call.
16993         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
16994         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
16996 2017-09-26  Bruno Haible  <bruno@clisp.org>
16998         vma-iter: Provide the protection flags on FreeBSD.
16999         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
17000         skip three fields between the addresses and the protection flags.
17002 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17004         glob: remove bogus extern decl
17005         * lib/glob.c (__glob_pattern_type): Remove now-spurious
17006         extern declaration.  Problem reported by Adhemerval Zanella in:
17007         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
17009 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
17011         uniname/uniname-tests: integer overflow fix
17012         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
17013         Check for integer overflow.
17015         duplocale-tests: fix unlikely crash
17016         * tests/test-duplocale.c (get_locale_dependent_values):
17017         Don’t crash with absurdly long month names.
17019         maint: fix overflow checking in nap.h
17020         * modules/chown-tests:
17021         * modules/fchownat-tests, modules/fdutimensat-tests:
17022         * modules/futimens-tests, modules/lchown-tests:
17023         * modules/stat-time-tests, modules/utime-tests:
17024         * modules/utimens-tests, modules/utimensat-tests:
17025         Depend on intprops.
17026         * tests/nap.h: Include intprops.h.
17027         (diff_timespec): Handle overflow properly.
17029         sys_types: update URL
17030         * m4/sys_types_h.m4: Use https: URL.
17032         parse-datetime: fix dependency
17033         * modules/parse-datetime (Depends-on): Depend
17034         on nstrftime, not strftime.
17036         parse-datetime, posixtm: avoid uninit access
17037         * lib/parse-datetime.y (parse_datetime2):
17038         * lib/posixtm.c (posixtime):
17039         Do not access uninitialized storage, even though the resulting
17040         value is never used.
17042 2017-09-25  Bruno Haible  <bruno@clisp.org>
17044         vma-iter: Improvements for BSD platforms.
17045         - Add support for GNU/kFreeBSD.
17046         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
17047         - Speed up on OpenBSD.
17048         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
17049         (vma_iterate_bsd): New function.
17050         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
17051         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
17052         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17053         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
17055 2017-09-23  Bruno Haible  <bruno@clisp.org>
17057         strfmon_l: New module.
17058         * modules/strfmon_l: New file.
17059         * lib/strfmon_l.c: New file.
17060         * m4/strfmon_l.m4: New file.
17061         * doc/posix-functions/strfmon_l.texi: Mention the new module.
17062         * modules/strfmon_l-tests: New file.
17063         * tests/test-strfmon_l.c: New file.
17065         monetary: New module.
17066         * modules/monetary: New file.
17067         * lib/monetary.in.h: New file.
17068         * m4/monetary_h.m4: New file.
17069         * doc/posix-headers/monetary.texi: Mention the new module.
17070         * modules/monetary-tests: New file.
17071         * tests/test-monetary.c: New file.
17072         * modules/monetary-c++-tests: New file.
17073         * tests/test-monetary-c++.cc: New file.
17074         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
17076 2017-09-23  Bruno Haible  <bruno@clisp.org>
17078         duplocale tests: Fix test crash on Linux/x86.
17079         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
17080         locale from the current thread before freeing it.
17082 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
17084         mktime: port to OpenVMS
17085         Problem reported by John E. Malmberg in:
17086         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
17087         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
17089 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17091         manywarnings: port to GCC on 64-bit MS-Windows
17092         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
17093         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
17094         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
17096 2017-09-13  Bruno Haible  <bruno@clisp.org>
17098         all: Replace many more http URLs by https URLs. Update stale URLs.
17099         * users.txt: Remove mention of 'newts'.
17100         * lib/localename.c: Update comment about LANG_SOTHO.
17102 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17104         all: Replace many http URLs by https URLs.
17106 2017-09-12  Bruno Haible  <bruno@clisp.org>
17108         doc: Prefer https URLs where possible.
17109         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
17110         * doc/ld-output-def.texi: Remove unavailable URL.
17112 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17114         maintainer-makefile: FTP -> HTTPS
17115         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
17116         of FTP, which is planned to be decommissioned on 2017-11-01.
17118 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
17120         libc-config: Fix __GNUC_PREREQ macro.
17121         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
17122         __GNUC_MINOR.
17124 2017-09-09  Bruno Haible  <bruno@clisp.org>
17126         gnulib-tool: Simplify commit from 2015-08-20.
17127         * gnulib-tool (func_add_or_update): Remove local variable
17128         is_binary_file.
17130 2017-09-08  Bruno Haible  <bruno@clisp.org>
17132         stddef: Avoid conflict with system-defined max_align_t.
17133         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
17134         Reported by Werner Lemberg <wl@gnu.org> in
17135         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
17136         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
17137         (max_align_t): Define as a macro.
17138         (GNULIB_defined_max_align_t): New macro. Guards against multiple
17139         definitions of rpl_max_align_t in different copies of gnulib-generated
17140         <stddef.h>.
17142 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
17144         libc-config: port to MSVC
17145         Problems reported by Gisle Vanem in:
17146         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
17147         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
17148         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
17149         * m4/__inline.m4: New file.
17150         * modules/libc-config (Files): Add it.
17151         (Depends-on): Use it.
17153         glob: Use enum for __glob_pattern_type result
17154         From a patch proposed by Adhemerval Zanella in:
17155         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
17156         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
17157         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
17158         * lib/glob_internal.h (__glob_pattern_type):
17159         * lib/glob.c (glob):
17160         * lib/glob_pattern_p.c (__glob_pattern_p):
17161         Use them.
17163         glob: fix for use in glibc
17164         Problem reported by Adhemerval Zanella in:
17165         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
17166         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
17167         Do not redefine if _LIBC.
17169 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17171         glob: fix bugs with long login names
17172         Problem reported by Adhemerval Zanella in:
17173         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
17174         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
17175         (glob): Use the same scratch buffer for both getlogin_r and
17176         getpwnam_r.  Don’t require preallocation of the login name.  This
17177         simplifies storage allocation, and corrects the handling of
17178         long login names.
17180 2017-09-02  Bruno Haible  <bruno@clisp.org>
17182         dirent: Update doc.
17183         * doc/posix-headers/dirent.texi: More concrete list of platforms.
17185 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17187         glob: fix getpwnam_r errno typo
17188         * lib/glob.c (glob): Fix longstanding misuse of errno after
17189         getpwnam_r, which returns an error number rather than setting
17190         errno.
17192         glob: fix typo in recent change
17193         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
17194         Fix recently-introduced typo.
17196 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17198         glob: don't save and restore errno unnecessarily
17199         * lib/glob.c (glob): Don't save and restore errno
17200         merely because we have getpwnam_r.
17202         glob: don't assume getpwnam_r
17203         * lib/glob.c (glob): Port recent patches to platforms
17204         lacking getpwnam_r.
17206         scratch_buffer: don’t use private glibc API
17207         Suggested by Florian Weimer in:
17208         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
17209         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
17210         * lib/scratch_buffer_grow.c: Rename to
17211         lib/malloc/scratch_buffer_grow.c.
17212         * lib/scratch_buffer_grow_preserve.c: Rename to
17213         lib/malloc/scratch_buffer_grow_preserve.c.
17214         * lib/scratch_buffer_set_array_size.c: Rename to
17215         lib/malloc/scratch_buffer_set_array_size.c.
17216         * lib/scratch_buffer.h: New file.
17217         * modules/scratch_buffer (Files, Makefile.am):
17218         Adjust to source-file renaming.
17220 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17222         glob: use scratch_buffer instead of extend_alloca
17223         Much of the lib/glob.c part of this patch comes from a glibc patch
17224         proposed by Adhemerval Zanella in:
17225         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
17226         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
17227         included via glob.h, does this for us now.
17228         (__set_errno): Remove, as libc-config does this for us now.
17229         Include <scratch_buffer.h>.
17230         (GETPW_R_SIZE_MAX): Remove.
17231         (glob): Use struct scratch_buffer instead of extend_alloca.
17232         * lib/glob.in.h: Include libc-config.h rather than
17233         including <sys/cdefs.h> conditionally.
17234         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
17235         (__glibc_unlikely, __restrict, weak_alias):
17236         Remove, as libc-config does this for us now.
17237         * m4/glob.m4 (gl_PREREQ_GLOB):
17238         Remove sys/cdefs.h tests; no longer needed.
17239         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
17240         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
17242         scratch_buffer: new module
17243         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
17244         * lib/scratch_buffer_grow_preserve.c:
17245         * lib/scratch_buffer_set_array_size.c:
17246         New files, copied from glibc with very minor changes that can be
17247         copied back.
17248         * modules/scratch_buffer: New file.
17250         libc-config: new module
17251         * MODULES.html.sh: Add libc-config.
17252         * lib/cdefs.h: New file, copied from the GNU C Library with very
17253         minor changes that can be copied back.
17254         * lib/libc-config.h, modules/libc-config: New files.
17256 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17258         glob: match dangling symlinks
17259         This fixes a bug I inadvertently introduced to Gnulib when I
17260         merged glibc glob back into gnulib on 2007-10-16.  This fix is
17261         inspired by a patch proposed for glibc by Adhemerval Zanella in:
17262         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
17263         * doc/posix-functions/glob.texi: Update list of affected platforms.
17264         * lib/glob.c (__lstat64): New macro.
17265         (is_dir): New function.
17266         (glob, glob_in_dir): Match symlinks even if they are dangling.
17267         (link_stat, link_exists_p): Remove.  All uses removed.
17268         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
17269         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
17270         * modules/glob-tests (Depends-on): Add symlink.
17271         * tests/test-glob.c: Include errno.h, unistd.h.
17272         (BASE): New macro.
17273         (main): Test dangling symlinks, if symlinks are supported.
17275         glob, backupfile: inode 0 is a valid inode number
17276         * doc/posix-functions/readdir.texi (readdir):
17277         * doc/posix-headers/dirent.texi (dirent.h):
17278         Document more readdir portability issues.
17279         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
17280         (numbered_backup): Don’t treat inode 0 any differently from
17281         other inode values.
17282         * lib/glob.c (struct readdir_result): Remove skip_entry member.
17283         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
17284         All uses removed.
17285         * modules/glob (Depends-on): Remove d-ino.
17287         glob: simplify symlink detection
17288         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
17289         uint8_t, as C99 does not require uint8_t.
17290         (struct readdir_result): Use it.  Do not define skip_entry unless
17291         it is needed; this saves a byte on platforms lacking d_ino.
17292         (readdir_result_type, readdir_result_skip_entry):
17293         New functions, replacing ...
17294         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
17295         ... these functions, which were removed.  This makes the callers
17296         easier to read.  All callers changed.
17297         (D_INO_TO_RESULT): Now empty if there is no d_ino.
17299 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17301         fts-tests: tag as a longrunning-test so not included by default
17302         * modules/fts-tests: This test takes about 20s on current systems,
17303         and uses about 285M of space on ext4.
17305 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17307         renameat2: fix compilation on alpine linux
17308         * m4/renameat.m4: Check for <linux/fs.h> presence.
17309         * lib/renameat2.h: Only include <linux/fs.h> if present.
17310         Reported by Assaf Gordon on Alpine Linux.
17312 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17314         glob: try to port recent changes to MS-Windows
17315         Problem reported by Bruno Haible in:
17316         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
17317         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
17318         * lib/glob.in.h (__glob_pattern_p): ... to here.
17320 2017-08-24  Eric Blake  <eblake@redhat.com>
17322         warnings: fix compilation with old autoconf
17323         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
17324         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
17325         AC_DEFUN.
17326         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
17327         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
17329 2017-08-24  Bruno Haible  <bruno@clisp.org>
17331         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
17332         * modules/glob (Depends-on): Add c99.
17334 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17336         glob: fix typo that broke platforms lacking d_ino
17337         This typo also hurt performance on GNU/Linux and similar hosts.
17338         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
17339         in previous change.
17341 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17343         glob: merge from glibc with Zanella glob changes
17344         Merge glob from glibc, with changes for glob proposed
17345         by Adhemerval Zanella in the thread starting here:
17346         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
17347         plus some fixes for this merge.
17348         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
17349         New files, ported from glibc.
17350         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
17351         with __restrict.
17352         (__size_t): Remove.  All uses replaced by size_t.
17353         (size_t): Define by defining __need_size_t and including <stddef.h>.
17354         This should work even in non-glibc platforms, where any name
17355         pollution is OK.
17356         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
17357         (struct stat64): Don’t worry about __GLOB_GNULIB.
17358         (glob, globfree, glob_pattern_p): Remove macros for
17359         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
17360         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
17361         but set errno.
17362         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
17363         removed since the glibc behavior works on null pointers.
17364         Do not include stdio.h; old SunOS is irrelevant now.
17365         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
17366         Include glob_internal.h.
17367         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
17368         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
17369         worked only coincidentally.
17370         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
17371         Remove macros; now done in glob.in.h.
17372         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
17373         (glob): Properly initialize glob structure with
17374         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
17375         Remove old code using SHELL since Bash no longer
17376         uses this.
17377         (glob, prefix_array): Separate MS code better.
17378         (glob, glob_in_dir): Use C99 decls before statements when glibc
17379         does.
17380         (glob_in_dir): Remove old Amiga and VMS code.
17381         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
17382         separate files.
17383         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
17384         (__glibc_unlikely):
17385         Move here from glob.c.
17386         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
17387         (weak_alias): New macro.
17388         (__size_t): Remove.  All uses replaced by size_t.
17389         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
17390         * modules/glob (Files): Add +lib/glob_internal.h,
17391         lib/glob_pattern_p.c, lib/globfree.c.
17392         (Depends-on): Remove snippet/arg-nonnull.
17394 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17396         glob: port to clang's Undefined Sanitizer
17397         Problem reported by Tim Rühsen in:
17398         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
17399         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
17400         (glob_in_dir): Do not rely on undefined behavior in accessing
17401         struct members beyond their bounds.  Use a flexible array member
17402         instead.
17404 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17406         vc-list-files: port to Solaris 10
17407         * build-aux/vc-list-files: Don't assume test -e works.
17409 2017-08-21  Karl Berry  <karl@freefriends.org>
17411         * doc/posix-functions/srandom.texi (srandom): typo }.
17413 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17415         git-version-gen: port to Solaris 10
17416         Problem reported by Dagobert Michelsen in:
17417         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
17418         * build-aux/git-version-gen (v_from_git):
17419         Use expr instead of shell substitution.
17421 2017-08-19  Bruno Haible  <bruno@clisp.org>
17423         host-cpu-c-abi: Improve detection of MIPS ABI.
17424         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
17425         _MIPS_SIM.
17427 2017-08-17  Bruno Haible  <bruno@clisp.org>
17429         hypot tests: Fix test failure on FreeBSD 11.0/x86.
17430         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
17432 2017-08-17  Bruno Haible  <bruno@clisp.org>
17434         float: Fix LDBL_MIN value on FreeBSD/x86.
17435         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
17437 2017-08-17  Bruno Haible  <bruno@clisp.org>
17439         random: Fix test compilation failure on Cygwin 1.5.25.
17440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
17441         HAVE_DECL_SETSTATE.
17442         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
17443         declared.
17444         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
17445         HAVE_DECL_SETSTATE.
17446         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
17447         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
17448         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
17449         * doc/posix-functions/random.texi: Likewise.
17450         * doc/posix-functions/setstate.texi: Likewise.
17451         * doc/posix-functions/srandom.texi: Likewise.
17453 2017-08-16  Bruno Haible  <bruno@clisp.org>
17455         stdnoreturn: Fix test compilation failure on Cygwin.
17456         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
17457         <stdnoreturn.h> replacement.
17458         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
17459         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
17461 2017-08-16  Bruno Haible  <bruno@clisp.org>
17463         thread: Fix conflict with pthread_sigmask module.
17464         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
17465         it's defined as a macro.
17466         * modules/thread (Depends-on): Add pthread_sigmask.
17468 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
17470         rename: port better to NetBSD
17471         * doc/posix-functions/rename.texi (rename): NetBSD 7
17472         does not have the link-count bug.
17473         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
17474         broken merely because rename ("a", "b") removes "a" when the two
17475         names are hard links to the same file.
17477 2017-08-16  Bruno Haible  <bruno@clisp.org>
17479         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
17480         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
17481         the target file names with '$(srcdir)/'.
17482         * modules/unicase/locale-language (Makefile.am): Likewise.
17483         * modules/unicase/special-casing (Makefile.am): Likewise.
17484         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
17485         * modules/unictype/category-byname (Makefile.am): Likewise.
17486         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
17487         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
17488         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
17489         * modules/unictype/property-byname (Makefile.am): Likewise.
17490         * modules/unictype/scripts (Makefile.am): Likewise.
17491         * modules/uninorm/composition (Makefile.am): Likewise.
17493 2017-08-16  Bruno Haible  <bruno@clisp.org>
17495         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
17496         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
17497         value for OpenBSD.
17499 2017-08-16  Bruno Haible  <bruno@clisp.org>
17501         rename, renameat: Update doc regarding NetBSD.
17502         * doc/posix-functions/rename.texi: Clarify that when using
17503         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
17504         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
17505         version.
17507 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17509         renameat2: port better to macOS
17510         * lib/renameat2.c (renameat2): Use renameatx_np if available.
17512         futimens: don’t assume struct timespec layout
17513         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
17514         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
17515         * tests/test-fdutimensat.c (main):
17516         * tests/test-futimens.h (test_futimens):
17517         * tests/test-lutimens.h (test_lutimens):
17518         * tests/test-utimens.h (test_utimens):
17519         * tests/test-utimensat.c (main):
17520         Don’t assume that struct timespec is a two-member structure in
17521         tv_sec, tv_nsec order.  Although this is true on all platforms we
17522         know about, POSIX does not guarantee it.
17524         rename: document+test NetBSD rename
17525         Test failure reported by Bruno Haible in:
17526         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
17527         This is an area where NetBSD is better-behaved than POSIX,
17528         so allow the NetBSD behavior in tests.
17529         * doc/posix-functions/rename.texi:
17530         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
17531         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
17533 2017-08-15  Bruno Haible  <bruno@clisp.org>
17535         renameat: Ensure declaration in <stdio.h> on NetBSD.
17536         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
17537         * doc/posix-functions/renameat.texi: Mention this problem.
17539 2017-08-15  Bruno Haible  <bruno@clisp.org>
17541         duplocale: Work around NetBSD 7.0 bug.
17542         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
17543         * lib/duplocale.c: Add comment about NetBSD problem.
17544         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
17546 2017-08-15  Bruno Haible  <bruno@clisp.org>
17548         duplocale tests: Verify use with *_l functions.
17549         * modules/duplocale-tests (configure.ac): Test for uselocale and
17550         some *_l functions.
17551         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
17552         from main.
17553         (get_locale_dependent_values_from, test_with_locale_parameter): New
17554         functions.
17555         (main): Test both test_with_uselocale and test_with_locale_parameter.
17557 2017-08-15  Bruno Haible  <bruno@clisp.org>
17559         extensions: Enable NetBSD specific extensions.
17560         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
17562 2017-08-14  Bruno Haible  <bruno@clisp.org>
17564         open, openat: Update doc about O_CLOEXEC.
17565         * doc/posix-functions/open.texi: More concrete list of platforms.
17566         * doc/posix-functions/openat.texi: Likewise.
17568 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17570         open: support O_CLOEXEC
17571         * NEWS, doc/posix-functions/open.texi:
17572         * doc/posix-functions/openat.texi: Document this.
17573         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
17574         (GNULIB_defined_O_CLOEXEC): New symbol.
17575         * lib/open.c: Include cloexec.h.
17576         (open): Support O_CLOEXEC.
17577         * lib/openat.c: Include cloexec.h.
17578         (rpl_openat): Support O_CLOEXEC.
17579         * lib/popen-safer.c: Do not include cloexec.h.
17580         (open_noinherit): Remove.
17581         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
17582         * lib/save-cwd.c: Do not include cloexec.h.
17583         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
17584         * m4/open-cloexec.m4: New file.
17585         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
17586         Replace 'open' if O_CLOEXEC is not present.
17587         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
17588         Replace 'openat' if O_CLOEXEC is not present.
17589         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
17590         * modules/open (Files): Add m4/open-cloexec.m4.
17591         (Depends-on): Depend on cloexec if replacing 'open'.
17592         * modules/openat (Files): Add m4/open-cloexec.m4.
17593         (Depends-on): Depend on cloexec if replacing openat.
17594         * modules/popen-safer (Depends-on): Remove cloexec.
17595         * modules/save-cwd (Depends-on): Remove cloexec, and add
17596         fd-safer-flag and 'open'.
17598 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
17600         reallocarray: minor fixes
17601         * doc/glibc-functions/reallocarray.texi: Update version numbers.
17602         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
17603         * modules/reallocarray (License): Change from GPL to LGPL.
17604         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
17605         Indent properly and don't use tabs.
17607 2017-08-13  Darshit Shah  <darnir@gnu.org>
17609         reallocarray: New module
17610         reallocarray is a new function in glibc 2.26 to safely allocate an array
17611         of memory locations with integer overflow protection.
17612         * MODULES.html.sh: Add reallocarray.
17613         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
17614         * lib/reallocarray.c: New file to implement module reallocarray.
17615         * lib/stdlib.in.h: Add function declarations for reallocarray.
17616         * m4/reallocarray.m4: New file.
17617         * m4/stdlib_h.m4: Declare reallocarray.
17618         * modules/reallocarray: New file.
17619         * modules/reallocarray-test: New file.
17620         * modules/stdlib: Coerce stdlib.h to export reallocarray.
17621         * tests/test-reallocarray.c: New test.
17623 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
17625         dirent-safer: fix cloexec race
17626         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
17627         (opendir_safer): Use F_DUPFD_CLOEXEC.
17628         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
17629         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
17630         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
17631         instead of dup_safer.
17633         fts: fix cloexec races
17634         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
17635         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
17636         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
17637         (fd_ring_check): Set cloexec flag on new file descriptors.
17638         (fts_build, fd_ring_check): While we’re at it, make sure the
17639         resulting file descriptor is not 0, 1, or 2, since that is easy.
17641 2017-08-11  Bruno Haible  <bruno@clisp.org>
17643         fts tests: Fix link error.
17644         Reported by Tom G. Christensen in
17645         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
17646         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
17648 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17650         fts: port recent changes to CentOS 6
17651         Problem reported by Tom G. Christensen in:
17652         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
17653         * lib/fts.c (fsword): New type.
17654         (struct dev_type, filesystem_type): Use it.
17655         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
17656         Also, check for f_type only if fstatfs and sys/vfs.h work.
17658 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
17660         tempname: do not depend on secure_getenv
17661         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
17662         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
17663         * modules/tempname (Depends-on): Remove secure_getenv.
17665 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
17667         extensions: add _OPENBSD_SOURCE
17668         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
17670 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
17671             Bruno Haible  <bruno@clisp.org>
17673         manywarnings: Add support for C++.
17674         * build-aux/g++-warning.spec: New file.
17675         * m4/manywarnings-c++.m4: New file.
17676         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
17677         redirects to manywarnings-c++.m4.
17678         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
17680 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
17682         git-version-gen: another fix for tags with "-"
17683         * build-aux/git-version-gen: Improve fix for tags containing "-".
17684         Suggested by Markus Armbruster in:
17685         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
17687 2017-08-06  Bruno Haible  <bruno@clisp.org>
17689         warnings, manywarnings: Add support for multiple languages, not just C.
17690         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
17691         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
17692         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
17693         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
17694         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
17695         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
17696         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
17697         of the current language. If C++ is the current language, modify
17698         WARN_CXXFLAGS instead of WARN_CFLAGS.
17699         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
17700         gl_MANYWARN_ALL_GCC.
17701         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
17703 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
17705         git-version-gen: Fix for tags containing '-'
17707         Really old versions of git-describe (before v1.5.0, Feb 2007)
17708         don't have the number of commits in their long format output,
17709         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
17710         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
17711         recognizes both patterns, and normalizes the old format to the new one.
17713         Unfortunately, this normalization code gets confused when the tag
17714         contains '-'.  Reproducer:
17716             $ git-tag -m test v0.2-rc1
17717             $ build-aux/git-version-gen .tarball-version; echo
17718             build-aux/git-version-gen: WARNING: git rev-list failed
17719             UNKNOWN
17721         We take exact tag "v0.2-rc1" for the old format, extract the presumed
17722         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
17723         commits since tha tag.  Fails, because tag "v0.2" does not exist.
17725         * git-version-gen: We could perhaps drop support for versions from
17726         more than a decade ago.  But tightening the pattern match is easy
17727         enough, so do that.  Still breaks when you use version tags ending in
17728         something matching -g????, but you arguably get what you deserve then.
17730 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
17732         valgrind-tests: use ls, and cache
17733         * m4/valgrind-tests.m4: Test ls, not bash.
17734         Problem reported by Reuben Thomas.
17735         Also, cache the result so that it can be overridden.
17737 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
17739         manywarnings: port to 64-bit GCC builds of Emacs
17740         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
17741         object size rather than hardwiring 2147483647.  This is needed to
17742         build GNU Emacs, which has one conditional (and used
17743         only-in-theory) call to malloc with a literal greater than
17744         2147483647.
17746 2017-08-04  Bruno Haible  <bruno@clisp.org>
17748         Relax the license of some modules with no runtime code.
17749         * modules/std-gnu11 (License): Set to 'unlimited'.
17750         * modules/c99 (License): Likewise.
17751         Reported by Reuben Thomas <rrt@sc3d.org>.
17752         * modules/d-ino (License): Set to 'LGPL'.
17753         * modules/host-os (License): Likewise.
17754         * modules/longlong (License): Likewise.
17756 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
17758         renameat2: port to RHEL 7 + NFS
17759         * lib/renameat2.c (renameat2) [SYS_renameat2]:
17760         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
17761         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
17763 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
17765         renameat2: port to non-renameat platforms
17766         Problem reported for MSVC-2015 by Gisle Vanem in:
17767         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
17768         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
17769         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
17771 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
17773         manywarnings: port to 32-bit GCC bug
17774         Problem reported by Pino Toscano in:
17775         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
17776         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
17777         not 2**63 - 1, to work around the following GCC bug:
17778         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
17780 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
17782         backupfile: new function to validate backup suffix
17783         * lib/backupfile.c (set_simple_backup_suffix): New function.
17784         (backupfile_internal): Use it.
17786         canonicalize: fix EOVERFLOW commentary
17787         Problem reported by Bruno Haible in:
17788         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
17789         * lib/canonicalize.c (canonicalize_filename_mode):
17790         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
17792         Don't interpret EOVERFLOW to mean nonexistence
17793         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
17794         may be EOVERFLOW; this is likely more useful than reporting the
17795         stat errno.
17796         * lib/glob.c (link_stat): Rename from link_exists2_p and
17797         return -1/0 instead of 0/1.  Caller changed.
17798         * lib/glob.c (link_exists_p):
17799         * lib/renameat2.c (rename_noreplace, renameat2):
17800         * lib/tempname.c (try_nocreate):
17801         If errno == EOVERFLOW then the directory entry exists, so do not
17802         act as if it does not exist.
17804         backup-rename: new module
17805         It is like backupfile, except it avoids some race conditions,
17806         and it does not output to stderr or exit.
17807         * MODULES.html.sh: Add backup-rename.
17808         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
17809         * modules/backup-rename: New files.
17810         * lib/backupfile.c: Turn this into an internals file, which
17811         contains code common to backupfile and backup_rename.  Include
17812         backupfile-internal.h instead of backupfile.h.  Do not include
17813         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
17814         renameat2.h and fcntl.h.
17815         (BACKUP_NOMEM): New constant.
17816         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
17817         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
17818         (backupfile_internal): Rename from find_backup_file_name.
17819         Support new arg RENAME.
17820         (backup_args, backup_types, get_version, xget_version):
17821         Move to lib/backup-find.c.
17822         * lib/backupfile.h (backup_file_rename): New decl.
17823         * modules/backupfile (Files): Add lib/backup-internal.h,
17824         lib/backup-find.c.
17825         (Depends-on): Add dirfd, fcntl, renameat2.
17826         (lib_SOURCES): Add backup-find.c.
17828         renameat2: port better to older Solaris
17829         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
17830         Add goto to use a label, to silence picky compilers.
17832         fts-tests: port to gcc -Wwrite-strings
17833         * tests/test-fts.c (base, base_d): New static vars.
17834         (argv, remove_tree, main): Use them.
17836 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
17838         relocatable-lib{,-lgpl}: improve documentation
17839         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
17840         Various other updates.
17842 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
17843             Bruno Haible  <bruno@clisp.org>
17845         relocatable-lib{,-lgpl}: add Valgrind suppressions
17846         * lib/relocatable.valgrind: New file.
17847         * modules/relocatable-lib (Files): Add relocatable.valgrind.
17848         * modules/relocatable-lib-lgpl: Likewise.
17850 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
17852         relocatable: Make the license on the sources the GPL.
17853         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
17854         LGPL, which was a special case so that the relocatable source files
17855         could be used without gnulib-tool, to GPL. They can still be used under
17856         the LGPL, using the --lgpl option to gnulib-tool.
17858 2017-07-30  Bruno Haible  <bruno@clisp.org>
17860         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
17861         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
17862         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
17863         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
17864         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
17866 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
17868         faccessat: document AT_SYMLINK_NOFOLLOW issue
17869         * doc/posix-functions/faccessat.texi: Modernize platform list.
17870         Document AT_SYMLINK_NOFOLLOW limitation.
17872         renameat2: port to Solaris 10
17873         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
17874         with AT_SYMLINK_NOFOLLOW (which is not portable).
17875         (renameat): Undef before using, to avoid endless recursion when
17876         the replacement renameat calls renameat2 which calls the
17877         replacement renameat.
17878         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
17879         * modules/renameat2 (Depends-on): Remove faccessat.
17880         * modules/renameat-tests (test_renameat_LDADD):
17881         * modules/renameat2-tests (test_renameat2_LDADD):
17882         Remove $(LIB_EACCESS).
17884         renameat2: new module
17885         Although the Linux syscall renameat2 is not in glibc (yet?), it is
17886         useful to have access to its RENAME_NOREPLACE flag.
17887         * MODULES.html.sh (func_all_modules): Add renameat2.
17888         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
17889         * modules/renameat2-tests, tests/test-renameat2.c: New files.
17890         * lib/renameat.c (renameat): Move most of the implementation
17891         to renameat2, and just call renameat2.
17892         * modules/renameat (Files): Remove lib/at-func2.c.
17893         (Depends-on): Depend only on renameat2.
17894         (Include): Remove <fcntl.h>.
17895         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
17896         since renameat (via renameat2) might use faccessat.
17898 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
17900         vc-list-files: Adjust the script to support git worktrees
17901         * build-aux/vc-list-files: Require existence, not directory.
17903 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
17905         doc: bring MODULES.html.sh up to date
17906         Somehow a few months ago we stopped updating MODULES.html.sh.
17907         I don’t recall explicitly deciding this, so I updated it now.
17908         Alternatively I suppose we could remove it.
17909         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
17910         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
17911         truncate, utime, utime-h, windows-stat-inodes,
17912         windows-stat-override, windows-stat-timespec, year2038.  Sort.
17914 2017-07-26  Jim Meyering  <meyering@fb.com>
17916         fprintftime: fix build-break caused by recent renaming
17917         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
17918         "strftime.c".
17919         * modules/fprintftime: Depend directly on nstrftime.
17921 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
17923         regex: work with GCC7's -Werror=implicit-fallthrough=
17924         * lib/regex_internal.h (FALLTHROUGH): New macro.
17925         * lib/regcomp.c (peek_token_bracket, parse_expression):
17926         * lib/regexec.c (check_node_accept): Use it.
17928 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
17930         fts: simplify fts_build
17931         * lib/fts.c (fts_build): Simplify, and be lazier about
17932         calling leaf_optimization.
17934         fts: three levels of leaf optimization
17935         * lib/fts.c (enum leaf_optimization): New type with three values.
17936         (S_MAGIC_AFS): New macro.  Sort them.
17937         (leaf_optimization): Rename from leaf_optimization_applies, and
17938         return enum leaf_optimization instead of bool.  All uses changed.
17939         Add cases for unknown type and for AFS.
17940         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
17942         fts: cache dirent_inode_sort_may_be_useful too
17943         * lib/fts.c (struct dev_type): New struct.
17944         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
17945         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
17946         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
17947         Now takes FTSENT const *, not int.  All uses changed.  Use
17948         filesystem_type to cache.
17949         (link_count_optimize_ok): Remove.  Caller changed to use
17950         leaf_optimization_applies, which now uses shared cache.
17952         fts: introduce MIN_DIR_NLINK
17953         * lib/fts.c (MIN_DIR_NLINK): New constant.
17954         Use it instead of 2, whenever we are talking about link counts.
17956         fts: nlink_t signedness fixups
17957         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
17958         so that root need not be a special case later.
17959         (fts_read): Remove now-redundant test for fts_level.
17960         Do not assume that nlink_t is signed.
17961         (fts_build): Remove useless decrement of nlinks.
17962         (fts_stat): Avoid unlikely signed integer overflow later, if
17963         nlink_t is signed.
17965         fts-tests: new module
17966         * modules/fts-tests, tests/test-fts.c: New files.
17968 2017-07-23  Bruno Haible  <bruno@clisp.org>
17970         Rename module 'strftime' to 'nstrftime'.
17971         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
17972         * lib/nstrftime.c: Renamed from lib/strftime.c.
17973         * modules/nstrftime: Renamed from modules/strftime.
17974         (Files, Makefile.am): Update.
17975         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
17976         Fix comment.
17977         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
17978         (Files, Makefile.am): Update.
17979         * modules/strftime: New file, an obsolete indirection.
17980         * doc/posix-functions/strftime.texi: Update reference.
17981         * config/srclist.txt: Update info.
17982         * NEWS: Mention the change.
17984 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
17986         malloca: Silence a warning from clang's memory sanitizer.
17987         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
17988         (freea): Use it.
17990 2017-07-18  Bruno Haible  <bruno@clisp.org>
17992         host-cpu-c-abi: Fix detection of MIPS ABI.
17993         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
17994         ABI, not the CPU instruction set.
17996 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
17998         explicit_bzero: new module
17999         The explicit_bzero function has been added to glibc.
18000         This module is intended to supports its use in GNU programs.
18001         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
18002         * m4/explicit_bzero.m4, modules/explicit_bzero:
18003         New files.
18004         * doc/gnulib.texi (Glibc string.h): Link to new doc.
18005         * lib/string.in.h (explicit_bzero): Declare.
18006         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
18007         * modules/string (string.h): Substitute its vars.
18009 2017-07-16  Bruno Haible  <bruno@clisp.org>
18011         threadlib: Support static linking.
18012         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
18013         set gl_cv_have_weak to 'no'.
18015 2017-07-16  Bruno Haible  <bruno@clisp.org>
18017         unicase/locale-language: Fix link dependencies.
18018         * modules/unicase/locale-language (Link): New section.
18019         * modules/unicase/locale-language-tests (Makefile.am): Link
18020         test-locale-language program with $(LIBTHREAD).
18022 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18024         sys_socket: Add support for OpenVMS.
18025         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
18026         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
18028 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18030         sys_resource: Add support for OpenVMS.
18031         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
18032         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
18034 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18035             Bruno Haible  <bruno@clisp.org>
18037         math: Add support for OpenVMS.
18038         * lib/math.in.h [__VMS]: Include <fp.h>.
18039         * doc/posix-headers/math.texi: Mention OpenVMS issues.
18041 2017-07-15  Bruno Haible  <bruno@clisp.org>
18043         getdtablesize: Add minimal support for OpenVMS.
18044         Reported by John E. Malmberg <wb8tyw@qsl.net>.
18045         * modules/getdtablesize (Description): Fix.
18046         * lib/getdtablesize.c: Fix comment.
18047         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
18048         getdtablesize() function, even though the test fails.
18049         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
18050         limitation on OpenVMS.
18052 2017-07-13  Bruno Haible  <bruno@clisp.org>
18054         Revisit cross-compilation guesses.
18055         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
18057 2017-07-13  Bruno Haible  <bruno@clisp.org>
18059         Improve cross-compilation guesses for native Windows.
18060         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
18061         Windows.
18062         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
18063         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
18064         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18065         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
18066         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
18067         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
18068         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
18069         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18070         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18071         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
18072         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18073         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
18074         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
18075         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
18076         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
18077         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18078         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
18079         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18080         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18081         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
18082         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
18083         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18084         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
18085         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
18086         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
18087         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
18088         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
18089         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
18090         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18091         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
18092         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18093         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
18094         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
18095         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
18096         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
18097         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
18098         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
18099         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18100         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
18101         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18102         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18103         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18104         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
18105         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
18106         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
18107         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
18108         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
18109         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
18110         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
18111         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
18112         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
18113         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
18114         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
18115         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
18116         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
18117         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
18118         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
18119         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18120         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
18121         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18122         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18123         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
18124         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
18125         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
18126         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
18127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18128         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
18129         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18130         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
18131         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
18132         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
18133         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
18134         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18135         * m4/regex.m4 (gl_REGEX): Likewise.
18136         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
18137         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
18138         gl_FUNC_REMAINDERF_WORKS): Likewise.
18139         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
18140         gl_FUNC_REMAINDERL_WORKS): Likewise.
18141         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18142         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18143         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18144         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18145         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18146         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
18147         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18148         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18149         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
18150         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18151         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
18152         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
18153         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18154         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18155         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18156         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18157         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18158         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18159         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18160         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18161         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
18162         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18163         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18164         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18165         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18166         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18167         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18168         Likewise.
18169         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18170         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
18171         Windows. Enable also on Autoconf 2.70.
18172         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18173         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18174         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18175         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
18176         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18177         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
18178         for native Windows.
18179         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18180         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
18182 2017-07-13  Bruno Haible  <bruno@clisp.org>
18184         Improve cross-compilation guesses for native Windows.
18185         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
18186         Windows.
18187         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
18188         memchr.m4.
18189         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18191 2017-07-13  Bruno Haible  <bruno@clisp.org>
18193         Improve cross-compilation guesses for native Windows.
18194         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
18195         native Windows.
18196         (gl_FUNC_FFLUSH): Update accordingly.
18197         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
18198         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
18200 2017-07-11  Bruno Haible  <bruno@clisp.org>
18202         More systematic m4 quoting and indentation.
18203         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
18204         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18205         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
18206         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18207         * m4/host-os.m4 (gl_HOST_OS): Likewise.
18208         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
18209         gl_WINSIZE_IN_PTEM): Likewise.
18210         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
18211         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
18212         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18213         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
18214         Correct indentation.
18215         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
18216         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18217         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
18218         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18219         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18220         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18222 2017-07-10  Bruno Haible  <bruno@clisp.org>
18224         round, roundf: Avoid compiler warning in configure test.
18225         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
18226         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18228 2017-07-10  Bruno Haible  <bruno@clisp.org>
18230         getlogin tests: Avoid #ifdefs when sharing code between modules.
18231         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
18232         * modules/getlogin-tests (Files): Likewise. Remove
18233         tests/test-getlogin_r.c.
18234         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
18235         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
18236         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
18237         getlogin().
18239 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18241         getlogin: don’t assume one name per uid
18242         Problem reported by Wolfgang F. Muthmann (Bug#27640).
18243         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
18244         (ttyname): Remove test.
18245         * modules/getlogin_r-tests (ttyname): Remove test.
18246         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
18247         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
18248         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
18249         getlogin rather than getlogin_r.  This avoids code duplication.
18250         (main): Use isatty and fstat rather than ttyname and stat.
18251         Use getpwnam instead of getpwuid, to be portable to test platforms
18252         that have multiple login names for the same uid.
18254 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
18255             Bruno Haible  <bruno@clisp.org>
18257         glob: Fix more memory leaks.
18258         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
18259         returning.
18260         Reported by Tim Rühsen.
18262 2017-07-10  Bruno Haible  <bruno@clisp.org>
18264         Make sure $host and $host_os are defined when used.
18265         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
18266         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
18267         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
18268         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18269         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18270         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18271         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18272         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
18273         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18274         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18275         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
18276         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
18277         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18278         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
18279         m4_ifdef block.
18281 2017-07-09  Bruno Haible  <bruno@clisp.org>
18283         *printf: Fix cross-compilation guess for Solaris.
18284         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
18285         2010-12-21.
18287 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18288             Bruno Haible  <bruno@clisp.org>
18290         vasnprintf: port to macOS 10.13
18291         Problem reported by comex in:
18292         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
18293         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
18295 2017-07-06  Bruno Haible  <bruno@clisp.org>
18297         imaxdiv tests: Fix logic.
18298         * tests/test-imaxdiv.c (main): Use == instead of =.
18299         Reported by Coverity.
18301 2017-07-06  Bruno Haible  <bruno@clisp.org>
18303         uninorm/filter: Fix use-after-free bug.
18304         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
18305         sortbuf == filter->sortbuf invariant.
18306         Reported by Coverity.
18308 2017-07-06  Bruno Haible  <bruno@clisp.org>
18310         glob: Fix more memory leaks.
18311         * lib/glob.c (glob): Free dirname before returning.
18312         Reported by Coverity and Tim Rühsen.
18314 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18316         parse-datetime: fix uninit var bug
18317         Reported by Bruno Haible in:
18318         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
18319         * lib/parse-datetime.y (parse_datetime2): Do not use
18320         uninitialized.
18322 2017-07-05  Bruno Haible  <bruno@clisp.org>
18324         doc: Update for MSVC 14.
18325         * doc/posix-headers/*.texi: Add info about MSVC 14.
18326         * doc/posix-functions/*.texi: Likewise.
18327         * doc/pastposix-functions/*.texi: Likewise.
18328         * doc/glibc-headers/*.texi: Likewise.
18329         * doc/glibc-functions/*.texi: Likewise.
18331 2017-07-05  Bruno Haible  <bruno@clisp.org>
18333         sched: Fix build failure on native Windows (regression from 2017-06-19).
18334         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
18336 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
18338         stdioext: Port to OpenVMS.
18339         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
18340         * lib/fpending.c (fpending): Remove non-working VMS specific code.
18341         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
18342         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
18343         * lib/fpurge.c (fpurge): Likewise.
18344         * lib/freadable.c (freadable): Likewise.
18345         * lib/freadahead.c (freadahead): Likewise.
18346         * lib/freading.c (freading): Likewise.
18347         * lib/freadptr.c (freadptr): Likewise.
18348         * lib/freadseek.c (freadseek): Likewise.
18349         * lib/fseeko.c (fseeko): Likewise.
18350         * lib/fseterr.c (fseterr): Likewise.
18351         * lib/fwritable.c (fwriteable): Likewise.
18352         * lib/fwriting.c (fwriting): Likewise.
18354 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
18356         glob: Declare variables at the very start of their scope.
18357         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
18358         its separate scope, so the functions will compile on Haiku.
18360 2017-07-01  Bruno Haible  <bruno@clisp.org>
18362         logbl: Work around a glibc bug on PowerPC64LE.
18363         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
18364         numbers.
18365         * doc/posix-functions/logbl.texi: Update.
18367 2017-06-29  Bruno Haible  <bruno@clisp.org>
18369         stat, fstat: Compile stat-w32.c only on platforms that need it.
18370         Suggested by Paul Eggert.
18371         * modules/stat (configure.ac): Request stat-w32.o only on native
18372         Windows.
18373         * modules/fstat (configure.ac): Likewise.
18375 2017-06-25  Bruno Haible  <bruno@clisp.org>
18377         stat: Improve last change.
18378         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
18380 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
18382         stat: port to xlc 12.01
18383         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
18384         12.01 complains "Compilation unit is empty."
18386 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18388         xalloc-oversized: port to icc
18389         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
18390         __builtin_mul_overflow if ICC is defined, as this results in
18391         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
18392         20170213.
18394 2017-06-19  Bruno Haible  <bruno@clisp.org>
18396         classpath: Avoid including config.h twice, as it produces warnings.
18397         Reported by John E. Malmberg <wb8tyw@gmail.com>.
18398         * lib/classpath.h: Conditionalize the include of config.h.
18400 2017-06-19  Bruno Haible  <bruno@clisp.org>
18401             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
18403         sched: Fix compilation failure on OpenVMS.
18404         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
18405         test whether <pthread.h> exists and defines struct sched_param.
18406         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
18408 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18410         diffseq: port to GCC 7 with --enable-gcc-warnings
18411         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
18412         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
18413         not complain about big_snake being defined but not used.
18415 2017-06-15  Bruno Haible  <bruno@clisp.org>
18417         gettext-h: Update theoretical condition for use of variable size arrays.
18418         Reported by Paul Eggert.
18419         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
18420         to include the theoretical condition for availability of variable size
18421         arrays, if we could trust the value of __STDC_VERSION__.
18423 2017-06-12  Bruno Haible  <bruno@clisp.org>
18425         Relicense some modules under LGPLv2+.
18426         Daiki Ueno's approval is in
18427         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
18428         * modules/uniwidth/base (License): Change to LGPLv2+.
18429         * modules/uniwidth/width (License): Likewise.
18431 2017-06-11  Bruno Haible  <bruno@clisp.org>
18433         localename: Fix test failure on DragonFly BSD.
18434         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
18435         like FreeBSD.
18437 2017-06-11  Bruno Haible  <bruno@clisp.org>
18439         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
18440         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
18441         * lib/float.in.h: Likewise.
18442         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
18444 2017-06-11  Bruno Haible  <bruno@clisp.org>
18446         gnulib-tool: Clean up after autotools.
18447         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
18448         useless directory left over by the Autotools.
18450 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18452         getopt-posix: port to glibc 2.25.90
18453         Problem reported by Daniel P. Berrange in:
18454         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
18455         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
18456         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
18457         #undef if __GETOPT_PREFIX is defined.
18459 2017-06-11  Bruno Haible  <bruno@clisp.org>
18461         strtod-obsolete: Fix license.
18462         * modules/strtod-obsolete (License): Change to LGPL.
18464 2017-06-10  Jim Meyering  <meyering@fb.com>
18466         maint: update to work with GCC7's -Werror=implicit-fallthrough=
18467         * lib/savewd.c (FALLTHROUGH): Define.
18468         (savewd_save, savewd_restore): Use this, rather than a comment,
18469         whenever one switch case falls through into the next.
18471 2017-06-08  Bruno Haible  <bruno@clisp.org>
18473         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
18474         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
18475         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
18476         case.
18478 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
18480         doc: remove robots, add prereqs
18481         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
18482         builds.  Simon's robot site does not seem to be up, so remove
18483         mentions of it for now.
18485 2017-06-08  Bruno Haible  <bruno@clisp.org>
18487         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
18488         * gnulib-tool (func_symlink_target): New function, extracted from
18489         func_symlink.
18490         (func_symlink, func_symlink_if_changed): Use it.
18492 2017-06-08  Bruno Haible  <bruno@clisp.org>
18494         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
18495         * gnulib-tool (func_ln_s): Determine cp_src correctly.
18497 2017-06-07  Bruno Haible  <bruno@clisp.org>
18499         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
18500         Reported by John E. Malmberg <wb8tyw@gmail.com> in
18501         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
18502         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
18503         override, pass 2 arguments to getcwd, not 3.
18505 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
18507         same-inode: port better to VMS 8.2 and later
18508         Problem reported by John E. Malmberg in:
18509         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
18510         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
18511         Use the usual POSIX definition.
18512         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
18514 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
18516         error: fix POSIX violation for va_end
18517         Problem reported by Bruno Haible in:
18518         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
18519         * lib/error.c (error_tail): Do not call va_end here.
18520         (error, error_at_line): Call it here instead.
18522 2017-05-28  Bruno Haible  <bruno@clisp.org>
18524         c-strtod: Make it usable in C++ mode.
18525         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
18527 2017-05-25  Jim Meyering  <meyering@fb.com>
18529         quotearg: fix compilation failure due to FALLTHROUGH misuse
18530         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
18531         macro back to /* fall through */ comment.  The macro can apply only
18532         to a following case statement.  Reported by Assaf Gordon.
18534 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
18536         intprops: port to recent icc
18537         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
18538         but does not support __builtin_add_overflow etc.
18539         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
18540         Define to 0.
18542 2017-05-23  Karl Berry  <karl@freefriends.org>
18544         * config/srclist.txt (iconv.m4): sync broken, comment out
18545         until (hopefully) the next gettext release.
18547 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
18549         Remove repeated words in comments.
18551 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
18553         fallthrough: reinstate a FALLTHROUGH instance in quotearg
18554         quotearg.c: Reinstate this instance which is significant
18555         when the if branch is not taken.
18557 2017-05-21  Bruno Haible  <bruno@clisp.org>
18559         gnulib-tool: Add options to create hard links.
18560         * gnulib-tool (func_usage): Document options --hardlink,
18561         --local-hardlink, --more-hardlinks.
18562         (func_symlink): Renamed from func_ln.
18563         (func_symlink_if_changed): Renamed from func_ln_if_changed.
18564         (func_hardlink): New function.
18565         (copymode, lcopymode): New variables.
18566         (symbolic, lsymbolic): Remove variables.
18567         (Options): Implement options --hardlink, --local-hardlink,
18568         --more-hardlinks.
18569         (func_should_link): Renamed from func_should_symlink. Set copyaction.
18570         (func_add_file, func_update_file): Update invocation of
18571         func_should_link. Invoke func_hardlink when appropriate.
18572         (func_import): Update comments.
18573         (func_create_testdir): Update invocation of func_should_link. Invoke
18574         func_hardlink when appropriate.
18575         Finally, invoke 'git update-index --refresh' to mitigate the effects of
18576         the hard links on git.
18578 2017-05-20  Bruno Haible  <bruno@clisp.org>
18580         argp: Simplify bit manipulation.
18581         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
18582         on a signed integer type.
18584 2017-05-20  Bruno Haible  <bruno@clisp.org>
18586         Avoid wrong configure results with gcc -fsanitize=address.
18587         This completes the work done on 2016-02-06 on this topic.
18588         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
18589         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18590         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18591         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18592         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
18593         returning.
18594         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
18595         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
18596         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18597         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18598         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
18599         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
18600         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
18601         free allocated memory before returning.
18602         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18603         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
18604         objects before returning.
18605         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
18606         returning.
18608 2017-05-20  Bruno Haible  <bruno@clisp.org>
18610         gnulib-tool: Don't create hard links between gnulib and its testdirs.
18611         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
18613 2017-05-20  Bruno Haible  <bruno@clisp.org>
18615         argp, tsearch tests: Fix file list.
18616         * modules/argp-tests (Files): Add tests/macros.h.
18617         * modules/tsearch-tests (Files): Likewise.
18619 2017-05-20  Bruno Haible  <bruno@clisp.org>
18621         getopt-posix tests: Remove redundant include.
18622         * tests/test-getopt.h: Don't include "macros.h". It's already included
18623         by tests/test-getopt-main.h.
18625 2017-05-19  Jim Meyering  <meyering@fb.com>
18627         dfa: two small simplifications
18628         * lib/dfa.c (build_state): Avoid repeating longer expressions.
18630 2017-05-18  Jim Meyering  <meyering@fb.com>
18632         fallthrough: update for GCC 7/8
18633         * lib/quotearg.c (FALLTHROUGH): New macro.
18634         Use it whenever one switch case falls through into the next,
18635         replacing "/* Fall through */" comments.  This exposed one
18636         instance of an unwarranted "fall through" comment: unwarranted
18637         because it preceded a "goto" label not a case statement.
18638         * lib/freopen-safer.c (freopen_safer): Likewise.
18639         * lib/fts.c (leaf_optimization_applies): Likewise.
18640         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
18641         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
18642         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
18643         tests/macros.h for the definition.
18644         * tests/test-argp.c (group1_parser): Likewise.
18645         * tests/test-getopt.h (getopt_loop): Likewise.
18647 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18649         argp: fix shift bug
18650         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
18651         behavior on shift overflow, caught by gcc -fsanitize=undefined.
18653         argp: fix pointer-subtraction bug
18654         * lib/argp-help.c (hol_append): Don’t subtract pointers to
18655         different arrays, as this can run afoul of -fcheck-pointer-bounds.
18656         See the thread containing Bruno Haible’s report in:
18657         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
18659 2017-05-19  Bruno Haible  <bruno@clisp.org>
18661         printf-posix tests: Avoid test failure with "gcc --coverage".
18662         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
18663         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
18664         than 5000000.
18665         * tests/test-fprintf-posix2.c (main): Likewise.
18667 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18669         closeout: don’t close stderr when sanitizing
18670         * NEWS: Document this.
18671         * lib/closeout.c (__has_feature): New macro, if not already defined.
18672         (SANITIZE_ADDRESS): New constant.
18673         (close_stdout): Don’t close stderr if sanitizing addresses.
18675 2017-05-19  Bruno Haible  <bruno@clisp.org>
18677         get-rusage-data tests: Avoid failure on Linux/glibc.
18678         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
18679         on glibc systems.
18681 2017-05-18  Bruno Haible  <bruno@clisp.org>
18683         localename: Include necessary header files on Cygwin.
18684         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
18685         where NL_LOCALE_NAME is defined.
18687 2017-05-18  Bruno Haible  <bruno@clisp.org>
18689         gettext: Update macros from gettext git.
18690         * m4/intldir.m4: Require Autoconf >= 2.60.
18691         * m4/progtest.m4: Fix typos in copyright notice.
18693 2017-05-18  Bruno Haible  <bruno@clisp.org>
18695         copy-file tests: Fix link error (regression from 2017-05-01).
18696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18697         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
18698         $(LIB_CLOCK_GETTIME).
18700 2017-05-18  Bruno Haible  <bruno@clisp.org>
18702         unicase/special-casing: Fix incompatibility with gperf-3.0.4
18703         (regression from 2017-02-13).
18704         * lib/unicase/special-casing.in.h: Renamed from
18705         lib/unicase/special-casing.h.
18706         * modules/unicase/special-casing (Files): Add
18707         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
18708         (Makefile.am): Add rule for generating unicase/special-casing.h.
18709         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
18710         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
18711         not "special-casing.h".
18712         * lib/unicase/u*.c: Likewise.
18714 2017-05-17  Bruno Haible  <bruno@clisp.org>
18716         README: Don't ask people to read a TeXinfo file.
18717         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
18718         * README: Tell people how to read the HTML formatted manual.
18720 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
18722         parse-datetime: Fix memleak
18723         * lib/parse-datetime.y (parse_datetime2): Cleanup on
18724         localtime_rz() failure.
18726 2017-05-16  Bruno Haible  <bruno@clisp.org>
18728         javacomp: Fix handle leak.
18729         Found by Coverity.
18730         * lib/javacomp.c (get_classfile_version): Close fd before returning.
18732 2017-05-16  Bruno Haible  <bruno@clisp.org>
18734         relocate: Make it easier to reclaim allocated memory.
18735         * lib/relocatable.h (relocate2): New declaration/macro.
18736         * lib/relocatable.c (relocate2): New function.
18737         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
18738         relocate2 function.
18739         * lib/localcharset.c (relocate2): Define fallback.
18740         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
18741         allocated memory.
18742         * lib/javaversion.c (relocate2): Define fallback.
18743         (javaexec_version): Invoke relocate2 instead of relocate. Free the
18744         allocated memory.
18746 2017-05-16  Bruno Haible  <bruno@clisp.org>
18748         relocate: Simplify EMX specific code.
18749         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
18750         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
18752 2017-05-16  Bruno Haible  <bruno@clisp.org>
18754         sigpipe tests: Fix file list.
18755         * modules/sigpipe-tests (Files): Add tests/macros.h.
18757 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18759         manywarnings: update for GCC 7
18760         * build-aux/gcc-warning.spec:
18761         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18762         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
18763         requires a non-comment fallthrough attribute.  This is a bit
18764         cleaner than the comment versions.
18765         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
18766         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
18767         Use it whenever one switch case falls through into the next.
18768         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
18769         Use FALLTHROUGH macro.
18771 2017-05-15  Bruno Haible  <bruno@clisp.org>
18773         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
18774         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
18775         @ALLOCA@, not @LTALLOCA@.
18777 2017-05-15  Bruno Haible  <bruno@clisp.org>
18779         sys_select: Avoid "was expanded before it was required" warning.
18780         * modules/sys_select (configure.ac): Require, not invoke,
18781         gl_HEADER_SYS_SELECT.
18783 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
18785         gnulib-tool: improve GNU Make debugging
18786         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
18787         Report autoconf diagnostics when it fails, in the output makefile.
18789 2017-05-14  Bruno Haible  <bruno@clisp.org>
18791         stat-time tests: Improve comment.
18792         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
18794 2017-05-14  Bruno Haible  <bruno@clisp.org>
18796         same-inode: Adapt for windows-stat-inodes.
18797         * lib/same-inode.h: Include <sys/types.h>.
18798         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
18799         * modules/same-inode (Depends-on): Add sys_types.
18801 2017-05-14  Bruno Haible  <bruno@clisp.org>
18803         windows-stat-inodes: New module.
18804         * m4/windows-stat-inodes.m4: New file.
18805         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
18806         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
18807         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
18808         (_GL_WINDOWS_STAT_INODES): New macro.
18809         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
18810         (GetFileInformationByHandleExFunc): New variable.
18811         (initialize): Initialize it.
18812         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
18813         st_ino appropriately.
18814         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
18815         a fallback, because it does not provide st_dev and st_ino values.
18816         * modules/fstat (Depends-on): Add 'verify'.
18817         * modules/windows-stat-inodes: New file.
18818         * doc/windows-stat-inodes.texi: New file.
18819         * doc/gnulib.texi: Include it.
18820         * doc/posix-headers/sys_stat.texi: Mention the new module.
18822 2017-05-14  Bruno Haible  <bruno@clisp.org>
18824         stat-time tests: Workaround for native Windows.
18825         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
18826         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
18827         New variables.
18828         (initialize_filenames): New function.
18829         (main): Invoke it.
18830         (cleanup, prepare_test): Update.
18832 2017-05-14  Bruno Haible  <bruno@clisp.org>
18834         stat-time: Adapt for windows-stat-timespec.
18835         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
18836         entire st_ctim field.
18838 2017-05-13  Jim Meyering  <meyering@fb.com>
18840         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
18841         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
18842         file that uses the assume macro, claiming that verify.h is unused.
18844 2017-05-13  Bruno Haible  <bruno@clisp.org>
18846         Use symbolic values for _WIN32_WINNT.
18847         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
18848         * lib/sethostname.c (_WIN32_WINNT): Likewise.
18850 2017-05-13  Bruno Haible  <bruno@clisp.org>
18852         year2038: New module.
18853         * m4/year2038.m4: New file.
18854         * modules/year2038: New file.
18855         * doc/year2038.texi: New file.
18856         * doc/gnulib.texi: Include it.
18858 2017-05-13  Bruno Haible  <bruno@clisp.org>
18860         largefile: Simplify.
18861         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
18862         of _GL_WINDOWS_64_BIT_ST_SIZE.
18864 2017-05-13  Bruno Haible  <bruno@clisp.org>
18866         largefile: Improve and document.
18867         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
18868         the mingw headers already define 'stat' appropriately.
18869         * modules/largefile (Description): Clarify.
18870         * doc/largefile.texi: New file.
18871         * doc/gnulib.texi: Include it.
18872         * doc/posix-headers/sys_types.texi: Update.
18874 2017-05-13  Bruno Haible  <bruno@clisp.org>
18876         truncate: New module.
18877         * lib/unistd.in.h (truncate): New declaration.
18878         * lib/truncate.c: New file.
18879         * m4/truncate.m4: New file.
18880         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
18881         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
18882         REPLACE_TRUNCATE.
18883         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
18884         HAVE_TRUNCATE, REPLACE_TRUNCATE.
18885         * modules/truncate: New file.
18886         * tests/test-unistd-c++.cc (truncate): Test signature.
18887         * doc/posix-functions/truncate.texi: Mention the new module.
18889         * tests/test-truncate.c: New file.
18890         * modules/truncate-tests: New file.
18892 2017-05-13  Bruno Haible  <bruno@clisp.org>
18894         windows-stat-timespec: New module.
18895         * modules/windows-stat-timespec: New file.
18896         * m4/windows-stat-timespec.m4: New file.
18897         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
18898         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
18899         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
18900         fields st_atim, st_mtim, st_ctim.
18901         (st_atime, st_mtime, st_ctime): Define as macros.
18902         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
18903         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
18904         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
18905         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
18906         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
18907         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
18908         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
18909         FILETIME to 'struct timespec', not 'time_t'.
18910         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
18911         FILETIME to 'struct timespec', not 'time_t'.
18912         * lib/stat-time.h (STAT_TIMESPEC): Define also if
18913         _GL_WINDOWS_STAT_TIMESPEC.
18914         * doc/windows-stat-timespec.texi: New file.
18915         * doc/gnulib.texi: Include it.
18917 2017-05-13  Bruno Haible  <bruno@clisp.org>
18919         windows-stat-override: New module.
18920         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
18921         definition. Define GNULIB_defined_struct_stat.
18922         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
18923         link error if this symbol is used and the corresponding module is not
18924         in use.
18925         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
18926         GNULIB_OVERRIDES_STRUCT_STAT.
18927         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
18928         GNULIB_OVERRIDES_STRUCT_STAT.
18929         * modules/sys_stat (Makefile.am): Substitute
18930         GNULIB_OVERRIDES_STRUCT_STAT.
18931         * modules/windows-stat-override: New file.
18933 2017-05-13  Bruno Haible  <bruno@clisp.org>
18935         fstat: Fix module dependency conditions.
18936         * modules/fstat (Depends-on): Fix typo.
18938 2017-05-13  Bruno Haible  <bruno@clisp.org>
18940         stat, fstat: Complete removal of old native Windows code.
18941         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
18942         * lib/fstat.c: Likewise.
18943         * lib/stat-w32.c: Likewise.
18945 2017-05-13  Bruno Haible  <bruno@clisp.org>
18947         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
18948         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
18950 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
18952         getopt-posix: port to mingw
18953         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
18954         Problem reported by Daniel P. Berrage in:
18955         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
18957 2017-05-11  Bruno Haible  <bruno@clisp.org>
18959         gettimeofday: Increase precision on mingw.
18960         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
18961         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
18962         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
18963         GetSystemTimePreciseAsFileTime based implementation always.
18964         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
18965         mingw.
18967 2017-05-11  Bruno Haible  <bruno@clisp.org>
18969         poll: Fix confusion between SOCKETs and FDs on native Windows.
18970         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
18971         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
18973 2017-05-11  Bruno Haible  <bruno@clisp.org>
18975         doc: Clarify doc about socket functions on native Windows.
18976         This reworks doc that was added on 2008-09-29.
18977         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
18978         clearer wording.
18979         * doc/posix-functions/accept.texi: Use clearer wording.
18980         * doc/posix-functions/bind.texi: Likewise.
18981         * doc/posix-functions/connect.texi: Likewise.
18982         * doc/posix-functions/getpeername.texi: Likewise.
18983         * doc/posix-functions/getsockname.texi: Likewise.
18984         * doc/posix-functions/getsockopt.texi: Likewise.
18985         * doc/posix-functions/ioctl.texi: Likewise.
18986         * doc/posix-functions/listen.texi: Likewise.
18987         * doc/posix-functions/recv.texi: Likewise.
18988         * doc/posix-functions/recvfrom.texi: Likewise.
18989         * doc/posix-functions/send.texi: Likewise.
18990         * doc/posix-functions/sendto.texi: Likewise.
18991         * doc/posix-functions/setsockopt.texi: Likewise.
18992         * doc/posix-functions/shutdown.texi: Likewise.
18993         * doc/posix-functions/socket.texi: Likewise.
18995 2017-05-10  Bruno Haible  <bruno@clisp.org>
18997         poll: Fix link error on native Windows.
18998         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
19000 2017-05-10  Bruno Haible  <bruno@clisp.org>
19002         time: Fix missing initialization of HAVE_TIMEZONE_T.
19003         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
19004         here...
19005         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
19006         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
19007         gl_HEADER_SYS_TIME_H_DEFAULTS.
19008         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
19009         (configure.ac): Remove useless quoting.
19011 2017-05-10  Bruno Haible  <bruno@clisp.org>
19013         Implement a way to opt out from MSVC support, part 2.
19014         * modules/msvc-inval (Include): Document recommended idiom.
19015         * modules/msvc-nothrow (Include): Likewise.
19017         Implement a way to opt out from MSVC support.
19018         This is useful for Emacs.
19019         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
19020         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
19021         * lib/error.c: Likewise.
19022         * lib/fcntl.c: Likewise.
19023         * lib/flock.c: Likewise.
19024         * lib/fstat.c: Likewise.
19025         * lib/fsync.c: Likewise.
19026         * lib/ioctl.c: Likewise.
19027         * lib/isapipe.c: Likewise.
19028         * lib/lseek.c: Likewise.
19029         * lib/nonblocking.c: Likewise.
19030         * lib/poll.c: Likewise.
19031         * lib/select.c: Likewise.
19032         * lib/sockets.h: Likewise.
19033         * lib/sockets.c: Likewise.
19034         * lib/stdio-read.c: Likewise.
19035         * lib/stdio-write.c: Likewise.
19036         * lib/utimens.c: Likewise.
19037         * lib/w32sock.h: Likewise.
19038         * lib/w32spawn.h: Likewise.
19039         * tests/test-cloexec.c: Likewise.
19040         * tests/test-dup-safer.c: Likewise.
19041         * tests/test-dup2.c: Likewise.
19042         * tests/test-dup3.c: Likewise.
19043         * tests/test-fcntl.c: Likewise.
19044         * tests/test-pipe.c: Likewise.
19045         * tests/test-pipe2.c: Likewise.
19046         * lib/ftruncate.c: Likewise.
19047         (chsize_nothrow): Renamed from chsize.
19048         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
19049         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19050         * lib/close.c: Likewise.
19051         * lib/dup.c: Likewise.
19052         * lib/fclose.c: Likewise.
19053         * lib/raise.c: Likewise.
19054         * tests/test-fgetc.c: Likewise.
19055         * tests/test-fputc.c: Likewise.
19056         * tests/test-fread.c: Likewise.
19057         * tests/test-fwrite.c: Likewise.
19058         * lib/getdtablesize.c: Likewise.
19059         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
19060         * lib/isatty.c: Don't include msvc-inval.h if
19061         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19062         Include <io.h> as an alternative to msvc-nothrow.h.
19063         * lib/read.c: Likewise.
19064         * lib/write.c: Likewise.
19065         * lib/dup2.c: Likewise.
19066         (dup2_nothrow): New function.
19067         (ms_windows_dup2): Use it.
19068         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
19069         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
19070         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19071         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
19072         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
19073         * m4/read.m4 (gl_FUNC_READ): Likewise.
19074         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
19075         * doc/windows-without-msvc.texi: New file.
19076         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
19077         section.
19079 2017-05-10  Bruno Haible  <bruno@clisp.org>
19081         wait-process: Adjust native Windows support.
19082         * lib/wait-process.c: Use the usual condition for recognizing a native
19083         Windows platform.
19085 2017-05-10  Bruno Haible  <bruno@clisp.org>
19087         doc: New chapter "Native Windows Support".
19088         * doc/gnulib.texi (Native Windows Support): New chapter.
19089         * doc/windows-libtool.texi: Small wording changes.
19090         * doc/windows-sockets.texi: Small wording and formatting changes.
19092 2017-05-10  Bruno Haible  <bruno@clisp.org>
19094         doc: Move section "Library version handling".
19095         * doc/gnulib.texi: Move section "Library version handling"
19096         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
19098 2017-05-10  Bruno Haible  <bruno@clisp.org>
19100         doc: Move section "Running self-tests under valgrind".
19101         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
19102         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
19104 2017-05-10  Bruno Haible  <bruno@clisp.org>
19106         doc: New chapter "Build Infrastructure Modules".
19107         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
19109 2017-05-10  Bruno Haible  <bruno@clisp.org>
19111         Prepare for reordering sections in the manual.
19112         * doc/gnulib.texi: Move several sections to separate files. Include
19113         these files.
19114         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
19115         * doc/obsolete.texi: Likewise.
19116         * doc/extra-tests.texi: Likewise.
19117         * doc/transversal.texi: Likewise.
19118         * doc/namespace.texi: Likewise.
19119         * doc/check-version.texi: Likewise.
19120         * doc/windows-sockets.texi: Likewise.
19121         * doc/windows-libtool.texi: Likewise.
19122         * doc/licenses-texi.texi: Likewise.
19123         * doc/build-automation.texi: Likewise.
19124         * doc/c-locale.texi: Likewise.
19126 2017-05-10  Bruno Haible  <bruno@clisp.org>
19128         Fix instructions how to update manual on www.gnu.org.
19129         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
19131 2017-05-09  Bruno Haible  <bruno@clisp.org>
19133         tzset: Expand comment about TZ problem on native Windows.
19134         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
19135         Paul Eggert.
19136         * lib/ctime.c (rpl_ctime): Likewise.
19137         * lib/localtime.c (rpl_localtime): Likewise.
19138         * lib/mktime.c (mktime): Likewise.
19139         * lib/strftime-fixes.c (rpl_strftime): Likewise.
19140         * lib/wcsftime.c (rpl_wcsftime): Likewise.
19142 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19144         intprops: don’t depend on ‘verify’
19145         Problem reported by Ævar Arnfjörð Bjarmason in:
19146         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
19147         * lib/intprops.h: Do not include verify.h, and move compile-time
19148         checks from here ...
19149         * tests/test-intprops.c (main): ... to here, if they’re not here
19150         already.  Check widths of other standard integer types.
19151         * modules/intprops (Depends-on): Remove ‘verify’.
19153 2017-05-07  Bruno Haible  <bruno@clisp.org>
19155         utimens: On native Windows, support 100ns resolution also if fd < 0.
19156         * lib/utime.in.h: Include <time.h>.
19157         (_gl_utimens_windows): New declaration.
19158         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
19159         (utime): Invoke it.
19160         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
19161         instead of utime.
19162         * modules/utime (Depends-on): Add 'time'.
19164 2017-05-07  Bruno Haible  <bruno@clisp.org>
19166         utimens: Improve error code on native Windows.
19167         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
19168         error code EACCES, not EINVAL.
19170 2017-05-07  Bruno Haible  <bruno@clisp.org>
19172         utime: Handle more Windows error codes.
19173         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
19174         Based on explanations by Billy O'Neal.
19176 2017-05-05  Bruno Haible  <bruno@clisp.org>
19178         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
19179         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
19180         union.
19181         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
19182         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
19183         value of cipher->IV.
19185 2017-05-05  Bruno Haible  <bruno@clisp.org>
19187         wctype-h-c++-tests: Update.
19188         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
19190 2017-05-05  Bruno Haible  <bruno@clisp.org>
19192         wchar-c++-tests: Update.
19193         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
19195 2017-05-05  Bruno Haible  <bruno@clisp.org>
19197         utime-h-c++-tests: New module.
19198         * tests/test-utime-h-c++.cc: New file.
19199         (utime): Declare, missing since 2017-04-30.
19200         * modules/utime-h-c++-tests: New file.
19202 2017-05-05  Bruno Haible  <bruno@clisp.org>
19204         unistd-c++-tests: Update.
19205         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
19206         (read): Declare, missing since 2011-04-15.
19207         (sethostname): Declare, missing since 2011-12-03.
19209 2017-05-05  Bruno Haible  <bruno@clisp.org>
19211         time-c++-tests: Update.
19212         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
19213         (localtime, gmtime): Declare, missing since 2017-04-30.
19214         (ctime): Declare, missing since 2017-04-30.
19215         (strftime): Declare, missing since 2017-04-30.
19216         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
19217         2015-07-24.
19219 2017-05-05  Bruno Haible  <bruno@clisp.org>
19221         sys_resource-c++-tests: New module.
19222         * tests/test-sys_resource-c++.cc: New file.
19223         (getrusage): Declare, missing since 2012-04-13.
19224         * modules/sys_resource-c++-tests: New file.
19226 2017-05-05  Bruno Haible  <bruno@clisp.org>
19228         strings-c++-tests: New module.
19229         * tests/test-strings-c++.cc: New file.
19230         (ffs): Declare, missing since 2011-07-12.
19231         * modules/strings-c++-tests: New file.
19233 2017-05-05  Bruno Haible  <bruno@clisp.org>
19235         string-c++-tests: Update.
19236         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
19237         (ffsll): Declare, missing since 2011-07-15.
19239 2017-05-05  Bruno Haible  <bruno@clisp.org>
19241         stdlib-c++-tests: Update.
19242         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
19243         2011-10-18.
19244         (ptsname_r): Declare, missing since 2011-11-07.
19245         (qsort_r): Declare, missing since 2014-08-29.
19246         (random, srandom, initstate, setstate): Declare, missing since
19247         2012-01-14.
19248         (secure_getenv): Declare, missing since 2013-02-05.
19250 2017-05-05  Bruno Haible  <bruno@clisp.org>
19252         stdio-c++-tests: Update.
19253         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
19255 2017-05-05  Bruno Haible  <bruno@clisp.org>
19257         signal-h-c++-tests: Update.
19258         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
19260 2017-05-05  Bruno Haible  <bruno@clisp.org>
19262         math-c++-tests: Update.
19263         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
19264         (fma): Declare, missing since 2011-10-17.
19265         (fmal): Declare, missing since 2011-10-17.
19267 2017-05-05  Bruno Haible  <bruno@clisp.org>
19269         locale-c++-tests: Update.
19270         * tests/test-locale-c++.cc (localeconv): Declare, missing since
19271         2012-03-25.
19273 2017-05-05  Bruno Haible  <bruno@clisp.org>
19275         inttypes-c++-tests: New module.
19276         * tests/test-inttypes-c++.cc: New file.
19277         (strtoimax): Declare, missing since 2012-01-05.
19278         (strtoumax): Declare, missing since 2012-01-05.
19279         * modules/inttypes-c++-tests: New file.
19281 2017-05-05  Bruno Haible  <bruno@clisp.org>
19283         dirent-c++-tests: Update.
19284         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
19285         (rewinddir): Declare, missing since 2011-09-13.
19286         (dirfd): Declare, missing since 2010-03-08.
19288 2017-05-04  Bruno Haible  <bruno@clisp.org>
19290         argp: Fix mistake in 2017-04-23 commit.
19291         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
19292         assume that strerror_r returns 'int', not 'char *'.
19294 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
19296         argp: Fix typo.
19297         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
19299 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
19301         utimens: port to Emacs + MS-Windows
19302         Skip the new MS-Windows-specific code if Emacs.
19303         * lib/utimens.c [EMACS_CONFIGUATION]:
19304         Avoid new MS-Windows-specific code.
19305         (USE_SETFILETIME): New macro.
19306         (fdutimens): Use it.
19308 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19310         tzset: update doc for TZ problems on MS-Windows
19311         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
19312         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
19313         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
19314         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
19315         * doc/posix-functions/wcsftime.texi:
19316         Mention some issues with TZ under MS-Windows.
19318 2017-05-01  Bruno Haible  <bruno@clisp.org>
19320         copy-file: Fix build error on mingw.
19321         * modules/copy-file (Depends-on): Add 'close'.
19323 2017-05-01  Bruno Haible  <bruno@clisp.org>
19325         tzset: Work around TZ problem on native Windows.
19326         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
19327         Windows, set REPLACE_TZSET to 1.
19328         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
19329         invoke '_tzset' instead of 'tzset'.
19330         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
19332         * modules/time_rz (Depends-on): Add tzset.
19333         * lib/time_rz.c (tzset): Remove fallback definition.
19334         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
19336 2017-05-01  Bruno Haible  <bruno@clisp.org>
19338         mktime: Fix dependencies.
19339         * modules/mktime (Depends-on): Add 'time'.
19341 2017-05-01  Bruno Haible  <bruno@clisp.org>
19343         New module 'localtime-buffer', split off from module 'gettimeofday'.
19344         * lib/localtime-buffer.h: New file.
19345         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
19346         * lib/time.in.h (tzset): New declaration.
19347         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
19348         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
19349         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
19350         moved to lib/localtime-buffer.c or lib/tzset.c.
19351         * m4/localtime-buffer.m4: New file.
19352         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
19353         HAVE_TZSET, REPLACE_TZSET.
19354         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
19355         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
19356         gl_LOCALTIME_BUFFER_NEEDED.
19357         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
19358         since 2007-01-18.
19359         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
19360         tzset.
19361         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
19362         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
19363         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
19364         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
19365         * modules/localtime-buffer: New file.
19366         * modules/time (Depends-on): Remove 'gettimeofday'.
19367         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
19368         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
19369         * modules/tzset (Description): Enable hyperlink to POSIX spec.
19370         (Files): Add lib/tzset.c.
19371         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
19372         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
19373         gl_TIME_MODULE_INDICATOR.
19374         * modules/gettimeofday (Depends-on): Add localtime-buffer.
19376 2017-05-01  Bruno Haible  <bruno@clisp.org>
19378         copy-file: Preserve sub-second time stamps.
19379         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
19380         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
19381         transport the time stamps from the original file to the destination
19382         file.
19383         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
19384         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
19385         utime-h.
19387 2017-05-01  Bruno Haible  <bruno@clisp.org>
19389         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
19390         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
19391         also on MSVC.
19392         Reported by Eli Zaretskii <eliz@gnu.org>.
19394 2017-05-01  Bruno Haible  <bruno@clisp.org>
19396         wchar: Fix compilation error with the original mingw.org mingw.
19397         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
19398         <stddef.h> instead.
19399         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
19400         gl_WCTYPE_H.
19401         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
19402         gl_TYPE_WINT_T_PREREQ instead.
19403         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
19404         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
19405         Reported by Eli Zaretskii <eliz@gnu.org>.
19407 2017-04-30  Bruno Haible  <bruno@clisp.org>
19409         utimecmp: Add support for native Windows.
19410         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
19412 2017-04-30  Bruno Haible  <bruno@clisp.org>
19414         utimens: Add support for native Windows.
19415         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
19416         (fdutimens): Provide a native Windows implementation, like utime.c with
19417         added tv_nsec support.
19418         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
19419         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
19421 2017-04-30  Bruno Haible  <bruno@clisp.org>
19423         wcsftime: New module.
19424         * lib/wchar.in.h (wcsftime): New declaration.
19425         * lib/wcsftime.c: New file.
19426         * m4/wcsftime.m4: New file.
19427         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
19428         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
19429         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19430         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
19431         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19432         * modules/wcsftime: New file.
19433         * doc/posix-functions/wcsftime.texi: Mention the new module.
19435 2017-04-30  Bruno Haible  <bruno@clisp.org>
19437         strftime-fixes: New module.
19438         * lib/time.in.h (strftime): New declaration.
19439         * lib/strftime-fixes.c: New file.
19440         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
19441         (gl_FUNC_STRFTIME): Remove macro.
19442         * m4/strftime-fixes.m4: New file.
19443         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
19444         REPLACE_STRFTIME.
19445         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
19446         REPLACE_STRFTIME.
19447         * modules/strftime-fixes: New file.
19448         * doc/posix-functions/strftime.texi: Mention the new module.
19450 2017-04-30  Bruno Haible  <bruno@clisp.org>
19452         mktime: Work around TZ problem on native Windows.
19453         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
19454         from the native Windows workaround.
19455         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
19456         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
19457         'guessing no'.
19458         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
19459         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
19460         NEED_MKTIME_WINDOWS.
19461         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
19462         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
19463         NEED_MKTIME_INTERNAL.
19464         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
19465         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
19466         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
19467         not REPLACE_MKTIME.
19468         * doc/posix-functions/mktime.texi: Mention the native Windows
19469         workaround.
19471 2017-04-30  Bruno Haible  <bruno@clisp.org>
19473         localtime: New module.
19474         * lib/time.in.h (localtime): Declare also if requested by module
19475         'localtime'.
19476         * lib/localtime.c: New file.
19477         * m4/localtime.m4: New file.
19478         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
19479         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
19480         * modules/localtime: New file.
19481         * doc/posix-functions/localtime.texi: Mention the new module.
19483 2017-04-30  Bruno Haible  <bruno@clisp.org>
19485         ctime: New module.
19486         * lib/time.in.h (ctime): New declaration.
19487         * lib/ctime.c: New file.
19488         * m4/ctime.m4: New file.
19489         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
19490         REPLACE_CTIME.
19491         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
19492         * modules/ctime: New file.
19493         * doc/posix-functions/ctime.texi: Mention the new module.
19495 2017-04-30  Bruno Haible  <bruno@clisp.org>
19497         gettimeofday: Provide higher resolution on native Windows.
19498         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
19499         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
19500         (initialize): Initialize it.
19501         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
19502         'struct timeval'. Don't use _ftime().
19503         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
19504         <sys/timeb.h> and _ftime.
19506 2017-04-30  Bruno Haible  <bruno@clisp.org>
19508         Document the problem with the Cygwin environment variable TZ.
19509         * doc/posix-functions/tzset.texi: Add note about TZ.
19510         * doc/posix-functions/ctime.texi: Likewise.
19511         * doc/posix-functions/localtime.texi: Likewise.
19512         * doc/posix-functions/mktime.texi: Likewise.
19513         * doc/posix-functions/strftime.texi: Likewise.
19514         * doc/posix-functions/wcsftime.texi: Likewise.
19515         * doc/pastposix-functions/ftime.texi: Likewise.
19517 2017-04-30  Bruno Haible  <bruno@clisp.org>
19519         utime-tests: New module.
19520         * tests/test-utime.c: New file, based on tests/test-utimens.h.
19521         * tests/test-utimens-common.h: Include <sys/stat.h>.
19522         * modules/utime-tests: New file.
19524 2017-04-29  Bruno Haible  <bruno@clisp.org>
19526         utime: New module.
19527         * lib/utime.in.h: Add comment for snippets.
19528         (utime): New declaration.
19529         * lib/utime.c: New file.
19530         * m4/utime.m4: New file.
19531         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
19532         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
19533         REPLACE_UTIME.
19534         * modules/utime-h (Depends-on): Add snippets.
19535         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
19536         Insert snippets.
19537         * modules/utime: New file.
19538         * doc/posix-functions/utime.texi: Mention the new module.
19540 2017-04-29  Bruno Haible  <bruno@clisp.org>
19542         utime-h: Modernize handling of 'struct utimbuf'.
19543         * lib/utime.in.h: Include next <utime.h> if it exists.
19544         (utimbuf): Define to _utimbuf on native Windows.
19545         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
19546         Set UTIME_H on native Windows.
19547         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
19548         * modules/utime-h (Depends-on): Add include_next.
19549         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
19550         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
19552         * lib/utimens.c (utimbuf): Remove fallback definition.
19553         * m4/utimens.m4 (gl_UTIMENS): Don't require
19554         gl_CHECK_TYPE_STRUCT_UTIMBUF.
19555         * m4/utimbuf.m4: Remove file.
19556         * modules/utimens (Files): Remove m4/utimbuf.m4.
19558 2017-04-29  Bruno Haible  <bruno@clisp.org>
19560         Make use of module 'utime-h'.
19561         * modules/copy-file (Depends-on): Add utime-h.
19562         * lib/copy-file.c: Assume that <utime.h> exists.
19563         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
19565         * modules/utimens (Depends-on): Add utime-h.
19566         * lib/utimens.c: Assume that <utime.h> exists.
19568 2017-04-29  Bruno Haible  <bruno@clisp.org>
19570         utime-h: New module.
19571         * m4/utime_h.m4: New file.
19572         * lib/utime.in.h: New file.
19573         * modules/utime-h: New file.
19574         * doc/posix-headers/utime.texi: Mention the new module.
19576         * tests/test-utime-h.c: New file.
19577         * modules/utime-h-tests: New file.
19579 2017-04-30  Bruno Haible  <bruno@clisp.org>
19581         Fix a few typos.
19582         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
19583         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
19584         * doc/posix-functions/fstat.texi: Fix a plural typo.
19585         * doc/posix-functions/stat.texi: Likewise.
19586         * m4/include_next.m4: Update comments.
19588 2017-04-29  Bruno Haible  <bruno@clisp.org>
19590         error: Fix mistake in 2017-04-23 commit.
19591         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
19592         assume that strerror_r returns 'int', not 'char *'.
19594 2017-04-29  Bruno Haible  <bruno@clisp.org>
19596         stat: Fix time_t values and other problems on native Windows platforms.
19597         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
19598         implementations of stat().
19599         * lib/stat.c: Include filename.h instead of dosname.h. Include
19600         malloca.h, stat-w32.h.
19601         (is_unc_root): New function.
19602         (rpl_stat): New implementation for native Windows. Remove
19603         REPLACE_FUNC_STAT_DIR code.
19604         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
19605         Don't define REPLACE_FUNC_STAT_DIR.
19606         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
19607         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
19608         (Depends-on): Remove dosname. Add filename, malloca.
19609         (configure.ac): Also compile lib/stat-w32.c.
19611 2017-04-29  Bruno Haible  <bruno@clisp.org>
19613         fstat: Fix time_t values on native Windows platforms.
19614         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
19615         * lib/stat-w32.h: New file.
19616         * lib/stat-w32.c: New file.
19617         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
19618         stat-w32.h instead.
19619         (fstat_nothrow): Remove function.
19620         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
19621         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
19622         always.
19623         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
19624         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
19625         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
19626         (configure.ac): Also compile lib/stat-w32.c.
19628 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19630         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
19631         Problem reported by Assaf Gordon and Gavin Smith in:
19632         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
19633         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
19634         #define this, too.
19636 2017-04-29  Bruno Haible  <bruno@clisp.org>
19638         strerror_r-posix: Fixes for MSVC 14.
19639         * lib/strerror_r.c: Include <stdarg.h>.
19640         (strerror_r): Provide error messages for errno values 100...140.
19641         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
19643 2017-04-28  Bruno Haible  <bruno@clisp.org>
19645         noreturn: New module.
19646         * lib/noreturn.h: New file.
19647         * modules/noreturn: New file.
19648         * tests/test-noreturn.c: New file.
19649         * modules/noreturn-tests: New file.
19650         * tests/test-noreturn-c++.cc: New file.
19651         * modules/noreturn-c++-tests: New file.
19653 2017-04-27  Bruno Haible  <bruno@clisp.org>
19655         wctype-h: Fix compilation error with the original mingw.org mingw.
19656         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
19657         HAVE_CRTDEFS_H.
19658         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
19659         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
19660         <stddef.h> instead.
19661         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
19663 2017-04-26  Pádraig Brady  <P@draigBrady.com>
19665         nap.h: Fix compilation on non windows platforms
19666         * tests/nap.h: Move misplaced endif.
19668 2017-04-26  Pádraig Brady  <P@draigBrady.com>
19669         and Paul Eggert  <eggert@cs.ucla.edu>
19671         time_rz: fix heap buffer overflow vulnerability
19672         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
19673         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
19674         whether there is enough buffer space available, thus avoiding
19675         the problematic promotion of signed to unsigned causing an invalid
19676         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
19677         the start of the buffer.
19678         * tests/test-parse-datetime.c (main): Add a test case written by
19679         Paul Eggert, which overwrites enough of the heap so that
19680         standard glibc will fail with "free(): invalid pointer"
19681         without the patch applied.
19683 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
19685         xalloc: add missing integer overflow check
19686         * lib/xalloc.h (x2nrealloc): Also check for multiplication
19687         overflow when P is null.
19689 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19691         parse-datetime: make it standalone
19692         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
19693         (_GL_ATTRIBUTE_FORMAT): New macro.
19694         These are needed to get './gnulib-tool --test parse-datetime' to work.
19696 2017-04-23  Bruno Haible  <bruno@clisp.org>
19698         nap.h: Port to native Windows.
19699         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
19700         use nap_fd instead. On native Windows, close and reopen nap_fd.
19701         (nap_works): Don't compare the ctimes, because on native Windows, these
19702         are the creation times.
19703         (nap): Update.
19705 2017-04-23  Bruno Haible  <bruno@clisp.org>
19707         nap.h: Fix logic.
19708         * tests/nap.h (nap): Avoid signed integer overflow in loop.
19710 2017-04-23  Bruno Haible  <bruno@clisp.org>
19712         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
19713         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
19714         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
19715         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
19716         * lib/argp-help.c (__argp_failure): Likewise.
19718 2017-04-23  Bruno Haible  <bruno@clisp.org>
19720         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
19721         * m4/strerror_r.m4: Revert changes since 2016-10-16.
19722         * lib/strerror_r.c: Likewise.
19724 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
19726         Target a C99 subset, not a C89 subset
19727         For many years Gnulib has targeted C89 and has resisted using C99
19728         features, as some Gnulib-using programs still wanted to target
19729         C89.  As this no longer seems to be the case, relax the porting
19730         requirements to allow some C99 features.  This is merely a change
19731         to the documentation, to give other Gnulib developers a chance to
19732         weigh in on the topic.
19733         * doc/extern-inline.texi (extern inline):
19734         * doc/gnulib-readme.texi (Portability guidelines):
19735         * doc/gnulib-tool.texi (Initial import):
19736         * doc/gnulib.texi (Header files):
19737         Modernize to talk about C99 and C11 instead of C89 and C99.
19738         * doc/gnulib-readme.texi (Portability guidelines):
19739         Now a section, not merely a subsection, so that it
19740         can be split up.  Modernize a bit.
19741         (C language versions, C99 features assumed)
19742         (C99 features avoided):
19743         New sections.
19745 2017-04-23  Bruno Haible  <bruno@clisp.org>
19747         doc: New section "Modules that modify the way other modules work".
19748         * doc/gnulib.texi (Modules that modify the way other modules work): New
19749         section.
19751 2017-04-23  Bruno Haible  <bruno@clisp.org>
19753         stat-time: Update comments.
19754         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
19755         * tests/test-utimens-common.h: Add reference regarding st_ctime on
19756         Windows.
19758 2017-04-01  Bruno Haible  <bruno@clisp.org>
19760         glob: Fix more memory leaks.
19761         * lib/glob.c (glob): Free allocated memory before returning.
19762         Reported by Coverity via Tim Rühsen.
19764 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19766         poll: improve fast check for out-of-range NFD
19767         * lib/poll.c: Do not include intprops.h.
19768         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
19769         * modules/poll (Depends-on): Remove intprops.
19771         ftoastr: cite a newer paper
19772         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
19773         instead of Loitsch 2010.
19775 2017-04-22  Bruno Haible  <bruno@clisp.org>
19777         poll: Enable argument check also in the Windows implementation.
19778         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
19779         Reported by Paul Eggert.
19781 2017-04-22  Bruno Haible  <bruno@clisp.org>
19783         getlogin_r: Work around bug in Mac OS X 10.12.
19784         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
19785         bug.
19786         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
19787         given size minus 1, call getlogin_r a second time, on a larger buffer.
19788         * modules/getlogin_r (Depends-on): Add malloca.
19789         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
19791 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19793         parse-datetime: fix %z and prefer signed int
19794         %z problem reported by Pádraig Brady in:
19795         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
19796         While fixing it, I decided to prefer signed ints to size_t, as
19797         they are less error-prone (e.g., ubsan catches overflow).
19798         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
19799         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
19800         counts, since signed integers make for better debugging.
19801         (date): Don’t assume %z works in printf formats.
19802         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
19803         sizes of buffers known to be small, e.g., because we’re using snprintf.
19804         (parse_datetime2): Simplify call to debug_mktime_not_ok.
19806 2017-04-22  Bruno Haible  <bruno@clisp.org>
19808         *printf: Work around rounding bug on Mac OS X.
19809         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
19810         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
19811         Mac OS X and FreeBSD.
19812         * doc/glibc-functions/*printf.texi: Likewise.
19814 2017-04-22  Bruno Haible  <bruno@clisp.org>
19816         vasnprintf tests: Avoid warnings.
19817         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
19818         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
19819         test.
19821 2017-04-22  Bruno Haible  <bruno@clisp.org>
19823         sys_file tests: Avoid warning.
19824         * tests/test-sys_file.c (main): Add a default clause to the switch
19825         statement.
19827 2017-04-22  Bruno Haible  <bruno@clisp.org>
19829         sethostname: Update doc.
19830         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
19831         Mac OS X.
19833 2017-04-22  Bruno Haible  <bruno@clisp.org>
19835         quotearg tests: Avoid warnings.
19836         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
19837         false.
19839 2017-04-22  Bruno Haible  <bruno@clisp.org>
19841         poll: Enable argument check.
19842         * lib/poll.c: Include intprops.h.
19843         (poll): Check value of nfd correctly.
19844         * modules/poll (Depends-on): Add intprops.
19846 2017-04-22  Bruno Haible  <bruno@clisp.org>
19848         get-rusage-data: Avoid warnings on Mac OS X.
19849         * lib/get-rusage-data.c: On Mac OS X, don't define
19850         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
19851         (get_rusage_data) [Mac OS X]: Just return 0.
19853 2017-04-22  Bruno Haible  <bruno@clisp.org>
19855         xbinary-io: Fix build error.
19856         * modules/xbinary-io (Depends-on): Add gettext-h.
19857         * lib/xbinary-io.c: Include gettext.h and define _().
19858         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
19859         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
19861 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19863         parse-datetime: overflow and debug cleanups
19864         This long patch was triggered by this bug report from Ruediger Meier:
19865         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
19866         I fixed the bug he noted, then found some others nearby, and then
19867         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
19868         up some of the code to follow GNU standards while I was at it.
19869         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
19870         use c_isdigit.
19871         (EPOCH_YEAR): Remove; unused.
19872         (TM_YEAR_BASE): Now an enum rather than a macro.
19873         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
19874         time zone offset, since timezones now are in terms of seconds and
19875         not minutes.
19876         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
19877         appropriate.  Verify that intmax_t is wide enough.
19878         (time_overflow, time_zone_str): New functions, used to deal
19879         more reliably with overflow.
19880         (dbg_printf): Add printf attribute, to help catch integer width errors.
19881         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
19882         (%union, to_hour, yylex, parse_datetime2):
19883         Use intmax_t instead of long int and/or long_time_t.
19884         All uses changed.
19885         (DBGBUFSIZE): Move earlier.
19886         (relative_time, set_hhmmss, parser_control):
19887         Just use int for nanoseconds and for time zones; that’s wide enough.
19888         (parser_control): Use bool for members like year_seen that can
19889         be booleans instead of counters.  All uses changed.
19890         Remove debug_default_input_timezone; no longer needed.
19891         All uses removed.
19892         (apply_relative_time): Return a bool overflow flag.
19893         All uses changed to check for overflow.
19894         (apply_relative_time, zone, date, relunit, relunit_snumber)
19895         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
19896         Check for integer overflow portably.
19897         (str_days): Use just int for N, as it’s wide enough.
19898         Prefer 2D char arrays to arrays of char * when it looks like
19899         2D is a win on typical platforms.
19900         Prefer snprintf to strncpy/strncat, for simplicity;
19901         all buffers are smaller than INT_MAX so this is safe.
19902         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
19903         (debug_print_current_time): Don’t assume tv_nsec is of type long,
19904         as this is not true on x32.  Output "." before any nanoseconds.
19905         (debug_print_current_time, parse_datetime2):
19906         Output local zones using a more-consistent format.
19907         (debug_print_current_time, date, parse_datetime2):
19908         (main) [TEST]:
19909         Don’t assume time_t is the same width as long.
19910         (print_rel_part): New function, replacing ...
19911         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
19912         (debug_print_relative_time): Use bool for boolean.
19913         (local_zone): dsts_seen now counts only tDST instances.
19914         (date): Fix printf of size_t to use %z.  Do not assume numeric
19915         tokens have negative values merely because the context suggests
19916         a syntax with "-" separating tokens.
19917         (time_zone_hhmm): Return bool success indicator, which checks for
19918         overflow.  Store result into PC->time_zone instead.  All callers
19919         changed.
19920         (tm_year_str): New function.  Return a bool success indicator and
19921         store the result into a buffer.  All callers changed.  Output the
19922         numerically correct string even if adding 1900 to the year would
19923         overflow.
19924         (to_tm_year): New function, replacing the old to_year.  All
19925         callers changed.
19926         (tm_diff): Sync with glibc.
19927         (lookup_word): Use to_uchar instead of doing it by hand.
19928         (TZBUFSIZE): Now local to the only function that needs it.
19929         (debug_strfdatetime): Simplify now that time zones are int seconds.
19930         (debug_strfdate): Work even if tm_year + 1900 would overflow.
19931         (get_effective_timezone): Remove.  All uses removed.
19932         (parse_datetime2): Use fprintf in pieces instead of snprintfing
19933         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
19934         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
19935         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
19936         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
19937         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
19938         * modules/parse-datetime (Depends-on): Add inttypes.
19940 2017-04-21  Bruno Haible  <bruno@clisp.org>
19942         gettext-h: Avoid -Wundef warning.
19943         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
19944         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
19945         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
19947 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
19949         error: Avoid "function declaration isn't a prototype" warning.
19950         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
19952 2017-04-21  Bruno Haible  <bruno@clisp.org>
19954         vasnprintf: Fix for MSVC 14.
19955         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
19956         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
19957         of !HAVE_SNPRINTF_RETVAL_C99.
19959 2017-04-21  Bruno Haible  <bruno@clisp.org>
19961         mbrtowc tests: Fix test failures on MSVC 14.
19962         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
19963         behaviour for invalid input.
19965 2017-04-21  Bruno Haible  <bruno@clisp.org>
19967         mbsinit: Fix for MSVC 14.
19968         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
19969         implementation that is in sync with mbrtowc.c. On other platforms, use
19970         an adequate ad-hoc implementation.
19972 2017-04-21  Bruno Haible  <bruno@clisp.org>
19974         Fix test-mbrtowc5.sh failure on native Windows.
19975         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
19976         "C".
19978 2017-04-21  Bruno Haible  <bruno@clisp.org>
19980         Avoid accidental use of native Windows APIs on Cygwin.
19981         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
19982         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
19983         * lib/localename.c (WINDOWS_NATIVE): Likewise.
19985 2017-04-20  Bruno Haible  <bruno@clisp.org>
19987         Remove red warnings from the generated MODULES.html.
19988         * modules/fcntl (Description): Disambiguate function references.
19989         * modules/getcwd-lgpl (Description): Likewise.
19990         * modules/hostent (Description): Likewise.
19991         * modules/servent (Description): Likewise.
19992         * modules/tempname (Description): Likewise.
19994 2017-04-20  Bruno Haible  <bruno@clisp.org>
19996         verify tests: Fix spurious failure with parallel make.
19997         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
19998         EXTRA_PROGRAMS.
19999         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
20000         * tests/test-verify-try.c: New file.
20001         * modules/verify-tests (Files): Add it.
20002         (EXTRA_PROGRAMS): Add test-verify-try.
20003         (MOSTLYCLEANFILES): Update accordingly.
20004         Reported by Adam James Stewart <ajstewart@anl.gov>.
20006 2017-04-18  Bruno Haible  <bruno@clisp.org>
20008         vma-iter: Fix compilation error on Solaris 7.
20009         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
20010         like on IRIX, OSF/1.
20011         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20013 2017-04-18  Bruno Haible  <bruno@clisp.org>
20015         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
20016         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
20017         included.
20018         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
20019         <sys/procfs.h>.
20020         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
20021         <sys/procfs.h> cannot be included.
20022         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20024 2017-04-18  Bruno Haible  <bruno@clisp.org>
20026         getopt-gnu: Add comments.
20027         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
20028         * modules/getopt-gnu (configure.ac): Likewise.
20030 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
20032         regex: port better to Solaris 10
20033         Solaris 10 <locale.h> includes <libintl.h>, which #defines
20034         gettext, and this causes a double #define.
20035         Problem reported by Gavin Smith in:
20036         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
20037         * lib/regex_internal.h (gettext): #undef before #defining.
20039 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20041         intprops: improve comments
20042         * lib/intprops.h: Improve and shorten commentary.
20043         For the record, if we ever run into a pedantic compiler that
20044         behaves differently from GCC when converting an out-of-range value
20045         to a signed integer, we can work around the problem with something
20046         like the following code, where UCT is the signed counterpart of T
20047         (UCT is sometimes narrower than UT) and all callers are changed
20048         accordingly:
20049         #if __SUNPRO_C <= 0x5120
20050         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20051            ((t) ((ut) (a) op (ut) (b)))
20052         #else
20053         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20054            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
20055             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
20056                + TYPE_MINIMUM (t)) \
20057             : (t) (uct) ((ut) (a) op (ut) (b)))
20058         #endif
20060 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20062         intprops: try to avoid tickling similar bugs
20063         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
20064         needs to be the same width as T; it can be wider.
20065         Change callers so that UT is at least as wide as unsigned int,
20066         as I suspect that this is less likely to run into compiler bugs.
20068         intprops: port to Oracle Studio 12.3 x86
20069         Problem reported by Gavin Smith in:
20070         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
20071         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
20072         Convert unsigned to signed via the usual rather than the standard way,
20073         to avoid a compiler bug in Oracle Studio 12.3 x86.
20075 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20077         getopt: prefer - to _ in new file names
20078         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
20079         * lib/getopt-core.h: Rename from lib/getopt_core.h.
20080         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
20081         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
20082         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
20083         All uses changed.
20085         getopt: port recent getopt changes to macOS
20086         Problem reported by Harald Maier (Bug#26398).
20087         The macOS C compiler uses __nonnull for its own purposes and that
20088         clashes with glibc's __nonnull.
20089         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
20090         * lib/getopt_cdefs.in.h (__nonnull): Remove.
20091         * lib/getopt_core.h (getopt):
20092         * lib/getopt_ext.h (getopt_long, getopt_long_only):
20093         Use _GL_ARG_NONNULL, not __nonnull.
20094         * lib/unistd.in.h: Move snippet hooks to before where the getopt
20095         .h files are included, so that _GL_ARG_NONNULL is defined in time.
20096         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
20097         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
20099 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20101         getopt-gnu: omit some duplicate code
20102         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
20103         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
20104         gnulib-tool already does this.
20105         * modules/getopt-gnu (configure.ac): Omit code duplicated from
20106         getopt-posix, which we depend on.
20108         getopt-posix: use angle-bracket include
20109         * lib/getopt1.c: Include <config.h>, not "config.h".
20111 2017-04-06  Zack Weinberg  <zackw@panix.com>
20113         getopt: annotate files with relationship to glibc
20115         As the final act in this patchset, adjust the message at the top of
20116         each file to indicate which files are synced with glibc.  (This has
20117         already been done for most of the headers.)
20119         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
20120         Mention in top-of-file boilerplate that these files are shared
20121         between glibc and gnulib.
20124         getopt: split up getopt.in.h and eliminate __need_getopt
20126         Over in glibc, all of the __need macros are being phased out in favor
20127         of small headers that declare only the necessary components, as this
20128         is much simpler and less prone to bugs.  As getopt is shared with
20129         glibc, gnulib needs to do the same for __need_getopt.
20131         __need_getopt is misnamed; what it really means is "we want only the
20132         getopt features specified in POSIX, not the GNU extensions".  glibc
20133         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
20134         these files can be shared verbatim with gnulib.  The portability
20135         wrapper, on the other hand, they have renounced altogether; glibc's
20136         getopt.h will no longer be shared with gnulib at all.  In exchange,
20137         certain glibc-specific quirks (having to do with __posix_getopt) no
20138         longer need appear in gnulib's headers at all.
20140         This patch merges getopt_core.h and getopt_ext.h from glibc, and
20141         splits up the current gnulib-side portability wrapper into three
20142         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
20143         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
20144         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
20145         unistd.in.h just use them.  All new files are clearly marked with
20146         whether they are shared with glibc.
20148         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
20149         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
20150         with glibc, and ...
20151         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
20152         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
20153         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
20154         instead of defining __need_getopt and including the full getopt.h.
20156         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
20157         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
20158         * modules/getopt-posix (Files): Add new headers and sort list.
20159         (Depends-on): No longer need snippet/arg-nonnull.
20160         (Makefile.am): Generate getopt_cdefs.h.
20163         getopt: better handling of ambiguous options
20165         glibc's getopt uses alloca to construct a linked list of possibilities
20166         for an "ambiguous" long option.  In gnulib, malloc should be used
20167         instead.  Providing for both cases complicates things a fair bit.
20169         This patch rewrites ambiguous-option handling to use a boolean vector
20170         instead of a linked list.  There is then only one allocation that
20171         might need freeing; in glibc it can honor __libc_use_alloca as usual,
20172         and in gnulib we define __libc_use_alloca to always be false, so we
20173         don't need ifdefs in the middle of the function.  This should also be
20174         slightly more efficient in the normal case of long options being fully
20175         spelled out -- I think most people aren't even aware they _can_
20176         sometimes abbreviate long options.
20178         One interesting consequence is that the list of possibilities is now
20179         printed in exactly the order they appear in the list of long options,
20180         instead of the first possibility being shuffled to the end.
20182         (The patch looks bigger than it really is because there's a fair bit
20183         of reindentation and code rearrangement.)
20185         * lib/getopt.c: When used standalone, define __libc_use_alloca
20186         as always false and alloca to abort if called.
20187         (process_long_option): Rewrite handling of ambiguous long options
20188         to use a single boolean vector, not a linked list; use
20189         __libc_use_alloca to decide whether to allocate this using alloca.
20192         getopt: refactor long-option handling
20194         There were two copies of the bulk of the code to handle long options.
20195         Now there is only one.
20197         This change temporarily removes the logic to avoid using alloca when
20198         standalone; the next patch in the series will restore it.
20200         * lib/getopt.c (process_long_option): New function split out
20201         from _getopt_internal_r.
20202         (_getopt_internal_r): Replace both copies of the long-option
20203         processing code with calls to process_long_option.
20206         getopt: tidy up _getopt_initialize a bit
20208         _getopt_data.__posixly_correct is completely redundant to
20209         _getopt_data.__ordering, and some work that logically belongs in
20210         _getopt_initialize was being done by _getopt_internal_r, making the
20211         code harder to understand.
20213         As a side effect, getenv will no longer be called if the first
20214         character of the options string is '+' or '-', which is probably a
20215         Good Thing.  (Perhaps we should have a flag character that
20216         specifically asks for the permutation behavior?)
20218         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
20219         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
20220         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
20223         getopt: merge from glibc: repetition reduction
20225         The definitions of the entry point functions 'getopt' and
20226         '__posix_getopt' can be made substantially less repetitive with a
20227         helper macro.
20229         While I was merging the const-correctness changes from gnulib into
20230         glibc I noticed there are still some unnecessary casts in
20231         _getopt_internal_r.
20233         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
20234         a macro.  Consistently cast 'argv' to 'char **' when calling
20235         _getopt_internal.
20236         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
20239         getopt: clean up error reporting
20241         getopt can print a whole bunch of error messages, and when used
20242         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
20243         cancellation point and getopt isn't, and also applying fprintf to a
20244         stream in wide-character mode is not allowed.  So every single error
20245         reporting case has an #ifdef _LIBC block in which it calls internal
20246         libc functions instead.  The counterpart patch series in glibc makes
20247         it possible to simplify all of that down to a set of #defines at the
20248         top of the file; core code is written as if it is safe to just call
20249         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
20250         call any *other* stdio functions.)
20252         * lib/getopt.c: When _LIBC is defined, define fprintf to
20253         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
20254         to _IO_funlockfile.  When neither _LIBC nor
20255         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
20256         funlockfile as no-ops.
20257         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
20258         standalone error-printing code can now be used for libc as well.
20259         Add an flockfile/funlockfile pair around one case where the error
20260         message is printed in several chunks.  Don't use fputc.
20263         getopt: fix fencepost error in ambiguous-W-option handling
20265         getopt_long contains an undocumented (AFAICT) feature in which, if you
20266         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
20267         treated as equivalent to '--foo'.  This is implemented with a partial
20268         second copy of the code for handling long options, and that code
20269         increments optind one too many times when recovering from an ambiguous
20270         abbreviated option, which can cause the main loop to walk past the end
20271         of argv and crash.
20273         I discovered this while writing a test case that tries to exercise all
20274         of getopt's error reporting paths; I wouldn't be surprised to learn
20275         that this feature is never used by real applications.
20277         * lib/getopt.c (_getopt_internal_r): Don't increment
20278         d->optind a second time when reporting ambiguous -W options.
20281         getopt: clean up getopt.c and getopt1.c file headers
20283         In getopt.c, there is no need to include wchar.h at all, and it is
20284         safe nowadays to assume that stdlib.h does declare getenv (several
20285         other gnulib modules make this assumption).
20287         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
20288         by using "" inclusions consistently, and there is no actual need to
20289         include stdlib.h (except in the #ifdef TEST block, where it should be
20290         unconditional), nor to provide a backup definition of NULL at all.
20292         * lib/getopt1.c: Simplify #ifdeffage at top of file.
20293         Move inclusion of stdlib.h to #ifdef TEST block and make
20294         unconditional.  Do not define NULL.
20295         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
20296         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
20297         * modules/getopt-gnu, modules/getopt-posix: Don't call
20298         gl_PREREQ_GETENV.
20301         getopt: harmonize comments with glibc
20303         The comments explaining how the behavior of 'getopt' varies depending
20304         on whether it's the standalone version and whether there are special
20305         characters at the beginning of the options string were inconsistent
20306         between gnulib and glibc, and also out of sync with the code.
20308         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
20311         getopt: remove USE_NONOPTION_FLAGS
20313         getopt includes code to parse an environment variable named
20314         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
20315         in decimal); but all of it has been #ifdefed out since 2001, with no
20316         official way to turn it back on.
20318         According to commentary in glibc's config.h.in, bash version 2.0
20319         set this environment variable to indicate argv elements that were
20320         the result of glob expansion and therefore should not be treated
20321         as options, but the feature was "disabled later" because "it
20322         caused problems".  According to bash's CHANGES file, "later" was
20323         release 2.01; it gives no more detail about what the problems
20324         were.
20326         Version 2.0 of bash was released on the last day of 1996, and version
20327         2.01 in June of 1997.  Twenty years later, I think it is safe to
20328         assume that this environment variable isn't coming back.
20330         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
20331         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
20332         __libc_argc and __libc_argv externs, which were only used by
20333         #ifdef USE_NONOPTION_FLAGS blocks.
20336         getopt: tabify, in preparation for merge with glibc
20338         glibc sticks to the GNU default of indenting with a mix of
20339         8-column tabs and spaces; make the gnulib copy match.
20341         getopt.h is not included because it is *not* going to be merged in its
20342         present form.
20344         * getopt.c, getopt1.c, getopt_int.h: Tabify.
20346 2017-04-02  Bruno Haible  <bruno@clisp.org>
20348         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
20349         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
20350         like it was done in modules/relocatable-lib on 2011-05-21 and in
20351         modules/relocatable-prog on 2011-08-15.
20352         Reported by Reuben Thomas <rrt@sc3d.org>.
20354 2017-03-31  Bruno Haible  <bruno@clisp.org>
20356         glob: Fix invalid free() call.
20357         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
20358         static storage to home_dir.
20359         Reported by Coverity via Tim Rühsen.
20361 2017-03-31  Bruno Haible  <bruno@clisp.org>
20363         glob: Fix memory leaks.
20364         * lib/glob.c (glob): Free allocated memory before returning.
20365         Reported by Coverity via Tim Rühsen.
20367 2017-03-31  Bruno Haible  <bruno@clisp.org>
20369         md5, sha1, sha256, sha512: Add comments regarding correctness.
20370         * lib/md5.h (buflen): Add comments regarding range.
20371         * lib/sha1.h (buflen): Likewise.
20372         * lib/sha256.h (buflen): Likewise.
20373         * lib/sha512.h (buflen): Likewise.
20374         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
20375         * lib/sha1.c (sha1_process_bytes): Likewise.
20376         * lib/sha256.c (sha256_process_bytes): Likewise.
20377         * lib/sha512.c (sha512_process_bytes): Likewise.
20378         Reported by Coverity via Tim Rühsen.
20380 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
20382         getopt: merge from glibc
20383         This does not change anything substantial; it merely simplifies
20384         hypothetical merges back to glibc.
20385         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
20386         Change copyright notice to match what is in glibc.
20387         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
20388         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
20389         __open_memstream rather than open_memstream and __glibc_likely
20390         instead of __builtin_expect.
20391         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
20393 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
20395         dfa: make [0-9] faster in non-C locales
20396         Problem reported by John P. Linderman (Bug#26193).
20397         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
20398         If both ends of the range are ASCII digits, do not worry about
20399         multi-character collating sequences and the like.  Be consistent
20400         about using isalpha as a precondition for setbit_case_fold_c.
20402 2017-03-19  Bruno Haible  <bruno@clisp.org>
20404         lock: Fix compilation error with HP-UX IA64 cc.
20405         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
20406         weak on non-glibc platforms.
20408 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20410         stdalign: tweak version# and test for HP-UX IA64
20411         Problems reported by Bruno Haible in:
20412         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
20413         * lib/stdalign.in.h (_Alignas):
20414         * m4/stdalign.m4 (gl_STDALIGN_H):
20415         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
20416         used octal (as that is how they document it), but it is decimal in
20417         practice now and the ancient implementations no longer matter.
20418         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
20420 2017-03-19  Bruno Haible  <bruno@clisp.org>
20422         vma-iter: Add support for Solaris.
20423         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
20424         approach.
20425         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
20426         * lib/get-rusage-as.c: Update comment about Solaris.
20427         * lib/get-rusage-data.c: Likewise.
20429 2017-03-19  Bruno Haible  <bruno@clisp.org>
20431         vma-iter: Prefer HP-UX specific API on HP-UX.
20432         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
20433         * lib/vma-iter.h: Update.
20434         Just in case HP-UX ever implements mquery().
20436 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
20438         stdalign: restore previous behavior for HP-UX IA64
20439         See Bruno Haible's email in:
20440         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20441         which cites p 150 of a manual saying that 'aligned' works on Itanium.
20442         * lib/stdalign.in.h (_Alignas):
20443         Assume the '061200' applies to Itanium, not to PA-RISC.
20444         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
20446 2017-03-17  Bruno Haible  <bruno@clisp.org>
20448         stat-time, timespec: Support use of the header files in C++ mode.
20449         * lib/stat-time.h: Add "C" linkage declaration.
20450         * lib/timespec.h: Likewise.
20452 2017-03-17  Bruno Haible  <bruno@clisp.org>
20454         stdalign: Make it work with HP-UX cc.
20455         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
20456         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
20457         for HP-UX cc.
20459 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
20461         flexmember: try to detect HP-UX 11.31 cc bug
20462         Problem reported by Bruno Haible in:
20463         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20464         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20465         Attempt to detect bug in HP-UX 11.31 cc.
20467 2017-03-16  Bruno Haible  <bruno@clisp.org>
20469         stdint: Fix test compilation failure with HP-UX 11 cc.
20470         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
20471         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
20472         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
20473         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
20475 2017-03-14  Bruno Haible  <bruno@clisp.org>
20477         gnulib-tool: Don't produce a tests directory with only snippet .h files.
20478         * gnulib-tool (func_modules_transitive_closure_separately): If
20479         testsrelated_modules ends up with no "real" modules, aside from
20480         modules with applicability 'all', set it to empty.
20482 2017-03-14  Bruno Haible  <bruno@clisp.org>
20484         vma-iter: Add support for HP-UX.
20485         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
20486         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
20487         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
20488         * lib/get-rusage-as.c: Update comment about HP-UX.
20489         * lib/get-rusage-data.c: Likewise.
20490         (get_rusage_data): Use get_rusage_data_via_setrlimit.
20492 2017-03-14  Bruno Haible  <bruno@clisp.org>
20494         limits-h: Make it work with HP-UX cc.
20495         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
20496         defined.
20498 2017-03-14  Bruno Haible  <bruno@clisp.org>
20500         Fix test failures on DragonFlyBSD.
20501         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
20502         * tests/test-select.h (test_bad_fd): Likewise.
20503         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
20505 2017-03-14  Bruno Haible  <bruno@clisp.org>
20507         freadahead: Silence warning on DragonFlyBSD.
20508         * lib/freadahead.c (__sreadahead): Declare ourselves.
20510 2017-03-14  Bruno Haible  <bruno@clisp.org>
20512         vma-iter: Add comment about AIX.
20513         * lib/vma-iter.c: Add comment about why this module is not implemented
20514         on AIX.
20516 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20518         snippets: move unadjusted snippet sources to lib
20519         Problem reported by Michal Privoznik in:
20520         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
20521         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
20522         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
20523         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
20524         * lib/unused-parameter.h: Rename from
20525         build-aux/snippet/unused-parameter.h.
20526         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
20527         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
20528         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
20529         * modules/snippet/c++defs (Files:, CXXDEFS_H):
20530         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
20531         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
20532         Adjust to file renamings.
20534 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
20536         gnulib-tool: don't automatically distribute files from top/
20537         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
20538         not distribute top/README-release by default, don't distribute files
20539         from top/ unconditionally.
20540         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
20541         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
20543 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20545         gnulib-tool: fix typo in comment output
20546         * gnulib-tool (func_import): Fix typo with previous change.
20548         snippets: work around GNU Make 3.82 VPATH
20549         When using 'gnulib-tool --gnu-make' on Emacs, and building
20550         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
20551         an out-of-source (VPATH) build failed because the sans-copyright
20552         snippet file was not built before the file that used it.
20553         Presumably this is some sort of VPATH thing.  Work around the
20554         problem by using the original snippet, i.e., don’t bother to
20555         remove its copyright notice.
20556         * modules/snippet/_Noreturn, modules/snippet/link-warning:
20557         Don’t assume Automake in comments.  Omit long-incorrect comment.
20558         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
20559         (MOSTLYCLEANFILES):
20560         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
20561         (MOSTLYCLEANFILES):
20562         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
20563         (MOSTLYCLEANFILES):
20564         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
20565         (MOSTLYCLEANFILES):
20566         Remove.
20567         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
20568         * modules/snippet/c++defs (CXXDEFS_H):
20569         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
20570         * modules/snippet/warn-on-use (WARN_ON_USE_H):
20571         Don’t bother to remove the copyright notice; just use the
20572         original snippet as-is.
20574 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
20576         gnulib-tool: minor --gnu-make fixups
20577         * gnulib-tool (func_emit_lib_Makefile_am):
20578         Remove useless code that was a blind alley during implementation.
20579         Problem reported by Thien-Thi Nguyen in:
20580         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
20581         (func_import): Note the "--gnu-make" option in the output comment.
20583 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
20585         gnulib-tool: new option --gnu-make
20586         This is for applications like GNU Emacs that use GNU Make
20587         features instead of Automake.
20588         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
20589         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
20590         Do not assume Automake.
20591         * gnulib-tool (func_determine_path_separator)
20592         (func_modules_transitive_closure, func_update_file)
20593         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
20594         (func_import): Add support for --gnu-make.
20596 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
20598         gnulib-common.m4: avoid aclocal.m4 bloat
20599         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
20600         Hide AM_PROG_AR from aclocal, so that aclocal does not
20601         install irrelevant macro definitions into aclocal.m4.
20603 2017-03-10  Bruno Haible  <bruno@clisp.org>
20605         vma-iter: Let callers know about error.
20606         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
20607         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
20609 2017-03-05  Bruno Haible  <bruno@clisp.org>
20611         Fix value of LD for 64-bit compilers on AIX.
20612         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
20613         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
20615 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
20617         dtotimespec: simplify
20618         * lib/dtotimespec.c (dtotimespec): Simplify.
20620 2017-03-04  Bruno Haible  <bruno@clisp.org>
20622         test-calloc-gnu: Reenable test also for GCC 7.
20623         * tests/test-calloc-gnu.c (eight): New function.
20624         (main): Don't skip test; use eight() instead.
20626 2017-03-04  Jim Meyering  <meyering@fb.com>
20628         test-calloc-gnu: port to GCC7
20629         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
20630         that attempts to calloc more than SIZE_MAX bytes, because GCC7
20631         and newer would detect that at compilation time.
20633 2017-03-04  Bruno Haible  <bruno@clisp.org>
20635         tests: Avoid compiler warning about uses of null_ptr.
20636         * tests/null-ptr.h: New file.
20637         * tests/test-canonicalize.c: Include null-ptr.h.
20638         (null_ptr): Remove function.
20639         * tests/test-canonicalize-lgpl.c: Likewise.
20640         * tests/test-memmem.c: Likewise.
20641         * tests/test-ptsname_r.c: Likewise.
20642         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
20643         * modules/canonicalize-lgpl-tests: Likewise.
20644         * modules/memmem-tests: Likewise.
20645         * modules/ptsname_r-tests: Likewise.
20646         Reported by Jim Meyering.
20648 2017-03-03  Bruno Haible  <bruno@clisp.org>
20650         doc: Mention Mac OS X deficiencies regarding semaphores.
20651         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
20652         * doc/posix-functions/sem_destroy.texi: Likewise.
20653         * doc/posix-functions/sem_getvalue.texi: Likewise.
20655 2017-03-03  Bruno Haible  <bruno@clisp.org>
20657         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
20658         Reported by Assaf Gordon <assafgordon@gmail.com> via
20659         Pádraig Brady <P@draigBrady.com>.
20660         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
20661         semaphores.
20662         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
20663         (atomic_int_semaphore): New macro.
20665 2017-02-28  Bruno Haible  <bruno@clisp.org>
20667         perror tests: Tweak for z/OS.
20668         Reported by Daniel Richard G. <skunk@iskunk.org>.
20669         * tests/test-perror.sh: Don't fail z/OS style perror output.
20671 2017-02-26  Bruno Haible  <bruno@clisp.org>
20673         nproc: Refactor large function.
20674         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
20675         from num_processors.
20676         (num_processors): In this function, only deal with OMP.
20678 2017-02-26  Pádraig Brady  <P@draigBrady.com>
20680         nproc: adjust handling of OpenMP environment variables
20681         to match the return value from omp_get_num_threads(), i.e.:
20682          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
20683          - Treat 0 as an invalid value and ignore
20684         Also remove the call to omp_get_num_threads() because
20685         it's ineffective without the omp pragmas in place.
20686         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
20687         so that it can be ignored.
20688         (num_processors): Honor OMP_THREAD_LIMIT even without
20689         OMP_NUM_THREADS being set.  Also fix a typo in the environment
20690         variable being checked, from the previous recent commit.
20692 2017-02-26  Pádraig Brady  <P@draigBrady.com>
20694         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
20695         * lib/nproc.c (parse_omp_threads): A new function refactored
20696         from num_processors() to support parsing both of the
20697         above environment variables.
20698         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
20699         to accurately reflect the current OpenMP nesting level.
20700         Also support the OMP_THREAD_LIMIT environment variable
20701         to limit the max value determined from OMP_NUM_THREADS.
20702         * modules/nproc: Depend on minmax header.
20703         Suggested by Oliver Heimlich.
20705 2017-02-25  Bruno Haible  <bruno@clisp.org>
20707         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
20708         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
20710 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20712         ftoastr: port to -Wdouble-promotion
20713         Work around -Wdouble-promotion false alarm in recent GCCs.
20714         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
20715         (ftoastr_snprintf, FTOASTR): Use it.
20717 2017-02-21  Bruno Haible  <bruno@clisp.org>
20719         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
20720         Reported by Rene Saavedra <rennes@openmailbox.org> in
20721         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
20722         * lib/glthread/lock.h: On glibc systems without
20723         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
20724         implementation of rwlocks.
20725         * lib/glthread/lock.c: Likewise.
20727 2017-02-20  Bruno Haible  <bruno@clisp.org>
20729         lock tests: Fix build failure on z/OS.
20730         Reported by Daniel Richard G. <skunk@iskunk.org>.
20731         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
20732         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
20733         exist.
20735 2017-02-19  Bruno Haible  <bruno@clisp.org>
20737         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
20738         This helps when CC=clang.
20739         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
20740         of /usr/bin/gcc.
20742         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
20743         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
20745 2017-02-19  Bruno Haible  <bruno@clisp.org>
20747         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
20748         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
20749         --with-tests --single-configure is specified.
20751 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
20753         users.txt: Update links, use HTTPS where possible
20754         * users.txt: Updated to HTTPS where possible,
20755         fixed some links to new locations.
20757 2017-02-16  Bruno Haible  <bruno@clisp.org>
20759         xbinary-io: Fix inlining.
20760         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
20762 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20764         xbinary-io: rename from xsetmode
20765         This patch is taken from suggestions by Bruno Haible in:
20766         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
20767         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
20768         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
20769         not ENOTTY, when it is an inappropriate device.
20770         * lib/binary-io.h (SET_BINARY): Resurrect.
20771         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
20772         (xset_binary_mode_error): Rename from xsetmode_error.
20773         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
20774         (xset_binary_mode): Rename from xsetmode.
20775         All uses changed.
20776         * modules/xbinary-io: Rename from modules/xsetmode.
20777         Update file names.
20778         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
20779         * NEWS: Update to match revised behavior.
20781 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20783         tests: Adjust to recent SET_BINARY change
20784         * tests/test-binary-io.c (main):
20785         * tests/test-binary-io.sh: Remove test for SET_BINARY.
20786         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
20787         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
20788         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
20790         xsetmode: new module
20791         This is to fix a problem noted by Eric Blake.
20792         Code was using xfreopen to change files to binary mode, but this
20793         fails for stdout when in append mode.  Such code should use
20794         xsetmode instead.
20795         * NEWS: Document incompatible changes to binary-io module.
20796         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
20797         New function.
20798         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
20799         (set_binary_mode): New function, which also checks for tty.
20800         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
20802 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
20804         headers: fix begin-end typos
20805         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
20806         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
20808         selinux-h: port to PGI 16.10
20809         * lib/se-selinux.in.h: Don't assume that include_next skips over
20810         duplicate -I DIR options.
20812         argp: port to PGI 16.10
20813         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
20815 2017-02-13  Darshit Shah  <darnir@gnu.org>
20817         unicase: Update function protoype to match definition.
20818         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
20819         uses 'size_t' as the datatype for the 'len' parameter in the functions
20820         it generates. Update the prototype specified here to match the newly
20821         generated function.
20823 2017-02-12  Bruno Haible  <bruno@clisp.org>
20825         times test: Avoid gcc warnings on Linux/x32.
20826         * tests/test-times.c (main): Really cast printf arguments from clock_t
20827         to 'long int'.
20829 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20831         glob: port better to emscripten
20832         Problem reported by Bruno Haible in:
20833         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
20834         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
20836 2017-02-11  Bruno Haible  <bruno@clisp.org>
20838         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
20839         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
20840         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
20841         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
20842         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
20843         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
20844         Distinguish hppa64 from hppa.
20846 2017-02-10  Bruno Haible  <bruno@clisp.org>
20848         search: Don't assume that tsearch() exists if 'VISIT' is defined.
20849         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
20850         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
20851         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
20853 2017-02-09  Bruno Haible  <bruno@clisp.org>
20855         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
20856         * doc/gnulib.texi (Libtool and Windows): Recommend
20857         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
20858         Reported by Reuben Thomas <rrt@sc3d.org>.
20860 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20862         stddef-tests: port to SIZE_MAX <= INT_MAX
20863         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
20864         Do not assume that INT_MAX < SIZE_MAX.
20866 2017-02-01  Bruno Haible  <bruno@clisp.org>
20868         lock tests: Fix link error.
20869         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
20870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20872 2017-01-31  Bruno Haible  <bruno@clisp.org>
20874         lock: Fix link error (regression from 2017-01-05).
20875         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
20876         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
20877         pthread_rwlockattr_destroy weak.
20878         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20880 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20882         Port to PGI 16.10 x86-64
20883         This patch fixes one real bug in gl_anylinked_list2.h, along with
20884         some minor glitches that are not bugs.  It does not silence PGI’s
20885         thousands of bogus warnings when compiling test-intprops.c.
20886         Fortunately, the warnings do not cause a failure.
20887         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
20888         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
20889         My goodness, PGI goes back a long ways - this predates C89!
20890         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
20891         For example, ASYNCSAFE (const void *) should expand to
20892         ‘const void *volatile’, not to ‘volatile const void *’.
20893         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
20894         * lib/verify.h (verify) [!__GNUC__]:
20895         Use shorter albeit meaningless string to bypass silly compiler limits.
20896         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
20897         * tests/nan.h (NaNf, NaNd, NaNl):
20898         Use static functions to avoid misguided compiler diagnostics.
20899         Is there some reason we don’t use static functions on all platforms?
20901 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
20903         parse-datetime: handle timezones reentrantly
20904         This API change was prompted by a report by Pádraig Brady in:
20905         https://bug.debian.org/851934#10
20906         To help fix the bug, make parse_datetime2 more reentrant.
20907         * NEWS: Document this incompatible change.
20908         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
20909         Add two arguments, the timezone and the timezone name.
20910         All callers changed.  If TZ="..." is specified, use it for
20911         calculating defaults.
20912         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
20913         this code should be usable in a library.
20914         (mktime_ok, get_effective_timezone):
20915         Accept timezone arg too.  All callers changed.
20916         (get_tz): Remove.
20917         (get_effective_timezone): Check for failures.
20919 2017-01-20  Eric Blake  <eblake@redhat.com>
20921         localename: port to cygwin 2.6
20922         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
20923         Cygwin.
20924         * modules/localename (Depends-on): Add extensions, since
20925         NL_LOCALE_NAME() is not visible without it.
20927 2017-01-17  Pádraig Brady  <P@draigBrady.com>
20929         parse-datetime: fix dependence on AC_PROG_SED
20930         * modules/parse-datetime: Use `sed` directly like all other modules.
20931         Reported by J William Piggott
20933 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
20935         intprops: update doc URLs
20936         * doc/intprops.texi (Integer Range Overflow): Update URLs.
20938 2017-01-16  Bruno Haible  <bruno@clisp.org>
20940         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
20941         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
20942         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
20943         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
20944         distinguish s390 and s390x.
20945         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
20946         * NEWS: Mention the change regarding 'armel'.
20948 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20950         localeinfo: case_folded_counterparts and WEOF
20951         * NEWS: Document this.
20952         * lib/localeinfo.c (case_folded_counterparts):
20953         First arg is now wint_t, not wchar_t.  This generalizes the
20954         function to also work on WEOF, where it returns 0.
20956         dfa: port to gcc -fsanitize=undefined
20957         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
20958         as this runs afoul of gcc -fsanitize=undefined.
20960 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
20962         strftime: %z is -00 if unknown
20963         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
20964         the caller's responsibility to set 'negative_number'.  All uses changed.
20965         (__strftime_internal): Put '-' before a zero UTC offset if the time
20966         zone abbreviation starts with "-", which is the recently-introduced
20967         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
20968         * tests/test-strftime.c: Test for this.
20970 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20972         dfa: port to older GCC
20973         Problem reported by Assaf Gordon in:
20974         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
20975         * modules/c99: New module.  This merely attempts to use the latest
20976         C version, which should be enough to solve this particular problem.
20977         The idea is to document which Gnulib modules assume C99 or later.
20978         * modules/dfa (Depends-on): Add it.
20980 2017-01-10  Bruno Haible  <bruno@clisp.org>
20982         Update DEPENDENCIES.
20983         * DEPENDENCIES: List only https URLs. Update recommended version for
20984         autoconf, automake, gperf.
20986 2017-01-10  Jim Meyering  <meyering@fb.com>
20988         maint.mk: enforce spelling of "timestamp" (i.e., no space)
20989         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
20990         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
20992 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20994         dfa: minor simplification with emptyset
20995         * lib/dfa.c (build_state): Simplify by using emptyset.
20997 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20999         dfa: shrink constraints from 4 bits to 3
21000         * lib/dfa.c (newline_constraint, letter_constraint)
21001         (other_constraint, prev_newline_dependent)
21002         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
21003         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
21004         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
21005         Constraints need only 3 bits, not 4.  Using smaller integers
21006         shrinks the code a bit and makes grep a tad faster on x86-64.
21008         dfa: omit unnecessary ptrdiff_t check
21009         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
21010         overflow, since xnmalloc does that now.
21012         dfa: omit unnecessary allocation
21013         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
21014         an all-zero follow set works just fine.
21016         dfa: omit unused local
21017         * lib/dfa.c (build_state): Fix up recent change.
21019         maint: remove stray .texi files
21020         Although these were superseded by other files like
21021         doc/posix-functions/ctime.texi, the old files were not removed.
21022         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
21024 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
21026         getprogname: fix port to IRIX
21027         * lib/getprogname.c (getprogname) [__sgi]:
21028         Don't dump core if malloc returns NULL.
21030         dfa: fix reallocation bug when matching newlines
21031         Problem reported for sed by S. Gilles (Bug#25390).
21032         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
21033         (dfastate): Reallocate before moving any newline transition ...
21034         (build_state): ... instead of reallocating here, where it is too late.
21036 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21038         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
21039         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
21041 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21043         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
21044         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
21046 2017-01-07  Bruno Haible  <bruno@clisp.org>
21048         stdioext: Port to Minix 3.2 and newer.
21049         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
21050         * lib/fseeko.c (fseeko): Likewise.
21051         Reported by Nelson Beebe via Paul Eggert.
21053 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
21055         getprogname: port to IRIX
21056         * lib/getprogname.c (getprogname): Port to IRIX.
21057         Based on an idea by Bastien Roucariès at:
21058         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
21059         via code from Bruno Haible at:
21060         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
21062         localename-tests: port to NetBSD 7
21063         Problem reported by Nelson H. F. Beebe.
21064         * tests/test-localename.c:
21065         Test newlocale and uselocale only if both exist.
21067         glob, intprops, xalloc: work around Clang bug
21068         Work around LLVM bug 16404, which is still not fixed.
21069         https://llvm.org/bugs/show_bug.cgi?id=16404
21070         Problem reported by Nelson H. F. Beebe.
21071         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
21072         Remove.
21073         * lib/glob.c (size_add_wrapv):
21074         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
21075         * lib/xalloc-oversized.h (xalloc_oversized):
21076         Do not use overflow builtins if Clang.
21078         dfa: fix 'return' typo
21079         Problem reported by Nelson H. F. Beebe.
21080         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
21082 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21084         parse-datetime: fix generated paths for coverage files
21085         * modules/parse-datetime: Adjust the paths for parse-datetime.y
21086         within parse-datetime.c, so that gcc generates appropriate .gcno
21087         files, allowing lcov to proceed without error.  Previously it
21088         would error trying to find "lib/lib/parse-datetime.y".
21090 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21092         maint.mk: support parallel execution of coverage
21093         * top/maint.mk (coverage): Run dependencies serially,
21094         thus supporting parallel processing of each one,
21095         particularly build-coverage, which builds and runs tests.
21097 2017-01-05  Bruno Haible  <bruno@clisp.org>
21099         lock tests: Prefer semaphore over mutex.
21100         * tests/test-lock.c (USE_SEMAPHORE): New constant.
21101         (struct atomic_int, init_atomic_int, get_atomic_int_value,
21102         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
21103         Suggested by Torvald Riegel <triegel@redhat.com>.
21105 2017-01-05  Bruno Haible  <bruno@clisp.org>
21107         lock: Provide guarantee to avoid writer starvation for rwlocks.
21108         The rationale is: 1) Read-preferring read-write locks are prone to
21109         writer starvation if the number of reader threads multiplied by the
21110         percentage of time they have the lock held is too high. 2) Write-
21111         preferring read-write locks are the only reliable way to avoid this.
21112         3) There have been reports of 'test-lock' hanging on glibc systems
21113         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
21114         and glibc indeed implements read-preferring rwlocks by default, see
21115         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
21116         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
21117         * m4/pthread_rwlock_rdlock.m4: New file.
21118         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21119         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
21120         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21121         of rwlock initialization on glibc systems without
21122         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21123         of rwlocks altogether on non-glibc systems without
21124         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21125         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
21126         * lib/glthread/lock.c [USE_POSIX_THREADS]
21127         (glthread_rwlock_init_for_glibc): New function.
21128         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
21129         comment.
21130         [USE_PTH_THREADS]: New implementation of rwlocks.
21131         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
21132         readers.
21133         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
21134         (Depends-on): Add 'extensions'.
21135         * tests/test-rwlock1.c: New file.
21136         * lock-tests (Files): Add it.
21137         (Depends-on): Add usleep.
21138         (Makefile.am): Add test-rwlock1 to the tests.
21140 2017-01-05  Bruno Haible  <bruno@clisp.org>
21142         thread: Fix pth port.
21143         * lib/glthread/thread.h (pth_init): Declare weak.
21144         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
21145         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
21146         function.
21148 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
21150         parse-datetime: fix debug message on lone year number
21151         Input dates such as
21152           date -d "Apr 11 22:59:00 2011"
21153         are parsed as date (Apr 11, with default year 2016), then time, then a
21154         number (2011). Based on the combination of previously seen tokens,
21155         'digits_to_date_time' determines 2011 to be a year value.
21156         This fixes the debug messages to correctly show the updated year.
21157         Before:
21158             $ date --debug -d 'Apr 11 22:59:00 2011'
21159             date: parsed date part: (Y-M-D) 2016-04-11
21160             date: parsed time part: 22:59:00
21161             date: parsed number part: today/this/now
21162         After:
21163             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
21164             date: parsed date part: (Y-M-D) 2016-04-11
21165             date: parsed time part: 22:59:00
21166             date: parsed number part: year: 2011
21167         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
21168         'debug_year_seen' member fields.
21169         (digits_to_date_time): Update 'year_seen' as needed.
21170         (debug_print_current_time): Inform about year updates.
21171         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
21173         parse-datetime: fix local timezone debug messages
21174         "Local timezones" are strings that affect only DST relative to the
21175         default timezone. The debug messages in parse-datetime.y printed
21176         wrong information when encountering local timezones.
21177         Examples:
21178         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
21179              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
21180              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
21181         When the default timezone relates to the zone strings, EET/EEST are
21182         parsed as local timezones (tLOCAL_ZONE), and only change the DST
21183         value (0/1, respectively):
21184              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
21185              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
21186         * lib/parse-datetime.y (debug_print_current_time): If local timezone
21187         was seen, inform about DST change, don't print actual timezone.
21188         (debug_strfdatetime): If local timezone was seen, use default timezone
21189         (and adjust as needed) instead of using incorrect timezone.
21190         (parse_datetime2): Use correct time-zone source string, and adjust
21191         default timezone as needed.
21193         parse-datetime: add debug warning about DST changes
21194         Incorrect date arithmetic due to daylight saving time (DST) are a
21195         common (false) bug report in coreutils.
21196         Detect two such cases and print a warning:
21197         1. year/month/day adjustments (performed on 'struct tm'),
21198            where 'mktime' returns a different isdst value.
21199         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
21200            where the result of 'localtime(3)' on the value will return a
21201            different isdst value.
21202         Note: DST changes could be harmless or unnoticeable.
21203         Examples (with 'TZ=America/New_York'):
21204         Unnoticeable: result is 2016-Dec-14
21205            $ date -d '2016-06-15 EDT + 6 months' +%b
21206            Dec
21207         Unnoticeable: result is 2016-Dec-15 11:00:00
21208            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
21209            2016-12-15
21210         This is unexpected:
21211            $ date -d '2016-06-01 EDT + 6 months' +%F
21212            2016-11-30
21213         The new debug warnings will show:
21214            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
21215            ...
21216            date: warning: daylight saving time changed after date adjustment
21217            ...
21218         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
21219         print an appropriate warning message.
21221         parse-datetime: add debug warning about date arithmetic
21222         Date arithmetic are done directly on the fields of 'struct tm',
21223         which can result in invalid dates. Normalization with 'mktime(3)'
21224         will then produce a different date - which might cause unexpected
21225         results.
21226         Examples:
21227           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
21228           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
21229         Note that date normalization is not inherently wrong and not rejected,
21230         as it has legitimate uses:
21231           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
21232         If the user asked to adjust months but 'mday' changed,
21233         or user asked to adjust years but 'month' changed - warn about it.
21234             $ ./src/date --debug -d '2016-10-31 - 1 month'
21235             ...
21236             date: warning: when adding relative months/years, \
21237                            it is recommended to specify the 15th of the month
21238             ...
21239             date: warning: month/year adjustment resulted in shifted dates:
21240             date:      adjusted Y M D: 2016 09 31
21241             date:    normalized Y M D: 2010 10 01
21242             ...
21243         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
21244         a warning message. Improve recommendation of when to use 15 of the
21245         month or noon for date arithmetic.
21247         parse-datetime: fix debug message of relative part after timezone
21248         Relative part (e.g '+8 days') after a timezone string was not
21249         reported (was only reported after a timezone number). Due to the
21250         parser's structure, timezone strings with numbers were handled
21251         separately.
21252         before:
21253              # Timezone number + relative part: OK
21254              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
21255              ...
21256              date: parsed relative part: -8 day(s)
21257              # Timezone string + relative part: missing
21258              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
21259              [ missing message ]
21260         After: messages are printed in both cases.
21261         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
21263         parse-datetime: fix incorrect debug message on lone number
21264         A lone number is an absolute value, not a relative time part.
21265         before:
21266            $ date --debug -d '20130101'
21267            date: parsed number part: today/this/now
21268         After:
21269            $ ./src/date --debug -d '20130101'
21270            date: parsed number part: (Y-M-D) 2013-01-01
21271         * lib/parse-datetime.y ('item'/'number' tokens): Call
21272         'debug_print_current_time' instead of 'debug_print_relative_time'.
21274 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
21276         doc: modernize for C11 etc.
21277         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
21278         for C11, MinGW, etc.  This responds to Paul Smith's question in:
21279         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
21281         dfa: prefer functions to FETCH_WC macro
21282         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
21283         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
21284         wint_t result into DFA->lex.wctok instead of to a separate arg.
21285         All callers changed.  Move more local decls closer to where
21286         they're used.
21288         dfa: narrow more local var scopes
21289         * lib/dfa.c: Move more local decls to be more local.
21291         dfa: remove duplicate assignment
21292         Problem reported by Bruno Haible in:
21293         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
21294         * lib/dfa.c (parse_bracket_exp): Simplify.
21296 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21298         dfa: simplify constraint-dependency checking
21299         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
21300         (prev_other_constraint): Remove.
21301         (prev_newline_dependent, prev_letter_dependent):
21302         Simplify, to avoid an unnecessary bitwise AND operation.
21304         dfa: prefer functions and constants to macros
21305         * lib/dfa.c: Prefer constants to macros where either will do.
21306         (streq, isasciidigit, newline_constraint)
21307         (letter_constraint, other_constraint, succeeds_in_context)
21308         (prev_newline_constraint, prev_letter_constraint)
21309         (prev_other_constraint, prev_newline_dependent)
21310         (prev_letter_dependent, accepting, accepts_in_context):
21311         Now static functions instead of function-like macros.
21312         Use lower-case names accordingly.  All uses changed.
21314         dfa: narrow more local var scopes
21315         * lib/dfa.c: Move some more local decls down to nearer where
21316         they're needed.
21318 2016-12-31  Jim Meyering  <meyering@fb.com>
21320         dfa: narrow the scope of many local variables
21321         * lib/dfa.c: Now that we are no longer constrained to c89, move
21322         declarations of many variables (often indices) "down" into the
21323         scope(s) where used or to the point of definition.  This is a
21324         no-semantic-change diff.
21326 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21328         version-etc: new year
21329         * build-aux/gendocs.sh (version):
21330         * doc/gendocs_template:
21331         * doc/gendocs_template_min:
21332         * doc/gnulib.texi:
21333         * lib/version-etc.c (COPYRIGHT_YEAR):
21334         Update copyright dates by hand in templates and the like.
21335         * all files: Run 'make update-copyright'.
21337 2016-12-31  Eric Blake  <eblake@redhat.com>
21339         do-release-commit-and-tag: avoid shell syntax error
21340         * build-aux/do-release-commit-and-tag (curr_br): $branch can
21341         contain spaces when rebasing.
21343         maint.mk: hoist gnulib_dir definition earlier
21344         * top/maint.mk (gnulib_dir): Move near top of file.
21346 2016-12-31  Jim Meyering  <meyering@fb.com>
21348         maint.mk: do not always evaluate intprops-related shell
21349         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
21350         using gnulib_dir undefined (gnulib_dir is defined later in the
21351         file, which will be fixed separately), and besides, there is no
21352         need to incur the cost of this shell invocation for every single
21353         use of this .mk file.  Reported by Eric Blake in
21354         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
21356 2016-12-30  Jim Meyering  <meyering@fb.com>
21358         maint.mk: improve sc_prohibit_intprops_without_use
21359         * top/maint.mk (_intprops_names): Don't hard-code the list of
21360         symbol names.  Instead, derive it on the fly.
21362 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21364         dfa: shorten sbit, success
21365         * lib/dfa.c (struct regex_syntax.sbit):
21366         (struct dfa.success): Use char, not int, for array elements, since
21367         they are all in the range 0..7.
21369         dfa: simplify multibyte_prop etc.
21370         This follows up on a change made when dfa.c was in grep, namely grep
21371         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
21372         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
21373         That earlier simplification allows for some more simplification
21374         and trimming down here.
21375         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
21376         (struct lexer_state): New mamber brack.
21377         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
21378         since they must be in the range 0..3 now.
21379         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
21380         the brack member now supersedes them.
21381         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
21382         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
21383         (dfaparse): Remove unnecessary initializations of already-0 storage.
21384         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
21385         (dfassbuild): No need to clear sup->mbcsets.
21387         dfa: minor performance tweak
21388         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
21390         dfa: wrap charclass inside a struct
21391         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
21392         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
21393         about 5% faster, where list.txt is generated by 'aspell dump
21394         master | head -n 100000 >list.txt'.  See Bug#22239.
21395         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
21396         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
21397         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
21398         Adjust to this, e.g., by using charclass * rather than charclass.
21399         All callers changed as needed.
21400         (copyset): Remove.  All uses changed to simple assignment.
21401         (parse_bracket_exp): Use zeroset instead of memset.
21403 2016-12-30  Jim Meyering  <meyering@fb.com>
21405         maint.mk: update list of intprops.h symbol names
21406         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
21407         This avoids a false failure of the sc_prohibit_intprops_without_use
21408         rule in grep.
21410 2016-12-29  Eric Blake  <eblake@redhat.com>
21412         getopt: fix parallel test failure
21413         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
21414         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
21415         * tests/test-getopt-main.h (main): Use different file names
21416         in case test-getopt-gnu and test-getopt-posix run in parallel.
21418 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21420         xalloc: x2nrealloc check for ptrdiff_t overflow
21421         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
21422         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
21424 2016-12-24  Bruno Haible  <bruno@clisp.org>
21426         lock test: Fix performance problem on multi-core machines.
21427         * tests/test-lock.c (USE_VOLATILE): New macro.
21428         (struct atomic_int): New type.
21429         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
21430         functions.
21431         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
21432         as 'struct atomic_int'.
21433         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
21434         reclock_checker_thread, test_recursive_lock): Use the new functions.
21435         Reported by Eric Blake in
21436         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
21437         and by Pádraig Brady in
21438         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
21440 2016-12-19  Bruno Haible  <bruno@clisp.org>
21442         vma-iter: Fix endless loop on 64-bit Windows.
21443         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
21444         'unsigned long'.
21446 2016-12-19  Bruno Haible  <bruno@clisp.org>
21448         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
21449         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
21450         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
21451         Invoke gt_TYPE_WINT_T instead.
21452         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
21453         * modules/stdint (Files): Add m4/wint_t.m4.
21454         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
21455         * modules/wctype-h (Makefile.am): Likewise.
21456         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
21457         not only on MSVC.
21458         * lib/wctype.in.h (wint_t): Likewise.
21460 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21462         getopt-posix-tests: fix Makefile typo
21463         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
21464         Fix typo: the last ‘_’ was missing in the name.
21465         I suspect that the typo explains this build failure:
21466         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
21467         although I can’t reproduce the problem on Solaris 10 sparc.
21469 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21471         dfa: improve worst-case 'replace' performance
21472         See my note in Bug#22357#71.
21473         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
21474         (merge_constrained): New function, which is like
21475         the old 'merge' function, except with a new argument C2.
21476         Simplify the body by avoiding the need for different sections
21477         of code depending on whether one input is exhausted.
21478         (merge): Use the new function.
21479         (delete): Return the constraint of the deleted position,
21480         not the entire position.  Caller changed.
21481         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
21483 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
21485         dfa: performance improvement for removal of epsilon closure
21486         See Bug#22357#32.
21487         * lib/dfa.c (delete): Use binary search to find deleted index.
21488         (replace): New function.  It replaces a position with the followed set.
21489         (epsclosure): Replace it with a new algorithm.  Update caller.
21491 2016-12-18  Bruno Haible  <bruno@clisp.org>
21493         Split tests for getopt-posix and getopt-gnu.
21494         * tests/test-getopt-posix.c: New file.
21495         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
21496         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
21497         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
21498         GNULIB_TEST_GETOPT_GNU.
21499         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
21500         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
21501         (Makefile.am): Test test-getopt-posix instead of test-getopt.
21502         * modules/getopt-gnu-tests: New file.
21503         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
21505 2016-12-18  Bruno Haible  <bruno@clisp.org>
21507         posix-modules: Add options for specific platforms.
21508         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
21509         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
21510         Invoke func_tmpdir. Filter out the excludes.
21512 2016-12-18  Bruno Haible  <bruno@clisp.org>
21514         getopt: Fix link error for users of getopt() in <unistd.h>.
21515         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
21516         __need_getopt is defined. Undefine all macros before defining them.
21517         * modules/getopt (Include): Clarify that including <unistd.h> is also
21518         OK.
21519         * tests/test-getopt.c: Add comment.
21521 2016-12-17  Bruno Haible  <bruno@clisp.org>
21523         getaddrinfo tests: Avoid compilation error on MSVC.
21524         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
21525         getaddrinfo on native Windows.
21527 2016-12-17  Bruno Haible  <bruno@clisp.org>
21529         getlogin, getlogin_r: Fix link errors on MSVC.
21530         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
21531         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
21532         (Link): New section.
21533         * modules/getlogin_r (Files): Add m4/getlogin.m4.
21534         (configure.ac): Require gl_LIB_GETLOGIN.
21535         (Link): New section.
21536         * NEWS: Mention the new link requirements.
21537         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
21538         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
21540 2016-12-17  Bruno Haible  <bruno@clisp.org>
21542         Un-deprecate the 'progname' module.
21543         * NEWS: Describe the appropriate use-cases of 'progname' versus
21544         'getprogname'. Based on discussion summary at
21545         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
21547 2016-12-17  Bruno Haible  <bruno@clisp.org>
21549         Reorganize NEWS a bit.
21550         * NEWS: Move some not so important changes away from section
21551         "Important Notes".
21553 2016-12-17  Bruno Haible  <bruno@clisp.org>
21555         tanhf: Avoid redefinition error on MSVC.
21556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
21557         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
21558         may be defined as an inline function.
21559         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
21560         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
21562 2016-12-17  Bruno Haible  <bruno@clisp.org>
21564         tanf: Avoid redefinition error on MSVC.
21565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
21566         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
21567         may be defined as an inline function.
21568         * modules/math (Makefile.am): Substitute REPLACE_TANF.
21569         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
21571 2016-12-17  Bruno Haible  <bruno@clisp.org>
21573         sqrtf: Avoid redefinition error on MSVC.
21574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
21575         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
21576         may be defined as an inline function.
21577         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
21578         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
21580 2016-12-17  Bruno Haible  <bruno@clisp.org>
21582         sinhf: Avoid redefinition error on MSVC.
21583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
21584         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
21585         may be defined as an inline function.
21586         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
21587         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
21589 2016-12-17  Bruno Haible  <bruno@clisp.org>
21591         sinf: Avoid redefinition error on MSVC.
21592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
21593         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
21594         may be defined as an inline function.
21595         * modules/math (Makefile.am): Substitute REPLACE_SINF.
21596         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
21598 2016-12-17  Bruno Haible  <bruno@clisp.org>
21600         logf: Avoid redefinition error on MSVC.
21601         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
21602         may be defined as an inline function.
21604 2016-12-17  Bruno Haible  <bruno@clisp.org>
21606         log10l: Avoid redefinition error on MSVC.
21607         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
21608         may be defined as an inline function.
21610 2016-12-17  Bruno Haible  <bruno@clisp.org>
21612         log10f: Avoid redefinition error on MSVC.
21613         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
21614         may be defined as an inline function.
21616 2016-12-17  Bruno Haible  <bruno@clisp.org>
21618         hypotl: Avoid redefinition error on MSVC.
21619         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
21620         may be defined as an inline function.
21622 2016-12-17  Bruno Haible  <bruno@clisp.org>
21624         hypotf: Avoid redefinition error on MSVC.
21625         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
21626         may be defined as an inline function.
21628 2016-12-17  Bruno Haible  <bruno@clisp.org>
21630         fmodl: Avoid redefinition error on MSVC.
21631         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
21632         may be defined as an inline function.
21634 2016-12-17  Bruno Haible  <bruno@clisp.org>
21636         fmodf: Avoid redefinition error on MSVC.
21637         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
21638         may be defined as an inline function.
21640 2016-12-17  Bruno Haible  <bruno@clisp.org>
21642         expf: Avoid redefinition error on MSVC.
21643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
21644         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
21645         may be defined as an inline function.
21646         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
21647         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
21649 2016-12-17  Bruno Haible  <bruno@clisp.org>
21651         coshf: Avoid redefinition error on MSVC.
21652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
21653         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
21654         may be defined as an inline function.
21655         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
21656         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
21658 2016-12-17  Bruno Haible  <bruno@clisp.org>
21660         cosf: Avoid redefinition error on MSVC.
21661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
21662         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
21663         may be defined as an inline function.
21664         * modules/math (Makefile.am): Substitute REPLACE_COSF.
21665         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
21667 2016-12-17  Bruno Haible  <bruno@clisp.org>
21669         atan2f: Avoid redefinition error on MSVC.
21670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
21671         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
21672         may be defined as an inline function.
21673         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
21674         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
21676 2016-12-17  Bruno Haible  <bruno@clisp.org>
21678         atanf: Avoid redefinition error on MSVC.
21679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
21680         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
21681         may be defined as an inline function.
21682         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
21683         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
21685 2016-12-17  Bruno Haible  <bruno@clisp.org>
21687         asinf: Avoid redefinition error on MSVC.
21688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
21689         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
21690         may be defined as an inline function.
21691         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
21692         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
21694 2016-12-17  Bruno Haible  <bruno@clisp.org>
21696         acosf: Avoid redefinition error on MSVC.
21697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
21698         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
21699         may be defined as an inline function.
21700         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
21701         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
21703 2016-12-17  Bruno Haible  <bruno@clisp.org>
21705         Avoid redefinition errors on MSVC.
21706         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
21707         the function may be defined as an inline function.
21708         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
21709         the function may be defined as an inline function.
21711 2016-12-17  Bruno Haible  <bruno@clisp.org>
21713         Avoid redefinition errors on MSVC.
21714         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
21715         * lib/unistd.in.h: Include <stdio.h> when necessary.
21717 2016-12-17  Bruno Haible  <bruno@clisp.org>
21719         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
21720         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
21721         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
21722         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
21723         WINT_MAX.
21725 2016-12-17  Bruno Haible  <bruno@clisp.org>
21727         Avoid autoconf warning.
21728         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
21729         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
21731 2016-12-17  Bruno Haible  <bruno@clisp.org>
21733         fpending: Revert workaround against Emacs bug.
21734         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
21735         The Emacs bug is fixed by Eli Zaretskii in
21736         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
21738 2016-12-17  Bruno Haible  <bruno@clisp.org>
21740         getlogin_r tests: Port to mingw.
21741         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
21742         regression introduced on 2014-05-19.
21744 2016-12-17  Bruno Haible  <bruno@clisp.org>
21746         getlogin: Port to newer mingw.
21747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
21748         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
21749         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
21750         HAVE_GETLOGIN.
21751         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
21752         HAVE_GETLOGIN.
21753         * doc/posix-functions/getlogin.texi: Mention the issue.
21754         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
21755         regression introduced on 2014-05-14.
21757 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
21759         builtin-expect: improve port to IBM XL C
21760         Problem reported for z/OS by Daniel Richard G. in:
21761         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
21762         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
21763         Test for <builtins.h> directly.
21765         builtin-expect: port to IBM XL C
21766         Problem reported for z/OS by Daniel Richard G. in:
21767         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
21768         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
21769         Also allow __builtin_expect defined via a standard include file.
21771         regex: fix dependency
21772         Problem reported by Bruno Haible in:
21773         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
21774         * modules/regex: Depend on builtin-expect.
21776         builtin-expect: new module
21777         Fix fnmatch to use it.
21778         Problem reported for z/OS by Daniel Richard G.
21779         * lib/fnmatch.c (__builtin_expect):
21780         * lib/glob.c (__builtin_expect):
21781         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
21782         * lib/memmem.c (__builtin_expect) [!_LIBC]:
21783         * lib/scandir.c (__builtin_expect):
21784         * lib/strstr.c (__builtin_expect) [!_LIBC]:
21785         Remove macro; config.h now does this.
21786         * lib/gl_anytreehash_list1.h (add_to_bucket):
21787         * lib/regex_internal.h (BE):
21788         Assume __builtin_expect.
21789         * m4/builtin-expect.m4, modules/builtin-expect: New files.
21790         * modules/avltreehash-list, modules/fnmatch, modules/glob:
21791         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
21792         * modules/scandir, modules/strstr-simple:
21793         Depend on builtin-expect.
21795 2016-12-15  Bruno Haible  <bruno@clisp.org>
21797         init.sh: Add possibility to not delete temporary files.
21798         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
21799         to yes, don't erase the temporary directory.
21801 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
21803         regex: fix integer-overflow bug in never-used code
21804         Problem reported by Clément Pit–Claudel in:
21805         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
21806         * lib/regex_internal.h: Include intprops.h.
21807         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
21808         behavior on integer overflow.
21809         * modules/regex (Depends-on): Add intprops.
21811         fpending: fix port to MinGW on Emacs
21812         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
21813         Problem reported by Eli Zaretskii in:
21814         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
21815         Is Plan 9 still a valid porting target, anyway?
21817 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
21819         safe-alloc: use xalloc-oversized
21820         * lib/safe-alloc.c: Include xalloc-oversized.h.
21821         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
21822         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
21824         xalloc: do not exceed PTRDIFF_MAX
21825         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
21826         xalloc_oversized check, since objects larger than PTRDIFF_MAX
21827         bytes have pointer-subtraction problems.
21829         malloca: do not exceed PTRDIFF_MAX
21830         * lib/malloca.h: Include xalloc-oversized.
21831         (nmalloca): Use xalloc_oversized instead of rolling our own.
21832         * modules/malloca (Depends-on):
21833         * modules/relocatable-prog-wrapper (Depends-on):
21834         Add xalloc-oversized.
21836         quotearg: pacify GCC better
21837         * modules/quotearg (Depends-on): Add minmax, stdint.
21838         * lib/quotearg.c: Include minmax.h, stdint.h.
21839         (nslots): Now int, as there seems little point to going to extra
21840         work merely to support the INT_MAX slot, which nobody ever uses.
21841         (quotearg_n_options): Redo size-overflow checks to pacify GCC
21842         and to catch (mostly-theoretical) ptrdiff_t problems too.
21843         This can be done via one comparison.
21845 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
21847         xalloc-oversized: check for PTRDIFF_MAX too
21848         This avoids undefined behavior when subtracting pointers to
21849         objects containing more than PTRDIFF_MAX bytes.
21850         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
21851         Also return 1 if the result would exceed PTRDIFF_MAX>
21852         * modules/xalloc-oversized (Depends-on):
21853         Add stdint.
21855         dfa: fix glitches in previous commit
21856         Sorry, I don't know how I managed to commit the wrong version.
21857         * lib/dfa.c (MIN): Move up.
21858         (xpalloc): Now static.
21860         dfa: fix some unlikely integer overflows
21861         I found these while reviewing the recent Coverity-related fix.
21862         This patch changes part of dfa.c to prefer ptrdiff_t instead of
21863         size_t for object counts.  Using ptrdiff_t is the style typically
21864         used in Emacs; although it wastes a sign bit as sizes can never be
21865         negative, it makes -fsanitize=undefined more likely to catch
21866         integer overflows in index calculation, and nowadays the upside is
21867         typically more important than the downside.  Although perhaps the
21868         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
21869         of dfa.c already does, since it uses state_num which is signed),
21870         that is a bigger change and is not needed to fix the bugs I found.
21871         * lib/dfa.c: Include stdint.h and intprops.h.
21872         (TOKEN_MAX): New macro.
21873         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
21874         (charclass_index, parse_bracket_exp, addtok, insert, merge)
21875         (realloc_trans_if_necessary, free_mbdata):
21876         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
21877         This is safe because xpalloc checks that the sizes do not exceed
21878         either SIZE_MAX or PTRDIFF_MAX.
21879         (xpalloc): New function, mostly taken from Emacs.
21880         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
21881         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
21882         (charclass_index): Check for integer overflow in computing
21883         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
21884         added to it later.
21885         (alloc_position_set): Check for integer overflow.  On typical
21886         platforms this check has zero overhead, since the constant
21887         expression is false.
21888         (realloc_trans_if_necessary):
21889         Remove assertion, which I hope Coverity no longer needs.
21891         * modules/dfa (Depends-on): Add intprops, stdint.
21893 2016-12-12  Jim Meyering  <meyering@fb.com>
21895         dfa: add an assertion to avoid coverity false positive
21896         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
21897         warned that "newalloc1 - 2" could overflow.
21899 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
21901         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
21902         * dfa.h (DFA_CASE_FOLD): Remove.
21903         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
21905 2016-12-13  John W. Eaton  <gnu@jweaton.org>
21907         link: fix test to declare use of rename()
21908         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
21909         -Werror=implicit-function-declaration
21911 2016-12-12  Bruno Haible  <bruno@clisp.org>
21913         fpending: Port to native Windows with MSVC.
21914         * lib/fpending.c: Include stdio-impl.h.
21915         (__fpending): Include all known implementations. Err out if it's not
21916         ported.
21917         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
21918         * modules/fpending (Files): Add lib/stdio-impl.h.
21919         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
21921 2016-12-12  Bruno Haible  <bruno@clisp.org>
21923         stdioext: Port to native Windows with MSVC.
21924         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
21925         (struct _gl_real_FILE): New type.
21926         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
21927         Windows.
21928         * lib/fbufmode.c (fbufmode): Add code for native Windows.
21929         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
21930         other SystemV derived implementations.
21931         * lib/fpurge.c (fpurge): Likewise.
21932         * lib/freadable.c (freadable): Likewise.
21933         * lib/freadahead.c (freadahead): Likewise.
21934         * lib/freading.c (freading): Likewise.
21935         * lib/freadptr.c (freadptr): Likewise.
21936         * lib/freadseek.c (freadptrinc): Likewise.
21937         * lib/fseeko.c (fseeko): Likewise.
21938         * lib/fseterr.c (fseterr): Likewise.
21939         * lib/fwritable.c (fwritable): Likewise.
21940         * lib/fwriting.c (fwriting): Likewise.
21941         Reported by Gisle Vanem <gvanem@yahoo.no>.
21943 2016-12-11  Jim Meyering  <meyering@fb.com>
21945         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
21946         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
21947         to work with most shells, but not with the one provided by many
21948         Solaris 10 systems, so running configure with such a /bin/sh evokes
21949         e.g., "./configure: syntax error at line 33602: `(' unexpected".
21950         Reported by Assaf Gordon in
21951         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
21953 2016-12-10  Bruno Haible  <bruno@clisp.org>
21955         threadlib: Optimize out runtime test on Solaris >= 10.
21956         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
21957         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
21958         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
21960 2016-12-10  Bruno Haible  <bruno@clisp.org>
21962         stdint: Update doc about Solaris 9.
21963         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
21965 2016-12-09  Bruno Haible  <bruno@clisp.org>
21967         c-ctype tests: Fix link error on Solaris 9.
21968         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
21969         Reported at <https://savannah.gnu.org/bugs/?46827>.
21971 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
21973         dfa: fix performance bug that recomputes trans
21974         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
21975         25 on-demand changes.  The bug caused build_state to reset all
21976         d->trans elements to -2 even when d->trans was already non-null.
21977         Use C99 style decls after statements in this function.
21979         same-inode: port to MinGW
21980         Here st_ino is always 0, so change the definition of SAME_INODE so
21981         that 1 means the two files are the same, 0 with st_ino != 0 means
21982         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
21983         reported by Bruno Haible (Bug#25146).
21984         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
21985         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
21987 2016-12-04  Bruno Haible  <bruno@clisp.org>
21989         javacomp-script: Support Java 7 and 8.
21990         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
21991         target-version 1.7, 1.8.
21993 2016-12-02  Daiki Ueno  <ueno@gnu.org>
21995         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
21996         GPLv2" rewriting.
21998 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
22000         * gnulib-tool (func_import): Adhere to the license guideline when
22001         rewriting the license text to "LGPLv3+ or GPLv2":
22002         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
22004 2016-12-02  Bruno Haible  <bruno@clisp.org>
22006         localcharset: Avoid theoretical buffer overrun.
22007         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
22008         return value from setlocale if it would lead to a buffer overrun.
22010 2016-12-01  Bruno Haible  <bruno@clisp.org>
22012         Relicense some modules under LGPLv2+.
22013         Kevin Cernekee's approval is in
22014         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
22015         * modules/fseterr (License): Change to LGPLv2+.
22016         * modules/mbchar (License): Likewise.
22017         * modules/mbiter (License): Likewise.
22018         * modules/mbsnlen (License): Likewise.
22019         * modules/wcwidth (License): Likewise.
22021 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22023         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
22024         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
22025         OS/2 kLIBC.
22027 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22029         alphasort, scandir: Port to OS/2 kLIBC
22030         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
22031         declaration.
22032         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
22034 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22036         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
22037         * lib/relocatable.c (relocate): Do not touch pathname if it is started
22038         with '/@unixroot'.
22040 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22042         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
22043         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
22044         OS/2 kLIBC unless TCPV40HDRS is defined.
22046 2016-11-29  Jim Meyering  <meyering@fb.com>
22048         dfa: avoid new infinite loop
22049         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
22050         * lib/dfa.c (dfastate): When constructing a new state table, we could
22051         initially declare that we had found a match, and later find that
22052         constraints eliminate that possibility, yet continue to use the
22053         now stale "matched" indicator.  That would lead to an infinite loop.
22054         The solution is to update "matched" when necessary.
22055         Introduced by commit v0.1-983-g403adf1.
22057 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22059         dfa: avoid match middle in multibyte character
22060         * lib/dfa.c (transit_state): If fails in matching single byte characters
22061         on a state including period expression in non-UTF8 multibyte locales,
22062         skip trailing bytes.
22063         (dfa_supported): Revert previous change.
22065 2016-11-27  Jim Meyering  <meyering@fb.com>
22067         dfa: avoid false match in non-UTF8 multibyte locales
22068         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
22069         as "not supported" so that callers will resort to using regex-based
22070         matcher.  This will surely hurt performance, but correctness trumps
22071         performance here, and the affected locales are less and less relevant,
22072         these days.  See grep's bug report https://bugs.gnu.org/24975.
22074 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
22076         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
22077         * lib/ptsname_r.c: Include the appropriate headers.
22078         [__sun]: Delete sys/sysmacros.h include.
22079         [_AIX || __osf__]: Likewise.
22080         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
22082 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22084         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
22085         * lib/md4.c (md4_process_bytes): The existing define is made internal
22086         in recent versions of glibc, so also use this new public define.
22087         * lib/md5.c (md5_process_bytes): Likewise.
22088         * lib/sha1.c (sha1_process_bytes): Likewise.
22089         * lib/sha256.c (sha256_process_bytes): Likewise.
22090         * lib/sha512.c (sha512_process_bytes): Likewise.
22092 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22094         maint: use a more standard return from mbrtowc test
22095         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
22096         from the test program as this often indicates an
22097         unhandled case in the test program.
22098         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
22099         (gl_MBRTOWC_SANITYCHECK): Likewise.
22100         (gl_MBRTOWC_NULL_ARG2): Likewise.
22101         (gl_MBRTOWC_NUL_RETVAL): Likewise.
22103 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
22105         freopen: work around glibc bug with closed fd
22106         Work around glibc bug#15589, where freopen mishandles the case
22107         where stdin etc. are already closed.
22108         * doc/posix-functions/freopen.texi (freopen): Document the bug.
22109         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
22110         instead of __need_FILE, as the latter does not work with glibc.
22111         Include <fcntl.h>, for open flags.
22112         (rpl_freopen): Work around glibc bug.
22113         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
22114         * modules/freopen (Depends-on): Add fcntl-h.
22115         * tests/test-freopen.c (main): Test for bug.
22117 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22119         fnmatch: fix typo introduced on 2016-08-17
22120         This fixes the port to non-GCC compilers that lack __builtin_expect.
22121         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
22123         dfa: simplify with new function fillset
22124         * lib/dfa.c (fillset): New function.
22125         Use it for clarity when applicable.
22127         dfa: fix glitches with on-demand states
22128         Also, adjust commentary to better match new code.
22129         Some of these glitches predate the recent change.
22130         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
22131         only non-initial states.
22132         (dfastate): Rename locals to better match new roles.
22133         Move them into nested scopes if this is easy.
22134         Omit unnecessary calls to zeroset.
22135         Simplify test for whether to throw in the positions of state 0.
22136         Omit C99-ism (decl after statement) since Gawk still wants C89.
22137         (build_state): Omit unnecessary test and assignment.
22138         Fix some confusion that counted transition tables inaccurately
22139         and could cause a memory leak.
22140         (dfaexec_main): Redo to make it clearer to the compiler that
22141         -1 and -2 are the only negative state numbers here.
22143 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22145         dfa: addition of new state on demand
22146         * src/dfa.c (dfastate): Add argument UC, the current input character.
22147         Fill only a group including the character in transition table.
22148         (realloc_trans_if_necessary): Add the dummy state which means that a
22149         transition table is assigned but the next state is not assigned.
22150         (build_state): Return the next state.  All callers updated.
22151         (transit_state_singlebyte): If we get the dummy state,
22152         fill the transition table.
22153         (dfaexec_main): Handle the dummy state.
22154         (free_mbdata, dfafree): Consider the dummy state.
22156 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22158         srclist: sync with released gettext
22159         * config/srclist.txt: Set "release" option to the files under
22160         $GETTEXT.
22162 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22164         srclist: add "release" option
22165         * config/srclist.txt: Change the format so that the first column
22166         of each line points to the top-level directory of the source
22167         archive.
22168         * config/srclist-update: Accept "release" option that checks files
22169         from the most recently tagged revision in the source archive.
22171 2016-11-21  Bruno Haible  <bruno@clisp.org>
22173         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
22174         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22175         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
22176         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
22177         Inline and remove member function 'rpl ()' of the wrapper struct.
22179 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
22181         dfa: fix logic typo
22182         Problem reported by Stephane Chazelas (Bug#24973).
22183         * lib/dfa.c (using_simple_locale): Fix typo that caused some
22184         non-simple locales like fr_FR to be treated as simple.
22186 2016-11-20  Jim Meyering  <meyering@fb.com>
22188         fix test driver leaks: exclude, malloc, realloc
22189         * tests/test-exclude.c (main): Fix trivial leak.
22190         * tests/test-malloc-gnu.c (main): Likewise.
22191         * tests/test-realloc-gnu.c (main): Likewise.
22192         With these changes, grep's tests are now leak free.
22193         I.e., running them with ASAN elicits no failure:
22194           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
22195             AM_LDFLAGS='-fsanitize=address -static-libasan' check
22197 2016-11-11  Bruno Haible  <bruno@clisp.org>
22199         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
22200         * modules/libunistring: (License): Change from LGPL to
22201         "LGPLv3+ or GPLv2".
22202         * modules/libunistring-optional: Likewise.
22203         * modules/unicase/*: Likewise.
22204         * modules/uniconv/*: Likewise.
22205         * modules/unictype/*: Likewise.
22206         * modules/unigbrk/*: Likewise.
22207         * modules/unilbrk/*: Likewise.
22208         * modules/uniname/*: Likewise.
22209         * modules/uninorm/*: Likewise.
22210         * modules/unistdio/*: Likewise.
22211         * modules/unistr/*: Likewise.
22212         * modules/uniwbrk/*: Likewise.
22213         * modules/uniwidth/*: Likewise.
22215 2016-11-12  Bruno Haible  <bruno@clisp.org>
22217         Relicense some modules under LGPLv2+.
22218         Paul Eggert's approval is in
22219         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
22220         Eric Blake's approval is in
22221         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
22222         Ludovic Courtès's approval is in
22223         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
22224         * modules/isnand-nolibm (License): Change to LGPLv2+.
22225         * modules/isnanf-nolibm (License): Likewise.
22226         * modules/isnanl-nolibm (License): Likewise.
22228 2016-11-19  Bruno Haible  <bruno@clisp.org>
22230         Relicense some modules under LGPLv2+.
22231         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
22232         modules/vasnprintf.
22233         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
22234         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
22235         All other significant changes to the files in lib/ of these modules
22236         are from me.
22237         * modules/memcmp2 (License): Change to LGPLv2+.
22238         * modules/amemxfrm (License): Likewise.
22239         * modules/fpieee (License): Likewise.
22240         * modules/fpucw (License): Likewise.
22241         * modules/frexp-nolibm (License): Likewise.
22242         * modules/frexpl-nolibm (License): Likewise.
22243         * modules/printf-frexp (License): Likewise.
22244         * modules/printf-frexpl (License): Likewise.
22245         * modules/printf-safe (License): Likewise.
22246         * modules/signbit (License): Likewise.
22248 2016-11-17  Bruno Haible  <bruno@clisp.org>
22250         Enable Unicode decoder safety unconditionally.
22251         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
22252         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
22253         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
22254         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
22255         * lib/unistr/u8-prev.c (u8_prev): Likewise.
22256         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
22257         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
22258         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
22259         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
22260         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
22261         * lib/unistr/u16-prev.c (u16_prev): Likewise.
22262         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
22263         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
22264         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
22265         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
22266         * lib/unistr/u32-prev.c (u32_prev): Likewise.
22267         * lib/unistr/u32-next.c (u32_next): Likewise.
22268         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
22269         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
22270         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22271         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
22272         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
22273         CONFIG_UNICODE_SAFETY tests unconditionally.
22274         * tests/unistr/test-u32-mblen.c (main): Likewise.
22275         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
22276         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
22277         * tests/unistr/test-u32-next.c (main): Likewise.
22278         * tests/unistr/test-u32-strmblen.c (main): Likewise.
22279         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
22280         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
22281         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
22282         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
22283         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
22284         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
22285         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
22286         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22287         * lib/unistr/u16-check.c (u16_check): Update comment.
22288         * NEWS: Mention the changes that callers should be aware of.
22290 2016-11-19  Bruno Haible  <bruno@clisp.org>
22292         relocatable-prog-wrapper: Fix breakage on Cygwin.
22293         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
22294         (Depends-on): Remove intprops.
22295         * lib/relocwrapper.c: Update dependency tree.
22296         (strerror): Undefine.
22297         * build-aux/install-reloc (func_create_wrapper): Do not compile
22298         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
22300 2016-11-19  Bruno Haible  <bruno@clisp.org>
22302         strerror: Make it compile in C++ mode.
22303         * lib/strerror.c (strerror): Ignore the return value of memcpy().
22305 2016-11-15  Pedro Alves  <palves@redhat.com>
22307         sys_time: add gnulib::timeval for C++
22308         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
22309         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
22310         timeval macro.
22312 2016-11-14  Pedro Alves  <palves@redhat.com>
22314         snippet/c++defs: fix real-floating arg functions in C++ mode
22315         Also, define isfinite, isinf, isnan, signbit in the gnulib
22316         namespace instead of in the global namespace.
22317         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
22318         (_GL_END_NAMESPACE): New.
22319         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
22320         (isfinite, isinf, isnan, signbit) [__cplusplus &&
22321         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
22322         instead of in the global namespace.
22323         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
22324         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
22325         of in the global namespace.
22327 2016-11-13  Jim Meyering  <meyering@fb.com>
22329         strftime: don't use __THROW
22330         Each use of __THROW would provoke this from gcc-7-to-be:
22332           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
22333             on unit local functions [-Wattributes]
22334           static int iso_week_days (int, int) __THROW;
22335           ^~~~~~
22336         * lib/strftime.c (__THROW): Don't define.
22337         Remove each use of __THROW.
22338         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
22339         (tm_diff, iso_week_days, __strftime_internal): Likewise.
22341 2016-11-14  Paul Eggert  <eggert@union>
22343         obstack: port to gcc -fcheck-pointer-bounds
22344         Problem found by 'make check' failure on bleeding-edge coreutils
22345         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
22346         6.2.0-5ubuntu12), configured via "./configure
22347         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
22348         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
22349         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
22350         New macro, copied from fts_.h.
22351         (struct _obstack_chunk.contents): Use it.
22353 2016-11-14  Eric Blake  <eblake@redhat.com>
22355         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
22356         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
22357         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
22359 2016-11-14  Pádraig Brady  <P@draigBrady.com>
22361         strptime: fix compile error in recent change
22362         * lib/strptime.c (__strptime_internal): Fix ported code.
22364 2016-11-11  Bruno Haible  <bruno@clisp.org>
22366         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
22367         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
22368         (func_import): Extend determination of license_incompatibilities.
22369         (func_create_testdir): Extend table of license compatibility. Handle
22370         also the licenses GPLv3+, GPL, LGPLv3+.
22372 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
22374         strftime: tune %q
22375         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
22377         Merge strftime.c changes from glibc
22378         This incorporates:
22379         2007-10-16 [BZ #5184] Add tzset_called argument
22380         2008-06-13 [BZ #6612] pass reference to tzset_called around
22381         2009-10-30 Implement Burmese language locale for Myanmar
22382         2010-01-09 Add support for XPG7 testing
22383         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
22384         2015-10-20 Convert miscellaneous function definitions to prototype style
22385         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
22386         it anyway and this lessens the difference between gnulib and glibc.
22387         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
22388         (__THROW): Define if standard headers do not.
22389         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
22390         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
22391         Declare with __THROW.
22392         (__strftime_internal): Rename from strftime_case_. Add arg for
22393         whether tzset is called.  All uses changed.  Call tzset at most
22394         once.  Allow %OC, for Burmese.
22395         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
22396         Don't assume values are in range.
22398 2016-11-12  Eric Blake  <eblake@redhat.com>
22400         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
22401         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
22402         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
22403         different value.
22405 2006-11-12  Pedro Alves  <palves@redhat.com>
22407         Fix gnulib C++ namespace support and std::frexp
22408         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
22409         _GL_CXXALIASWARN.
22411 2006-11-12  Pedro Alves  <palves@redhat.com>
22413         GNULIB_NAMESPACE::func need not pull in rpl_func
22414         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22415         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
22416         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
22417         struct instead of a function pointer.
22419 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
22421         manywarnings: fix -Wno-missing-field-initializers detection
22422         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
22423         to be independent of -Wunused-variable.  I.E. ensure the latter
22424         warning doesn't occur so that detection of the former is accurate.
22426 2016-11-05  Pádraig Brady  <pbrady@fb.com>
22428         strftime,strptime: support %q to represent the quarter
22429         * lib/strftime.c (strftime_case_): Add %q case.
22430         * lib/strptime.c (__strptime_internal): Likewise.
22431         * tests/test-strftime.c (quarter_test): A new test case.
22433 2016-11-03  Eric Blake  <eblake@redhat.com>
22435         bootstrap: Fix get_version() for AIX 5.3
22436         * build-aux/bootstrap (get_version): Factor out sed script, since
22437         indented comments choke AIX 5.3 sed.
22438         Reported-by: Michael Felt <aixtools@gmail.com>
22440 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22442         intprops: port to older XL C
22443         Problem reported by Alexander Samoilov in:
22444         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
22445         http://savannah.nongnu.org/bugs/?49448
22446         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
22447         Define to 1 only for XL C 12.1 or later, since this bug
22448         occurs in XL C for AIX 6.0 but not in 12.1.
22450 2016-11-02  Pádraig Brady  <P@draigBrady.com>
22452         backupfile: initialize default suffix within the implementation
22453         * lib/backupfile.c (find_backup_file_name): Initialize the
22454         global variable here, to simplify usage, and to only call
22455         getenv() when needed.
22457 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22459         futimens: remove FIXME for old Linux kernels
22460         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
22461         this in 2012" FIXME, like that for utimensat.
22463         utimensat: remove FIXME for old Linux kernels
22464         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
22465         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
22466         this in 2012" FIXME, by assuming the file system bug is absent
22467         unless demonstrated to be present.  We no longer need to worry
22468         about Linux kernel 2.6.32 when building with newer kernels.
22470 2016-10-16  Bruno Haible  <bruno@clisp.org>
22472         qsort_r: Fix macrology for platforms that lack the function.
22473         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
22474         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
22475         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
22476         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
22477         not exist.
22478         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
22479         the function exists.
22480         * modules/qsort_r: Add comments.
22482 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22484         sys_types: fix Texinfo typos
22485         * doc/glibc-functions/gnu_dev_major.texi:
22486         * doc/glibc-functions/gnu_dev_makedev.texi:
22487         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
22489 2016-10-26  John David Anglin  <dave.anglin@bell.net>
22491         getprogname: port to HP-UX
22492         See Bug#24805.
22493         * lib/getprogname.c (getprogname) [__hpux]: Port.
22494         * tests/test-getprogname.c (STREQ) [__hpux]:
22495         Special-case for HP-UX limitations on program name length.
22497 2016-10-20  Bruno Haible  <bruno@clisp.org>
22499         Update doc about target platforms.
22500         * doc/gnulib-intro.texi (Target Platforms): Update list.
22502 2016-10-15  Bruno Haible  <bruno@clisp.org>
22504         opendir, readdir, closedir: Relicense under LGPLv2+.
22505         * modules/opendir (License): Change to LGPLv2+.
22506         * modules/readdir (License): Likewise.
22507         * modules/closedir (License): Likewise.
22509 2016-10-16  Bruno Haible  <bruno@clisp.org>
22511         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
22512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
22513         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
22514         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
22515         HAVE_DECL_STRERROR_R.
22517 2016-10-16  Bruno Haible  <bruno@clisp.org>
22519         Make the 'argp' module work without the 'error' module.
22520         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
22522 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
22524         diffseq: restore TOO_EXPENSIVE heuristic
22525         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
22526         (Bug#24715).  The simplest solution is to restore the
22527         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
22528         using a higher threshold to avoid Bug#16848 on smaller files.
22529         * lib/diffseq.h (struct context): Restore member too_expensive.
22530         (struct partition): Restore members lo_minimal, hi_minimal.
22531         (diag, compareseq): Restore arg find_minimal.  All uses changed.
22532         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
22533         1993 to make 'diff' run faster (but not as well) on large inputs,
22534         but use a threshold of 4096 instead of the old 256.
22535         * lib/fstrcmp.c (strcmp_bounded):
22536         * lib/git-merge-changelog.c (compute_differences):
22537         Adjust to diffseq.h changes.
22539 2016-10-22  Bruno Haible  <bruno@clisp.org>
22541         iconv: Avoid compilation error when bootstrapping GNU libiconv.
22542         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
22543         declaration yet, define ICONV_CONST to empty.
22545 2016-10-15  Bruno Haible  <bruno@clisp.org>
22547         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
22548         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
22549         module.
22551 2016-10-16  Bruno Haible  <bruno@clisp.org>
22553         system-quote tests: Avoid compiler warning on AIX.
22554         * tests/test-system-quote-child.c (fopen): Redefine like the system's
22555         <stdio.h> does.
22557 2016-10-16  Bruno Haible  <bruno@clisp.org>
22559         Fix some "gcc -Wall" warnings.
22560         * tests/test-ffsl.c (main): Use variable x, not i.
22561         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
22562         freopen.
22563         * tests/test-sethostname1.c (main): Explicitly ignore the return value
22564         of sethostname.
22566 2016-10-16  Bruno Haible  <bruno@clisp.org>
22568         gnulib-tool: Make --create-testdir on all modules work again.
22569         * gnulib-tool (func_create_testdir): Don't include the
22570         non-recursive-gnulib-prefix-hack module.
22572 2016-10-21  Daiki Ueno  <ueno@gnu.org>
22574         libunistring: change the maintainer to 'all'
22575         * modules/gen-uni-tables, modules/libunistring:
22576         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
22577         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
22578         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
22579         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
22580         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
22581         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
22582         * modules/uniwidth/*: Change the maintainer to 'all'.
22584 2016-10-16  Bruno Haible  <bruno@clisp.org>
22586         Simplify "configure: checking ..." messages.
22587         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
22588         AC_MSG_NOTICE.
22589         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
22591 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
22593         quotearg-tests: pacify gcc -Wall
22594         Problem reported by Bruno Haible in:
22595         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
22596         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
22597         * tests/test-quotearg.h: ... from here.
22599 2016-10-20  Pádraig Brady  <P@draigBrady.com>
22601         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
22602         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
22603         Needed on Centos <= 4.
22605 2016-10-20  Jim Meyering  <meyering@fb.com>
22607         printf.m4: fix a bug in detecting printf %j support
22608         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
22609         uintmax_t is defined in neither stdint.h nor inttypes.h.
22610         Before, this macro might have mistakenly set
22611         gl_cv_func_printf_sizes_c99=yes on such a system.
22612         Spotted by Zev Weiss.
22614 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
22616         sched: substitute HAVE_SYS_CDEFS_H too
22617         Problem reported by Tom G. Christensen in:
22618         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
22619         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
22620         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
22622 2016-10-19  Pádraig Brady  <P@draigBrady.com>
22624         quotearg: never write beyond the returned length
22625         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
22626         scan of the string when we initially encounter a single quote when
22627         shell quoting, so that if we then switch to a more concise quoting method
22628         we will not have written beyond that returned length.
22629         This is significant for sh-quote, which has separate routines
22630         to determine the length and do the actual quoting.
22631         * tests/test-quotearg.h: Reinstate the buffer bounds checking
22632         now that we never write more than the returned length.
22634 2016-10-18  Bruno Haible  <bruno@clisp.org>
22636         getprogname tests: Avoid failure in packages that use libtool.
22637         * tests/test-getprogname.c (main): Strip "lt-" prefix.
22638         Based on a patch by Jim Meyering.
22640 2016-10-16  Bruno Haible  <bruno@clisp.org>
22642         getprogname: Fix test failure on Cygwin. Comments.
22643         * lib/getprogname.h: Add comments.
22644         * lib/getprogname.c: Add comments. Fix #elif indentation.
22645         * tests/test-getprogname.c (main): On Cygwin, expect a result without
22646         ".exe" suffix.
22648 2016-10-16  Bruno Haible  <bruno@clisp.org>
22650         Make sure the libunistring detection rejects older versions with a
22651         known bug.
22652         * modules/unistr/u8-strtok (configure.ac): Bump required version.
22653         * modules/unistr/u16-strtok (configure.ac): Likewise.
22654         * modules/unistr/u32-strtok (configure.ac): Likewise.
22656 2016-10-18  Bruno Haible  <bruno@clisp.org>
22658         sh-quote, system-quote: revert regression of unit test.
22659         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
22660         * tests/test-system-quote-main.c (check_one): Likewise.
22662 2016-10-16  Pádraig Brady  <P@draigBrady.com>
22664         quotearg: fix stale tests
22665         * tests/test-quotearg.c [locale_results]: Add the missing str7
22666         entries to the expected results.
22667         * tests/test-system-quote-main.c (check_one): Don't enforce that we
22668         don't write beyond the returned length, since that's no longer the
22669         case if we switch to a more concise quoting style.
22670         * tests/test-sh-quote.c (check_one): Likewise.
22671         (main): Adjust for the new more concise quoting style.
22672         Reported by Bruno Haible.
22674 2016-10-16  Jim Meyering  <meyering@fb.com>
22676         non-recursive-gnulib-prefix-hack: fix inconsequential typo
22677         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
22678         to "$1".  This macro is always invoked with $1 == lib.
22679         Spotted by Bruno Haible
22681 2016-10-16  Bruno Haible  <bruno@clisp.org>
22683         Fix a test crash.
22684         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
22685         fails.
22687 2016-10-16  Pádraig Brady  <P@draigBrady.com>
22689         test-limits-h: suppress -Woverlength-strings
22690         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
22692 2016-10-15  Bruno Haible  <bruno@clisp.org>
22694         gettime, timespec, utimens: Relicense under LGPL.
22695         * modules/gettime (License): Change to LGPL.
22696         * modules/timespec (License): Likewise.
22697         * modules/utimens (License): Likewise.
22699 2016-10-14  Bruno Haible  <bruno@clisp.org>
22700             Pádraig Brady  <P@draigBrady.com>
22702         canonicalize-lgpl: Support the case path_max > INT_MAX.
22703         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
22704         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
22706 2016-10-13  Jim Meyering  <meyering@fb.com>
22708         getprogname: IBM z/OS: avoid NULL-dereference
22709         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
22710         upon strdup failure.
22712 2016-10-12  Jim Meyering  <meyering@fb.com>
22714         test-stdint: use _GL_VERIFY rather than "verify" for some tests
22715         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
22716         and an abbreviated diagnostic rather than verify with the full one,
22717         because the full-length strings would evoke warnings from gcc with
22718         -Woverlength-strings.
22720 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
22722         stdint: port SIZE_MAX to glibc s390
22723         Problem reported by Eric Blake in:
22724         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
22725         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
22726         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
22727         correct type, if possible.
22729 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
22731         getprogname: port to IBM z/OS
22732         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
22734 2016-10-11  Jim Meyering  <meyering@fb.com>
22736         maint: remove stray space after "." in AC_DEFINE comment.
22737         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
22738         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22740 2016-10-05  Jim Meyering  <meyering@fb.com>
22742         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
22743         * lib/long-options.c (parse_long_options): Add a break statement
22744         to avoid this new warning/failure:
22745         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
22746           --create-testdir --dir=/t/x --with-tests --test long-options
22747         ../../gllib/long-options.c: In function 'parse_long_options':
22748         ../../gllib/long-options.c:66:12: error: this statement may \
22749           fall through [-Werror=implicit-fallthrough]
22750                    (*usage_func) (EXIT_SUCCESS);
22751                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
22753 2016-10-05  Jim Meyering  <meyering@fb.com>
22755         utimecmp: avoid new GCC 7 warning from -Wbool-operation
22756         Testing this module would fail when using GCC 7 like this:
22757         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
22758           --dir=/tmp/x --with-tests --test utimecmp
22759         ../../gllib/utimecmp.c: In function ‘utimecmp’:
22760         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
22761           [-Werror=bool-operation]
22762                          time_t s = src_s & ~ (res == 2 * BILLION);
22763                                             ^
22764         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
22765           [-Werror=bool-operation]
22766                src_s &= ~ (res == 2 * BILLION);
22767                         ^
22768         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
22769         Instead, make it explicit that we intend to apply it to 0 or 1.
22771 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22773         dfa: save memory for states
22774         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
22775         states if dfa has a lot of caches.
22777 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
22779         wchar, wctype-h: fix for MinGW 3.22.2
22780         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
22781         special invocation, to fix issues with MinGW 3.22.2 wchar.h
22782         when included from <string.h>.
22783         * lib/wctype.in.h [__MINGW32__]: Add special invocation
22784         convention for MinGW 3.22.2, to solve issues with their
22785         wctype.h when included from <ctype.h>.
22787 2016-10-05  Jim Meyering  <meyering@fb.com>
22789         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
22790         * lib/long-options.c (parse_long_options): Add a break statement
22791         to avoid this new warning/failure:
22792         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
22793           --create-testdir --dir=/t/x --with-tests --test long-options
22794         ../../gllib/long-options.c: In function ‘parse_long_options’:
22795         ../../gllib/long-options.c:66:12: error: this statement may \
22796           fall through [-Werror=implicit-fallthrough]
22797                    (*usage_func) (EXIT_SUCCESS);
22798                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
22800         utimecmp: avoid new GCC 7 warning from -Wbool-operation
22801         Testing this module would fail when using GCC 7 like this:
22802         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
22803           --dir=/tmp/x --with-tests --test utimecmp
22804         ../../gllib/utimecmp.c: In function ‘utimecmp’:
22805         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
22806           [-Werror=bool-operation]
22807                          time_t s = src_s & ~ (res == 2 * BILLION);
22808                                             ^
22809         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
22810           [-Werror=bool-operation]
22811                src_s &= ~ (res == 2 * BILLION);
22812                         ^
22813         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
22814         Instead, make it explicit that we intend to apply it to 0 or 1.
22816 2016-10-03  Pádraig Brady  <P@draigBrady.com>
22818         quotearg: minimize shell quoting using double quotes
22819         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
22820         quote in encountered then use double quotes (c style quoting)
22821         when possible, as it simplifies the quoting.
22822         * tests/test-quotearg-simple.c: Add test cases.
22823         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
22824         for the fact we now may write beyond the returned length.
22826 2016-10-02  Jim Meyering  <meyering@fb.com>
22828         vasnprintf.c: avoid spurious warning from GCC 7
22829         The presence of cpp directives renders this "FALLTHROUGH" comment
22830         ineffective, so does not suppress the -Wimplicit-fallthrough warning
22831         from GCC 7 built from git on 2016-10-02.
22832         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
22833         directives, so that it takes effect once again.  This is clearly
22834         not a proper change, and I will revert it once this bug is fixed:
22835         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
22837 2016-10-01  Jim Meyering  <meyering@fb.com>
22839         getprogname: correct the test for a __progname variable
22840         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
22841         and AC_LINK_IFELSE to check for a global __progname.  If found,
22842         define HAVE_VAR___PROGNAME.
22843         * lib/getprogname.c (getprogname): Reflect the new name of the
22844         feature- checked preprocessor symbol:
22845         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
22847 2016-09-28  Jim Meyering  <meyering@fb.com>
22849         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
22850         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
22851         fall-through case with a /* fallthrough */ comment.
22853         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
22854         * lib/dfa.c (dfassbuild): Mark the end of this case with a
22855         /* fallthrough */ comment.
22857         getprogname: avoid __progname vs program_invocation_short_name pitfall
22858         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
22859         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
22860         not with Fedora 24's glibc-2.23.1-10.
22861         * lib/getprogname.c (__progname): Move this declaration down...
22862         (getprogname): ... into the #elif block where used, and make it
22863         explicitly "extern".
22865         getprogname: port to OpenBSD 5.1
22866         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
22867         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
22868         * modules/getprogname (configure.ac): Move most of this code...
22869         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
22870         increment serial number, and add a test for __progname.
22871         https://bugs.gnu.org/24562
22872         Reported by Nelson H. F. Beebe.
22874 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
22876         sched: port to GCC 6.2.1 on macOS Sierra
22877         Problem reported by Denis Davydov in:
22878         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
22879         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
22880         Include <sys/cdefs.h> before <sched.h>.
22881         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
22882         so that we needn’t worry about the sched.h include bug here.
22883         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
22884         and include it before <sched.h> if it exists, when
22885         checking for <sched.h>.
22887         tests/init.sh: port Alpine fix to AIX 7.1
22888         * tests/init.sh (compare_): When attempting to use diff -U3,
22889         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
22890         diff -u not outputting a space after leading '+', as the users
22891         of 'compare' should not be that picky about its output format.
22892         In the AIX 7.1 case, return with diff exit status (or with 2 if
22893         trouble), instead of some random nonzero exit status.
22894         * tests/test-init.sh (test_compare): Remove space after leading
22895         '+', so that AIX 7.1 'diff' passes the test.
22897 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22899         nl_langinfo: pacify GCC
22900         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
22901         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
22903         stdint: also set GL_GENERATE_LIMITS_H
22904         Problem reported by Jim Meyering in:
22905         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
22906         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
22908         limits-h, stdint: Don't assume extensions, fix typo
22909         * m4/limits-h.m4 (gl_LIMITS_H):
22910         * m4/stdint.m4 (gl_STDINT_H):
22911         Don't assume AC_USE_SYSTEM_EXTENSIONS.
22912         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
22913         reported by Jim Meyering in:
22914         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
22916 2016-09-21  Jim Meyering  <meyering@fb.com>
22918         getprogname: port to AIX
22919         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
22920         and strdup to obtain a short program name string.  Using code from
22921         Bruno Haible and an idea from Bastien ROUCARIÈS, in
22922         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
22923         Assaf Gordon reported that this new file would fail to compile on
22924         AIX-7.1 32bit.
22926 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
22928         extensions: fix typo in comment
22929         * m4/extensions.m4: Sync from Autoconf master.
22931         stdint: support new _WIDTH macros
22932         * doc/posix-headers/stdint.texi: Document this.
22933         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
22934         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
22935         support for INTMAX_WIDTH, etc. as well as for support for just C99.
22936         * modules/stdint (Depends-on): Add limits-h.
22937         (Makefile.am): Substitute HAVE_C99_STDINT_H.
22938         * modules/stdint-tests (Depends-on): Add extensions, so that
22939         INTMAX_MAX etc. are defined.
22940         * tests/test-stdint.c: Verify the new macros.
22942         limits-h: new module
22943         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
22944         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
22945         * doc/posix-headers/limits.texi: Document new module.
22946         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
22947         * modules/limit-h-tests, tests/test-limits-h.c: New files.
22949         stdio: don't redefine __USE_MINGW_ANSI_STDIO
22950         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
22951         if it is already defined.  Apparently GNU Emacs relies on this.  See:
22952         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
22954 2016-09-15  Eric Blake  <eblake@redhat.com>
22956         sys_types: avoid glibc 2.25 warnings about major()
22957         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
22958         older autoconf.
22959         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
22960         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
22961         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
22962         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
22964         mountlist: include sysmacros.h for glibc
22965         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
22966         AC_HEADER_MAJOR.
22967         * lib/mountlist.c (includes): Use correct headers.
22969 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22971         extensions: port to more ISO C TSes
22972         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
22973         master, to add support for more recent ISO C TRs and TSes.
22975 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22977         intprops: new macro TYPE_WIDTH
22978         * lib/intprops.h (TYPE_WIDTH): New macro.
22979         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
22980         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
22981         * lib/parse-datetime.y (parse_datetime2):
22982         Use it.
22984         extensions: port to recent ISO C TRs
22985         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
22986         Sync from Autoconf master, to add support for recent ISO C TRs.
22987         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
22988         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
22989         the MinGW option is not an extension.
22991 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
22993         dfa: port to Solaris 9
22994         Problems reported by Tom G. Christensen in:
22995         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
22996         * modules/dfa (Depends-on): Add isblank.
22997         * modules/dfa-tests (dfa_match_aux_LDADD):
22998         Rename from test_stat_LDADD, to fix typo.
22999         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
23001 2016-09-10  Jim Meyering  <meyering@fb.com>
23003         strverscmp: avoid link failure on OS X
23004         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
23005         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
23007 2016-08-16  Jim Meyering  <meyering@fb.com>
23009         dfa: new module, importing grep's DFA matcher
23010         Since grep's DFA matcher is now being used by two gnulib-enabled
23011         projects, grep and sed, it makes sense to version-control its
23012         sources and unit tests in one place: here.
23013         * modules/dfa: New module.
23014         * modules/dfa-tests: New file.
23015         * lib/dfa.c: New file, from grep.
23016         * lib/dfa.h: Likewise.
23017         * lib/localeinfo.c: Likewise.
23018         * lib/localeinfo.h: Likewise.
23019         * tests/dfa-match-aux.c: Likewise.
23020         * tests/dfa-invalid-char-class.sh: Likewise.
23021         * tests/dfa-match.sh: Likewise, with minor changes.
23022         * MODULES.html.sh (Misc): Add "dfa" to this list.
23024 2016-09-09  Jim Meyering  <meyering@fb.com>
23026         getprogname-tests: don't depend on assert-h
23027         * modules/getprogname-tests (Depends-on): Remove assert-h.
23028         It was not needed, and in fact would cause build failure for
23029         coreutils on some systems.  Reported by Assaf Gordon in https:
23030         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
23032 2016-09-07  Jim Meyering  <meyering@fb.com>
23034         getprogname-tests: work also when EXEEXT is nonempty
23035         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
23036         * tests/test-getprogname.c (main): Use it.
23037         Suggested by Gisle Vanem.
23039 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
23041         getprogname: fix errors in previous change
23042         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
23043         s/program_invocation_name/base/
23044         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
23046 2016-09-08  Pádraig Brady  <P@draigBrady.com>
23048         parse-datetime: restrict debug output to input string
23049         * lib/parse-datetime.y (parse_datetime2): If we parse
23050         all of the input but determine it's invalid, ensure
23051         we don't output the now invalid input pointer.
23052         This issue was seen with `date -d 'now +1'`.
23054 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23056         flexmember: new macro FLEXALIGNOF
23057         * lib/flexmember.h: Include <stddef.h>, for offsetof.
23058         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
23059         this macro.  Update comments.
23061 2016-09-07  Jim Meyering  <meyering@fb.com>
23063         getprogname: port to systems with __argv (mingw, msvc)
23064         * lib/getprogname.c (getprogname): Include "dirname.h" and use
23065         last_component: more general than open coding it with hard-coded "/".
23066         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
23067         * modules/getprogname (Depends-on): Add dirname-lgpl.
23068         (configure.ac): Check for __argv in <stdlib.h>.
23069         * modules/getprogname-tests: New file.
23070         * tests/test-getprogname.c: New file.
23071         Suggested by Gisle Vanem in
23072         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
23074 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23076         flexmember: port better to GCC + valgrind
23077         With a char[] flexible array member in a struct with nontrivial
23078         alignment, GCC-generated code can access past the end of the
23079         array, because GCC assumes there are padding bytes to get the
23080         struct aligned.  So the common idiom of malloc (offsetof (struct
23081         s, m), n) does not properly allocate an n-byte trailing member, as
23082         malloc’s argument should be the next multiple of alignof (struct s).
23083         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
23084         Although C11 apparently permits this GCC optimization (i.e., there
23085         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
23086         See the thread containing:
23087         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
23088         * lib/flexmember.h: New file.
23089         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
23090         * lib/localename.c, lib/time_rz.c:
23091         Include flexmember.h.
23092         * lib/fnmatch_loop.c (struct patternlist):
23093         * lib/localename.c (struct hash_node):
23094         Use FLEXIBLE_ARRAY_MEMBER.
23095         * lib/fnmatch_loop.c (EXT):
23096         * lib/fts.c (fts_alloc):
23097         * lib/glob.c (glob_in_dir):
23098         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
23099         * lib/localename.c (gl_lock_define_initialized):
23100         * lib/time_rz.c (tzalloc):
23101         Use FLEXSIZEOF instead of offsetof.
23102         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23103         Check that the size of the struct can be taken.
23104         * modules/flexmember (Files): Add lib/flexmember.h.
23105         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
23106         Add flexmember.
23108 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23110         getprogname: port to Solaris 10
23111         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
23112         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
23113         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
23115         stdalign: correct mistake in alignof doc
23116         Problem reported by Joseph Myers in:
23117         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
23118         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
23119         alignof(S) where S is a structure containing a flexible array
23120         member.  The Gnulib substitute does not support this, but C11 does.
23122 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23124         main.mk: remove sc_program_name, since there is no more need to
23125         use set_program_name in tools (getprogname is enough for most
23126         of the cases).
23127         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
23128         * top/maint.mk (sc_program_name): Remove.
23130 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23132         Port tests away from progname, since modules that need the
23133         program name already depend on getprogname.
23134         * modules/acl-tests (Depends-on): Remove progname.
23135         * modules/argmatch (Depends-on): Likewise.
23136         * modules/argmatch-tests (Depends-on): Likewise.
23137         * modules/argp-tests (Depends-on): Likewise.
23138         * modules/argp-version-etc-tests (Depends-on): Likewise.
23139         * modules/array-list-tests (Depends-on): Likewise.
23140         * modules/array-oset-tests (Depends-on): Likewise.
23141         * modules/avltree-list-tests (Depends-on): Likewise.
23142         * modules/avltree-oset-tests (Depends-on): Likewise.
23143         * modules/avltreehash-list-tests (Depends-on): Likewise.
23144         * modules/carray-list-tests (Depends-on): Likewise.
23145         * modules/copy-file-tests (Depends-on): Likewise.
23146         * modules/exclude-tests (Depends-on): Likewise.
23147         * modules/fchownat-tests (Depends-on): Likewise.
23148         * modules/fdopendir-tests (Depends-on): Likewise.
23149         * modules/filenamecat-tests (Depends-on): Likewise.
23150         * modules/fstatat-tests (Depends-on): Likewise.
23151         * modules/fstrcmp-tests (Depends-on): Likewise.
23152         * modules/linked-list-tests (Depends-on): Likewise.
23153         * modules/linkedhash-list-tests (Depends-on): Likewise.
23154         * modules/mkdirat-tests (Depends-on): Likewise.
23155         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
23156         * modules/nonblocking-socket-tests (Depends-on): Likewise.
23157         * modules/obstack-printf-tests (Depends-on): Likewise.
23158         * modules/openat-tests (Depends-on): Likewise.
23159         * modules/parse-datetime-tests (Depends-on): Likewise.
23160         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
23161         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
23162         * modules/quotearg-simple-tests (Depends-on): Likewise.
23163         * modules/quotearg-tests (Depends-on): Likewise.
23164         * modules/rbtree-list-tests (Depends-on): Likewise.
23165         * modules/rbtree-oset-tests (Depends-on): Likewise.
23166         * modules/rbtreehash-list-tests (Depends-on): Likewise.
23167         * modules/spawn-pipe-tests (Depends-on): Likewise.
23168         * modules/system-quote-tests (Depends-on): Likewise.
23169         * modules/uniname/uniname-tests (Depends-on): Likewise.
23170         * modules/uninorm/nfc-tests (Depends-on): Likewise.
23171         * modules/uninorm/nfd-tests (Depends-on): Likewise.
23172         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
23173         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
23174         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
23175         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
23176         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
23177         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
23178         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
23179         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
23180         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
23181         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
23182         * modules/unlinkat-tests (Depends-on): Likewise.
23183         * modules/version-etc-tests (Depends-on): Likewise.
23184         * modules/xalloc-die-tests (Depends-on): Likewise.
23185         * modules/xmemdup0-tests (Depends-on): Likewise.
23186         * modules/xprintf-posix-tests (Depends-on): Likewise.
23187         * modules/xvasprintf-tests (Depends-on): Likewise.
23188         * tests/test-argmatch.c: Do not include progname.h.
23189         (main) Stop calling set_program_name.
23190         * tests/test-argp-version-etc.c: Likewise.
23191         * tests/test-argp.c: Likewise.
23192         * tests/test-argv-iter.c: Likewise.
23193         * tests/test-array_list.c: Likewise.
23194         * tests/test-array_oset.c: Likewise.
23195         * tests/test-avltree_list.c: Likewise.
23196         * tests/test-avltree_oset.c: Likewise.
23197         * tests/test-avltreehash_list.c: Likewise.
23198         * tests/test-carray_list.c: Likewise.
23199         * tests/test-copy-acl.c: Likewise.
23200         * tests/test-copy-file.c: Likewise.
23201         * tests/test-exclude.c: Likewise.
23202         * tests/test-fchownat.c: Likewise.
23203         * tests/test-fdopendir.c: Likewise.
23204         * tests/test-filenamecat.c: Likewise.
23205         * tests/test-fstatat.c: Likewise.
23206         * tests/test-fstrcmp.c: Likewise.
23207         * tests/test-linked_list.c: Likewise.
23208         * tests/test-linkedhash_list.c: Likewise.
23209         * tests/test-mkdirat.c: Likewise.
23210         * tests/test-nonblocking-pipe-main.c: Likewise.
23211         * tests/test-nonblocking-socket-main.c: Likewise.
23212         * tests/test-obstack-printf.c: Likewise.
23213         * tests/test-openat.c: Likewise.
23214         * tests/test-parse-datetime.c: Likewise.
23215         * tests/test-pipe-filter-gi1.c: Likewise.
23216         * tests/test-pipe-filter-gi2-main.c: Likewise.
23217         * tests/test-pipe-filter-ii1.c: Likewise.
23218         * tests/test-pipe-filter-ii2-main.c: Likewise.
23219         * tests/test-quotearg-simple.c: Likewise.
23220         * tests/test-quotearg.c: Likewise.
23221         * tests/test-rbtree_list.c: Likewise.
23222         * tests/test-rbtree_oset.c: Likewise.
23223         * tests/test-rbtreehash_list.c: Likewise.
23224         * tests/test-sameacls.c: Likewise.
23225         * tests/test-set-mode-acl.c: Likewise.
23226         * tests/test-spawn-pipe-main.c: Likewise.
23227         * tests/test-system-quote-main.c: Likewise.
23228         * tests/test-unlinkat.c: Likewise.
23229         * tests/test-version-etc.c: Likewise.
23230         * tests/test-xalloc-die.c: Likewise.
23231         * tests/test-xfprintf-posix.c: Likewise.
23232         * tests/test-xmemdup0.c: Likewise.
23233         * tests/test-xprintf-posix.c: Likewise.
23234         * tests/test-xvasprintf.c: Likewise.
23235         * tests/uniname/test-uninames.c: Likewise.
23236         * tests/uninorm/test-u32-nfc-big.c: Likewise.
23237         * tests/uninorm/test-u32-nfd-big.c: Likewise.
23238         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
23239         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
23240         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23241         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23242         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23243         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23244         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23245         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23246         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23247         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23248         * tests/test-c-stack.c: (program_name): Do not define.
23249         (main): Do not set program_name.
23250         * tests/test-closein.c: Likewise.
23251         * tests/test-xstrtol.c: Likewise.
23252         * tests/test-yesno.c: Likewise.
23254 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23256         Port modules to use getprogname explicitly, instead of requiring
23257         progname to be used (or program_name to be provided).
23258         * lib/argmatch.c: Do not include progname.h.
23259         [TEST] (program_name): Do not define.
23260         [TEST] (main): Call getprogname instead of using program_name.
23261         * lib/c-stack.c: Do not include progname.h.
23262         (program_name): Do not define.
23263         (die): Call getprogname instead of using program_name.
23264         * lib/chdir-long.c: Do not include progname.h.
23265         [TEST_CHDIR] (main): Do not set program_name.
23266         * lib/error.c [!_LIBC]: Include progname.h.
23267         [!_LIBC] (program_name): Define using getprogname.
23268         * lib/euidaccess.c: Do not include progname.h.
23269         [TEST] (main): Do not set program_name.
23270         * lib/git-merge-changelog.c: Include getprogname.h instead of
23271         progname.h.
23272         (usage): Call getprogname instead of using program_name.
23273         (main): Likewise.  Stop calling set_program_name.
23274         * lib/group-member.c: Do not include progname.h.
23275         [TEST] (main): Do not set program_name.
23276         * modules/argmatch (Depends-on): Add getprogname.
23277         * modules/c-stack (Depends-on): Likewise.
23278         * modules/error (Depends-on): Likewise.
23279         * modules/git-merge-changelog (Depends-on): Likewise.
23280         Also remove progname.
23282 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
23284         * NEWS: Document the deprecation of the 'progname' module.
23286 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23288         getprogname: new module
23289         This provides a LGPL module for getting the name of the current
23290         program, using the same API found on *BSD systems.
23291         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
23292         * modules/getprogname: New files.
23293         * MODULES.html.sh (Misc): Add getprogname.
23295 2016-09-02  Jim Meyering  <meyering@fb.com>
23297         manywarnings: add -fno-common
23298         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
23299         to the list.  Quoting the manual, "Compiling with -fno-common is
23300         useful on targets for which it provides better performance, or if
23301         you wish to verify that the program will work on other systems that
23302         always treat uninitialized variable declarations this way [putting
23303         it in the data section]."  If diffutils had been using this sooner,
23304         it would have prevented this duplicate declaration issue:
23305         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
23307 2016-08-31  Simon Josefsson  <simon@josefsson.org>
23309         parse-datetime: Fix typo.
23310         * lib/parse-datetime.y (parse_datetime2): Fix typo.
23312 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23314         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
23315         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
23316         GCC 5 and 6 that have __builtin_sub_overflow but not
23317         __builtin_sub_overflow_p.  With the recent changes, these
23318         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
23319         implementation than with INT_SUBTRACT_OVERFLOW implementation,
23320         since the former needs just one runtime comparison whereas the
23321         latter needs two.
23323         strverscmp: sync with glibc
23324         Although this doesn't exactly synchronize with glibc
23325         byte-for-byte, it makes the code behave the same as glibc.
23326         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
23327         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
23328         difference shouldn't matter in practical use.  All uses changed
23329         back to isdigit.
23330         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
23331         (next_state): Now unsigned char array; redo elements.
23332         (result_type): Now signed char array; redo elements.
23333         (__strverscmp): Fix glibc bug 9913 by using new states.
23334         * tests/test-strverscmp.c (main): Test glibc bug 9913.
23336 2016-08-29  Jim Meyering  <meyering@fb.com>
23338         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
23339         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
23340         similarly to how it was done to intprops.h.
23342 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23344         intprops.h: port recent changes to GCC 6.2.0
23345         * lib/intprops.h (__has_builtin): Move earlier.
23346         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
23347         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
23348         the last argument can be null.  All uses changed.
23349         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
23350         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23351         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
23352         and it's not clear which GCC versions it works for.
23353         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
23354         its definiens.
23356         intprops.h: use __typeof__ with GCC 7
23357         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
23358         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
23359         This avoids computing the expression's value (which might overflow!).
23361 2016-08-29  Jim Meyering  <meyering@fb.com>
23363         intprops.h, xalloc-oversized.h: work with gcc 7
23364         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
23365         __builtin_mul_overflow each accept a NULL pointer as the third
23366         argument.  However in gcc 7, that is no longer accepted.
23367         Instead, one must use the "_p"-suffixed names, with which, the
23368         third parameter is no longer a pointer.
23369         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
23370         the definition: not true for gcc 7 and subsequent.
23371         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
23372         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23373         Provide new definitions for gcc 7 and subsequent.
23374         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
23375         that works with gcc-7.
23377         intprops.h: fix missing-backslash problems
23378         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
23379         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
23381 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23383         intprops: fix paren typo on old platforms
23384         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
23385         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
23386         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
23387         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
23388         && !defined LLONG_MAX]:
23389         Remove stray paren.
23391         intprops: port to OpenVMS
23392         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
23393         * doc/posix-headers/limits.texi: Document the problem.
23394         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
23395         Define if not already defined.
23397 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
23399         parse-datetime: improve debug implementation
23400         Follow-up to commit 12ad79069 ("add optional debug printing").
23401         Improve parse-datetime's debug implementation: remove macros,
23402         replace global debug flag variable with a function parameter,
23403         use nstrftime for formatting.
23404         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
23405         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
23406         (parse_datetime2): New function, accepts 'flags' parameter, supporting
23407         debug flag. Existing interface 'parse_datetime' left unmodified.
23408         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
23409         (struct parser_control): add 'parse_datetime_debug' member variable.
23410         (parse_datetime): Call new function 'parse_datetime2' without debug.
23411         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
23412         pc.parse_datetime_debug variable as needed.
23413         (to_year): Accept new flags parameter, instead of using global variable.
23414         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
23415         use struct 'debug' variable instead of global variable.
23416         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
23417         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
23418         correspnding functions directly instead of using macros.
23419         * modules/parse-datetime: Add gnulib's strftime module.
23421 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
23423         c-strcase-tests: port to EBCDIC
23424         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
23425         which assume ASCII encoding semantics to run only in ASCII
23426         mode, as they fail in EBCDIC.
23428         sigpipe-tests: fix typo
23429         * tests/test-sigpipe.sh: C, not B.
23431 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
23433         canonicalize-lgpl: fix errno after malloca fails
23434         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
23435         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
23436         * lib/canonicalize-lgpl.c (__realpath):
23437         Don't assume malloca sets errno on failure.
23439 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23441         strtod: port errno handling to z/OS
23442         * lib/strtod.c (strtod): Save and restore errno more reliably.
23444 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23446         strtod: port to z/OS
23447         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23448         implementation.
23450 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23452         strtod: port to z/OS
23453         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23454         implementation.
23456         regex, string: rename to avoid '__string'
23457         * lib/regex.h, lib/string.in.h: Do not use the identifier
23458         '__string', as it is effectively reserved by string.h on z/OS.
23460         c-strcase-tests, wcwidth-tests: depend on c-ctype
23461         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
23462         Add c-ctype.
23464 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23466         thread: port to z/OS
23467         * lib/glthread/thread.c, lib/glthread/thread.h:
23468         Rudimentary gl_thread support for z/OS.
23470         maint: port tests to z/OS errno behavior
23471         * tests/test-nonblocking-reader.h:
23472         * tests/test-nonblocking-writer.h:
23473         Accommodate z/OS errno code preferences. (I believe this should
23474         still be within spec; IBM is good at following the letter if not
23475         the spirit of such things.)
23477         maint: preprocessor changes to support z/OS
23478         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
23479         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
23480         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
23481         * tests/test-nonblocking-pipe.h:
23483         fclose, strstr-simple, wchar: port to z/OS
23484         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
23485         Changes to the Autoconf M4 code to support z/OS.  Note that
23486         fclose() is broken in a different way on z/OS than it is on other
23487         systems, thus the special-case in fclose.m4.
23489         iconv_open-utf-tests, iconv-tests: port to EBCDIC
23490         * tests/test-iconv-utf.c, tests/test-iconv.c:
23491         Added appropriately conditional #pragmas so that the test strings
23492         in test-iconv-utf.c are correctly interpreted in ASCII instead of
23493         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
23494         addressed in a more portable way by simply rewriting all the ASCII
23495         literal characters as octal escapes, but then you would lose the
23496         partial readability that the strings have now. Also, iconv_open()
23497         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
23499         c-strcase-tests, wcwidth-tests: port to EBCDIC
23500         * tests/test-c-strcasecmp.c: Include c-ctype.h.
23501         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
23502         * tests/test-wcwidth.c: Likewise.
23504 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23506         stdbool: don't require _Bool for C++
23507         Problem reported by David Seifert in:
23508         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
23509         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
23510         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
23511         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
23512         stricter about checking that bool and _Bool are compatible in C.
23514 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
23516         getdelim: remove dependency on realloc-posix
23517         * lib/canonicalize-lgpl.c (alloc_failed)
23518         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
23519         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
23520         Use __set_errno where needed, for consistency.
23521         * lib/getdelim.c (alloc_failed): New function.
23522         (getdelim): Use it.
23524 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
23526         parse-datetime: add optional debug printing
23527         Print parsing information, warnings, and errors to stderr.
23528         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
23529         * lib/parse-datetime.y:
23530         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
23531         (PROGRESS*): Same as DEBUG, for progress reporting.
23532         (dbg_printf): Print message to stderr, with 'date' prefix.
23533         (struct parser_control): Add 'debug_*_seen' variables.
23534         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
23535         (debug_print_current_time, debug_print_relateive_time): Prints the
23536         current/relative date/time value of parser_control.
23537         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
23538         (to_year): Warn about 2-digit year parsing.
23539         (yylex):   Warn about unrecognized words.
23540         (get_effective_timezone): Returns current timezone in minutes.
23541         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
23542         clearly and unambigiously as possible.
23543         (debug_mktime_not_ok): Print detailed information about failed
23544         date/time values.
23545         (parse_datetime): Add DEBUG messages for failures, warnings. Add
23546         PROGRESS messages for status messages.
23547         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
23549 2016-08-06  Jim Meyering  <meyering@fb.com>
23551         tests/init.sh: exclude dash with bad "local" semantics
23552         * tests/init.sh (gl_shell_test_script_): Add a function to
23553         eliminate a shell like "dash" (unlike bash, zsh) that has
23554         surprising/risky "local var='...'" semantics.  Inspired by
23555         the problem and discussion in https://bugs.gnu.org/24116#11.
23557 2016-08-02  Ján Tomko  <jtomko@redhat.com>
23559         maint.mk: expand the prohibit_doubled_word regex
23560         This check has a static list of words that are checked for
23561         repetitions.  Expand it before running the perl script to
23562         avoid using expensive captures.  This decreases the cost
23563         for libvirt from 1.66s to 0.66s.
23564         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
23565         (sc_prohibit_doubled_word): Use it.
23567 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23569         useless-if-before-free: skip non-matching lines early
23570         * build-aux/useless-if-before-free: First match each line with the
23571         simple/quick /\bif\b/ and reject if there is no match. This often
23572         saves the cost of the much more involved regular expression.
23573         For libvirt, this decreases the cost from 1.44s to 1.02s.
23575 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23577         maint.mk: speed up sc_po_check
23578         sc_po_check would skip files based on their names, or on the
23579         existence of files with derived names. Rewrite it to use perl
23580         instead of shell to make the check faster.
23581         * top/maint.mk (perl_translatable_files_list_): Define.
23582         (sc_po_check): Use it.
23584 2016-07-30  Ján Tomko  <jtomko@redhat.com>
23586         maint.mk: speed up require_config_h_first
23587         Instead of spawning three processes per file,
23588         rewrite the check in perl and run it once for all the files.
23589         * top/maint.mk (perl_config_h_first_): Define.
23590         (sc_require_config_h_first): Use it in place of shell code.
23592 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23594         maint.mk: speed up sc_po_check
23595         sc_po_check would skip files based on their names, or on the
23596         existence of files with derived names. Rewrite it to use perl
23597         instead of shell to make the check faster.
23598         * top/maint.mk (perl_translatable_files_list_): Define.
23599         (sc_po_check): Use it.
23601 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
23603         obstack: pacify GCC 6 with -Wnull-dereference
23604         Problem reported by Assaf Gordon in:
23605         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
23606         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
23607         Declare with __attribute_noreturn__.
23608         * lib/obstack.h (__attribute_noreturn__): New macro.
23610 2016-07-13  Eric Blake  <eblake@redhat.com>
23612         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
23613         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
23614         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
23616 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
23618         doc: mention glibc SSIZE_MAX buglet
23619         * doc/posix-headers/limits.texi (limits.h): Document the bug.
23621 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
23623         printf-posix: Fix mingw build
23624         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
23625         expression for detecting C symbol prefixes but forgot to qoute square
23626         brackets in the command line arguments for grep.  That way when
23627         building with mingw the condition was false although it ought to be
23628         true instead.  In particular scenarios this led to the following
23629         compile error:
23631             Cannot export rpl_printf: symbol not found
23632             Cannot export rpl_scanf: symbol not found
23633             collect2: error: ld returned 1 exit status
23635         Fix this by properly quoting square brackets.
23637 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23639         mktime: call tzset as per POSIX
23640         Problem reported by Ludovic Courtès in:
23641         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
23642         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
23643         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
23645 2016-06-26  Pádraig Brady  <P@draigBrady.com>
23647         fts: handle readdir() errors
23648         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
23649         but also upon error when it will also set errno.  Therefore
23650         flag the error case from readdir().  We treat the case where
23651         no items are read the same as if the dir can't be accessed,
23652         i.e. by setting fts_errno to FTS_DNR.
23654 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
23656         intprops: port better to GCC 7
23657         GCC 7 __builtin_add_overflow supports a new usage form, where the
23658         last argument is a null pointer, and which merely returns 1 if an
23659         overflow would occur.  This is a constant expression if all
23660         arguments are constants, and should generate faster code when code
23661         needs to be generated.
23662         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
23663         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23664         Use builtin operations if available.
23665         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
23666         operations are available, as it's almost surely faster.
23668 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
23670         intprops-test: port to GCC 6
23671         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
23672         since the bug is not fixed in GCC 6.1.
23674 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
23676         xalloc-oversized: port to GCC 7; fewer warnings
23677         GCC 7 will have a better way to deal with integer overflow.
23678         Plus, fix a warnings problem reported by Tim Ruehsen in:
23679         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
23680         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
23681         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
23682         For GCC 5, use __xalloc_oversized if both args are constants,
23683         or if pedantic.
23685 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
23687         regex: port to Sun C
23688         Reported by Daiki Ueno.
23689         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
23690         __restrict, in prototype.  This fixes a problem I introduced in
23691         the 2016-02-19 merge from glibc.
23693 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
23695         stdbool: Restore __bool_true_false_are_defined check
23696         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
23697         __bool_true_false_are_defined is still defined, even with C++11.
23699 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
23701         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
23702         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
23704 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
23706         Use GCC_LINT, not lint
23707         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
23708         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
23709         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
23710         Document problem with lint and _Noreturn.
23711         * lib/diffseq.h (IF_LINT, IF_LINT2):
23712         * lib/fts.c (sccsid):
23713         * lib/getndelim2.c (IF_LINT):
23714         * lib/gl_anylinked_list2.h (gl_linked_iterator)
23715         (gl_linked_iterator_from_to):
23716         * lib/gl_anytree_list2.h (gl_tree_iterator)
23717         (gl_tree_iterator_from_to):
23718         * lib/gl_anytree_oset.h (gl_tree_iterator):
23719         * lib/gl_array_list.c (gl_array_iterator)
23720         (gl_array_iterator_from_to):
23721         * lib/gl_array_oset.c (gl_array_iterator):
23722         * lib/gl_carray_list.c (gl_carray_iterator)
23723         (gl_carray_iterator_from_to):
23724         * lib/idcache.c:
23725         * lib/inet_ntop.c (IF_LINT):
23726         * lib/regcomp.c (build_charclass_op, create_tree):
23727         * lib/regex_internal.c (re_acquire_state)
23728         (re_acquire_state_context):
23729         * lib/trigl.c (rcsid):
23730         * lib/trim.c (IF_LINT):
23731         * lib/vasnprintf.c (IF_LINT):
23732         * lib/verify.h (assume):
23733         Treat GCC_LINT like lint.
23735 2016-05-29  Bruno Haible  <bruno@clisp.org>
23737         secure_getenv: Port to many more platforms.
23738         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
23739         functions.
23740         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
23741         for non-BSD Unix platforms and for native Windows.
23742         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
23743         Prompted by a request from Nikos Mavrogiannopoulos.
23745 2016-05-27  Eric Blake  <eblake@redhat.com>
23747         canonicalize: Fix broken probe for realpath.
23748         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
23749         in logic introduced in 54615b95.
23751 2016-05-26  Eric Blake  <eblake@redhat.com>
23753         unsetenv: relax to LGPLv2+
23754         * modules/unsetenv (License): Match setenv license.
23756 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
23758         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
23759         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
23760         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
23761         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
23762         (commonarg, dirargs, dirs, infoarg, generate_ascii)
23763         (generate_html, generate_info, generate_tex, outdir)
23764         (source_extra, split, srcfile, texarg): Move above 'version'.
23765         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
23767 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
23769         manywarnings: update for GCC 6.1
23770         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
23771         Add GCC 6.1 options that apply to C.
23772         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
23773         do not apply to C, are obsolescent, etc.
23775 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
23777         glob: size_t overflow checks
23778         * lib/glob.c (__has_builtin): New macro.
23779         (size_add_wrapv, glob_use_alloca): New static functions.
23780         (glob, glob_in_dir): Check for size_t overflow in several places,
23781         and fix some size_t checks that were not quite right.
23783         glob: don't assume INT_MAX < SIZE_MAX
23784         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
23785         latter is not portable to (probably theoretical) hosts where
23786         SIZE_MAX <= INT_MAX.
23788 2016-05-09  Bruno Haible  <bruno@clisp.org>
23790         Fix undefined behaviour in gettext.h.
23791         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
23792         pointer's value after the storage it points to has been freed.
23793         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
23794         Spotted by Coverity.
23796 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
23798         git-version-gen: avoid undefined shift
23799         Problem reported by Mosè Giordano in:
23800         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
23801         * build-aux/git-version-gen: Avoid undefined behavior if invoked
23802         with --prefix or --fallback but without a later argument.  While
23803         we're at it, omit unnecessary quotes.
23805 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
23807         glob: merge glibc changes into lib/glob.c
23808         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
23809         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
23810         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
23811           struct dirent [BZ #19779]
23812         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
23813           callback gl_readdir
23814         2015-10-20 Convert miscellaneous function definitions to prototype style
23815         2015-10-20 Convert 113 more function definitions to prototype style
23816           (files with assertions)
23817         2015-06-12 Fix getlogin_r namespace (bug 18527).
23818         2014-02-10 Use glibc_likely instead __builtin_expect.
23819         2013-10-20 When glob pattern contains a trailing slash match only
23820           directories. Fixes bug 10278.
23821         2013-09-04 glob: silence -Wattribute warnings
23822         2013-06-07 Avoid use of "register" as optimization hint.
23823         2012-09-25 Use size_t instead of int for internal variables in glob
23824           (bug 14621)
23825         2011-07-20 Check for overflows in expressions
23826         2011-05-28 Remove unused variable
23827         2011-05-22 Add a few more alloca size checks
23828         2010-03-27 Whitespace fixes
23829         2010-03-27 Fix one more issue with the glob patch
23830         2010-03-24 Fix glob with empty pattern
23831         2008-05-27 Remove useless more "if" tests before "free"
23832         * modules/glob (Depends-on): Add stdint.
23834 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23836         mktime: port to stricter signed overflow checking
23837         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
23838         (long_int): Require width for INT_MAX * 3 * (seconds per year),
23839         instead of merely for INT_MAX * 2.  In practice platforms that
23840         do the latter also do the former.
23841         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
23842         (shr): New static function, replacing SHR.  All uses changed.
23843         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
23844         and TIME_T_MAX.  All uses changed.
23845         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
23846         Use long_int, not time_t.
23847         (long_int_avg): New static function, replacing time_t_avg.
23848         All uses changed.  Round toward positive infinity, as that
23849         generates slightly better code.
23850         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
23851         by INT_ADD_WRAPV.
23852         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
23853         (convert_time): New static function.
23854         (ranged_convert): Use it
23855         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
23856         Use simpler test for loop exit.
23857         (__mktime_internal): Store negative of guessed offset, to simplify
23858         overflow checking.  Remove no-longer-needed test for small time_t
23859         overflows.
23861         mktime: speed up DEBUG_MKTIME benchmarks
23862         Call tzset just once, at the start, rather than for every test
23863         case.  This lets us measure the CPU cost of mktime as opposed to
23864         that of tzset.  This is relevant when TZ is not set and glibc is
23865         being used.  This speeds up tests by a factor of 40 on my Fedora
23866         23 x86-64 platform.
23867         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
23868         to call tzset and as a sanity check.  Later on, use localtime_r
23869         instead of localtime.
23871         mktime: resurrect DEBUG_MKTIME testing
23872         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
23873         Include <string.h>, for strcmp.
23875         mktime: simplify DEBUG_MKTIME
23876         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
23877         Simplify later usage accordingly.
23879         Port mktime_internal offset to unsigned time_t
23880         This avoids some assumptions about wraparound arithmetic on
23881         signed integer overflow.
23882         * lib/mktime-internal.h (mktime_offset_t): New type.
23883         (mktime_internal): Use it in decl.
23884         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
23886         * lib/mktime.c (__mktime_internal, localtime_offset):
23887         * lib/timegm.c (timegm): Use it.
23888         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
23889         (gl_FUNC_MKTIME): Require it.
23891 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
23893         xstrtol: prohibit monstrosities like "1bB"
23894         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
23895         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
23896         "B" only if the first suffix needs a base.
23897         * tests/test-xstrtol.sh: Test this.
23899 2016-04-21  Pádraig Brady  <P@draigBrady.com>
23901         xstrtod: reinstate setting of *result upon ERANGE
23902         * lib/xstrtod.c (XSTRTOD): The user may decide to use
23903         the returned limits upon ERANGE, so allow and document that.
23905 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
23907         xstrtod: modify *result only if no errors
23908         * lib/xstrtod.c (XSTRTOD).
23910 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
23912         btowc: document problems in C locale
23913         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
23914         with mbrtowc.  See: http://bugs.gnu.org/23269#32
23916 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
23918         mktime: improve integer overflow checking
23919         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
23920         (WRAPV): Remove; no longer needed.
23921         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
23922         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
23923         Remove.  Use intprops.h defns instead.
23924         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
23925         Use bool for Boolean, for clarity.
23926         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
23927         detect integer overflow.
23928         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
23930         intprops: check two's complement assumption
23931         Suggested by Eric Blake in:
23932         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
23933         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
23934         short, int, long, and (if available) long long are two's complement.
23935         * modules/intprops (Depends-on): Add 'verify'.
23937         intprops, mktime, strtol: assume two's complement
23938         These macros were not portable to every conforming C11 ones'
23939         complement platform.  It's not worth the hassle of porting to some
23940         platforms that use ones' complement or signed magnitude, as such
23941         platforms are almost purely theoretical nowadays and porting even
23942         to some of them makes the code harder to review for little
23943         practical benefit.  Problem reported by Florian Weimer in:
23944         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
23945         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
23946         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
23947         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
23948         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
23949         (TYPE_SIGNED_MAGNITUDE):
23950         Remove.  All uses rewritten to assume two's complement, which is
23951         all we can reasonably test nowadays anyway.
23952         * top/maint.mk (_intprops_names): Remove the removed macros.
23954 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
23956         stdint: port to strict C11 left shift
23957         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
23958         Pacify clang -Wshift-negative-value, which should be an issue only
23959         on clang setups where stdint.h does not conform to C11 or to C++11.
23960         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
23962 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
23964         mbrtowc: work around glibc bug#19932
23965         Fix mbrtowc so that it never returns -1 in the C locale,
23966         as this conflicts with a future version of POSIX
23967         http://austingroupbugs.net/view.php?id=663#c2738
23968         and causes problems with GNU grep: http://bugs.gnu.org/23234
23969         See glibc bug 19932:
23970         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
23971         * doc/posix-functions/mbrlen.texi (mbrlen):
23972         * doc/posix-functions/mbrtowc.texi (mbrtowc):
23973         Document the glibc bug.
23974         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
23975         Include hard-locale.h, locale.h.
23976         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
23977         if the bug is possible.
23978         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
23979         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
23980         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
23981         * modules/mbrtowc (Depends-on): Add hard-locale.
23982         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
23983         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
23984         * tests/test-mbrtowc5.sh: New file.
23986 2016-04-03  Pedro Alves  <palves@redhat.com>
23988         stdint: detect good enough pre-C++11 stdint.h in C++ mode
23989         When gnulib is configured in C++ mode for a system with a working C99
23990         implementation of stdint.h that predates C++11, gnulib ends up
23991         substituting stdint.h anyway.  This works on most targets, but on e.g.,
23992         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
23993         MinGW is LLP64.  Instead of trying to detect the right types, detect
23994         good-enough-pre-C++11 stdint.h and in such case define
23995         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
23996         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
23997         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
23998         conforms to C99.  If it does, check whether it hides symbols
23999         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
24000         does, define those macros in config.h.
24002 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24004         argp: merge changes from glibc
24005         Among other things, this should fix problems found by a Coverity
24006         scan and reported by Andrei Borzenkov:
24007         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
24008         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
24009         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
24010         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
24011         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
24012         * lib/argp.h:
24013         Merge changes from glibc.
24014         * tests/test-argp-2.sh: Adjust to match new behavior.
24016 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
24018         stddef: support configuring with g++
24019         Problem reported by Ángel González in:
24020         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
24021         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
24022         Do not define if _GCC_MAX_ALIGN_T is defined.
24024 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24026         test-framework-sh: minor cleanups
24027         * tests/init.sh (testdir_prefix_): Output a trailing newline,
24028         since strictly speaking POSIX requires this.
24029         (setup_): Do not use the variable 'fail', as that makes the
24030         trace output harder to read ('fail' is typically used by
24031         tests to mean the test failed).  Treat // portably.
24032         Check that new directory is not merely a sibling of the tmp dir.
24033         Avoid unnecessary invocation of tr.
24035         test-framework-sh: revert port to NetBSD 7.0
24036         It was a false alarm; I misinterpreted Assaf Gordon's report.
24037         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24038         Restore.
24039         (test_dir_): Adjust to mktempd_ change.
24040         (mktempd_): Restore 2nd arg.  Use -t again.
24041         (base_template_, template_, nx_): Resurrect old code.
24043         Port better to Alpine Linux
24044         Its diff implementation does not support -c, but does support -U3.
24045         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24046         * tests/init.sh (diff_opt_): New var.
24047         (compare_): Prefer diff -U3 to diff -c to plain diff.
24049 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24051         test-framework-sh: port to NetBSD 7.0
24052         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24053         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24054         Remove.  All uses removed.
24055         (test_dir_): Adjust to mktempd_ change.
24056         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
24057         (base_template_, template_, nx_): Simplify by hardcoding.
24059 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24061         gitlog-to-changelog: suppress ignored chatter
24062         * build-aux/gitlog-to-changelog: Do not warn about skipping
24063         an SHA if it would have been ignored anyway.
24065 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
24067         setlocale: add "sv" to Windows language table
24068         * lib/setlocale.c (language_table) [W32]: Add "sv".
24069         Reported in <https://savannah.gnu.org/bugs/?44588>.
24071 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24073         sys_select: port to new Cygwin
24074         Problem reported by Ken Brown in:
24075         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
24076         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
24077         diagnostics.
24079 2016-03-17  Jim Meyering  <meyering@fb.com>
24081         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
24082         * tests/test-userspec.c (main): Remove unnecessary braces and fix
24083         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
24084           test-userspec.c:176:9: error: statement is indented as if it were \
24085             guarded by... [-Werror=misleading-indentation]
24086                    {
24087                    ^
24088           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
24089                  if (!diag && !T[i].result)
24090                  ^~
24092 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
24094         time_rz: port to clang -Wunused-const-variable
24095         * lib/time_rz.c (TZ): Remove.  All uses removed.
24097         std-gnu11: improve clang support
24098         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
24099         2016-03-15 Also try clang
24100         2016-03-15 Port C11 and C++11 testing to clang
24102         select: port more to Intel 2016.1.150 compiler
24103         Problem reported by Balázs Hajgató in:
24104         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
24105         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
24107 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24109         select: try to port to 2016.1.150 compiler
24110         Problem reported by Balázs Hajgató in:
24111         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
24112         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
24113         POSIX specifies 'restrict'.
24115 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24117         localename-tests: memory allocation fixes
24118         * tests/test-localename.c (test_locale_name)
24119         (test_locale_name_thread): Don't call freelocale on a locale
24120         that was the base of a successful newlocale, as that
24121         results in a double free.  Problem reported by Assaf Gordon.
24122         (test_locale_name_thread): Free saved names after use, to pacify
24123         gcc -fsanitize=address.
24125 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24127         intprops: make .h file license match module
24128         * lib/intprops.h: Change the license wording to match glibc format.
24129         This is what is in modules/intprops anyway.  See:
24130         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
24132 2016-03-08  Eric Blake  <eblake@redhat.com>
24134         acl: fix missing return on Cygwin
24135         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
24136         fall off end of function. Fixes http://bugs.gnu.org/22949
24138 2016-03-05  Bruno Haible  <bruno@clisp.org>
24140         extern-inline: port to PGI CC
24141         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
24142         keyword 'inline'.
24143         Reported by Adam James Stewart in:
24144         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
24146 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24148         signbit: port back to pre-C++11 GCC
24149         * lib/math.in.h (signbit): Do previous change only if
24150         __cplusplus < 201103.  See Jonathan Wakely in:
24151         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
24153 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
24155         mountlist: recognize autofs-mounted remote file systems, too
24156         Originally reported at: https://bugzilla.redhat.com/1309247
24157         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
24158         "-hosts" because it is used by autofs to mount remote file systems.
24160 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24162         signbit: port to C++ with GCC 6
24163         * lib/math.in.h (signbit) [__cplusplus]:
24164         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
24165         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
24167         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
24169         regex: make it closer to libc
24170         Make Idx a signed type, rather than possibly unsigned.
24171         The unsignedness was not really buying us anything, since the code
24172         overflows for other reasons before getting to PTRDIFF_MAX.  Making
24173         it signed allows us to use -1 and -2 with abandon, like libc does,
24174         thus lessening the number of differences between gnulib and libc.
24175         Also, it should help avoid gratuitous warnings like the one
24176         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
24177         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
24180         regex: merge patches from libc
24182         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
24183         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
24184         Convert miscellaneous function definitions to prototype style.
24185         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
24186         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
24187         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
24188         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
24189         (re_search_internal):
24190         Convert to prototype-style function definition.
24191         Use internal_function for internal functions.
24193 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
24195         stdalign: port to older HP and IBM cc
24196         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
24197         C compilers, by checking their version numbers.  These version
24198         numbers appear in MariaDB and in Qt code that dates way back and
24199         that conditiionally uses the 'aligned' attribute.
24201 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24203         stdalign: port to clang 3.7.0
24204         Problem reported by Herbert J. Skuhra in:
24205         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
24206         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
24207         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
24208         https://llvm.org/bugs/show_bug.cgi?id=26547
24210 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24212         readdir_r: now obsolescent
24213         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
24214         * lib/mountlist.c (read_file_system_list): Add a FIXME.
24216 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24218         misc: port better to gcc -fsanitize=address
24219         Without these patches, ./configure CFLAGS='-fsanitize=address'
24220         would compute incorrect values.  This patch fixes some (but not all)
24221         test failures with recent glibc, with this configuration.
24222         * m4/acl.m4 (gl_ACL_GET_FILE):
24223         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
24224         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
24225         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
24226         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
24227         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24228         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24229         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
24230         * m4/getline.m4 (gl_FUNC_GETLINE):
24231         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
24232         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
24233         * m4/regex.m4 (gl_REGEX):
24234         * m4/strndup.m4 (gl_FUNC_STRNDUP):
24235         * tests/test-calloc-gnu.c (main):
24236         * tests/test-duplocale.c (main):
24237         * tests/test-getgroups.c (main):
24238         * tests/test-getline.c (main):
24239         * tests/test-inttostr.c (main):
24240         * tests/test-localename.c (test_locale_name)
24241         (test_locale_name_thread, test_locale_name_environ)
24242         (test_locale_name_default):
24243         * tests/test-regex.c (main):
24244         * tests/test-setlocale1.c (main):
24245         * tests/test-stat.h (test_stat_func):
24246         Free heap-allocated storage before exiting.
24247         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
24248         Don't match *_foo symbols inserted by AddressSanitizer.
24249         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
24251 2016-02-02  Jim Meyering  <meyering@fb.com>
24253         verify-tests: also remove stray test-verify.Tpo
24254         * modules/verify-tests (Makefile.am): Arrange for "make clean"
24255         to remove the test-verify.Tpo file that is left behind by
24256         the automake-generated rule upon compilation failure.
24257         Otherwise, that .Tpo file would cause a failed "make distcheck"
24258         at least for grep.
24260 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24262         std-gnu11: new module
24263         This makes it easier for applications to prefer C11 and C++11
24264         to older variants, when compiling C and C++ code.
24265         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
24266         a nontrivial chunk of GPLed Autoconf source code.
24267         * COPYING: Mention the m4/*.m4 copyright situation.
24268         * MODULES.html.sh (std-gnu11): New module.
24269         * m4/std-gnu11.m4, modules/std-gnu11: New files.
24271 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24273         get-permissions, strftime: fix grammar in comments
24274         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
24275         some grammar fixes Alan Mackenzie made to GNU Emacs.
24277 2016-01-25  Daiki Ueno  <ueno@gnu.org>
24279         gettext: mark as obsolete
24280         Suggested by Paul Eggert in:
24281         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
24282         * modules/gettext (Status): Mark as obsolete.
24283         (Notice): Suggest to use 'gettext-h' instead.
24284         * modules/gettext-h (Description): Suggest GNU gettext, instead of
24285         the 'gettext' module.
24287 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24289         gnulib-tool: don't give up on ln -s so easily
24290         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
24291         because an earlier one failed.  The targets could be on different
24292         file systems.  Problem reported by KO Myung-Hun in:
24293         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
24295         closedir: fix OS/2-related typos
24296         Problem reported by KO Myung-Hun in:
24297         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
24298         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
24299         in the last couple of changes.
24301 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
24303         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
24304         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
24305         copying a directory.
24307 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24309         regex: treat [x] as x if x is a unibyte encoding error
24310         Problem reported by Aharon Robbins in:
24311         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
24312         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
24313         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
24315         closedir, dirfd, opendir: port to OpenSolaris 5.10
24316         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
24317         * m4/dirfd.m4 (gl_FUNC_DIRFD):
24318         * m4/opendir.m4 (gl_FUNC_OPENDIR):
24319         Don't use ${word##pat} substitution, as it doesn't work in
24320         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
24321         http://bugs.gnu.org/22443#11
24323 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24325         bootstrap: use American spelling
24326         * build-aux/bootstrap: Honor American spelling.
24328 2016-01-22  Karl Berry  <karl@freefriends.org>
24330         * doc/posix-functions/localtime.texi,
24331         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
24333 2016-01-21  Bruno Haible  <bruno@clisp.org>
24335         hash-pjw-bare: fix comment
24336         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
24338         wcwidth: Replace also on OpenBSD 5.8
24339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
24340         * doc/posix-functions/wcwidth.texi: Update.
24342 2016-01-20  Pádraig Brady  <P@draigBrady.com>
24344         gnu-web-doc-update: fix addition of new files
24345         If there were already added (emnpty) dirs,
24346         then cvs aborts the add with the message:
24347           cvs [add aborted]: there is a version in <./dirname> already
24348         * build-aux/gnu-web-doc-update: Add directories separately
24349         to the addition of files, to avoid the above issue
24350         impacting the addition of files.
24352 2016-01-19  Daiki Ueno  <ueno@gnu.org>
24354         utimens-tests: avoid pulling gettext .m4 files
24355         Although this is not the right fix to the original problem:
24356         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
24357         it makes it possible again for consumer projects to use arbitrary
24358         version of gettext, through the steps described at:
24359         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
24360         See here for details:
24361         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
24362         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
24363         'gettext'.
24364         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
24365         'gettext'.
24367 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24369         regex: pacify static checkers
24370         Problem and draft fix reported by Aharon Robbins in:
24371         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24372         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
24373         Clear memory to pacify static checkers.
24375         regex: fix [ diagnostic
24376         Problem and fix reported by Aharon Robbins in:
24377         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24378         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
24380         regex: fix memory leaks
24381         Problem and draft fix reported by Aharon Robbins in:
24382         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24383         * lib/regcomp.c (build_range_exp, build_charclass_op)
24384         * lib/regex_internal.c (re_dfa_add_node):
24385         Fix memory leak on failure.
24387 2016-01-18  Pádraig Brady  <P@draigBrady.com>
24389         fts: don't unconditionally use leaf optimization for NFS
24390         NFS st_nlink are not accurate on all implementations,
24391         leading to aborts() if that assumption is made.
24392         See <https://bugzilla.redhat.com/1299169>
24393         * lib/fts.c (leaf_optimization_applies): Remove NFS from
24394         the white list, and document the issue.
24396 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24397             KO Myung-Hun  <komh@chollian.net>
24399         gnulib-tool: don't assume ln -s works
24400         * gnulib-tool (func_ln_s): New function.
24401         (func_ln): Use it.
24403 2016-01-15  KO Myung-Hun  <komh@chollian.net>
24405         utimes: detect utimes() correctly on OS/2 kLIBC
24406         utimes() of OS/2 kLIBC has some limitations.
24407         1. OS/2 itself supports a file date since 1980 year in local time.
24408         2. OS/2 itself supports only even seconds for a file time.
24409         3. utimes() of OS/2 kLIBC does not work on an opened file.
24410         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
24411         * doc/posix-functions/utimes.texi: Document the above limitations of
24412         utimes() on OS/2 kLIBC.
24414 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24415             KO Myung-Hun  <komh@chollian.net>
24417         openat_proc_name: port to OS/2 kLIBC
24418         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
24419         instead of /proc/self/fd.
24420         * lib/openat-proc.c (openat_proc_name):
24421         Don't assume file name length is less than INT_MAX.
24422         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
24424 2016-01-14  KO Myung-Hun  <komh@chollian.net>
24426         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
24427         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
24428         definitions of intptr_t and uintptr_t (which use int and unsigned)
24429         to avoid clashes with declarations of system functions like sbrk.
24430         * lib/stdint.in.h (intptr_t, uintptr_t): Check
24431         _INTPTR_T_DECLARED before defining them.
24433         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
24434         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
24435         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
24436         Declare on kLIBC.
24437         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
24438         fd associated with dirp.
24439         (_gl_register_dirp_fd): New. Register fd associated with dirp to
24440         dirp_fd_list.
24441         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
24442         (dirfd): Implemented for kLIBC.
24443         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
24444         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
24445         succeeds.
24446         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
24447         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24448         (REPLACE_DIRFD): Define to 1 if replaced.
24449         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
24450         * modules/closedir (Depends-on): Add dirfd.
24451         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
24452         condition.
24453         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
24454         * modules/opendir (Depends-on): Add dirfd.
24456         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
24457         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
24458         * lib/dup.c (dup_nothrow): New.
24459         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
24460         (klibc_dup2): New.
24461         * lib/fcntl.c (klibc_fcntl): New.
24462         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
24463         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
24464         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
24465         fd.
24467         pipe_filter_ii_execute: port to OS/2 kLIBC
24468         Pipes on kLIBC do not support O_NONBLOCK like Win32.
24469         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
24470         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
24471         Reuse Win32 code on OS/2 kLIBC.
24472         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
24473         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
24475         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
24476         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
24477         static inline function.  The implementation of wcwidth in wcwidth.c
24478         causes a "conflicting types" error.
24479         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
24481         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
24482         spawn() on OS/2 kLIBC is not silly like one on Windows
24483         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
24484         empty string on OS/2 kLIBC.
24486         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
24487         On OS/2 kLIBC, select() works only on sockets.
24488         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
24490         binary-io: don't put fd in binary mode if it is a console on EMX
24491         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
24492         a console on EMX.
24494 2016-01-15  Pádraig Brady  <P@draigBrady.com>
24496         doc: mention unfixed issues with unsupported localtime() values
24497         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
24498         returns nonsense for localtime(2^56).
24499         * doc/posix-functions/localtime_r.texi: Likewise.
24501 2016-01-14  Pádraig Brady  <P@draigBrady.com>
24503         doc: mention setlocale() issues on OpenBSD
24504         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
24505         never fails, and the need to check categories individually.
24507 2016-01-14  Pádraig Brady  <P@draigBrady.com>
24509         sig2str: list all signals on FreeBSD >= 7
24510         FreeBSD >= 7 is contravening POSIX by not defining NSIG
24511         to the maximal statically defined signal value.
24512         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
24513         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
24514         where available, even when NSIG is defined.
24516 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
24518         acl-permissions: port to USE_ACL==0 platforms
24519         I ran into this problem when building bleeding-edge GNU Emacs
24520         with gcc -fsanitize=address on Fedora 23.  On this platform
24521         the ACL library does not pass the 'configure' test and Emacs
24522         then does not build due in part to what appear to be typos in the
24523         ACL part of Gnulib.
24524         * lib/acl-internal.c (free_permission_context):
24525         * lib/acl-internal.h (struct permission_context):
24526         Test whether USE_ACL is nonzero, not whether it is defined.
24528 2016-01-12  Martin Sebor  <msebor@redhat.com>
24530         mktime: rename macro to avoid glibc clash
24531         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
24532         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
24534 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
24536         Port "$@" to OpenIndiana ksh93
24537         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
24538         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
24539         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
24540         bug long-dead shells, so remove the workaround.
24541         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
24542         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
24543         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
24544         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
24545         Use "$@" instead of ${1+"$@"}.
24547         Port Universal Time settings to strict POSIX
24548         * build-aux/announce-gen, build-aux/bootstrap:
24549         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
24550         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
24551         * build-aux/gnupload, build-aux/mkinstalldirs:
24552         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
24553         * build-aux/update-copyright, build-aux/useless-if-before-free:
24554         * build-aux/vc-list-files, tests/test-strftime.c:
24555         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
24556         but POSIX says the behavior of TZ="UTC" is undefined.
24558 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
24560         msvc-inval: fix problem with unset shell var
24561         Problem reported by Karl Berry in:
24562         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
24563         * modules/msvc-inval (Depends-on):
24564         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
24565         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
24567 2016-01-01  Pádraig Brady  <P@draigBrady.com>
24569         tests: for compare_(), use cmp -s where available
24570         * tests/init.sh (compare_): Only fall back to cmp without
24571         the POSIX defined -s option, where this is not available.
24573 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24575         version-etc: new year
24576         * build-aux/gendocs.sh (version):
24577         * doc/gendocs_template:
24578         * doc/gendocs_template_min:
24579         * doc/gnulib.texi:
24580         * lib/version-etc.c (COPYRIGHT_YEAR):
24581         Update copyright dates by hand in templates and the like.
24582         * all files: Run 'make update-copyright'.
24584 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
24586         human: fix output buffer overrun by 1
24587         * lib/human.c (human_readable): Fix off-by-one typo in buffer
24588         calculation that could lead to a one-byte buffer overrun.
24590 2015-12-28  Daiki Ueno  <ueno@gnu.org>
24592         maint: fix operator precedence in mbrtowc test
24593         This is a fix for test breakage introduced by commit 45228d96; the
24594         equality expression must be parenthesized when negated with '!',
24595         otherwise we always get:
24597           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
24599         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
24600         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
24602 2015-12-23  James Youngman  <jay@gnu.org>
24604         regexprops-generic: update from regex.h
24605         * doc/regexprops-generic.texi: update by running the regexprops binary
24606         from findutils (the command line is 'regexprops "Regular Expressions"
24607         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
24608         gnulib with GNU grep had made this document out-of-date.
24610 2015-12-23  Pádraig Brady  <P@draigBrady.com>
24612         strftime-tests: avoid false failure on OS X
24613         * tests/test-strftime.c (struct localtime_rz_test): Add an
24614         ahistorical member which is used to warn rather than fail
24615         when tm_isdst isn't set for such entries.  This is the case for
24616         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
24618 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
24620         fts: ensure leaf optimization is used for NFS
24621         NFS provides usable dirent.d_type but not necessarily for all entries
24622         of large directories.  See <https://bugzilla.redhat.com/1252549>
24623         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
24625 2015-12-20  Pádraig Brady  <P@draigBrady.com>
24627         fts: enable leaf optimization for XFS
24628         XFS provides usable dirent.d_type only for DT_DIR,
24629         but the noleaf optimization still applies.
24630         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
24632 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
24634         intprops: comment fix
24635         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
24636         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
24638         intprops-test: work around GCC bug 68971
24639         Problem reported by Pádraig Brady in:
24640         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
24641         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
24642         (main): Add a case that better tests 64-bit long in this area.
24644 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
24646         gnulib-tool: allow multiple --local-dir usage
24647         * gnulib-tool: Use --local-dir to construct compound
24648         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
24649         PATH_SEPARATOR early.
24650         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
24651         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
24652         func_determine_path_separator because that needs to be detected
24653         earlier now.
24654         (func_determine_path_separator): New function.
24655         (func_path_foreach, func_path_foreach_inner): New functions.
24656         (func_path_prepend, func_path_append): Likewise.
24657         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
24658         (func_lookup_file, func_all_modules): Use new functions to work
24659         with local_gnulib_path.
24660         (func_modules_in_dir, func_exists_module): New callbacks for
24661         func_path_foreach.
24662         (func_exists_module, func_get_tests_module): Likewise.
24663         (func_is_local_file, func_should_symlink): New helper methods.
24664         (func_add_file, func_update_file): Use new func_should_symlink
24665         instead, DRY.
24666         (func_reconstruct_cached_local_gnulib_path): New helper.
24667         (func_reconstruct_cached_dir): New callback.
24668         (func_import): The cached_local_gnulib_dir renamed to
24669         cached_local_gnulib_path similarly to local_gnulib_dir.
24670         Use new func_reconstruct_cached_local_gnulib_path.
24671         (func_count_relative_local_gnulib_path): New sub-method.
24672         (func_create_testdir): Use func_should_symlink, DRY.
24673         (func_create_megatestdir): Use new functions to work with
24674         local_gnulib_path correctly.
24675         (func_append_local_dir): New helper.
24677 2015-12-08  Pádraig Brady  <P@draigBrady.com>
24679         fix freadptr to work with ungetc on all uClibc configs
24680         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
24681         where GNU coreutils cut(1) generates invalid output on uClibc
24682         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
24683         * lib/freadptr.c (freadptr): Return NULL if there are
24684         ungotten chars.  In this case freadseek() will iterate
24685         again to process the ungotten character.
24687 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
24689         xalloc-oversized: improve performance with GCC 5
24690         * lib/xalloc-oversized.h (xalloc_oversized):
24691         Improve performance with GCC 5 by using __builtin_mul_overflow.
24693 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24695         intprops: new public macro EXPR_SIGNED
24696         Emacs can use this macro, so make it public.
24697         * doc/intprops.texi (Arithmetic Type Properties): Rename from
24698         'Integer Type Determination', since some of these macros apply
24699         to non-integer types.  Clarify what kinds of constant expressions
24700         these macros return.  Say when the arguments can be non-integers.
24701         Mention newly published macro EXPR_SIGNED.
24702         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
24703         make it public.  All uses changed.
24705         intprops: fix typo in clang port
24706         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
24707         '__builtin_add_overflow' that is not caught by compiler.
24709 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
24711         test-timespec: fix typo in previous change
24712         * tests/test-timespec.c (main): Fix typo that reduced test quality.
24714         timespec-sub: fix overflow bug; add tests
24715         * lib/timespec-add.c (timespec_add):
24716         * lib/timespec-sub.c (timespec_sub):
24717         Work even if time_t is narrower than int (a theoretical
24718         possibility).  Redo code for a bit more clarity.
24719         * lib/timespec-sub.c (timespec_sub):
24720         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
24721         * modules/timespec-tests, tests/test-timespec.c: New files.
24723         intprops-test: suppress -Woverlength-strings
24724         Problem reported by Pádraig Brady in:
24725         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
24726         It is not worth the hassle to port this test to compilers that
24727         cannot handle long strings in diagnostics.
24728         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
24730 2015-11-03  Pádraig Brady  <P@draigBrady.com>
24732         quotearg: add quotearg_n_style_colon()
24733         This quotes with default options of the specified style,
24734         but with quoting enabled for instances of ':'.
24735         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
24736         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
24738 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
24740         intprops: revise _WRAPV macros, revert _OVERFLOW
24741         The incompatible changes to the _OVERFLOW macros were too much of
24742         a hassle in practice, so revert them.  Instead, change the new
24743         _WRAPV macros to make them closer in behavior to GCC 5's new
24744         builtin_add_overflow etc. functions.  No other software was using
24745         these newly-added macros yet, so this should be OK.
24746         * NEWS: Revert previous change, since the incompatible change
24747         has been reverted, and nobody used the incompatible version.
24748         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
24749         Document revised behavior.
24750         (Integer Range Overflow): Adjust example to match above revisions.
24751         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
24752         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
24753         these can be used in integer constant expressions again.
24754         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
24755         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
24756         needed.
24757         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
24758         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
24759         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
24760         Remove, as they did not seem that useful.
24761         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
24762         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
24763         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
24764         Support new semantics.
24765         (__has_builtin): New macro, if not alreay defined.
24766         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
24767         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
24768         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
24769         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
24770         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
24771         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
24772         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
24773         New macros.
24774         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
24776 2015-11-03  Jim Meyering  <meyering@fb.com>
24778         intprops: add parentheses for when OP has precedence lower than "-"
24779         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
24780         "a OP b" must be parenthesized for when OP is like "<<", which has
24781         lower precedence than the following "-". Reported by Pádraig Brady.
24783 2015-11-03  Pádraig Brady  <P@draigBrady.com>
24785         quotearg: constify get_quoting_style parameters
24786         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
24787         * lib/quotearg.c (get_quoting_style): Likewise.
24789 2015-11-02  Pádraig Brady  <P@draigBrady.com>
24791         quotearg: add support for $'' shell escaping
24792         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
24793         items and descriptions.
24794         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
24795         above types by quoting like "shell", but using $'...' syntax
24796         for non printable characters, which should provide unambiguous
24797         printable output for any input.
24798         * tests/test-quotearg-simple.c: Update accordingly.
24800 2015-11-02  Pádraig Brady  <P@draigBrady.com>
24802         maint: use a more standard return from mbrtowc test
24803         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
24804         from the test program as this is non standard and often
24805         indicates an unhandled case in the test program.
24806         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
24808 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24810         intprops: add WRAPV and const flavors for GCC 5
24811         If available, use GCC 5's builtin functions for efficient integer
24812         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
24813         and safely compute the low-order bits of the correct answer.
24814         A downside of these efficient functions is that they cannot be
24815         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
24816         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
24817         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
24818         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
24819         Document the changes.
24820         (Wraparound Arithmetic): New section.
24821         (Integer Range Overflow):
24822         Put this subsection last, since it's least useful.
24823         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
24824         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
24825         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
24826         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
24827         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
24828         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
24829         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
24830         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
24831         New macros.
24832         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
24833         Generate calls to GCC builtins if available, for speed.
24834         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
24835         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
24836         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
24837         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
24838         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
24839         (CHECK_QUOTIENT, CHECK_REMAINDER):
24840         Test WRAPV and CONST flavors (when available) too.
24842 2015-10-30  Pádraig Brady  <P@draigBrady.com>
24844         doc: use extended timezone format in iso-8601 example
24845         * doc/parse-datetime.texi: The standard states that extended format
24846         is to be used consistently throughout.
24847         Note that lib/parse-datetime.y can handle either tz format.
24849 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
24851         stdalign: port to Sun C 5.9
24852         * doc/posix-headers/stdalign.texi: Document this.
24853         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
24854         __attribute__ ((__aligned__ (...))).
24856 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
24858         time_rz: fix comment about tzalloc
24859         * lib/time_rz.c (tzalloc): Fix comment.
24861 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
24863         stdalign: work around pre-4.9 GCC x86 bug
24864         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
24865         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
24866         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
24868 2015-10-18  Pádraig Brady  <P@draigBrady.com>
24870         maint.mk: sc_tight_scope: remove extraneous expressions
24871         * top/maint.mk (tight_scope): This is not really required since
24872         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
24873         that matches all nm entries.  But it does remove extraneous entries
24874         that may be confusing or cause issue in future maintenance.
24876 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
24878         time_rz: return NULL if localtime_r fails
24879         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
24880         while still attempting to pacify bleeding-edge GCC.
24882         fts: port to C11 alignof
24883         * doc/posix-headers/stdalign.texi (stdalign.h):
24884         Document the C11 restriction.
24885         * lib/fts.c: Include stddef.h, for max_align_t.
24886         (fts_alloc): Align using max_align_t, not FTSENT.
24887         * modules/fts (Depends-on): Add stddef.
24889 2015-10-18  Jim Meyering  <meyering@fb.com>
24891         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
24892         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
24893         would see this:
24895         lib/time_rz.c: In function 'localtime_rz':
24896         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
24897           [-Werror=nonnull]
24898                    if (tm && !save_abbr (tz, tm))
24899                        ^
24901         That was complaining about "tm" because it is a parameter that was
24902         declared with the __nonnull__ attribute.
24903         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
24904         result of localtime_r.
24906 2015-10-17  Jim Meyering  <meyering@fb.com>
24908         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
24909         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
24910         name-extraction regexp mistakenly used \S+, and would mistakenly
24911         extract "*F" from "extern int *F()" rather than the desired "F".
24912         Use \w+ instead.
24914 2015-10-17  Jim Meyering  <meyering@fb.com>
24916         maint.mk: sc_tight_scope: factor and support OS X
24917         * top/maint.mk (_gl_tight_scope): Address three issues:
24918         - factor out four instances of code that wraps a string in "^...$"
24919         - allow nm-reported symbol names to have an optional leading "_"
24920         - add "main" to the list of ignored variable names, because on os x,
24921         "main" has nm-reported type "S" in the variable-checking section.
24923 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
24925         safe-alloc-tests: fix typo in license header
24926         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
24928 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
24930         copy-file: fix mem leak in error case
24931         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
24932         upon error opening or performing I/O to the src and dest files.
24934 2015-10-15  Mike Frysinger  <vapier@chromium.org>
24936         localename: control langinfo.h inclusion
24937         This header is only used to work around buggy behavior in old
24938         versions of glibc, so do not include it all the time.  Otherwise
24939         we get build failures on systems that do not provide langinfo.h.
24940         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
24941         in the source later on.
24942         The patch was originally submitted to gettext as:
24943         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
24945 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24947         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
24948         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
24949         * lib/u64.c, lib/unistd.c:
24950         Append 'typedef int dummy;', to pacify compilers that are picky
24951         about empty translation units.
24953 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
24955         accept4-tests: fix to avoid non portable flags
24956         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
24957         as they are the only documented ones, and passing others may trigger
24958         EINVAL (seen on FreeBSD 10.1-RELEASE).
24959         * doc/glibc-functions/accept4.texi: Mention that we don't provide
24960         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
24962 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
24964         gnulib-tool: fix tests of 'extensions' module
24965         This complements f8fe25fab60e3c687a124 commit.
24966         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
24967         emitting of initial gl_EARLY macros.
24968         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
24969         replaced with func_emit_pre_early_macros call.
24971 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
24973         unicase/locale-language: fix typo in utf-8 cookie
24974         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
24975         Problem reported by Zbigniew Jędrzejewski-Szmek.
24977 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
24979         xalloc: do not worry about GCC 5 warning on 32 bit
24980         * lib/xalloc.h: Revert previous change.
24981         I found a better way to fix this in coreutils.
24983 2015-10-02  Pádraig Brady  <P@draigBrady.com>
24985         xalloc: avoid GCC 5.1 warning on 32 bit
24986         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
24987         xalloc_oversized(), which was seen to give this warning
24988         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
24989         when simplifying conditional".
24991 2015-10-02  Daiki Ueno  <ueno@gnu.org>
24993         uniname/uniname-tests: avoid compiler warnings
24994         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
24995         unused local variables.
24996         (test_alias_lookup): Fix alias name display in failure cases.
24998 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25000         c-ctype: do not worry about EBCDIC + char signed
25001         Drop support for EBCDIC with char being signed, as this breaks too
25002         many programs.  Problem reported by Ben Pfaff in:
25003         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
25004         * lib/c-ctype.h: Verify that we are not using EBCDIC with
25005         char being signed.
25006         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
25007         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
25008         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
25009         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
25010         * tests/test-c-ctype.c (test_all):
25011         Simplify by assuming standard char values cannot be negative.
25012         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
25014 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25016         c-ctype: port better to z/OS EBCDIC
25017         Problems reported by Daniel Richard G. in:
25018         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
25019         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
25020         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
25021         (_C_CTYPE_OTHER_CNTRL): New macro.
25022         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
25023         from SCHAR_MIN, as the functions are defined only from values
25024         promoted from char or from unsigned char, not necessarily from
25025         signed char.
25027 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
25029         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
25031         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
25032         and ARFLAGS variables.  Doing this unconditionally could break
25033         later Automake's AM_PROG_AR invocation (at least it's
25034         AC_CHECK_TOOLS call to detect correct 'ar' binary).
25036         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
25037         Amsterdam Compiler Kit, so make the previous code to have effects
25038         only on ACK, and rather automatically call the Automake's
25039         AM_PROG_AR as soon as possible to decide other cases.
25041         References:
25042         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
25044         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
25045         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
25046         is possible, keep setting AR/ARFLAGS to reasonable defaults.
25047         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
25048         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
25049         'extensions' module is used.
25050         * modules/extensions (configure.ac-early): Remove as this snippet
25051         is added to gnulib-comp.m4 earlier anyway.
25053 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25055         sockets: MS Windows initalization fixes
25056         Problem reported by Test User in:
25057         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
25058         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
25059         Correct the endianness.
25060         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
25061         number mismatch, not just on <.  Cleanup before any such failure.
25063 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
25065         gc: fix detection of installed libgcrypt version
25066         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
25067         at least as recent as 1.4.4.  The previously used macro is not
25068         available now, since modules were removed in version 1.6.0.
25070 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25072         c-ctype: rewrite to use inline functions
25073         This simplifies maintenance, since it makes for just one
25074         implementation of each function, letting the compiler have the fun
25075         of optimization.  In practice this works well nowadays with GCC.
25076         E.g., c_isascii might need only three instructions even though the
25077         source code lists every ASCII character individually in a large
25078         switch statement.
25079         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
25080         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
25081         * NEWS: Document the API change.
25082         * lib/c-ctype.c: Drastically simplify, since this now just expands
25083         inline functions.
25084         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25085         (C_CTYPE_INLINE): New macro.
25086         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
25087         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
25088         Verify that either ASCII or EBCDIC is being used.
25089         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
25090         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
25091         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
25092         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
25093         New private macros.
25094         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
25095         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
25096         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
25097         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
25098         (c_tolower, c_toupper): When converting, return the unsigned char,
25099         as that is what z/OS does.
25100         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
25101         of some c-ctype.h macros.
25102         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
25103         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
25104         c_tolower promotion to be compatible with z/OS.
25106 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
25108         gitlog-to-changelog: trim only trailing whitespaces
25109         This is fix for --format regression introduced by commit
25110         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
25111         doubled %n string) had no effect anymore.  This format
25112         specification has been used e.g. by GNU paxuitils (commit
25113         edfd8bcc3).
25115         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
25116         newlines in commmit messages.
25118 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25120         Test that c_iscntrl agrees with iscntrl, etc.
25121         Suggested by Daniel Richard G. in:
25122         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
25123         * modules/c-ctype-tests (Depends-on): Add ctype.
25124         * tests/test-c-ctype.c: Include <ctype.h>.
25125         (NCHARS): New constant.
25126         (test_agree_with_C_locale): New function.
25127         (main): Use it.
25128         (test_all): Use named constants.
25130         c-ctype: improve c_isascii testing
25131         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
25132         Add a test to count the number of ASCII characters.
25134 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25136         savewd: remove SAVEWD_CHDIR_READABLE
25137         It was problematic in the light of file systems that ignore umask.
25138         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
25139         * NEWS: Document this.
25140         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
25141         successful, -1 (setting errno) on failure, rather than something
25142         more complicated than that.
25143         * lib/mkdir-p.c (make_dir_parents):
25144         Do not use SAVEWD_CHDIR_READABLE.
25145         * lib/savewd.c (savewd_chdir):
25146         Remove support for SAVEWD_CHDIR_READABLE.
25147         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
25149         c-ctype: port better to EBCDIC
25150         Problems reported by Daniel Richard G. in
25151         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
25152         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
25153         Include "verify.h".
25154         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
25155         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
25156         Define as enum constants with value false, if not defined, so that
25157         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
25158         code more portable, as both branches of the 'if' are compiled on
25159         all platforms.
25160         (C_CTYPE_EBCDIC): New constant.
25161         Verify that the character set is either ASCII or EBCDIC.
25162         (to_char): New static function.
25163         (c_isascii, c_iscntrl):
25164         Assume standard control-character assignments for EBCDIC.
25165         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
25166         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
25167         Rewrite to use 'if' instead of 'ifdef'.
25168         Use to_char if non-ASCII.  Prefer <= to >=.
25169         Prefer true and false to 1 and 0, for booleans.
25170         (c_iscntrl): Use 'if', not 'ifdef'.
25171         * modules/c-ctype (Depends-on): Add verify.
25172         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
25173         (to_char): New function.
25174         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
25176 2015-09-21  Pádraig Brady  <P@draigBrady.com>
25178         nanosleep: fix return code for interrupted replacement
25179         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
25180         that we return -1 in the case the call is interrupted by a signal,
25181         rather than the current value of 1.
25182         Diagnosed and tested by Daniel Richard G.
25184 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
25186         Diagnose ERE '()|\1'
25187         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
25188         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
25189         track of the set of previously-completed subexpressions available
25190         before the first alternative, and restore this set just before
25191         parsing each subsequent alternative.  This lets us diagnose the
25192         invalid back-reference in the ERE '()|\1'.
25194         regex: merge patches from libc
25196         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
25197         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
25198         * lib/regex_internal.h:
25199         Include <libc-lock.h> instead of <bits/libc-lock.h>.
25201         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
25202         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
25203         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
25204         wcscoll.
25205         * lib/regexec.c (check_node_accept_bytes): Likewise.
25207         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25208         Fix regex wcrtomb namespace (bug 18496).
25209         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
25210         instead of wcrtomb.
25212         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25213         Fix regex wctype namespace (bug 18495).
25214         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
25215         instead of towlower.
25216         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
25217         instead of iswlower.  Call __towupper instead of towupper.
25218         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
25219         instead of iswalnum.
25221         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
25222         * lib/regcomp.c (parse_bracket_exp): Initialize type to
25223         COLL_SYM in a couple of places to avoid uninitialized variable
25224         wanings on tilegx gcc 4.8.2.
25226         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
25227         * lib/regex_internal.h: Remove NOT_IN_libc.
25229         2014-11-17  Andreas Schwab  <schwab@suse.de>
25230         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
25232         2014-09-11  Roland McGrath  <roland@hack.frob.com>
25233         Move findidx nested functions to top-level.
25234         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
25235         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
25236         Pass new arguments to findidx.
25237         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
25238         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
25239         Don't #include it inside the function.  Pass new arguments to findidx.
25240         * lib/regex_internal.h:
25241         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
25242         (re_string_elem_size_at): Don't #include it inside the function.
25243         Pass new arguments to findidx.
25245         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
25246         Check if DEBUG is defined in regex_internal.c
25247         * lib/regex_internal.c: Check if DEBUG is defined and is set.
25249 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
25251         ceill: detect buggy OpenBSD implementation
25252         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
25253         which returns zero for small values.  Discussed here:
25254         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
25256 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
25258         mountlist: add me_mntroot field on Linux machines
25259         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
25260         mount_entry so Linux machines based on /proc/self/mountinfo can
25261         distinguish between bind mounts and original mounts.  In reality bind
25262         mounts aren't treated differently than mountroot=/ mounts by the
25263         kernel, but the user often wants these bind mounts distinguished.
25264         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
25265         More details at https://pad.lv/1432871
25267 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
25269         doc: Describe to use multiple instances of gnulib
25270         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
25271         instances of gnulib with different modules can be used, for example one
25272         for a lib and another one for associated tools.
25274 2015-09-01  Pádraig Brady  <P@draigBrady.com>
25276         base32: mark function as __attribute__ const
25277         * lib/base32.h (isbase32): Mark __attribute__ const as
25278         suggested by GCC, and consistent with the base64 module.
25280 2015-08-20  Daiki Ueno  <ueno@gnu.org>
25282         gnulib-tool: don't transform binary files with sed
25283         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
25284         .mo and .class files.
25285         Reported by Denis Denisov.
25287 2015-08-10  Daiki Ueno  <ueno@gnu.org>
25289         gperf: respect silent rules
25290         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
25291         V_GPERF_0 for silent rules.
25292         * modules/iconv_open (Makefile.am): Use V_GPERF.
25293         * modules/unicase/locale-language (Makefile.am): Likewise.
25294         * modules/unicase/special-casing (Makefile.am): Likewise.
25295         * modules/unictype/category-byname (Makefile.am): Likewise.
25296         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
25297         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
25298         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
25299         * modules/unictype/property-byname (Makefile.am): Likewise.
25300         * modules/unictype/scripts (Makefile.am): Likewise.
25301         * modules/uninorm/composition (Makefile.am): Likewise.
25303 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
25305         Improve port of stdalign to C++11
25306         Problem reported by Sundaram in:
25307         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
25308         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
25309         (__alignas_is_defined): Define if C++11 or newer.
25311 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
25313         pmccabe2html: fix gawk regex escaping
25314         * build-aux/pmccabe2html: Add one more backslash to properly
25315         escape the gsub replacement value.  Fixes this error:
25316         gawk: ./build-aux/pmccabe2html:425: \
25317         warning: escape sequence `\&' treated as plain `&'
25319 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
25321         time_rz: port to pedantic memcpy
25322         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
25323         that reject memcpy (..., NULL, 0).
25325 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
25327         time_rz: port better to MinGW
25328         Don't change tzname, as this makes MinGW dump core (Bug#21020).
25329         Instead, store the tzname copy in the struct tm_zone object.
25330         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
25331         * lib/strftime.c [!_LIBC]:
25332         * lib/time_rz.c: Include time-internal.h.
25333         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
25334         name from *TZ rather than from TZNAME, doable because *TZ now has
25335         a tzname_copy member.
25336         * lib/time-internal.h: New file, with contents taken from
25337         lib/time_rz.c.  It's separate because strftime.c now accesses
25338         struct tm_zone members.
25339         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25340         New member tzname_copy.
25341         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
25342         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25343         Initialize tzname_copy member.
25344         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
25345         in tzname_copy member.
25346         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
25347         (restore_tzname): Remove; no longer needed.  All calls removed.
25348         * modules/time_rz (Files): Add lib/time-internal.h.
25350         time: port __need_time_t to MinGW
25351         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
25352         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
25354 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
25356         strftime: fix newly-introduced bug on Solaris
25357         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
25358         consistently at the start, rather than doing some of the setup at
25359         the start and some in the %Z format spec.  This is cleaner, and
25360         works better with time_rz on platforms like Solaris where struct
25361         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
25362         mktime_z and localtime_rz can mess up the tzname cache.
25364         test-strftime: test for Solaris bug
25365         * modules/strftime-tests (Depends-on): Add strerror.
25366         * tests/test-strftime.c: Include <errno.h>.
25367         (posixtm_test): New function, containing the old 'main'.
25368         (struct tzalloc_test, struct localtime_rz_test): New types.
25369         (TZ, LT): New static vars.
25370         (tzalloc_test): New function.
25371         (main): Rewrite in terms of posixtm_test and tzalloc_test.
25373         time_rz: port to Solaris etc.
25374         Works around a tzname problem on platforms like Solaris that have
25375         tzname but not tm_zone, by setting tzname at the appropriate time
25376         and restoring it later.
25377         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
25378         New static vars.
25379         (save_abbr) [HAVE_TZNAME]: Set them.
25380         (revert_tz) [HAVE_TZNAME]: Clear or use them.
25381         (restore_tzname): New function.
25382         (localtime_rz, mktime_z): Use it.
25384         time_rz: now LGPL
25385         * modules/time_rz (License): Now LGPL, because strftime depends on it.
25387         time_rz: make a constant 'const'
25388         * lib/time_rz.c (local_tz): Now const.
25390         time_rz: fix off-by-one typo
25391         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
25393 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
25395         fprintftime, strftime: use timezone_t args
25396         * NEWS: Document the change.
25397         * lib/fprintftime.h (fprintftime):
25398         * lib/strftime.c (extra_args) [my_strftime]:
25399         * lib/strftime.h (nstrftime):
25400         Time zone arg is now of type timezone_t, not int.
25401         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
25402         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
25403         (my_strftime) [emacs && !my_strftime]:
25404         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
25405         Remove; Emacs doesn't need this any more.
25406         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
25407         fprintftime and nstrftime to call tzset.
25408         (ut) [!my_strftime]: Remove, replacing with ...
25409         (tz) [!my_stftime]: ... this new macro.  All uses changed.
25410         (strftime_case_): Use localtime_rz and mktime_z instead
25411         of localtime_r and mktime.
25412         * modules/fprintftime (Depends-on): Add time_rz.
25413         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
25414         * tests/test-strftime.c (main): Adjust to new nstrftime API.
25416         time_rz: new module
25417         * MODULES.html.sh: Add time_rz.
25418         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
25419         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
25420         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
25421         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
25422         New var HAVE_TIMEZONE_T (default 0).
25423         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
25424         New var GNULIB_TIME_RZ (default 0).
25425         * modules/time (time.h): Substitute the new vars.
25427         flexmember: license is now unlimited
25428         * modules/flexmember (License): Change to unlimited,
25429         since its only source file gives an unlimited license.
25431 2015-07-15  Eric Blake  <eblake@redhat.com>
25433         maint: update copyright paper procedures
25434         * config/srclist.txt: Drop outdated files.
25435         * doc/Copyright/conditions.txt: Update to latest.
25436         * doc/Copyright/assign.changes.manual: Delete.
25437         * doc/Copyright/assign.future.manual: Likewise.
25438         * doc/Copyright/assign.manual: Likewise.
25439         * doc/Copyright/assign.translation.manual: Likewise.
25440         * doc/Copyright/disclaim.changes.manual: Likewise.
25441         * doc/Copyright/disclaim.manual: Likewise.
25442         * doc/Copyright/disclaim.program: Likewise.
25444 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25446         localename: fix link error on Illumos
25447         Illumos defines __sun, but does not have getlocalename_l nor the
25448         equivalent.  This partially reverts commit 387c214.
25449         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
25450         available, as well as uselocale.
25451         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
25452         use getlocalename_l if it is not available.
25454 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25456         unistr/uN-strtok-tests: avoid a trivial leak
25457         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
25458         input and delim after the multibyte delimiter tests.
25460 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25462         file-has-acl, acl-permissions: fix HP-UX typos
25463         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
25464         * lib/file-has-acl.c (file_has_acl):
25465         * lib/set-permissions.c (context_acl_from_mode)
25466         (context_aclv_from_mode, set_acls):
25467         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
25468         They were introduced by the recent ACL changes.
25470         regex: match current GNU grep behavior
25471         These symbols have not matched GNU grep behavior for quite some time.
25472         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
25473         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
25474         Change to match current GNU behavior.
25475         Simplify by expressing it as differences from POSIX BREs and EREs.
25476         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
25478 2015-07-03  Jim Meyering  <meyering@fb.com>
25480         set-permissions.c: adjust acl_from_mode's cpp guard
25481         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
25482         directives identical to those guarding the sole use.
25483         Otherwise, on some systems, we'd get a warning about
25484         the function being defined but not used.
25485         Also, filter through cppi to correct misleading indentation
25486         of cpp directives.
25488 2015-07-03  Pádraig Brady  <P@draigBrady.com>
25490         tests: restrict shells to those that support 'local'
25491         The local keyword is very widely supported and used
25492         in tests in coreutils and grep at least.  Therefore
25493         restrict to testing with shells that support it.
25494         This mainly excludes /bin/sh on Solaris.
25495         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
25497 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
25498         and Daiki Ueno  <ueno@gnu.org>
25500         unistr/uN-strtok: handle multibyte delimiters
25501         Previously, uN_strtok moved PTR to the next unit to the token end.
25502         When DELIM contained a multibyte character, the new position could
25503         be a middle of a multibyte character.
25504         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
25505         after the token.
25506         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
25507         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
25508         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
25509         * modules/unistr/u8-strtok (Depends-on): Depend on
25510         unistr/u8-strmblen.
25511         * modules/unistr/u16-strtok (Depends-on): Depend on
25512         unistr/u16-strmblen.
25513         * modules/unistr/u32-strtok (Depends-on): Depend on
25514         unistr/u32-strmblen.
25515         * tests/unistr/test-u-strtok.h: New file.
25516         * tests/unistr/test-u8-strtok.c: New file.
25517         * tests/unistr/test-u16-strtok.c: New file.
25518         * tests/unistr/test-u32-strtok.c: New file.
25519         * modules/unistr/u8-strtok-tests: New file.
25520         * modules/unistr/u32-strtok-tests: New file.
25521         * modules/unistr/u16-strtok-tests: New file.
25523 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
25525         update-copyright: fix test failure with perl >= 5.22 (trivial)
25526         * build-aux/update-copyright: Escape a literal left curly bracket,
25527         required with perl >= 5.22
25529 2015-07-02  Daiki Ueno  <ueno@gnu.org>
25531         u{16,32}-strstr-tests: relax timeout condition
25532         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
25533         tests can take longer than 5 seconds to complete.
25534         Reported by Dagobert Michelsen in:
25535         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
25536         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
25537         seconds to 10 seconds.
25538         * tests/unistr/test-u32-strstr.c (main): Likewise.
25540 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
25542         gnulib-common.m4: change the ARFLAGS default to 'cr'
25543         In some GNU/Linux distributions people started to compile 'ar'
25544         binary with --enable-deterministic-archives (binutils project).
25545         That, however, in combination with previous autotools long time
25546         working default AR{_,}FLAGS=cru causes warnings on such
25547         installations:
25548         ar: `u' modifier ignored since `D' is the default (see `U')
25549         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
25550         set already.
25552 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
25554         selinux-h: avoid double free after *getfilecon()
25555         Originally reported by Ben Shelton on bug-tar:
25556         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
25557         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
25558         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
25559         param should be freed by freecon(3) (regardless the return value).
25561 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
25563         fix pty related tests issues on Windows (trivial)
25564         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
25565         however it's still present in tests/ subdirectory of the final project.
25566         Therefore avoid it to pass `make check`.
25567         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
25568         will just return -ENOSYS, so avoid this non applicable test allowing
25569         the build to proceed.
25571 2015-07-01  Pádraig Brady  <P@draigBrady.com>
25573         acl: fix definition of acl_from_mode on FreeBSD
25574         This was causing basic coreutils copy operations to fail
25575         with ENOTSUP or ENOENT error messages.
25576         * lib/acl-internal.h (acl_from_mode): Only define when
25577         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
25578         of acl_from_mode() defined in lib/set-permissions.c to
25579         be used on FreeBSD at least.
25580         * lib/set-permissions.c: Fix up comment spelling,
25581         and a redundant variable assignment; noticed in passing.
25583 2015-06-30  Pádraig Brady  <P@draigBrady.com>
25585         readutmp: port to FreeBSD >= 9
25586         * lib/readutmp.h: Map utmpxname() to setutxdb().
25587         With that coreutils who(1) and pinky(1) tests pass.
25589 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25591         mgetgroups: port to strict OS X
25592         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
25593         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
25594         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
25595         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
25597 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
25599         mgetgroups: port to strict OS X
25600         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
25601         Document the getgrouplist problem.
25602         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
25603         New macro.
25604         (mgetgroups): Use it.
25605         * m4/mgetgroups.m4 (gl_MGETGROUPS):
25606         Check for OS X signature for getgrouplist.
25608 2015-06-29  Jim Meyering  <meyering@fb.com>
25610         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
25611         It started like this when building coreutils' latest on OS X,
25612         invoking ./configure with a nonempty --cache=.cache:
25614           lib/linkat.c:46:42: error: operator '||' has no right operand
25615           lib/linkat.c: In function 'rpl_linkat':
25616           lib/linkat.c:330:27: error: #if with no expression
25618         Here's linkat.c's line 46:
25620           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
25622         Here's some context:
25624           $ grep linkat_nofoll .cache
25625           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
25626           $ grep LINKAT_SYM lib/config.h
25627           #define LINKAT_SYMLINK_NOTSUP
25629         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
25630         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
25631         but that violates a tenet of AC_CACHE_CHECK: it must
25632         have no side effect other than setting its cache variable.
25634         What happens is that when the cache is set, we'd skip the
25635         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
25636         defined to whatever value it happened to have in configure's
25637         environment.  In my case, it was not defined, so this later code:
25639           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
25640             [Define to 1 if linkat can create hardlinks to symlinks])
25642         would emit code with an empty RHS.
25644         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
25645         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
25647 2015-06-28  Jim Meyering  <meyering@fb.com>
25649         mountlist: avoid an unused-label warning on OS X
25650         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
25651         Building on OS X, I saw a warning about the "free_then_fail" label
25652         being unused.  Give it the _GL_UNUSED_LABEL attribute.
25654         error.c: correct printf-style format: %d -> %u
25655         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
25656         rather than %d, to match the type of "line_number", unsigned int.
25658 2015-06-25  Pádraig Brady  <P@draigBrady.com>
25660         fts: avoid reading beyond the heap allocation
25661         GCC 5.1.1 with -O2 and -fsanitize=address reports
25662         a read of size 4 from a heap object of size 3 is indeed invalid,
25663         though this may be due to incorrect padding assumptions by GCC, see:
25664         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
25665         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
25666         * modules/fts: Depend on stdalign.
25668 2015-06-24  Pádraig Brady  <P@draigBrady.com>
25670         savedir: avoid undefined behavior in qsort call
25671         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
25672         "runtime error: null pointer passed as argument 1,
25673          which is declared to never be null"
25674         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
25676 2015-06-24  Pádraig Brady  <P@draigBrady.com>
25678         userspec: avoid undefined behavior in gettext call
25679         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
25680         "runtime error: null pointer passed as argument 2,
25681          which is declared to never be null"
25682         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
25684 2015-06-20  Glenn Morris  <rgm@gnu.org>
25686         gitlog-to-changelog: improve gitmerge.el commits
25687         Let the Emacs ChangeLog generation process exclude "skipped"
25688         messages from merge commits (Bug#20717).
25689         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
25691 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
25693         wchar: fix MinGW compilation warnings
25694         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
25695         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
25696         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
25698 2015-06-20  Daiki Ueno  <ueno@gnu.org>
25700         uniname/uniname-tests: use pristine data files
25701         For copyright and maintenance reasons, use the data files from UCD
25702         without modification.
25703         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
25704         (getfield): Remove.
25705         (aliases_count): New global variable.
25706         (fill_names): Skip comments and empty lines in the input.  Don't
25707         use getfield.
25708         (fill_aliases): Likewise.
25709         (main): Change the expected command line arguments to:
25710         NAMES... ["--" ALIASES...].
25711         * tests/uniname/test-uninames.sh: Adjust to the change in
25712         test-uninames.c.
25713         * tests/uniname/UnicodeDataNames.txt: Remove.
25714         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
25715         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
25716         file from Unicode 8.0.0.
25718 2015-06-19  Pádraig Brady  <P@draigBrady.com>
25720         linked-list, linkedhash-list: avoid compiler warnings
25721         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
25722         -Werror=suggest-attribute=pure (from GCC 5.1.1).
25724 2015-06-19  Daiki Ueno  <ueno@gnu.org>
25726         libunistring: bump minimum version to 0.9.6
25727         * all modules depending on updated Unicode data: Regenerate.
25728         The modules are listed by a script that does:
25729         - for each file listed by: git show --oneline --name-only 705f4efc
25730           - deduce the containing modules, based on "Files:"
25731         - deduce the modules which depend on the containing modules, based
25732           on "Depends-on:"
25734 2015-06-18  Daiki Ueno  <ueno@gnu.org>
25736         uniname/uniname: update to Unicode 8.0.0
25737         * lib/uniname/uninames.h: Regenerate.
25738         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
25739         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
25741 2015-06-18  Daiki Ueno  <ueno@gnu.org>
25743         libunistring: update to Unicode 8.0.0
25744         * lib/gen-uni-tables.c (SIZEOF): New macro.
25745         (output_numeric): Increase the maximum number of fractions from
25746         128 to 160.  Increase the level3 value width from 7 bits to 8
25747         bits.  Use SIZEOF instead of a hard-coded integer.
25748         (output_blocks): Decrease the cut-off threshold from 0x30000 to
25749         0x28000.
25750         (fill_blocks): Increase the maximum number of blocks from 256 to
25751         384.  Use SIZEOF instead of a hard-coded integer.
25752         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
25753         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
25754         value width.
25755         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
25756         a new case added to LBP22.
25757         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
25758         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
25759         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
25760         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
25761         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
25762         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25763         lib/uniwidth/width.c.
25764         * all generated files under lib/uni* and tests/uni*: Regenerate.
25766 2015-06-16  Pádraig Brady  <P@draigBrady.com>
25768         gnu-web-doc-update: add --mirror to remove stale files
25769         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
25770         out of date files from the CVS server.  Since this is usually
25771         appropriate, a prompt is given when the option is not specified,
25772         along with the `cvs remove` command that would be run.
25774 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
25776         acl-permissions: pacify -Wsuggest-attribute=const
25777         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
25778         * lib/acl-internal.h (free_permission_context):
25779         Declare with attribute const if ! (defined USE_ACL &&
25780         (HAVE_ACL_GET_FILE || defined GETACL)).
25782         fsync: document AIX misbehavior
25783         * doc/posix-functions/fsync.texi (fsync):
25784         Document failure on AIX with read-only file descriptor.
25786 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
25788         stdio: Don't redefine gets when using C++
25789         * lib/stdio.in.h (gets): Disable warning on C++.
25791 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
25793         acl-permissions: port to AIX, C89 HP-UX
25794         Problems reported by Michael Felt.
25795         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
25796         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
25797         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
25798         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
25799         Add cast for AIX, whose system calls are declared to accept
25800         char * even though the arguments are really char const *.
25801         * lib/get-permissions.c (get_permissions):
25802         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
25803         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
25804         that broke a build.
25805         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
25806         Rework types to pacify xlc.
25808 2015-06-03  Pádraig Brady  <P@draigBrady.com>
25810         vasprintf-posix: avoid compiling vasnprintf where possible
25811         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
25812         module where not required.  For example on a GNU/Linux system
25813         when gnulib-tool is run with the --conditional-dependencies option.
25815 2015-06-02  Pádraig Brady  <P@draigBrady.com>
25817         file-has-acl: fix build on Mac OS X 10
25818         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
25819         which has an incompatible 6 parameter getxattr() call.
25820         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
25821         call on Mac OS X >= 10.4.
25822         * doc/glibc-functions/fgetxattr.texi: Likewise.
25823         * lib/file-has-acl.c: Revert to more complete combined check.
25824         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
25825         Reported by Jack Howarth.
25827 2015-06-02  Pádraig Brady  <P@draigBrady.com>
25829         prefix-gnulib-mk: remove no longer needed special case
25830         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
25831         continued lib_SOURCES lines are no longer present,
25832         so special case handling of such entries is not required.
25834 2015-06-01  Pádraig Brady  <P@draigBrady.com>
25836         acl: don't depend on the deprecated qacl module
25837         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
25839 2015-06-01  Pádraig Brady  <P@draigBrady.com>
25841         gnulib-tool: concatenate lib_SOURCES to a single line
25842         * gnulib-tool: Refactor the line merging sed logic,
25843         and use that to output a single lib_SOURCES line for each module.
25844         gnulib using projects often postprocess this output to prepend
25845         subdir paths to each item, and having a single line simplifies this
25846         processing allowing better decoupling from the gnulib-tool output.
25848 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
25850         pthread_sigmask: discount system version if a simple macro (trivial)
25851         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
25852         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
25853         function to ensure it's available.
25855 2015-05-31  Pádraig Brady  <P@draigBrady.com>
25857         readlinkat: avoid OS X 10.10 trailing slash bug
25858         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
25859         has this bug.
25860         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
25861         that OS X 10.10 has this function.
25862         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
25863         as done for readlink().
25864         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
25865         trailing slash bug, and assume readlinkat() has the same issue.
25866         Also fix a typo where $gl_cv_decl_readlink_works was tested,
25867         rather than the correct $gl_cv_decl_readlinkat_works.
25869 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
25871         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
25872         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
25873         module rewrite.
25875         acl-permissions: Fix build on Solaris and Cygwin
25876         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
25877         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
25878         ace_entries variables have moved into struct permission_context but
25879         they were still accessed as local variables here.
25881 2015-05-29  Pádraig Brady  <P@draigBrady.com>
25883         linkat: avoid OS X 10.10 trailing slash with symlink bug
25884         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
25885         causes the symlink to be dereferenced, and if it points
25886         to a non existent file, that file will be created as
25887         a hard link to "path1".
25888         This fixes a test failure in test-linkat.c.
25889         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
25890         this case.  The existing workaround in linkat.c for
25891         trailing slash issues, suffices for this case.
25892         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
25893         the list of platforms with trailing slash issues.
25895 2015-05-28  Pádraig Brady  <P@draigBrady.com>
25897         unlinkat: handle ignoring of ".." on Darwin 14
25898         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
25899         on Mac OS X 10.10, where it ignores paths with a trailing "..",
25900         so handle in the same manner.
25901         * m4/unlinkat.m4: Comment on this Darwin issue.
25902         * doc/posix-functions/unlink.texi: Update the latest version
25903         where the issue was seen.
25904         * doc/posix-functions/unlinkat.texi: Mention this issue.
25905         Fixes a test failure in test-unlinkat.c.
25907 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
25909         qacl: split into qcopy-acl and qset-acl
25910         Emacs needs the former, but not the latter.
25911         * modules/acl-permissions: New file, containing most of the old qacl.
25912         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
25913         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
25914         * modules/qcopy-acl, modules/qset-acl: New files.
25915         * MODULES.html.sh (File system functions):
25916         Mention the new modules, and mention qacl while we're at it.
25918 2015-05-27  Glenn Morris  <rgm@gnu.org>
25920         gitlog-to-changelog: new option --ignore-line
25921         (This patch is imported from the GNU Emacs master.)
25922         This option ignores individual commit lines matching a pattern.
25923         * build-aux/gitlog-to-changelog: Add --ignore-line option.
25925 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
25927         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
25928         Implement get_permissions and set_permissions primitives for getting all
25929         the permissions of a file, storing them, and later setting them. (In the
25930         minimal case, the permissions consist only of a file mode.) Reimplement
25931         qset_acl and qcopy_acl based on these new primitives: this avoids code
25932         duplication and makes error handling more consistent.
25933         The Solaris and Cygwin code still uses duplicate code paths for setting
25934         a file mode while making sure that no acls exist and setting an explicit
25935         acl; this is no worse than before, but could be cleaned up.  The AIX
25936         code still doesn't read ACLs, it only makes sure that acls don't get in
25937         the way when setting a file mode.
25938         * lib/acl-internal.h (struct permission_context): New data structure.
25939         (get_permissions, set_permissions, free_permission_context): Declare.
25940         * lib/acl-internal.c (free_permission_context): New helper function.
25941         * lib/get-permissions.c (get_permissions): New helper function split off
25942         from qcopy_acl.
25943         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
25944         AIX, set a file's permissions based only on a file mode.
25945         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
25946         other platforms construct a temporary acl from the file mode and set
25947         that acl in the same way as setting an acl read from the source file.
25948         This should help avoid code duplication and inconsistent / buggy
25949         behavior.
25950         (set_acls): New helper function Split off from qcopy_acl.
25951         (chmod_or_fchmod): Moved here from qset-acl.c.
25952         (set_permissions): New helper function.
25953         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
25954         set_permissions.
25955         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
25956         * modules/qacl: Add get-permissions.c and set-permissions.c.
25958         file-has-acl: Split feature tests again (Bug#20667)
25959         * lib/file-has-acl.c: Instead of testing for
25960         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
25961         define them when needed.
25962         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
25963         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
25965 2015-05-27  Pádraig Brady  <P@draigBrady.com>
25967         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
25968         This avoids a conflict with "FORTIFY_SOURCE" variants
25969         of the string functions when they're replaced on NetBSD-6.0.1
25970         and Darwin-14.3.0 at least.
25971         * lib/string.in.h: Avoid including our "lib/string.h" while
25972         including the system <string.h>.
25974 2015-05-26  Eric Blake  <eblake@redhat.com>
25976         stdio: limit __gnu_printf__ witness to gcc 4.4+
25977         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
25978         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
25980         error: use correct printf attributes on mingw
25981         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
25983         inttypes: force correct mingw PRIdMAX even without <stdio.h>
25984         * modules/inttypes (Depends-on): Require extensions, so that mingw
25985         always uses GNU style inttypes.
25986         * lib/inttypes.in.h: On mingw, include <stdio.h>.
25988         stdio: fix probe on mingw under gcc 5.1
25989         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
25990         around new gcc preprocessor rules.
25992 2015-05-07  Glenn Morris  <rgm@gnu.org>
25994         gitlog-to-changelog: parse "Tiny-change"
25995         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
25996         "Copyright-paperwork-exempt".  (Bug#20324)
25998 2015-05-06  Pádraig Brady  <P@draigBrady.com>
26000         doc: document glibc posix_fallocate() issues
26001         * doc/posix-functions/posix_fallocate.texi: Mention the
26002         glibc efficiency problems and issues with NFS.
26004 2015-05-05  Karl Berry  <karl@freefriends.org>
26006         * build-aux/gendocs.sh (usage): document new css default
26007         for HTML (--htmlarg).
26009 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
26011         extern-inline: no need for workaround in GCC 5.1
26012         * doc/extern-inline.texi (extern inline):
26013         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26014         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
26015         around these bugs in GCC 5.1 and later.  Maybe in a decade or
26016         two we can remove these workarounds.
26018 2015-04-28  Pádraig Brady  <P@draigBrady.com>
26020         eealloc, pagealign_alloc, xalloc: avoid clang warnings
26021         Avoid [-Wunknown-attributes] warnings like:
26022         warning: unknown attribute '__alloc_size__' ignored
26023         * lib/xalloc.h: Don't use the __alloc_size__  attribute
26024         with clang, as support has been fully removed as of clang 3.5:
26025         https://github.com/llvm-mirror/clang/commit/c047507a
26026         * lib/eealloc.h: Likewise.
26027         * lib/pagealign_alloc.h: Likewise.
26029 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
26031         tests: pacify GCC 5.1's stricter printf checking
26032         * tests/test-dirname.c (main):
26033         * tests/test-getaddrinfo.c (simple):
26034         * tests/test-getlogin.c (main):
26035         * tests/test-getndelim2.c (main):
26036         * tests/test-inttostr.c (CK):
26037         * tests/test-md5.c (main):
26038         * tests/test-read-file.c (main):
26039         * tests/test-sha1.c (main):
26040         Fix mismatches between printf format and value signedness.
26041         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
26042         Remove, as CAST_VAL always returned a value of type uintmax_t.
26044         fts: port to GCC 5.1 with --enable-gcc-warnings
26045         Without this fix, GCC 5.1 (correctly) warns about a subscript
26046         error on the fts_name component of FTSENT.  It's actually a
26047         flexible member, so define it that way on C99 or later hosts.
26048         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
26049         structure that now has a flexible array member.
26050         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
26051         (FTSENT): fts_name is now flexible on C99-or-later platforms.
26052         * modules/fts (Depends-on): Add flexmember.
26054 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
26056         file-has-acl: port to CentOS 6
26057         Problem reported by Tom G. Christensen in:
26058         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
26059         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
26060         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
26061         HAVE_GETXATTR.
26062         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
26063         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
26064         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
26065         file-has-acl.c actually needs.
26067 2015-04-26  Pádraig Brady  <P@draigBrady.com>
26069         file-has-acl: always return false when ACLs aren't supported
26070         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
26071         change the GNU/Linux getxattr path, to transform "not supported"
26072         errors to a false return rather than an error.  This is handled
26073         within file_has_acl() due to the platform specific tests to
26074         determine if ACLs are not supported.
26076 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26078         gettext: propagate po/Makefile.in.in too
26079         * build-aux/po/Makefile.in.in: Copy from latest gettext.
26080         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
26081         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
26082         between Makefile.in.in and the gettext-runtime m4 files.
26084 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26086         file-has-acl: new module, split from acl
26087         And add a new module file-has-acl-tests to match.
26088         I ran into a problem with the recent changes to the acl module,
26089         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
26090         When using the fixed version with Emacs, I discovered that
26091         file-has-acl wasn't separated out well enough for Emacs (e.g., it
26092         had multiple libraries, but needed only one), so I fixed that too.
26093         * NEWS: Document this incompatible change.
26094         * modules/file-has-acl, modules/file-has-acl-tests: New files.
26095         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
26096         Initialize gl_need_lib_has_acl.
26097         (gl_FUNC_ACL): Require it.
26098         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
26099         Move the file-has-acl.c-relevant stuff to ...
26100         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
26101         use_xattrs = 0' typo, and omit some needless work.  Set
26102         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
26103         when gl_FUNC_ACL is called.
26104         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
26105         (Link): Remove $(LIB_HAS_ACL).
26106         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
26107         (check_PROGRAMS): Move stuff relevant to file-has-acl to
26108         modules/file-has-acl-tests.
26109         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
26111         manywarnings: add GCC 5.1 warnings
26112         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
26113         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
26114         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
26115         -Wsuggest-override, -Wuse-without-only.  Change
26116         -Wnormalized=... operands to match 5.1.
26117         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
26118         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
26119         -Wdiscarded-qualifiers, -Wformat-signedness,
26120         -Wincompatible-pointer-types, -Wint-conversion,
26121         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
26122         -Wshift-count-negative, -Wshift-count-overflow,
26123         -Wsizeof-array-argument, -Wsuggest-final-methods,
26124         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
26125         and add -Warray-bounds=2 as a special case.
26127 2015-04-21  Simon Josefsson  <simon@josefsson.org>
26129         doc: update FDL template to match FDL examples.
26130         * doc/alloca-opt.texi:
26131         * doc/alloca.texi:
26132         * doc/c-ctype.texi:
26133         * doc/c-strcase.texi:
26134         * doc/c-strcaseeq.texi:
26135         * doc/c-strcasestr.texi:
26136         * doc/c-strstr.texi:
26137         * doc/c-strtod.texi:
26138         * doc/c-strtold.texi:
26139         * doc/ctime.texi:
26140         * doc/error.texi:
26141         * doc/gcd.texi:
26142         * doc/gnulib-tool.texi:
26143         * doc/inet_ntoa.texi:
26144         * doc/intprops.texi:
26145         * doc/lib-symbol-visibility.texi:
26146         * doc/maintain.texi:
26147         * doc/parse-datetime.texi:
26148         * doc/quote.texi:
26149         * doc/regexprops-generic.texi:
26150         * doc/standards.texi: Remove spurious 'with' in FDL license
26151         template.
26153 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
26155         lstat: fix cross-compilation 'ln -s' problem
26156         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
26157         Have the test program call 'symlink' rather than a separate
26158         script run 'ln -s'; this is more likely to work in
26159         cross-compilation environments.  Reported by Pavel Fedin in:
26160         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
26162 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
26164         gendocs.sh: default to a common CSS style sheet for HTML output
26165         * build-aux/gendocs.sh (htmlarg): Change default value.
26167 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
26169         gnulib-tool: output bold attribute more portably
26170         * gnulib-tool (func_show_module_list): Change hexadecimal
26171         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
26172         encoded numbers as arguments to `printf' is not portable,
26173         and is not claimed by POSIX.  This is the case with FreeBSD.
26175 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26177         qacl: Simplify HP-UX acl_nontrivial check
26178         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
26179         acl_nontrivial. Check if the acl has at most three entries instead (it must
26180         have exactly three entries according to the HP-UX documentation). Ignore
26181         uids and gids as long as an entry is either for a user (i.e., the owner),
26182         a group (i.e., the owning group), or others.
26183         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
26184         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
26186 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
26188         acl: On Linux, check for acls without libacl
26189         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
26190         library function to check for the presence of acls, avoiding a library.
26191         * lib/file-has-acl.c: Include xattr headers if we have them.
26192         (file_has_acl): On Linux, use getxattr().
26193         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
26194         file_has_acl(). Check for xattr headers and getxattr().
26196 2015-04-14  Ángel González  <keisial@gmail.com>
26198         tempname: avoid unused parameter warnings (trivial)
26199         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
26200         (try_nocreate): Likewise.
26202 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
26204         fseeko: fix build failure on NetBSD >= 6 (trivial)
26205         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
26206         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
26208 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26210         gitlog-to-changelog: port to MS-Windows
26211         * build-aux/gitlog-to-changelog (git_dir_option):
26212         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
26213         MS-Windows Perl.  Reported by Eli Zaretskii in:
26214         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
26216 2015-04-07  Karl Berry  <karl@gnu.org>
26218         gendocs: new option --tex for passing args to texi2dvi.
26219         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
26220         (TEXI2DVI): cut to just command name.
26221         (usage): mention new option, and update copyright.
26222         <generate_tex>: use it.
26224 2015-04-07  Karl Berry  <karl@gnu.org>
26226         * config/srclistvars.sh (GETTEXT): new definition.
26227         * config/srclist.txt: use it for gettext .m4 files.
26228         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
26229         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
26230         and continuing into April.
26232 2015-04-07  Daiki Ueno  <ueno@gnu.org>
26234         uniname/uniname-tests: fix failure due to alias
26235         Reported by Jack Howarth in:
26236         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
26237         * tests/uniname/test-uninames.c (name_has_alias): New function.
26238         (test_inverse_lookup): Exclude character name with valid alias,
26239         from randomly generated character names.
26240         (main): Fill unicode_aliases before calling test functions.
26242 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
26244         hash: remove deprecated hash_insert0 function
26245         * lib/hash.h (hash_insert0): Remove deprecated function.
26246         * lib/hash.c (hash_insert0): Likewise.
26248 2015-04-02  Pádraig Brady  <P@draigBrady.com>
26250         mountlist: remove dependency on libmount
26251         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
26252         directly, rather than depending on libmount, which has many
26253         dependencies due to its dependence on libselinux, as detailed at:
26254         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
26255         Note we restrict this to __linux__ as that's probably where this
26256         interface will remain.  If ever porting, it would be best
26257         to first pull the makedev() wrapper from coreutils to a gnulib module.
26258         Note also we don't add a getline dependency to the mountlist module,
26259         as all Linux versions are sufficient.
26261 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
26263         stddef: port to pre-C11 GCC on x86
26264         On this platform, max_align_t should have an alignment of 8 even
26265         though the storage alignments of double, long, etc. max out at 4.
26266         Inspired by a comment of Andreas Schwab's here:
26267         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
26268         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
26269         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
26270         * tests/test-stddef.c: Test __alignof__ too, if available.
26272 2015-03-24  Pádraig Brady  <P@draigBrady.com>
26274         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
26275         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
26277 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
26279         yesno: make EOL optional in ENABLE_NLS case also (trival)
26280         * lib/yesno.c (yesno): Check for EOL before replacing.
26281         * tests/test-yesno.sh: Add a test case (test along with gettext).
26283 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
26285         fdopendir-tests: test it does not close its arg
26286         * tests/test-fdopendir.c (main): Test that fdopendir does not
26287         close its argument.  From a suggestion by David Grayson in:
26288         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
26290 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
26292         gitlog-to-changelog: trim trailing white space
26293         * build-aux/gitlog-to-changelog (main):
26294         Trim trailing white space from commit message lines.
26295         This is helpful for processing the GNU Emacs repository,
26296         which dates back to 1985 and contains a lot of such lines.
26298         gitlog-to-changelog: new option --ignore-matching
26299         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
26300         Support new option --ignore-matching=PAT, which ignores all
26301         commit messages whose first line matches PAT.
26303 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26305         fdopendir: port better to MinGW
26306         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
26307         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
26308         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
26309         * modules/fdopendir (Depends-on): Add dirfd.
26311 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
26313         fdopendir: fix typo in comment
26314         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
26316 2015-03-09  Eric Blake  <eblake@redhat.com>
26318         error: document all entry points provided
26319         * doc/glibc-functions/error_print_progname.texi
26320         (error_print_progname): Mention the error module.
26321         * doc/glibc-functions/error_at_line.texi (error_at_line):
26322         Likewise.
26323         * doc/glibc-functions/error_message_count.texi
26324         (error_message_count): Likewise.
26325         * doc/glibc-functions/error_one_per_line.texi
26326         (error_one_per_line): Likewise.
26328 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
26330         vasnprintf: pacify clang 3.5.0
26331         Problem reported by Werner Lemberg in:
26332         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
26333         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
26334         The casts aren't needed, since the characters in question are ASCII.
26336 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26338         glob, etc.: port to MSVC v18 on MS-Windows 8.1
26339         * lib/dirent--.h (GNULIB_defined_opendir):
26340         * lib/dirent.in.h (GNULIB_defined_opendir)
26341         (GNULIB_defined_closedir):
26342         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
26343         #undef only if Gnulib defined it.
26345         poll: port to MSVC v18 on MS-Windows 8.1
26346         Problem reported by Gisle Vanem in:
26347         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
26348         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
26349         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
26350         Add sys_socket.
26352 2015-02-24  Pádraig Brady  <P@draigBrady.com>
26354         tests: support stderr verification with returns_()
26355         * tests/init.sh (returns_): Disable tracing for this wrapper
26356         function, so that stderr of the wrapped command is unchanged,
26357         allowing for verification of the contents.
26359 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
26361         passfd: avoid valgrind uninitalised data warning
26362         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
26363         to include just the fd we've initialized, rather than including
26364         the extra space used for alignment.
26366 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
26368         uniwbrk/u32-wordbreaks-tests: fix copyright
26369         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
26371         dup2: doc and test for Android bug
26372         Reported by Kevin Cernekee in:
26373         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
26374         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26375         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
26377 2015-02-23  Kevin Cernekee  <cernekee@google.com>
26379         Replace dup2() on Android
26380         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
26381         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
26382         fails.  Using rpl_dup2() fixes this because it has an explicit test
26383         for this condition.
26385 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
26387         Android doesn't define RLIM_SAVED_*
26388         Portability problem reported by Kevin Cernekee in:
26389         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
26390         * doc/posix-headers/sys_resource.texi (sys/resource.h):
26391         Mention the portability problem.
26392         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
26393         Define if not defined.
26394         * m4/dup2.m4 (gl_FUNC_DUP2):
26395         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26396         Likewise.
26398 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
26400         vasnprintf-posix-tests: use consistent test
26401         * tests/test-vasnprintf-posix.c (test_function):
26402         Use "<" in assert instead of "<=", for consistency with other tests.
26404 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26406         printf, isinf, etc.: noncanonical != NaN
26407         Do not require that isinf, printf, etc. treat noncanonical
26408         values as NaNs.  Instead, require only that they do not crash.
26409         Problem reported by Joseph Myers in:
26410         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
26411         * doc/posix-functions/dprintf.texi (dprintf):
26412         * doc/posix-functions/fprintf.texi (fprintf):
26413         * doc/posix-functions/isfinite.texi (isfinite):
26414         * doc/posix-functions/isinf.texi (isinf):
26415         * doc/posix-functions/isnan.texi (isnan):
26416         * doc/posix-functions/printf.texi (printf):
26417         * doc/posix-functions/snprintf.texi (snprintf):
26418         * doc/posix-functions/sprintf.texi (sprintf):
26419         * doc/posix-functions/vdprintf.texi (vdprintf):
26420         * doc/posix-functions/vfprintf.texi (vfprintf):
26421         * doc/posix-functions/vprintf.texi (vprintf):
26422         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26423         * doc/posix-functions/vsprintf.texi (vsprintf):
26424         Document this.
26425         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
26426         * m4/isinf.m4 (gl_ISINFL_WORKS):
26427         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
26428         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
26429         * tests/test-isfinite.c (test_isfinitel):
26430         * tests/test-isinf.c (test_isinfl):
26431         * tests/test-isnan.c (test_long_double):
26432         * tests/test-isnanl.h (main):
26433         * tests/test-snprintf-posix.h (test_function):
26434         * tests/test-sprintf-posix.h (test_function):
26435         * tests/test-vasnprintf-posix.c (test_function):
26436         * tests/test-vasprintf-posix.c (test_function):
26437         Test only that noncanonical values do not cause crashes, not that
26438         they are treated as NaNs.  In some cases this means a larger
26439         output buffer is needed.
26441 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
26443         fts: remove redundant close() (trivial)
26444         * lib/fts.c (fts_read): Remove redundant call to close().
26445         Spotted by coverity.
26447 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26449         getdtablesize: port better for Android
26450         Problem reported by Kevin Cernekee in:
26451         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
26452         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
26453         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
26454         Instead, just use getrlimit, taking care to avoid Cygwin bug.
26456         poll: fixes for large fds
26457         * lib/poll.c (poll): Don't check directly for NFD too large.
26458         Don't rely on undefined behavior in FD_SET when an arg exceeds
26459         FD_SETSIZE.  Always set revents afterwards, even if to zero.
26460         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
26461         as that makes the test a bit stricter.
26463 2015-02-19  Kevin Cernekee  <cernekee@google.com>
26465         fcntl: Fix cross compiling
26466         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
26467         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
26469 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
26471         dup2, fcntl: cross-compile better for Android
26472         Problem reported by Kevin Cernekee in:
26473         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
26474         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
26475         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
26476         there's little need to cross-compile for older kernels nowadays.
26477         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
26478         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
26480 2015-02-18  Pádraig Brady  <P@draigBrady.com>
26482         getopt: don't crash on memory exhaustion
26483         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
26484         memory exhaustion.  In the _LIBC case we use alloca() as is
26485         already done in glibc, so we don't need to consider the separate
26486         error path in that awkward case.  Also fix a memory leak when
26487         ambiguous options are present.
26488         Reported by Tobias Stoeckmann
26490 2015-02-17  Mike Miller  <mtmiller@ieee.org>
26492         tempname: allow compilation with C++ (trivial)
26493         * lib/tempname.h [C++]: Specify extern "C" linkage.
26494         * lib/tempname.h (try_tempname):
26495         * lib/tempname.c (__try_tempname, __gen_tempname):
26496         Rename 'try' to 'tryfunc'.
26498 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
26500         dup2, fcntl: port to AIX
26501         * m4/dup2.m4 (gl_FUNC_DUP2):
26502         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26503         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
26504         The former works on AIX 7.1 but the latter does not.
26505         Also, this may work better with Android; see:
26506         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
26508 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26510         getdtablesize, dup2, fcntl: port to Android
26511         Problem reported by Kevin Cernekee in:
26512         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
26513         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
26514         Mention that getdtablesize doesn't work on Android.
26515         * lib/getdtablesize.c: Use getrlimit substitute only if
26516         getdtablesize is declared.  This should suffice for Cygwin
26517         while not breaking Android.
26518         * m4/dup2.m4 (gl_FUNC_DUP2):
26519         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26520         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
26521         standardized but the latter is not, and sysconf works on Android.
26522         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
26523         Also check that getdtablesize is declared.
26524         This removes the need for a special case for Android.
26526 2015-02-16  Kevin Cernekee  <cernekee@google.com>
26528         localename: Implement gl_locale_name_thread_unsafe for Android
26529         * lib/localename.c: Android API level >= 21 supports two hardcoded
26530         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
26531         the internal __locale_t struct.
26533 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
26535         fts: avoid crash when a cycle is added while traversing
26536         This could be triggered by auto-mounting a recursive bind mount.
26537         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
26538         * lib/fts.c (fts_read): Avoid removing the original hash table item
26539         when leaving a directory that caused a cycle, and preserve the FTS_DC
26540         flag.
26542 2015-02-16  Daiki Ueno  <ueno@gnu.org>
26544         uniname/uniname: support character alias
26545         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
26546         Generate one-way mapping from aliases to codepoints in the
26547         generated tables.  Special case variation selectors to reduce
26548         table size.
26549         * lib/uniname/uniname.c (unicode_character_name): Special case
26550         variation selectors.
26551         (unicode_name_character): Special case variation selectors and
26552         their aliases.
26553         * lib/uniname/uninames.h: Regenerate.
26554         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
26555         * modules/uniname/uniname-tests (Files): Add
26556         tests/uniname/NameAliases.txt.
26557         * tests/uniname/test-uninames.c: Mark as static.
26558         (ALIASLEN): Define.
26559         (struct unicode_alias): New struct.
26560         (unicode_aliases): New variable.
26561         (fill_aliases): New function.
26562         (test_alias_lookup): New test function.
26563         (main): Run the 'test_alias_lookup' test if the second argument is
26564         given.
26565         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
26566         second argument.
26568 2015-02-11  Kevin Cernekee  <cernekee@google.com>
26570         Fix FILE struct compatibility with Android API level >= 21
26571         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
26572         __sferror.  Recent versions of Bionic's stdio.h no longer define
26573         __sferror.
26574         * lib/fbufmode.c: Likewise.
26575         * lib/fflush.c: Likewise.
26576         * lib/fpurge.c: Likewise.
26577         * lib/freadable.c: Likewise.
26578         * lib/freadahead.c: Likewise.
26579         * lib/freading.c: Likewise.
26580         * lib/freadptr.c: Likewise.
26581         * lib/freadseek.c: Likewise.
26582         * lib/fseeko.c: Likewise.
26583         * lib/fseterr.c: Likewise.
26584         * lib/fwritable.c: Likewise.
26586         Assume unbroken ungetc() on Android
26587         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
26588         test case passed when running on an Android host, and the code
26589         hasn't really changed since 2009.
26591         getdtablesize: Fix Android build
26592         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
26593         versions have this symbol in the .so library (at least 32-bit
26594         platforms) but are missing the declaration in the header file,
26595         causing the m4 logic to guess incorrectly.
26597         localename: Fix Android build
26598         * modules/localename (Depends-on): Add langinfo.
26600         getugroups: Fix Android build
26601         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
26602         functions.
26604         euidaccess: Fix Android build
26605         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
26606         AT_EACCESS gets declared.
26608         linkat_nofollow: Add fallback case for cross compiling
26609         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
26611         net_if: Handle content-free <net/if.h> system headers
26612         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
26613         struct if_nameindex.  If not, enable the replacement header.
26615         signal_h: Fix Android build
26616         * lib/signal.in.h: Add Android to the list of platforms that declare
26617         pthread_sigmask() in <pthread.h> instead of <signal.h>.
26619         duplocale: Fix Android build of duplocale-tests
26620         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
26621         is included by test-duplocale.c (but not by duplocale.c).
26622         * modules/duplocale-tests (configure.ac): Check for monetary.h.
26623         * tests/test-duplocale.c: Skip test if monetary.h is absent.
26624         * doc/posix-headers/monetary.texi: Add Android to the list of
26625         platforms missing monetary.h.
26627 2015-02-11  Pádraig Brady  <P@draigBrady.com>
26629         tests: avoid recent -Werror=unused-variable regression in test-locale
26630         * tests/test-locale.c (main): Reference the variable to avoid the
26631         "unused variable" warning.
26633 2015-02-11  Pádraig Brady  <P@draigBrady.com>
26635         maint: various whitespace cleanups in tempname
26636         * lib/tempname.c: Normalize spacing and line length.
26637         * lib/tempname.h: Likewise.
26638         * modules/tempname: Likewise.
26640 2015-02-11  Pádraig Brady  <P@draigBrady.com>
26642         tests: provide returns_() to simplify exit status checking
26643         * tests/init.sh (returns_): A new function for use in tests,
26644         to allow for easier checking of return values, where you expect
26645         a command to exit with failure status.  By checking for a particular
26646         exit code, you don't hide any crashes for example.
26648 2015-02-11  Pádraig Brady  <P@draigBrady.com>
26650         mountlist: only use libmount when specified
26651         There are currently many shared libs dependencies introduced by
26652         libmount with associated runtime and virt mem overhead.
26653         Therefore don't enable by default.
26654         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
26656 2015-02-08  Daiki Ueno  <ueno@gnu.org>
26658         uniname/unimame-tests: don't link with -lunistring
26659         * modules/uniname/uniname-tests (Makefile.am): Don't link against
26660         $(LIBUNISTRING).  Document the rationale why we need to
26661         conditionalize the test.
26663 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26665         fstrcmp: don't assume strlen < INT_MAX
26666         * lib/fstrcmp.c: Include stddef.h and stdint.h.
26667         (uintptr_t): Remove, as we're now assuming stdint.
26668         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
26669         Prefer ptrdiff_t to int when the value could exceed INT_MAX
26670         if the input string is long.
26671         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
26672         uintptr_t to size_t when the underlying value is a pointer casted
26673         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
26674         * modules/fstrcmp (Depends-on): Add stdint.
26676         diffseq: prefer ptrdiff_t to ssize_t
26677         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
26678         ptrdiff_t is the natural type for signed indexes.
26679         On a few older platforms, ssize_t is narrower than size_t.
26681         xalloc: fix typo that suppressed warnings
26682         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
26683         This typo, introduced a couple of years ago, mistakenly suppressed
26684         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
26685         -Wmissing-declarations warnings.
26687         full-read: fix license notice typo
26688         * lib/full-read.h: Remove a stray line in the license notice.
26689         Reported by Sam Ellis in: http://bugs.gnu.org/19808
26691         crypto/gc: fix a -Wswitch warning
26692         Reported by Bruce Korb in:
26693         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
26694         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
26696 2015-02-03  Pádraig Brady  <P@draigBrady.com>
26698         gnulib-tool: fix handling of patch(1) diagnostics
26699         * gnulib-tool: Send diagnostics from patch(1) to stderr,
26700         as otherwise gnulib-tool will reparse that output and attempt
26701         to lookup modules.
26703 2015-02-03  Pádraig Brady  <P@draigBrady.com>
26705         bootstrap: exit immediately upon gnulib-tool failure
26706         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
26707         This was noticed when gnulib-tool exited early due to failure
26708         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
26709         but various confusing errors were then given as the build proceeded.
26711 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
26713         symlinkat: include all required header files
26714         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
26715         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
26716         Reported at https://savannah.gnu.org/bugs/index.php?44151
26717         and by Jack Howarth.
26719 2015-01-29  Pádraig Brady  <P@draigBrady.com>
26721         localename: support Solaris 12 and illumos
26722         * lib/localename.c (gl_locale_name_thread_unsafe): call
26723         getlocalename_l() on newer __sun platforms.
26724         Reported by Alexander Pyhalov.
26725         Fix suggested by Rich Burridge.
26727 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
26729         locale: fix tests on illumos (trivial)
26730         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
26731         so move from global scope to main().
26733 2015-01-24  Daiki Ueno  <ueno@gnu.org>
26735         unictype: avoid undefined left-shift behavior
26736         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
26737         gcc's -fsanitize=shift and running its tests triggered:
26738           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
26739             places cannot be represented in type 'int'
26740         Cast LHS to 'unsigned int' after integer promotion.
26741         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
26742         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
26744 2015-01-20  Daiki Ueno  <ueno@gnu.org>
26746         libunistring: bump version of unitypes dependants
26747         Due to the header file search order, all the headers which depend
26748         on unitypes.h need to be generated, when the preinstalled
26749         libunistring is older.
26750         * modules/unicase/base (configure.ac): Bump minimum version to
26751         0.9.4.
26752         * modules/uniconv/base (configure.ac): Likewise.
26753         * modules/unilbrk/base (configure.ac): Likewise.
26754         * modules/uninorm/base (configure.ac): Likewise.
26755         * modules/unistdio/base (configure.ac): Likewise.
26756         * modules/unistr/base (configure.ac): Likewise.
26757         * modules/uniwbrk/base (configure.ac): Likewise.
26758         * modules/uniwidth/base (configure.ac): Likewise.
26760 2015-01-20  Daiki Ueno  <ueno@gnu.org>
26762         unictype/category-none: fix link with libunistring
26763         Since _UC_CATEGORY_NONE is not a public symbol, it will be
26764         prefixed with "libstring_" when compiled as part of libunistring.
26765         To avoid undefined symbol at link time, increase the minimum
26766         version when the dependant modules are updated.
26767         * modules/unictype/category-none (configure.ac): Bump minimum
26768         version to 0.9.5.
26770 2015-01-20  Daiki Ueno  <ueno@gnu.org>
26772         unitypes: fix build with installed libunistring
26773         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
26774         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
26775         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
26777 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26779         time: port to MinGW32 3.21
26780         Problem reported by Eli Zaretskii in:
26781         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
26782         * lib/time.in.h:
26783         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
26784         * modules/time (Depends-on):
26785         Fall back on unistd.h if the other include files don't define
26786         struct timespec.
26788         update-copyright: apply to self
26789         * build-aux/update-copyright: Fix copyright date.  How ironic!
26791 2015-01-15  Daiki Ueno  <ueno@gnu.org>
26793         libunistring: update to Unicode 7.0.0
26794         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
26795         Manichaean names.
26796         * lib/unictype/joininggroup_name.h: Likewise.
26797         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
26798         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
26799         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
26800         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
26801         (fill_arabicshaping, joining_group_as_c_identifier): Support those
26802         enum values.
26803         (is_property_alphabetic): Accept newly added characters to
26804         cuneiform numeric signs.
26805         (is_property_default_ignorable_code_point): Reject U+0605.
26806         (FIELDLEN): Increase from 120 to 160.
26807         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
26808         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
26809         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
26810         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
26811         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
26812         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
26813         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
26814         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
26815         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
26816         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
26817         U+1E8D0..U+1E8D6.
26818         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
26819         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26820         lib/uniwidth/width.c.
26821         * all generated files under lib/uni* and tests/uni*: Regenerate.
26823 2015-01-14  Daiki Ueno  <ueno@gnu.org>
26825         libunistring: update to Unicode 6.3.0
26826         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
26827         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
26828         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
26829         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
26830         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
26831         Update WB5, WB9, WB10, WB13a, and WB13b.
26832         * tests/uniwbrk/test-uc-wordbreaks.c
26833         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
26834         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
26835         (UC_BIDI_PDI): New enumeration values.
26836         (bidi_category_byname): Support those enum values.
26837         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
26838         dedicated property assigned.
26839         (is_property_case_ignorable): Check 0x0027.
26840         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
26841         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
26842         (output_wbp): Support those enum values.
26843         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
26844         (UC_BIDI_PDI): New enumeration values.
26845         * lib/unictype/bidi_byname.gperf: Add those property names.
26846         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
26847         U+180E, U+1A1B, and U+2066..U+2069.
26848         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26849         lib/uniwidth/width.c.
26850         * all generated files under lib/uni* and tests/uni*: Regenerate.
26852 2015-01-14  Daiki Ueno  <ueno@gnu.org>
26854         libunistring: update to Unicode 6.2.0
26855         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
26856         (unilbrk_table): Adjust table size.
26857         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
26858         for LBP_RI.
26859         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
26860         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
26861         Normalize table index skipping ignored properties.
26862         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
26863         WBP_EXTEND and WBP_FORMAT, which are now computed without using
26864         the table.
26865         * lib/uniwbrk/wbrktable.h: Adjust table size.
26866         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
26867         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
26868         Support rule GB8a.
26869         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
26870         * tests/unigbrk/test-uc-is-grapheme-break.c
26871         (graphemebreakproperty_to_string): Support GBP_RI.
26872         * tests/uniwbrk/test-uc-wordbreaks.c
26873         (wordbreakproperty_to_string): Support WBP_RI.
26874         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
26875         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
26876         (output_lbp): Support LBP_RI.  Adjust some characters changed from
26877         LBP_AL to LBP_ID.
26878         (output_lbp): Support LBP_RI.
26879         (WBP_RI): New enumeration value.
26880         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
26881         (output_wbp): Support WBP_RI.
26882         (GBP_RI): New enumeration value.
26883         (output_gbp_test, fill_org_gbp): Support GBP_RI.
26884         * all generated files under lib/uni* and tests/uni*: Regenerate.
26886 2015-01-14  Daiki Ueno  <ueno@gnu.org>
26888         libunistring: update to Unicode 6.1.0
26889         * lib/gen-uni-tables.c (output_joining_group): Switch to
26890         3-level table to accommodate joining groups defined with higher
26891         codepoint value.  Since there are only 88 groups defined in
26892         Unicode 7.0.0, use 7-bit packed format for level3 entries.
26893         (get_lbp): Update for Unicode 6.1.0.
26894         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
26895         3-level table.
26896         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
26897         joining group name.
26898         * lib/unictype/joininggroup_name.h: Likewise.
26899         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
26900         (unilbrk_table): Adjust table size.
26901         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
26902         for LBP_HL.
26903         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
26904         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
26905         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
26906         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
26907         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
26908         U+302E..U+302F.
26909         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26910         lib/uniwidth/width.c.
26911         * all generated files under lib/uni* and tests/uni*: Regenerate.
26912         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
26914 2015-01-15  Daiki Ueno  <ueno@gnu.org>
26916         uniwbrk/u32-wordbreaks-tests: add conformance test
26917         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
26918         tests/uniwbrk/test-uc-wordbreaks.c,
26919         tests/uniwbrk/test-uc-wordbreaks.sh, and
26920         tests/uniwbrk/WordBreakTest.txt.
26921         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
26922         test-uc-wordbreaks to $(check_PROGRAMS), and define
26923         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
26924         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
26925         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
26927 2015-01-15  Daiki Ueno  <ueno@gnu.org>
26929         uniwbrk: ignore Extended/Format characters at BOL not BOS
26930         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
26931         characters if the previous character property is one of
26932         WBP_NEWLINE, WBP_CR, and WBP_LF.
26934 2015-01-11  Jim Meyering  <meyering@fb.com>
26936         test-strstr.c: avoid a trivial leak
26937         * tests/test-strstr.c (main): Free haystack.
26939         update-copyright: recognize groff's \(co marker
26940         * build-aux/update-copyright (circle_c_re): Also accept
26941         uses of \(co, as found in gzip.1.
26943 2015-01-08  Pádraig Brady  <P@draigBrady.com>
26945         maint.mk: fix compatibility with OS X nm
26946         * top/maint.mk (_gl_tight_scope): Use the -g option to
26947         show exported items rather than the -e option which is
26948         ignored on all platforms except OS X where it gives an error.
26949         Reported by Assaf Gordon.
26951 2015-01-07  KO Myung-Hun  <komh@chollian.net>
26953         localcharset: improve charset detection on OS/2
26954         Use system codepage when appropriate.  Map OS/2 codepages to
26955         GNU canonical charset names if possible.
26956         * lib/config.charset: Don't output aliases if "$os" is os2*.
26957         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
26958         result for OS/2.
26959         (locale_charset) [OS2]: Use system codepage if codeset is omitted
26960         from the locale name which is neither "C" nor "POSIX".
26962 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
26964         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
26965         This reverts the last patch but one, as it shouldn't be needed now
26966         that the typo is fixed.
26967         * lib/count-leading-zeros.h (count_leading_zeros_ll):
26968         * lib/count-trailing-zeros.h:
26969         * lib/count-one-bits.h:
26970         Go back to using 64-bit intrinsics.
26972         count-leading-zeros: fix pragma typos
26973         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
26974         Fix typos in declaration of intrinsics when _MSC_VER.
26976 2015-01-06  Pádraig Brady  <P@draigBrady.com>
26978         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
26979         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
26980         intrinsics in this case.
26981         * lib/count-trailing-zeros.h: Likewise.
26982         * lib/count-one-bits.h: Likewise.
26984 2015-01-06  Daiki Ueno  <ueno@gnu.org>
26986         uniname/uniname: update to Unicode 7.0.0
26987         To accommodate new characters added since Unicode 5.1.0, this
26988         changes the internal representation of codepoint ranges.
26989         Previously, we grouped codepoint ranges by manually assigned 4-bit
26990         tag, which only allowed 16 groups.  This removes the limitation by
26991         switching to binary search on a table.  For the detail rationale
26992         and the benchmark results, see:
26993         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
26994         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
26995         to INDEX, as it no longer represents a codepoint.
26996         (range): New struct.
26997         (main): Switch to intervals list from a bit-pattern based
26998         classification.
26999         * lib/uniname/uninames.h: Regenerate.
27000         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
27001         * modules/uniname/base (configure.ac): Bump minimum version to
27002         0.9.5.
27003         * modules/uniname/uniname (configure.ac): Bump minimum version to
27004         0.9.5.
27006 2015-01-05  Eric Blake  <eblake@redhat.com>
27008         doc: update INSTALL from autoconf
27009         * doc/install.texi: Resync from autoconf.
27010         * doc/INSTALL: Reflect recent autoconf update.
27011         * doc/INSTALL.ISO: Likewise.
27012         * doc/INSTALL.UTF-8: Likewise.
27014         stdio: fix use of PRIdMAX on modern mingw
27015         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
27016         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
27017         to work with modern mingw.
27019 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
27021         pthread: detect git mingw builds with only partial pollution
27022         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
27023         pollution, as seen temporarily in Fedora 21.
27025 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27027         lib-symbol-versions: cache script check
27028         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
27029         Cache the check for linker version scripts.
27030         From a suggestion by Christophe Curis in:
27031         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
27033 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
27035         maint: fix grammar nits in propername (trivial change)
27036         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
27037         and use an adequate verb and tense.
27039 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
27041         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
27042         * module/gendocs: Add 'doc/gendocs_template_min'.
27044         * build-aux/gendocs.sh: Change email addresses and upstream URLs
27045         from to Gnulib's.
27046         (scripturl, templateurl): Adjust accordingly.
27048 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27050         gendocs: copyright date and version fix
27051         Reported by Karl Berry in:
27052         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
27053         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
27054         Fix copyright date.
27055         * build-aux/gendocs.sh (scriptversion): Update.
27057 2015-01-01  Karl Berry  <karl@gnu.org>
27059         * doc/install.texi,
27060         * build-aux/mdate-sh,
27061         * build-aux/depcomp,
27062         * build-aux/config.guess,
27063         * build-aux/config.sub,
27064         * build-aux/ar-lib,
27065         * build-aux/compile: revert copyright updates (some from last
27066         year) in slaved files.
27068 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27070         version-etc: new year
27071         * doc/gnulib.texi:
27072         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
27073         * all files: Run 'make update-copyright'.
27075 2014-12-30  Pádraig Brady  <P@draigBrady.com>
27077         xstrtol: ensure errno is reset
27078         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
27079         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
27081         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
27083 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27085         utimens: fix dependency typo
27086         * modules/utimens (Depends-on): Remove 'assure'.
27087         This bug was introduced in the recent 'assure' patch.
27089 2014-12-22  Eric Blake  <eblake@redhat.com>
27091         docs: mention why libgen.h is bad
27092         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
27094 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27096         assure: new module
27097         This works better than 'assert' when compiling with -DNDEBUG,
27098         as it avoids some compiler diagnostics in that case.
27099         Reported by Norihiro Tanaka in:
27100         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
27101         * MODULES.html.sh (func_all_modules): Add 'assure'.
27102         * lib/assure.h, modules/assure: New files.
27103         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
27104         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
27105         Prefer 'assure' to 'assert'.
27106         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
27107         * modules/chdir-long, modules/cycle-check, modules/fchdir:
27108         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
27109         Depend on 'assure'.
27111 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
27113         stdalign: port better to HP compilers
27114         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
27115         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
27117         stdalign: work around Apple GCC 4.0 bug
27118         Reported by David Fang in:
27119         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
27120         * lib/stdalign.in.h (_Alignas):
27121         * m4/stdalign.m4 (gl_STDALIGN_H):
27122         Do not use aligned attribute with GCC 4.0 on Apple.
27124 2014-12-16  Pádraig Brady  <P@draigBrady.com>
27126         getcwd: fix test failure on OS X 10.9
27127         * m4/getcwd-path-max.m4: Avoid the replacement if it
27128         won't be effective due to the PATH_MAX limitation of lstat().
27129         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
27130         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
27131         for this case for use in tests, and also exclude this
27132         case when setting REPLACE_GETCWD.
27133         * tests/test-getcwd.c (test_long_name): Restrict the
27134         tested path length so that lstat() will not be passed
27135         a path greater than PATH_MAX.
27136         Also key a test condition on HAVE_OPENAT_SUPPORT rather
27137         than AT_FDCWD, since the latter is set unconditionally
27138         since Sep 2009 in commit 52c658e9.
27140 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
27142         parse-datetime: avoid a compiler warning with byacc (trivial)
27143         * lib/parse-datetime.y (yylex): Use the same prototype in the
27144         function definition as the declaration, to avoid a -Wstrict-prototypes
27145         warning seen when using byacc.
27147 2014-12-12  Daiki Ueno  <ueno@gnu.org>
27149         unicase/locale-language-tests: fix LOCALE_FR test
27150         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
27151         a French locale with traditional encoding.
27152         Reported by umerqayam in:
27153         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
27155 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
27157         stddef: support C11's max_align_t
27158         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
27159         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
27160         Do not undef, as that might cause max_align_t to be defined twice.
27161         Instead, change use to check for _GL_STDDEF_WINT_T too.
27162         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
27163         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
27164         Check for max_align_t.
27165         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
27166         * modules/stddef-tests (Depends-on): Add stdalign.
27167         * tests/test-stddef.c: Test max_align_t.
27169 2014-12-11  Daiki Ueno  <ueno@gnu.org>
27171         unistd: fix iOS check conditional
27172         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
27173         as 0 or 1 in <TargetConditionals.h>, and the previous check always
27174         yielded true on non-iOS environment.
27175         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
27176         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
27177         they are defined.
27179 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
27181         posixtm: avoid compiler warning in a better way
27182         * lib/posixtm.c (IF_LINT): Remove.
27183         (year, posix_time_parse):
27184         Return true (not 0) if successful.  All callers changed.
27185         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
27187 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27189         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
27190         started with '/' on EMX.
27192 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27194         freopen: workaround freopen() on OS/2 kLIBC
27195         * lib/freopen.c (rpl_freopen): Workaround.
27196         * m4/freopen.m4: Add os2* case.
27198         get_shared_library_fullname: port to EMX
27199         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
27200         on EMX, respectively.
27201         (_DLL_InitTerm): New on EMX.
27202         (get_shared_library_fullname): Implement on EMX.
27204         find_executable: port to EMX
27205         * lib/progreloc.c (find_executable): Implement on EMX.
27207         sched: check struct sched_param in spawn.h as well
27208         * lib/sched.in.h: Include spawn.h on kLIBC.
27209         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
27211 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
27213         bootstrap: Allow perl modules in $buildreq
27214         * build-aux/bootstrap: Add case for perl modules.
27216 2014-12-08  Pádraig Brady  <P@draigBrady.com>
27218         apply _GL_ATTRIBUTE_PURE to some inline functions
27219         clang 3.4.2 flagged these inline functions as pure
27220         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
27221         * lib/sig-handler.h (get_handler): Likewise.
27222         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
27223         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
27225 2014-12-06  Pádraig Brady  <P@draigBrady.com>
27227         vasnprintf: fix potential use after free
27228         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
27229         flagged by clang-analyzer 3.4.2.
27231 2014-12-05  Pádraig Brady  <P@draigBrady.com>
27233         filevercmp, posixtm: avoid compiler warnings with -O3
27234         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
27235         * lib/posixtm.c: (IF_LINT): Define.
27236         (posix_time_parse): Use it to void a "may be used uninitialized"
27237         warning, seen only with -O3.
27239 2014-12-05  Bruno Haible  <bruno@clisp.org>
27241         Fix LDBL80_WORDS macro on big endian platforms.
27242         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
27243         LDBL80_WORDS macro.
27244         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
27245         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27246         * tests/test-isfinite.c (test_isfinitel): Likewise.
27247         * tests/test-isinf.c (test_isinfl): Likewise.
27248         * tests/test-isnan.c (test_long_double): Likewise.
27249         * tests/test-isnanl.h (main): Likewise.
27250         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
27251         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
27252         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
27253         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
27254         Reported by Pádraig Brady.
27256 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
27258         git-version-gen: do not print new line characters
27259         * build-aux/git-version-gen: Use printf instead of echo and tr.
27261         gnulib-tool: recognize x:* as an absolute path
27262         * gnulib-tool (func_gnulib_dir): Add ?:* case.
27263         (func_relconcat): Likewise.
27265 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
27267         argp: avoid extraneous translation and mem leak with empty pre doc
27268         * lib/argp-help.c (argp_doc): Never translate the empty string,
27269         when "\v" is the first or last character of the string, as that
27270         has a reserved meaning to return the header info from a po file.
27271         This also fixes a small memory leak in the !post case.
27272         The issue can be seen with this command for example:
27273         LC_MESSAGES=en_US grub2-mknetdir --help
27275 2014-11-27  Daiki Ueno  <ueno@gnu.org>
27277         uniname/uniname-tests: skip if system's libunistring is used
27278         * modules/uniname/uniname-tests (Makefile.am): Skip test if
27279         uniname/uniname module is not compiled.
27281 2014-11-27  Pádraig Brady  <P@draigBrady.com>
27283         printf: fix configure check on big endian systems
27284         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
27286 2014-11-22  Daiki Ueno  <ueno@gnu.org>
27288         pipe-filter-gi, pipe-filter-ii: port to AIX
27289         On AIX 7.1, 'select' is defined as static and cannot be referred
27290         to from inline function.
27291         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
27292         the definition...
27293         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
27294         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
27296 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27298         gitlog-to-changelog: add --until
27299         * build-aux/gitlog-to-changelog: Support new --until option.
27300         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
27302 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
27304         extern-inline: update commentary about GCC bugs
27305         * m4/extern-inline.m4: Add another GCC bug number to comments.
27307 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27309         gen-uni-tables: untabify
27310         * lib/gen-uni-tables.c: Untabify.
27312 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27314         gen-uni-tables: check out-of-range values added to 3-level tables
27315         * lib/gen-uni-tables.c (output_category, output_bidi_category)
27316         (output_joining_type, output_ident_category): Check out-of-range
27317         values added to 3-level tables.
27319 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27321         gen-uni-tables: utilize 'assert'
27322         * lib/gen-uni-tables.c: Include <assert.h>.
27323         (output_category, output_combclass, output_decimal_digit_test)
27324         (output_decimal_digit, output_digit_test, output_digit)
27325         (output_numeric, get_mirror_value, fill_properties)
27326         (fill_property30, is_property_alphabetic)
27327         (is_property_default_ignorable_code_point)
27328         (is_property_uppercase, is_property_lowercase)
27329         (is_property_cased, is_property_case_ignorable)
27330         (is_property_changes_when_lowercased, is_property_iso_control)
27331         (is_property_math, fill_arabicshaping, output_joining_group)
27332         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
27333         (output_wbp, fill_org_gbp, get_decomposition)
27334         (output_decomposition, fill_composition_exclusions)
27335         (debug_output_composition_tables, output_composition_tables)
27336         (redistribute_casefolding_rules, output_casing_rules): Use
27337         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
27338         reporting.
27340 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27342         gen-uni-tables: cosmetic improvements
27343         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
27344         variables specification.
27345         (is_outdigit): Remove unused function.
27347 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
27349         fcntl-h-tests: port to PA-RISC GNU/Linux
27350         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
27352 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27354         fts: port to C89
27355         Problem reported for MSVC 16 by Gisle Vanem in:
27356         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
27357         * lib/fts.c (fts_build): Avoid declaration before statement.
27359 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27361         unistd: port to iOS
27362         Problem reported by André Klitzing in:
27363         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
27364         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
27366 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
27368         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
27369         Problem reported by Alan Modra in:
27370         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
27371         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
27372         Always cast the function arg, reverting this part of the previous
27373         change.
27375 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27377         obstack: avoid potentially-nonportable function casts
27378         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
27379         Remove, replacing with ...
27380         (call_chunkfun, call_freefun): New static functions.
27381         All uses changed.  Avoid potentially-nonportable casts.
27382         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
27383         (_obstack_begin_worker): Omit last two args, since they
27384         rely on potentially-nonportable casts.  All callers changed.
27385         * lib/obstack.h (_OBSTACK_CAST): New macro.
27386         Use it everywhere the old API used a potentially-nonportable cast.
27387         The new API doesn't cast.
27388         (struct obstack): Use unions rather than requiring
27389         potentially-nonportable casts.
27390         (obstack_chunkfun, obstack_freefun): Return void.
27392 2014-11-03  Alan Modra  <amodra@gmail.com>
27394         obstack: fix macro return values
27395         * lib/obstack.h (obstack_next_free): Return void *.
27396         (obstack_1grow_fast, obstack_blank_fast): Return void.
27397         For __GNUC__ macros:
27398         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
27399         For !__GNUC__ macros:
27400         (obstack_make_room, obstack_grow, obstack_grow0)
27401         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
27403 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27405         obstack: do not assume system-supplied obstack is size_t safe
27406         * m4/obstack.m4: New file.
27407         * modules/obstack (Files): Add it.
27409         obstack: port to platforms that #define __alignof__
27410         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
27411         not if !_LIBC.  We don't know of any platforms that #define
27412         __alignof__, but it might be useful in tests.  Conversely,
27413         glibc assumes GCC.
27415 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27417         linkat: don't unconditionally replace on GNU/Linux
27418         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
27419         was redundant for a few reasons.  It was present to support compiling
27420         on new systems but running on the old narrow window of Linux 2.6.1[67].
27421         It setup and cleaned up test files which weren't actually used.
27422         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
27423         implicit in the following check.
27425 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27427         linkat: wrap to handle symlinks on OS X 10.10
27428         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
27429         but not usable because it doesn't support creating hardlinks
27430         to symlinks.  Therefore add a generic test for this capability
27431         and fallback to our emulation if linkat() fails with ENOTSUP.
27433 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27435         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
27436         * doc/posix-functions/open.texi (open):
27437         * doc/posix-functions/openat.texi (openat):
27438         Document that these functions do not set errno to ELOOP when
27439         a symlink is opened with O_NOFOLLOW.
27441 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27443         obstack: add NEWS entry for recent incompatible changes
27444         * NEWS: Describe recent changes.
27446 2014-10-30  Pádraig Brady  <P@draigBrady.com>
27448         mountlist: don't use libmount to decide on dummy/remote
27449         * lib/mountlist.c (read_file_system_list): Don't use the libmount
27450         routines to determine whether a file system is dummy or remote,
27451         as they're not currently compatible.  For example the remoteness
27452         is determined on file system type (for which the list seems incomplete),
27453         rather than simply checking for a ':' in the device name.
27454         Also libmount currently determines that 'tmpfs' is a dummy file system
27455         even though it has associated storage.
27457 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27459         obstack: prefer __alignof__ to alignof
27460         This is for portability to pre-4.7 GCC when compiling glibc.
27461         See Joseph S. Myers in:
27462         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
27463         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
27464         New macro, defined by including and using <alignof.h>.
27465         (MAX): New macro.
27466         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
27467         Do not use enums as they are not portable to some broken compilers.
27468         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
27470         obstack: prefer alignof to calculating alignments by hand
27471         * lib/obstack.c: Include <stdalign.h>.
27472         (struct fooalign): Remove.
27473         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
27474         * modules/obstack (Depends-on): Add stdalign.
27476 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
27478         obstack: use size_t alignments and check for overflow
27479         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
27480         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
27481         * lib/obstack.h (struct obstack.alignment_mask):
27482         Use _OBSTACK_SIZE_T, not int, for alignments.
27483         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
27484         overflows, e.g., when adding the alignment.
27486 2014-10-29  Alan Modra  <amodra@gmail.com>
27488         obstack: 64-bit obstack support, part 3
27489         This finally enables full 64-bit obstack support.  The glibc
27490         shared library specific code is removed from obstack.c too, and
27491         the error handling code conditionally compiled under control of
27492         another macro, _OBSTACK_NO_ERROR_HANDLER.
27493         * lib/obstack.h: Include string.h earlier.
27494         (_OBSTACK_INTERFACE_VERSION): Define.
27495         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
27496         * lib/obstack.c: Don't include shlib-compat.h.
27497         (OBSTACK_INTERFACE_VERSION): Delete.
27498         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
27499         glibc code is compatible with version 2.  Don't include stdio.h for
27500         __GNU_LIBRARY.
27501         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
27502         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
27503         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
27504         glibc shared library specific source.
27506         obstack: 64-bit obstack support, part 2
27507         This gets us 4G obstack support, without changing ABI
27508         compatibility, apart from possibly introducing some
27509         signed/unsigned comparison warnings in code that uses obstack.h.
27510         a) Replace "int" size parameters, return values, and macro local vars
27511            with _OBSTACK_SIZE_T, an "unsigned int" for now.
27512         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
27513         c) Make all obstack macros checking available room use obstack_room.
27514            "next_free + desired > chunk_limit" may wrap the lhs for chunks
27515            allocated near the top of memory.
27516         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
27517         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
27518         in place of "int" size parameters, return values and local vars.
27519         (_CHUNK_SIZE_T): Define.
27520         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
27521         union use an _OBSTACK_SIZE_T integer type.
27522         For __GNUC__ versions of the following macros...
27523         (obstack_room): Rename local var.
27524         (obstack_make_room): Use obstack_room.
27525         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
27526         obstack_int_grow, obstack_blank): Likewise.
27527         (obstack_finish): Use unsigned comparison when comparing aligned
27528         next_free against chunk_limit.
27529         (obstack_free): Cast OBJ to remove possible const qualifier.
27530         For !__GNUC__ versions of the following macros...
27531         (obstack_make_room): Use obstack_room.
27532         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
27533         obstack_int_grow, obstack_blank): Likewise.
27534         (obstack_finish): Use unsigned comparision when comparing aligned
27535         next_free against chunk_limit.
27536         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
27537         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
27538         _OBSTACK_SIZE_T.
27539         (_obstack_begin, _obstack_begin_1): Likewise.
27540         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
27541         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
27543         obstack: 64-bit obstack support, part 1
27544         a) Correct calls to alloc function, to use a size_t arg.  "long" is
27545            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
27546            and "size_t" 64 bits.
27547         b) Consolidate _obstack_begin and _obstack_begin1 code.
27548         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
27549         use "size_t" rather than "long".
27550         (_obstack_begin, _obstack_begin1): Likewise.
27551         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
27552         obstack_chunkfun): Update alloc function casts.
27553         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
27554         (chunkfun_type, freefun_type): New typdefs.
27555         (_obstack_begin_worker): Split out from ..
27556         (_obstack_begin, _obstack_begin_1): ..here.
27558         obstack: tidy part 2
27559         a) Don't be concerned about "not polluting the namespace with stddef.h
27560            symbols" in obstack.h, since gnulib string.h includes stddef.h
27561            anyway, and it seems unlikely that anyone would care.
27562         b) Don't roll our own slow memcpy in _obstack_newchunk.
27563         c) Rename obstack_free to _obstack_free.  This makes the naming
27564            consistent with other obstack functions and obviates the need for
27565            __obstack_free.  Ancient obstack.c defined both obstack_free and
27566            _obstack_free.  We continue to do that for _LIBC via an alias.
27567         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
27568            is clever, but nowadays gcc warns on undefined macros.  You'll get
27569            an undefined macro warning if simulating an old gcc with -U__GNUC__
27570            -U__GNUC_MINOR__ -D__GNUC__=1.
27571         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
27572         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
27573         (__obstack_free): Delete, update refs.
27574         (_obstack_free): Rename from obstack_free.
27575         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
27576         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
27577         * lib/obstack.c: Don't include stddef.h.
27578         (COPYING_UNIT): Delete.
27579         (_obstack_begin): Formatting fix.
27580         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
27581         (_obstack_free): Rename from __obstack_free, update alias.  Move
27582         undef of obstack_free to where it is needed.
27584         obstack: tidy part 1
27585         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
27586            to me, and result in overlong lines after later patches.
27587         b) Move error handling code, to avoid a forward declaration and to
27588            simplify later patches in this series.
27589         * lib/obstack.h (struct obstack <temp>): Rename fields of union
27590         and update all uses.
27591         * lib/obstack.c: Include stdlib.h earlier.
27592         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
27593         in file.
27594         (print_and_abort): Remove now redundant forward declaration.
27596 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27598         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
27599         Without this change, in bleeding-edge fileutils Autoconf complains
27600         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
27601         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
27602         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
27603         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
27605 2014-10-24  Daiki Ueno  <ueno@gnu.org>
27607         iconv: avoid false detection of non-working iconv
27608         The INBUF arguments of iconv can be either 'const char **'
27609         or 'char **'.  If CC is g++, the difference causes a compile error
27610         and thus leads to a false detection of non-working iconv.
27611         Reported by Eli Zaretskii and Werner LEMBERG in:
27612         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
27613         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
27614         iconv.  Bump serial number.
27616 2014-10-23  Pádraig Brady  <P@draigBrady.com>
27618         bootstrap: print more diagnostics for missing programs
27619         * build-aux/bootstrap: only suppress stderr when checking for
27620         alternative program names.  This supports programs issuing non
27621         standard error messages.
27623 2014-10-23  Pádraig Brady  <P@draigBrady.com>
27625         bootstrap: only update the gnulib submodule
27626         * build-aux/bootstrap: Restrict the "submodule update" command
27627         to the gnulib path.
27629 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
27631         symlinkat: port to AIX 7.1
27632         * doc/posix-functions/symlinkat.texi (symlinkat):
27633         Mention AIX porting problem.
27634         * lib/symlinkat.c: Always include errno.h.
27635         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
27636         * lib/unistd.in.h (symlinkat): Add replacement machinery.
27637         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
27638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
27639         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
27640         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
27641         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
27643         readlinkat: port to AIX 7.1
27644         * doc/posix-functions/readlink.texi (readlink):
27645         * doc/posix-functions/readlinkat.texi (readlinkat):
27646         Mention AIX porting problem.
27647         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
27648         New function.
27649         * lib/unistd.in.h (readlinkat): Add replacement machinery.
27650         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
27651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
27652         * modules/readlinkat (configure.ac): Also compile replacement
27653         if REPLACE_READLINKAT.
27654         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
27656 2014-10-12  Karl Berry  <karl@gnu.org>
27658         * doc/posix-functions/dirname.texi: remove spurious {.
27660 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
27662         basename, dirname: Improve documentation.
27663         * doc/posix-functions/basename.texi: Mention dirname module and
27664         base_name() function.
27665         * doc/posix-functions/dirname.texi: Mention dir_name() and
27666         mdir_name() functions.
27667         Suggested by Werner LEMBERG <wl@gnu.org>.
27669 2014-09-24  Jim Meyering  <meyering@fb.com>
27671         exclude: declare exclude_patopts static
27672         * lib/exclude.c (exclude_patopts): Declare static,
27673         to avoid triggering a -Wmissing-prototypes warning.
27674         The alternative (declaring it in the .h file) would
27675         require publicizing the private "struct patopts".
27677 2014-09-21  Werner Lemberg  <wl@gnu.org>
27679         dirname: support compilation with C++
27680         * lib/dirname.h: Add necessary C linkage declarations.
27682 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27684         qsort_r: include <config.h>
27685         Problem reported by Tom G. Christensen in:
27686         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
27687         * lib/qsort.c [!_LIBC]: Include <config.h> first.
27689 2014-09-16  Dylan Cali  <calid1984@gmail.com>
27691         avltree-list: avoid compiler warnings (trivial)
27692         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
27693         -Werror=suggest-attribute=pure.
27694         * lib/gl_array_list.c: Likewise.
27695         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
27696         declaration to avoid -Werror=missing-prototypes.  This is not added
27697         to a header as only exported for tests.  Add (void) to the
27698         check_invariants() call to indicate we're discarding the result
27699         in this context which avoids -Werror=unused-value.  Note we don't
27700         use ignore_value here to avoid a dependency as we know we'll not
27701         be adding __attribute__((warn_unused_result)) to check_invariants().
27702         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
27704 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27706         qsort_r: new module, for GNU-style qsort_r
27707         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
27709 2014-09-15  Werner LEMBERG  <wl@gnu.org>
27711         strerror_r-posix: support compilation with C++
27712         * lib/strerror_r.c: Add necessary C linkage declarations.
27714 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
27716         fcntl-h: fix compilation with Intel C++ compiler (trivial)
27717         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
27719 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
27721         mountlist: use /proc/self/mountinfo when available
27722         Use libmount to propagate device IDs provided by Linux in
27723         /proc/self/mountinfo.  This will give more accurate output when
27724         using df in chroot'ed environments as the device IDs are not
27725         determined by stat() which may be inaccurate within the chroot.
27726         * lib/mountlist.c (read_file_system_list): Use the libmount routines
27727         from util-linux to parse "/proc/self/mountinfo" or fall back to
27728         standard getmntent() processing.
27729         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
27730         getmntent() is used, as is the case on GNU/Linux.
27732 2014-09-07  Eric Wong  <normalperson@yhbt.net>
27734         users.txt: add cmogstored
27735         cmogstored has used gnulib since the beginning in 2012 to support
27736         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
27738 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
27740         Trivial change.
27741         * gnulib-tool: Use same options as build-aux/bootstrap to download
27742         PO files.
27744 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
27746         Trivial change.
27747         * gnulib-tool: Fallback to wget when rsync of PO files fails.
27749 2014-09-04  Eric Blake  <eblake@redhat.com>
27751         maintainer-makefile: add syntax check for useless ';;'
27752         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
27754 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
27756         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
27757         Problem reported by Assaf Gordon in:
27758         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
27759         Apparently Ubuntu is doing some fancy link-time optimization
27760         that doesn't work with -lpthread but does work with -pthread.
27761         Work around the bug by preferring -pthread to -lpthread.
27762         * m4/pthread.m4 (gl_PTHREAD_CHECK):
27763         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
27764         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
27765         Treat -pthread like -lpthread.
27767 2014-09-04  Eric Blake  <eblake@redhat.com>
27769         error: drop spurious semicolon
27770         * lib/error.c (__error_at_line): Fix ';;'.
27772 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27774         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
27775         * m4/gnulib-common.m4 (AC_C_RESTRICT):
27776         Override AC_C_RESTRICT unconditionally.
27777         Update from autoconf, incorporating:
27778         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
27779         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
27781 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27783         manywarnings: add GCC 4.9 warnings
27784         Also, make it easier to maintain this in the future.
27785         * build-aux/gcc-warning.spec: Add -Wabi-tag,
27786         -Wconditionally-supported, -Wdelete-incomplete,
27787         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
27788         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
27789         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
27790         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
27791         only for older GCC versions that need them.  Handle
27792         -Wnormalized=nfc specially, so that the 'comm' command used
27793         for maintenance doesn't get confused.
27795 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
27797         vasnprintf: fix bugs in width computation
27798         * lib/vasnprintf.c (VASNPRINTF):
27799         Rework previous change, which introduced a bug,
27800         to avoid the warning in a different way.
27801         Avoid undefined behavior if the width arg is less than -INT_MAX.
27802         Avoid unnecessary use of HAS_WIDTH local.
27804 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
27806         vasnprintf: Avoid signed/unsigned comparison warning.
27807         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
27808         compare end addr of generated string w/ maximum end addr.
27810 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
27812         parse-datetime: Avoid pointer difference.
27813         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
27814         instead of calculating difference of pointers.  This removes an
27815         annoying warning, devoid of any use.
27817 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27819         qsort_r: new module, for GNU-style qsort_r
27820         This works even on FreeBSD, which has an incompatible qsort_r API.
27821         * MODULES.html.sh: Add it.
27822         * doc/glibc-functions/qsort_r.texi: It's now supported.
27823         * lib/qsort.c: New file, taken from glibc with minor changes
27824         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
27825         removed.
27826         * lib/qsort_r.c: New file, compiled only on FreeBSD.
27827         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
27828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
27829         * modules/qsort_r, modules/qsort_r-tests: New files.
27830         * modules/stdlib (Makefile): Set up its defaults.
27831         * tests/test-qsort_r.c: New file.
27833 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
27835         vla: new module
27836         GNU RCS can use this, mostly for documentation I expect.  See:
27837         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
27838         * MODULES.html.sh: Add vla.
27839         * lib/vla.h, modules/vla: New files.
27841 2014-08-07  Daiki Ueno  <ueno@gnu.org>
27843         localename: make gl_locale_name_thread really thread-safe on Windows
27844         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
27845         "glthread/lock.h".
27846         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
27847         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
27849 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
27851         getpass: don't assume struct termios
27852         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
27853         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
27854         * lib/getpass.c (getpass): Port to systems lacking struct termios.
27856         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
27857         Problem reported by Jonas 'Sortie' Termansen in:
27858         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
27859         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
27860         Implement via sysconf for platforms that lack getdtablesize.
27862         vararrays: modernize AC_C_VARARRAYS for C11
27863         This backports a change I recently made to Autoconf.
27864         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
27865         VLAs are not supported, as this is what C11 does.  The old macro
27866         HAVE_C_VARARRAYS is still defined if they are supported, but is
27867         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
27869 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
27871         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
27872         * build-aux/install-reloc (func_create_wrapper): Also wrap
27873         strerror-override, stat, stat.
27875 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
27877         sys_select: fix FD_ZERO problem on Solaris 10
27878         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
27879         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
27880         to expand to an expression that invoked memset without necessarily
27881         including <string.h>.  The problem was that the first include
27882         defined _SYS_TIME_H, causing the second include to short-circuit.
27883         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
27884         Also, fix what appears to be a cut-and-paste typo, by replacing
27885         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
27886         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
27888         accept: document Solaris 10 type glitch
27889         * doc/posix-functions/accept.texi (accept): Mention that
27890         Solaris 10 'accept' takes void * last arg, not socklen_t *.
27892 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
27894         extern-inline: port to FreeBSD, DragonFly
27895         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
27896         is present if either __DragonFly__ or __FreeBSD__ is defined.
27897         FreeBSD problem reported by Andrey Borzenkov in:
27898         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
27899         Also, worry about __APPLE__ only if __MACH__ is also defined,
27900         as this is more consistent with the rest of gnulib.
27901         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
27902         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
27904 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27906         regex: Make #if/#ifdef usage consistent for DEBUG
27907         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
27908         of the inconsistent usage of #if and #ifdef as that works with
27909         both Glibc and Gnulib's style.
27911 2014-07-31  Eric Blake  <eblake@redhat.com>
27913         openat-die: use _Noreturn markup
27914         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
27915         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
27916         _Noreturn.
27918 2014-07-30  Eric Blake  <eblake@redhat.com>
27920         test-open: port to cygwin, which lacks Fortify
27921         * tests/test-open.h (ALWAYS_INLINE): New macro.
27922         (__always_inline): Don't abuse internal symbol on non-glibc.
27924 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
27926         localename: Enforce declarations before statements.
27927         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
27928         first statement.
27930 2014-07-18  Jim Meyering  <meyering@fb.com>
27932         test-userspec: don't look up numeric user names
27933         * tests/test-userspec.c: I found a system for which getpwnam("0")
27934         returned a pointer to a non-root user's entry, and that made the
27935         test fail.
27936         (T): Prefix each numeric input with "+", to inhibit lookup.
27938 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
27940         localcharset, localename: MS-Windows support for non-default locales
27941         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
27942         falling back on the default system codepage, try extracting
27943         the codepage from what 'setlocale' returns.  This allows to
27944         take into account changes of the codeset due to non-default
27945         locale set by a previous call to 'setlocale'.
27946         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
27947         Define if not already defined.
27948         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
27949         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
27950         current locale by calling 'setlocale', then converting the
27951         locale name into LCID by calling 'get_lcid'.  This allows to
27952         take into account changes in the current locale from the
27953         default one, in contrast to GetThreadLocale.
27955 2014-07-14  Daiki Ueno  <ueno@gnu.org>
27957         announce-gen: avoid failure when Digest::SHA is installed
27958         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
27959         Digest::SHA1->new in print_checksums fails.
27960         * build-aux/announce-gen (digest_classes): New associative array
27961         for available message digest implementations.
27962         (print_locations): Use it.
27964 2014-07-13  Pádraig Brady  <P@draigBrady.com>
27966         gettext: revert "update macros to version 0.19"
27967         This reverts commit 9b9370ca, as it currently requires that
27968         developers of any project that explicitly uses the gettext module
27969         or implicitly uses it through the utimens-tests or
27970         futimens-tests modules, use gettext >= 0.19.
27971         However there are some stability and availablity issues with
27972         that version at present.  We can reinstate this soon, when stability
27973         is addressed and packages are more readily available.
27975 2014-07-12  Jim Meyering  <meyering@fb.com>
27977         regex: don't deref NULL upon heap allocation failure
27978         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
27979         failure in one more place.
27980         To trigger the segfault, configure grep -with-included-regex,
27981         build it, and run these commands:
27982         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
27983         I discovered this while replying to a private report from
27984         Jens Schleusener about excessive memory consumption by grep
27985         when using a regular expression like the one above.
27987 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
27989         regex: fix memory leak in compiler
27990         Fix by Andreas Schwab in:
27991         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
27992         * lib/regcomp.c (parse_reg_exp): Deallocate partially
27993         constructed tree before returning error.
27995 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
27997         announce-gen: avoid perl warnings
27998         * build-aux/announce-gen: add two minor checks to avoid
27999         "use of uninitialized value" warnings when command-line parameters are
28000         missing.
28002 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28004         localename: avoid -Wsuggest-attribute={const,pure} warnings
28005         * lib/localename.c (string_has): Tag internal function as pure.
28006         * lib/localename.h (gl_locale_name_default): Tag extern declaration
28007         as const when appropriate.
28009 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
28011         nl_langinfo: Fix last change.
28012         * lib/nl_langinfo.c (includes): Drop redundant include.
28014 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28016         error: Fix -Wundef warnings in glibc
28017         * lib/error.c [_LIBC]: Define default macros for
28018         glibc.
28019         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
28020         Check _LIBC before STRERROR_R_CHAR_P.
28022         error: Sync from glibc master
28023         * lib/error.c [_LIBC]: Remove INTUSE usage.
28024         (error_tail): Remove unused macro ALLOCA_LIMIT.
28025         Fix potential buffer overflow.  Fix potential NULL dereference
28026         in strcmp.
28028 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
28030         nl_langinfo: fix build under mingw
28031         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
28033 2014-07-09  Andrew D Warshall  <warshall@99main.com>
28035         mountlist: do not classify a bind-mounted dir entry as "dummy"
28036         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
28037         1-argument getmntent() (instead of assuming absence).
28039 2014-07-08  Eric Blake  <eblake@redhat.com>
28041         maint.mk: less syntax-check noise when SIGPIPE is ignored
28042         * top/maint.mk (_sc_header_without_use)
28043         (sc_require_config_h_first): Parse full list.
28045 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
28046             Paul Eggert  <eggert@cs.ucla.edu>
28048         nl_langinfo: CODESET on MS-Windows and more items from localeconv
28049         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
28050         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
28051         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
28052         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
28053         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
28054         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
28055         Include <stdio.h> if Microsoft Windows.
28056         Include <time.h> if !REPLACE_NL_LANGINFO.
28057         (ctype_codeset): New function, taken from rpl_nl_langinfo,
28058         and with improvements for Microsoft Windows.
28059         (rpl_nl_langinfo): Use it.
28060         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
28061         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
28062         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
28063         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
28064         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
28065         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
28066         corresponding values returned by 'localeconv'.  Compute the values
28067         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
28068         'strftime' with a suitable struct tm value.
28070 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
28072         Bruno Haible has stepped down as maintainer.
28073         See Karl Berry in:
28074         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
28075         Daiki Ueno has volunteered to maintain libunistring; see:
28076         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
28077         * modules/gen-uni-tables, modules/libunistring:
28078         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
28079         * modules/unicase/base, modules/unicase/cased:
28080         * modules/unicase/empty-prefix-context:
28081         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
28082         * modules/unicase/locale-language, modules/unicase/special-casing:
28083         * modules/unicase/tocasefold, modules/unicase/tolower:
28084         * modules/unicase/totitle, modules/unicase/toupper:
28085         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
28086         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
28087         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
28088         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
28089         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
28090         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
28091         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
28092         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
28093         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
28094         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
28095         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
28096         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
28097         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
28098         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
28099         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
28100         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
28101         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
28102         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
28103         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
28104         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
28105         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
28106         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
28107         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
28108         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
28109         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
28110         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
28111         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
28112         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
28113         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
28114         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
28115         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
28116         * modules/unicase/ulc-casexfrm, modules/unicodeio:
28117         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
28118         * modules/uniconv/u16-conv-to-enc:
28119         * modules/uniconv/u16-strconv-from-enc:
28120         * modules/uniconv/u16-strconv-from-locale:
28121         * modules/uniconv/u16-strconv-to-enc:
28122         * modules/uniconv/u16-strconv-to-locale:
28123         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
28124         * modules/uniconv/u32-strconv-from-enc:
28125         * modules/uniconv/u32-strconv-from-locale:
28126         * modules/uniconv/u32-strconv-to-enc:
28127         * modules/uniconv/u32-strconv-to-locale:
28128         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
28129         * modules/uniconv/u8-strconv-from-enc:
28130         * modules/uniconv/u8-strconv-from-locale:
28131         * modules/uniconv/u8-strconv-to-enc:
28132         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
28133         * modules/unictype/bidicategory-all:
28134         * modules/unictype/bidicategory-byname:
28135         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
28136         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
28137         * modules/unictype/bidiclass-byname:
28138         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
28139         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
28140         * modules/unictype/block-all, modules/unictype/block-list:
28141         * modules/unictype/block-of, modules/unictype/block-test:
28142         * modules/unictype/category-C, modules/unictype/category-Cc:
28143         * modules/unictype/category-Cf, modules/unictype/category-Cn:
28144         * modules/unictype/category-Co, modules/unictype/category-Cs:
28145         * modules/unictype/category-L, modules/unictype/category-LC:
28146         * modules/unictype/category-Ll, modules/unictype/category-Lm:
28147         * modules/unictype/category-Lo, modules/unictype/category-Lt:
28148         * modules/unictype/category-Lu, modules/unictype/category-M:
28149         * modules/unictype/category-Mc, modules/unictype/category-Me:
28150         * modules/unictype/category-Mn, modules/unictype/category-N:
28151         * modules/unictype/category-Nd, modules/unictype/category-Nl:
28152         * modules/unictype/category-No, modules/unictype/category-P:
28153         * modules/unictype/category-Pc, modules/unictype/category-Pd:
28154         * modules/unictype/category-Pe, modules/unictype/category-Pf:
28155         * modules/unictype/category-Pi, modules/unictype/category-Po:
28156         * modules/unictype/category-Ps, modules/unictype/category-S:
28157         * modules/unictype/category-Sc, modules/unictype/category-Sk:
28158         * modules/unictype/category-Sm, modules/unictype/category-So:
28159         * modules/unictype/category-Z, modules/unictype/category-Zl:
28160         * modules/unictype/category-Zp, modules/unictype/category-Zs:
28161         * modules/unictype/category-all, modules/unictype/category-and:
28162         * modules/unictype/category-and-not, modules/unictype/category-byname:
28163         * modules/unictype/category-longname, modules/unictype/category-name:
28164         * modules/unictype/category-none, modules/unictype/category-of:
28165         * modules/unictype/category-or, modules/unictype/category-test:
28166         * modules/unictype/category-test-withtable:
28167         * modules/unictype/combining-class:
28168         * modules/unictype/combining-class-all:
28169         * modules/unictype/combining-class-byname:
28170         * modules/unictype/combining-class-longname:
28171         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
28172         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
28173         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
28174         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
28175         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
28176         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
28177         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
28178         * modules/unictype/digit, modules/unictype/joininggroup-all:
28179         * modules/unictype/joininggroup-byname:
28180         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
28181         * modules/unictype/joiningtype-all:
28182         * modules/unictype/joiningtype-byname:
28183         * modules/unictype/joiningtype-longname:
28184         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
28185         * modules/unictype/mirror, modules/unictype/numeric:
28186         * modules/unictype/property-all, modules/unictype/property-alphabetic:
28187         * modules/unictype/property-ascii-hex-digit:
28188         * modules/unictype/property-bidi-arabic-digit:
28189         * modules/unictype/property-bidi-arabic-right-to-left:
28190         * modules/unictype/property-bidi-block-separator:
28191         * modules/unictype/property-bidi-boundary-neutral:
28192         * modules/unictype/property-bidi-common-separator:
28193         * modules/unictype/property-bidi-control:
28194         * modules/unictype/property-bidi-embedding-or-override:
28195         * modules/unictype/property-bidi-eur-num-separator:
28196         * modules/unictype/property-bidi-eur-num-terminator:
28197         * modules/unictype/property-bidi-european-digit:
28198         * modules/unictype/property-bidi-hebrew-right-to-left:
28199         * modules/unictype/property-bidi-left-to-right:
28200         * modules/unictype/property-bidi-non-spacing-mark:
28201         * modules/unictype/property-bidi-other-neutral:
28202         * modules/unictype/property-bidi-pdf:
28203         * modules/unictype/property-bidi-segment-separator:
28204         * modules/unictype/property-bidi-whitespace:
28205         * modules/unictype/property-byname:
28206         * modules/unictype/property-case-ignorable:
28207         * modules/unictype/property-cased:
28208         * modules/unictype/property-changes-when-casefolded:
28209         * modules/unictype/property-changes-when-casemapped:
28210         * modules/unictype/property-changes-when-lowercased:
28211         * modules/unictype/property-changes-when-titlecased:
28212         * modules/unictype/property-changes-when-uppercased:
28213         * modules/unictype/property-combining:
28214         * modules/unictype/property-composite:
28215         * modules/unictype/property-currency-symbol:
28216         * modules/unictype/property-dash:
28217         * modules/unictype/property-decimal-digit:
28218         * modules/unictype/property-default-ignorable-code-point:
28219         * modules/unictype/property-deprecated:
28220         * modules/unictype/property-diacritic:
28221         * modules/unictype/property-extender:
28222         * modules/unictype/property-format-control:
28223         * modules/unictype/property-grapheme-base:
28224         * modules/unictype/property-grapheme-extend:
28225         * modules/unictype/property-grapheme-link:
28226         * modules/unictype/property-hex-digit:
28227         * modules/unictype/property-hyphen:
28228         * modules/unictype/property-id-continue:
28229         * modules/unictype/property-id-start:
28230         * modules/unictype/property-ideographic:
28231         * modules/unictype/property-ids-binary-operator:
28232         * modules/unictype/property-ids-trinary-operator:
28233         * modules/unictype/property-ignorable-control:
28234         * modules/unictype/property-iso-control:
28235         * modules/unictype/property-join-control:
28236         * modules/unictype/property-left-of-pair:
28237         * modules/unictype/property-line-separator:
28238         * modules/unictype/property-logical-order-exception:
28239         * modules/unictype/property-lowercase, modules/unictype/property-math:
28240         * modules/unictype/property-non-break:
28241         * modules/unictype/property-not-a-character:
28242         * modules/unictype/property-numeric:
28243         * modules/unictype/property-other-alphabetic:
28244         * modules/unictype/property-other-default-ignorable-code-point:
28245         * modules/unictype/property-other-grapheme-extend:
28246         * modules/unictype/property-other-id-continue:
28247         * modules/unictype/property-other-id-start:
28248         * modules/unictype/property-other-lowercase:
28249         * modules/unictype/property-other-math:
28250         * modules/unictype/property-other-uppercase:
28251         * modules/unictype/property-paired-punctuation:
28252         * modules/unictype/property-paragraph-separator:
28253         * modules/unictype/property-pattern-syntax:
28254         * modules/unictype/property-pattern-white-space:
28255         * modules/unictype/property-private-use:
28256         * modules/unictype/property-punctuation:
28257         * modules/unictype/property-quotation-mark:
28258         * modules/unictype/property-radical:
28259         * modules/unictype/property-sentence-terminal:
28260         * modules/unictype/property-soft-dotted:
28261         * modules/unictype/property-space:
28262         * modules/unictype/property-terminal-punctuation:
28263         * modules/unictype/property-test, modules/unictype/property-titlecase:
28264         * modules/unictype/property-unassigned-code-value:
28265         * modules/unictype/property-unified-ideograph:
28266         * modules/unictype/property-uppercase:
28267         * modules/unictype/property-variation-selector:
28268         * modules/unictype/property-white-space:
28269         * modules/unictype/property-xid-continue:
28270         * modules/unictype/property-xid-start:
28271         * modules/unictype/property-zero-width, modules/unictype/scripts:
28272         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
28273         * modules/unictype/syntax-c-whitespace:
28274         * modules/unictype/syntax-java-ident:
28275         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
28276         * modules/unigbrk/u16-grapheme-breaks:
28277         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
28278         * modules/unigbrk/u32-grapheme-breaks:
28279         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
28280         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
28281         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
28282         * modules/unigbrk/uc-is-grapheme-break:
28283         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
28284         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
28285         * modules/unilbrk/u16-width-linebreaks:
28286         * modules/unilbrk/u32-possible-linebreaks:
28287         * modules/unilbrk/u32-width-linebreaks:
28288         * modules/unilbrk/u8-possible-linebreaks:
28289         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
28290         * modules/unilbrk/ulc-possible-linebreaks:
28291         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
28292         * modules/uniname/uniname, modules/uninorm/base:
28293         * modules/uninorm/canonical-decomposition:
28294         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
28295         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
28296         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
28297         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
28298         * modules/uninorm/nfkc, modules/uninorm/nfkd:
28299         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
28300         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
28301         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
28302         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
28303         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
28304         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
28305         * modules/unistdio/base, modules/unistdio/u-printf-args:
28306         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
28307         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
28308         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
28309         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
28310         * modules/unistdio/u16-u16-sprintf:
28311         * modules/unistdio/u16-u16-vasnprintf:
28312         * modules/unistdio/u16-u16-vasprintf:
28313         * modules/unistdio/u16-u16-vsnprintf:
28314         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
28315         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
28316         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
28317         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
28318         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
28319         * modules/unistdio/u32-u32-asnprintf:
28320         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
28321         * modules/unistdio/u32-u32-sprintf:
28322         * modules/unistdio/u32-u32-vasnprintf:
28323         * modules/unistdio/u32-u32-vasprintf:
28324         * modules/unistdio/u32-u32-vsnprintf:
28325         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
28326         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
28327         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
28328         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
28329         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
28330         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
28331         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
28332         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
28333         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
28334         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
28335         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
28336         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
28337         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
28338         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
28339         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
28340         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
28341         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
28342         * modules/unistr/u16-check, modules/unistr/u16-chr:
28343         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
28344         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
28345         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
28346         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
28347         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
28348         * modules/unistr/u16-move, modules/unistr/u16-next:
28349         * modules/unistr/u16-prev, modules/unistr/u16-set:
28350         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
28351         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
28352         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
28353         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
28354         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
28355         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
28356         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
28357         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
28358         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
28359         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
28360         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
28361         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
28362         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
28363         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
28364         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
28365         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
28366         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
28367         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
28368         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
28369         * modules/unistr/u32-next, modules/unistr/u32-prev:
28370         * modules/unistr/u32-set, modules/unistr/u32-startswith:
28371         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
28372         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
28373         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
28374         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
28375         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
28376         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
28377         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
28378         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
28379         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
28380         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
28381         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
28382         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
28383         * modules/unistr/u8-check, modules/unistr/u8-chr:
28384         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
28385         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
28386         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
28387         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
28388         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
28389         * modules/unistr/u8-next, modules/unistr/u8-prev:
28390         * modules/unistr/u8-set, modules/unistr/u8-startswith:
28391         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
28392         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
28393         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
28394         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
28395         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
28396         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
28397         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
28398         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
28399         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
28400         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
28401         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
28402         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
28403         * modules/uniwbrk/base, modules/uniwbrk/table:
28404         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
28405         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
28406         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
28407         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
28408         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
28409         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
28410         * modules/uniwidth/width, modules/utf16-ucs4:
28411         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
28412         * modules/utf8-ucs4-unsafe:
28413         Change maintainer from Bruno Haible to Daiki Ueno.
28414         This is my guess at the libunistring modules; please feel free
28415         to fix if I guessed incorrectly.
28416         * modules/accept4, modules/acl, modules/acos, modules/acosf:
28417         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
28418         * modules/areadlink, modules/array-list, modules/array-mergesort:
28419         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
28420         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
28421         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
28422         * modules/binary-io, modules/bison-i18n, modules/btowc:
28423         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
28424         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
28425         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
28426         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
28427         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
28428         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
28429         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
28430         * modules/closedir, modules/concat-filename, modules/copy-file:
28431         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
28432         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
28433         * modules/csharpcomp-script, modules/csharpexec:
28434         * modules/csharpexec-script, modules/ctype, modules/diffseq:
28435         * modules/dprintf, modules/dprintf-posix, modules/dup:
28436         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
28437         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
28438         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
28439         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
28440         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
28441         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
28442         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
28443         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
28444         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
28445         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
28446         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
28447         * modules/findprog, modules/findprog-lgpl, modules/floor:
28448         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
28449         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
28450         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
28451         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
28452         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
28453         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
28454         * modules/freadable, modules/freadahead, modules/freadptr:
28455         * modules/freadseek, modules/freopen, modules/frexp:
28456         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
28457         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
28458         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
28459         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
28460         * modules/ftello, modules/full-read, modules/full-write:
28461         * modules/fwritable, modules/fwriteerror, modules/gcd:
28462         * modules/get-rusage-as, modules/get-rusage-data:
28463         * modules/getdtablesize, modules/getrusage, modules/gettext:
28464         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
28465         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
28466         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
28467         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
28468         * modules/iconv, modules/iconv-h, modules/iconv_open:
28469         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
28470         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
28471         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
28472         * modules/integer_length_ll, modules/ioctl, modules/isatty:
28473         * modules/isblank, modules/isnand, modules/isnand-nolibm:
28474         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
28475         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
28476         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
28477         * modules/javaexec, modules/javaexec-script, modules/javaversion:
28478         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
28479         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
28480         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
28481         * modules/lib-symbol-visibility, modules/libsigsegv:
28482         * modules/linked-list, modules/linkedhash-list, modules/list:
28483         * modules/localcharset, modules/locale, modules/localeconv:
28484         * modules/localename, modules/lock, modules/log, modules/log-ieee:
28485         * modules/log10, modules/log10-ieee, modules/log10f:
28486         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
28487         * modules/log1p, modules/log1p-ieee, modules/log1pf:
28488         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
28489         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
28490         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
28491         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
28492         * modules/logf, modules/logf-ieee, modules/login_tty:
28493         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
28494         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
28495         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
28496         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
28497         * modules/mbscspn, modules/mbsinit, modules/mbslen:
28498         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
28499         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
28500         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
28501         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
28502         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
28503         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
28504         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
28505         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
28506         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
28507         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
28508         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
28509         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
28510         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
28511         * modules/posix_spawn, modules/posix_spawn-internal:
28512         * modules/posix_spawn_file_actions_addclose:
28513         * modules/posix_spawn_file_actions_adddup2:
28514         * modules/posix_spawn_file_actions_addopen:
28515         * modules/posix_spawn_file_actions_destroy:
28516         * modules/posix_spawn_file_actions_init:
28517         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
28518         * modules/posix_spawnattr_getpgroup:
28519         * modules/posix_spawnattr_getschedparam:
28520         * modules/posix_spawnattr_getschedpolicy:
28521         * modules/posix_spawnattr_getsigdefault:
28522         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
28523         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
28524         * modules/posix_spawnattr_setschedparam:
28525         * modules/posix_spawnattr_setschedpolicy:
28526         * modules/posix_spawnattr_setsigdefault:
28527         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
28528         * modules/pow, modules/powf, modules/printf-frexp:
28529         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
28530         * modules/progname, modules/propername, modules/pselect:
28531         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
28532         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
28533         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
28534         * modules/read, modules/readdir, modules/readlink:
28535         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
28536         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
28537         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
28538         * modules/relocatable-script, modules/remainder:
28539         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
28540         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
28541         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
28542         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
28543         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
28544         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
28545         * modules/setlocale, modules/sh-quote, modules/shutdown:
28546         * modules/signal, modules/signbit, modules/sigpipe:
28547         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
28548         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
28549         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
28550         * modules/snippet/link-warning, modules/snippet/unused-parameter:
28551         * modules/snprintf, modules/snprintf-posix, modules/spawn:
28552         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
28553         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
28554         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
28555         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
28556         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
28557         * modules/streq, modules/strerror_r-posix, modules/striconv:
28558         * modules/striconveh, modules/striconveha, modules/strncat:
28559         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
28560         * modules/sublist, modules/sys_resource, modules/sys_utsname:
28561         * modules/sys_wait, modules/system-posix, modules/system-quote:
28562         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
28563         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
28564         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
28565         * modules/truncf, modules/truncf-ieee, modules/truncl:
28566         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
28567         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
28568         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
28569         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
28570         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
28571         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
28572         * modules/wait-process, modules/waitpid, modules/wcpcpy:
28573         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
28574         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
28575         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
28576         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
28577         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
28578         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
28579         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
28580         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
28581         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
28582         * modules/write, modules/xconcat-filename, modules/xlist:
28583         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
28584         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
28585         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
28586         * modules/y0, modules/y1, modules/yn:
28587         Remove Bruno Haible as maintainer; if he's the sole maintainer,
28588         change the maintainer to 'all'.  Let's hope someone volunteers.
28590 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
28592         mktime: merge #if/#ifdef usage from glibc
28593         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28594         as that works with both Glibc's and Gnulib's style.
28595         See thread starting at Siddhesh Poyarekar's bug report at:
28596         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
28598 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
28600         git-version-gen: improve option descriptions
28601         * build-aux/git-version-gen: Mention that --prefix and --fallback
28602         have a mandatory argument.
28604 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
28606         regex: fix memory leak in compiler
28607         Fix by Andreas Schwab in:
28608         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
28609         * lib/regcomp.c (parse_expression): Deallocate partially
28610         constructed tree before returning error.
28612         regex: merge patch from libc
28613         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
28614         Combine __USE_BSD and __USE_SVID into __USE_MISC.
28615         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
28617 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
28619         acl: port to gcc -Wredundant-decls
28620         From a request by Dmitry Antipov in:
28621         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
28622         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
28623         "#ifndef _GL_ACL_H".
28625 2014-06-11  Bruce Korb  <bkorb@gnu.org>
28626         Jim Meyering  <meyering@fb.com>
28628         parse-duration: eliminate 68-year duration limit
28629         * lib/parse-duration.c: Include "intprops.h".
28630         (TIME_MAX): Rename to MAX_DURATION and define to
28631         TYPE_MAXIMUM(time_t).
28632         * modules/parse-duration (Depends-on): Add intprops.
28633         Reported by Jonas 'Sortie' Termansen.
28635 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28637         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
28638         * modules/pthread (Depends-on): Add 'extensions', as it defines
28639         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
28640         (configure.ac-early): New section.
28641         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
28642         it is no longer needed.
28644 2014-06-14  Pádraig Brady  <P@draigBrady.com>
28646         pthread: define thread-safe macros on some platforms
28647         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
28648         for thread-safe operation on some platforms.
28650 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
28652         regex: don't be multithreaded if USE_UNLOCKED_IO.
28653         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
28654         * lib/regex_internal.h: Do not use multithreaded version if
28655         USE_UNLOCKED_IO is defined.  This is a hack, but it works
28656         around a porting bug with coreutils 8.22 on AIX 7.1.
28658 2014-06-11  Daiki Ueno  <ueno@gnu.org>
28660         gettext: update macros to version 0.19
28661         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
28662         depend on gl_EXTERN_INLINE and drop support for older Bison
28663         versions.
28665 2014-06-10  Pádraig Brady  <P@draigBrady.com>
28667         select,poll: fix console handle check on windows 8
28668         lib/poll.c (IsConsoleHandle): Change from testing the lower
28669         2 bits of the handle to the more expensive but accurate syscall.
28670         lib/select.c: Likewise.
28672 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
28674         select: fix waiting on anonymous pipes on MS-Windows
28675         * lib/select.c (rpl_select): Fall back to polling when select()
28676         indicates there is nothing to check, while due to the timeout not
28677         expiring, activity is indicated on one of the handles.
28678         Also clear the TIMEOUT argument if the timer does expire.
28680 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
28682         times: fix to return non constant value on MS-Windows
28683         * lib/times.c (times): Don't use the process creation time,
28684         rather clock() which on windows returns the number of
28685         clock ticks since the process started.
28687 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
28689         isatty: fix to work on windows 8
28690         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
28691         2 bits of the handle to the more expensive but accurate syscall.
28693 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
28695         maint: fix typo in fdl.texi
28696         * doc/fdl.texi: Fix typo (missing '@').
28697         Somehow this was in fdl.texi but not fdl-1.3.texi.
28699 2014-06-06  Ben Walton  <bdwalton@gmail.com>
28701         mountlist: avoid hasmntopt const type warning on solaris
28702         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
28703         with char * instead of const char *.  Passing the constant string
28704         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
28705         to avoid the warning.
28707 2014-06-04  Eric Blake  <eblake@redhat.com>
28709         maintainer-makefile: delete obsolete code
28710         * top/maint.mk (build_aux): Drop old code, as threatened.
28712         maintainer-makefile: avoid spurious error messages
28713         * top/maint.mk (syntax-check): Guard definition and use of
28714         $(shell) by whether Makefile is present.
28716 2014-06-03  Ben Walton  <bdwalton@gmail.com>
28718         rename: avoid unused-but-set-variable compiler warning
28719         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
28720         it is possible that dst_exists may be set but not used.  Mark it with
28721         the unused attribute to avoid compiler warnings.
28723 2014-06-02  Ben Walton  <bdwalton@gmail.com>
28725         rename: mark a label as potentially unused
28726         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
28727         by marking the out label as potentially unused.
28728         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
28730 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
28732         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
28733         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
28735 2014-06-02  Ben Walton  <bdwalton@gmail.com>
28737         acl: apply pure attribute to two functions
28738         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
28739         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
28741 2014-06-01  Pádraig Brady  <P@draigBrady.com>
28743         gnulib-common.m4: add _GL_UNUSED_LABEL
28744         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
28745         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
28747 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
28749         dup2, fcntl, fcntl-h: port to AIX 7.1
28750         This fixes some porting problems discovered when testing the latest
28751         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
28752         in grep but it could be important for other applications.
28753         * doc/posix-functions/dup2.texi:
28754         * doc/posix-functions/fcntl.texi:
28755         * doc/posix-headers/fcntl.texi:
28756         Document AIX bugs.
28757         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
28758         Define to 0 if outside 'int' range.
28759         * m4/dup2.m4 (gl_FUNC_DUP2):
28760         * m4/fcntl.m4 (gl_FUNC_FCNTL):
28761         Check for getdtablesize.  If it's available, test a value just
28762         outside its range instead of testing 1000000.  When cross-compiling,
28763         guess that AIX will fail this improved test.
28765 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28767         printf, config.rpath: Port to FreeBSD 10.
28768         Problem reported by Tijl Coosemans in:
28769         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
28770         * build-aux/config.rpath (hardcode_libdir_flag_spec)
28771         (hardcode_direct): Simplify FreeBSD configuration.
28772         (library_names_spec): Don't mishandle FreeBSD 10+.
28773         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
28774         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
28775         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
28776         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
28777         Don't mishandle FreeBSD 10+ when cross-compiling.
28779         ftoastr: work around compiler bug in IBM xlc 12.1
28780         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
28781         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
28782         around a compiler bug in IBM xlc 12.1.0.0: it complains
28783         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
28784         _GL_FLT_PREC_BOUND.'
28786 2014-05-30  Kieran Colford  <colfordk@gmail.com>
28788         valgrind-tests: fixed misleading help message
28789         * m4/valgrind-tests.m4: The help message generated by configure
28790         implied that valgrind was disabled by default, which it wasn't.
28791         Adjusted the help message using s/enable/disable/ to clarify.
28793 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
28795         isfinite, isinf, isnan tests: fix for little-endian PowerPC
28796         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
28797         first double of a PowerPC "double double" pair.
28798         * tests/test-isinf.c (test_isinfl): Likewise.
28799         * tests/test-isnan.c (test_long_double): Likewise.
28800         * tests/test-isnanl.h (main): Likewise.
28801         * tests/test-signbit.c (test_signbitl): Likewise.
28803 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
28805         exclude-tests: port to AIX 7.1
28806         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
28807         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
28808         the regex code uses locks.
28810 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
28812         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
28813         Without this fix, Emacs would sometimes call sigprocmask instead
28814         of pthread_sigmask, which is a no-no in multithreaded applications.
28815         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
28816         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
28817         Suppress check for pthread_sigmask working without -lpthread if
28818         the application always links with -lpthread.  Do not link with
28819         $LIBMULTITHREAD if gl_THREADLIB is not defined.
28820         * m4/timer_time.m4 (gl_TIMER_TIME):
28821         Require gl_THREADLIB only if it is defined.  Do not append
28822         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
28824 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
28826         gnulib-tool: wget translations using --no-verbose rather than --quiet
28827         This allows the user to see error messages if any (--quiet hides them)
28828         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
28830 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
28832         gnulib-tool: adjust translation wget to avoid a https redirection
28833         Context: http://translationproject.org/latest/gnulib redirects to
28834            https://translationproject.org/latest/gnulib/
28835         Rationale: if the user falls back to wget, she doesn't have rsync and
28836         is probably in a minimal build environment, where packages such as
28837         'ca-certificates' are missing as well, resulting in a failed (and
28838         difficult to detect since ignored) translation initial fetch.
28839         Consequently let's avoid https if possible, and add the missing
28840         trailing slash.  This also avoids an unnecessary 302 redirection.
28841         * gnulib-tool: Add trailing slash to gnulib URL.
28843 2014-05-22  Pádraig Brady  <P@draigBrady.com>
28845         getlogin_r-tests: check return value rather than errno
28846         * tests/test-getlogin_r.c (main): As per POSIX we should be
28847         verifying the return value from getlogin_r() rather than errno.
28849 2014-05-22  Pádraig Brady  <P@draigBrady.com>
28851         getlogin_r-tests: fix various issues in recent change
28852         * tests/test-getlogin_r.c: Include required headers that were
28853         missed in recent commit eec20b4e.
28854         Also consistently check the errno rather than the return value from
28855         getlogin_r as POSIX only specifies that non zero is returned on error.
28856         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
28858 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
28860         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
28861         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
28862         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
28863         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
28864         * lib/spawn-pipe.c:
28865         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
28866         and then 'int open64(const char *, int, ...);', which means the
28867         declaration for 'open' gets lost if we later '#undef open'.
28868         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
28869         where the compilation reported the non-fatal error "In function
28870         'openat_proc_name' ... warning: implicit declaration of function
28871         'open'".  In this case the error is relatively harmless, but in
28872         other cases it might not be so minor.
28874 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28876         xalloc: don't potentially generate invalid code for xmemdup calls
28877         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
28878         this function can initialize the newly-allocated storage with new
28879         pointers, which means this function is not malloc-like.  See:
28880         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
28882 2014-05-19  Pádraig Brady  <P@draigBrady.com>
28884         getlogin_r-tests: avoid false failure under sudo/ssh etc.
28885         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
28886         changes from commit 97249cf29 to not depend on environment variables.
28888 2014-05-18  Pádraig Brady  <P@draigBrady.com>
28890         getlogin-tests: avoid false failure under cron
28891         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
28892         since that's not what's under test.  Centos 6 was seen to return
28893         EINVAL for ttyname() when run from cron.
28895 2014-05-16  Jim Meyering  <meyering@fb.com>
28897         mbrtowc.m4: fix a comment typo
28898         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
28899         emitted documentation string.
28901 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
28903         mbrlen, mbrtowc: fix bug with empty input
28904         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
28905         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
28906         so this is mainly for documentation.
28907         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
28908         (gl_FUNC_MBRTOWC): Use it.
28909         * tests/test-mbrtowc.c (main): Test for the bug.
28911 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
28913         doc: document mbrtowc and mbrlen problem with empty input
28914         * doc/posix-functions/mbrlen.texi (mbrlen):
28915         * doc/posix-functions/mbrtowc.texi (mbrtowc):
28916         Document portability problem when the input string is empty.  See:
28917         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
28919         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
28920         Problem reported by Eli Zaretskii in:
28921         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
28922         * doc/posix-functions/execl.texi (execl):
28923         * doc/posix-functions/execle.texi (execle):
28924         * doc/posix-functions/execlp.texi (execlp):
28925         * doc/posix-functions/execv.texi (execv):
28926         * doc/posix-functions/execve.texi (execve):
28927         * doc/posix-functions/execvp.texi (execvp):
28928         Mention spawn+exit problem on non-Cygwin Windows platforms.
28930 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
28932         getlogin-tests: avoid false failure under sudo/ssh etc.
28933         * modules/getlogin-tests (configure.ac): Check for ttyname().
28934         * tests/test-getlogin.c (main): Don't depend on environment variables
28935         to correlate with getlogin(), since sudo and ssh etc. can tamper
28936         with the LOGNAME and USER env vars.  Instead lookup the name from
28937         the uid associated with the stdin tty.
28939 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
28941         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
28942         These were found when building the latest grep snapshot on IRIX 6.5.
28943         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
28944         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
28945         never used later.
28946         * lib/quotearg.c (quoting_options_from_style):
28947         * lib/xstrtol.c (__xstrtol):
28948         Use enum instead of 0, to pacify IRIX 6.5 cc.
28950 2014-04-18  Pádraig Brady  <P@draigBrady.com>
28952         gitlog-to-changelog: revert inclusion of git-log-fix file
28953         * build-aux/git-log-fix: Delete dummy file.
28954         * modules/gitlog-to-changelog: Don't reference (overwrite)
28955         the project specific git-log-fix file.
28957 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
28959         maint.mk: Relax the copyright check to cater for non FSF projects
28960         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
28961         to not require the "Free" suffix after the copyright years.
28963 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
28965         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
28966         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
28967         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
28968         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
28969         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
28971 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
28973         exclude: port to strict C99
28974         Strict C does not allow converting a function pointer to void *
28975         and vice versa.  Pass a pointer to a function pointer instead.
28976         * lib/exclude.c (add_exclude_file):
28977         Pass the address of the function pointer.
28978         (call_addfn): And deference the address here, to match.
28980 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
28982         regex: do not depend on malloc-gnu
28983         * modules/regex (Depends-on): Remove malloc-gnu.
28984         It's no longer needed, because of the 2012-12-29 patch
28985         "regex: port to hosts where malloc (0) == NULL".
28986         Reported by Nathan Kennedy in:
28987         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
28989 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
28991         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
28992         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
28993         * doc/posix-functions/expl.texi: Mention the workaround.
28995 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
28997         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
28998         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
28999         size to be zero even when the pointer is nonnull.  This
29000         accommodates the use case where P is malloc (0) and *PN is 0 on a
29001         host where malloc (0) yields nonnull.
29003 2014-04-09  Eric Blake  <eblake@redhat.com>
29005         fts: avoid unnecessary strlen calls
29006         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
29008 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29010         fts: avoid unnecessary strlen calls
29011         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
29012         when that can be faster than strlen.
29014 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29016         fts: avoid unnecessary strlen calls
29017         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
29018         (fts_build): Store the length of the dp->d_name entry in a local variable
29019         instead of calling strlen() several times via the above, removed macro.
29020         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
29021         run by ~4%, yet this reduces the execution time by about a third if run
29022         via "ltrace -c rm -rf some-dir".
29024 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29026         obstack: Remove ancient NeXTSTEP gcc support conditional
29027         This change will ease merging with glibc.  The "#if ... __NEXT__"
29028         causes a warning with -Wundef which glibc now enables by default.
29029         Problem reported by Will Newton in
29030         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
29031         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
29032         so go with that.
29033         * lib/obstack.h (__extension__):
29035 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29037         obstack: merge with glibc changes
29038         * lib/obstack.c, lib/obstack.h: Merge from glibc.
29039         This is mostly indenting and commentary changes.
29040         Instances of 'register' have been removed.
29042 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29044         strftime: wrap macros in "do {...} while(0)"
29045         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
29046         this macro in "do {...} while(0)" to prevent false use as a
29047         single statement, e.g., in an un-braced "{}" else-block.
29048         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
29049         (strftime_case_): Remove 'else' after 'goto' - which was the
29050         only non-fatal, un-braced use of one of the above macros.
29051         Spotted by coverity (NESTING_INDENT_MISMATCH).
29053 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29055         modechange: avoid memory leaks for invalid octal modes
29056         * lib/modechange.c (mode_compile): During the parsing of
29057         notations like +40, free the 'mc' buffer for invalid mode
29058         strings like +17777 (greater than the maximum octal mode),
29059         =18 (bad octal mode characters) or u=1 ('affected' with
29060         octal modes).
29061         Reproducer, e.g.:
29062             $ valgrind --leak-check=full chmod +17777 file
29063         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
29064         add notations +40, 00440, etc.".
29065         Spotted by coverity (RESOURCE_LEAK).
29067 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
29069         gitlog-to-changelog: include a dummy git-log-fix file
29070         Problem reported by Nathan Stratton Treadway in:
29071         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
29072         * build-aux/git-log-fix: New file.
29074 2014-03-13  Jim Meyering  <meyering@fb.com>
29076         gitlog-to-changelog: also include the file, git-log-fix
29077         * modules/gitlog-to-changelog (Files): Add git-log-fix.
29078         Reported by Assaf Gordon.
29080 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
29082         regex: port to OS X 10.8.5 en_US.UTF-8 locale
29083         This fixes a bug when ignoring case and when comparing the
29084         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
29085         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
29086         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
29087         titlecase letter is neither lowercase nor uppercase, but
29088         uppercasing the titlecase letter (via towupper) yields the
29089         uppercase letter, so the two letters should match when ignoring case.
29090         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
29091         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
29092         Don't test whether a character is lowercase before uppercasing it.
29094 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
29096         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
29097         This is basically one of the options Bruno Haible proposed in:
29098         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
29099         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
29100         * lib/stdint.in.h: Use it.
29101         * modules/stdint (Depends-on): Add sys_types.
29103 2014-02-26  Pádraig Brady  <P@draigBrady.com>
29105         parse-datetime: fix crash or infloop in TZ="" parsing
29106         * lib/parse-datetime.y (parse_datetime): Break out of the
29107         TZ="" parsing loop once the second significant " is found.
29108         Also skip over any subsequent whitespace to be consistent
29109         with the non TZ= case.
29110         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
29112 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
29114         savedir: new symbol for fast-read version
29115         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
29116         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
29117         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
29118         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
29120 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29122         unistd: port readlink to Mac OS X 10.3.9
29123         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
29124         around self-include problem in Mac OS X 10.3.9 when combined with
29125         readlink module.  Problem reported by Klaus Zietler in
29126         <http://bugs.gnu.org/16825>.
29128 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
29130         diffseq: remove TOO_EXPENSIVE heuristic
29131         Problem with diffutils reported by Vincent Lefevre in
29132         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
29133         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
29134         Although appropriate for circa-1993 hardware, these days the heuristic
29135         seems to be more trouble than it's worth.
29136         * lib/diffseq.h: Modernize citations.
29137         (struct context): Remove member too_expensive.
29138         All uses changed.
29139         (struct partition): Remove members lo_minimal, hi_minimal.
29140         All uses changed.
29141         (diag, compareseq): Remove arg find_minimal.  All uses changed.
29142         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
29143         1993 to make 'diff' run faster (but not as well) on large inputs.
29144         These days, computers are fast enough that it's typically better
29145         to run slower but more accurately.
29146         * lib/fstrcmp.c: Remove duplicate comment.
29147         * lib/fstrcmp.c (strcmp_bounded):
29148         * lib/git-merge-changelog.c (compute_differences):
29149         Adjust to diffseq.h changes.
29150         * NEWS: Document the change.
29152         savedir: simplify by using stpcpy
29153         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
29154         (streamsavedir): Use stpcpy instead.
29155         * modules/savedir (Depends-on): Add stpcpy.
29157 2014-02-21  Pádraig Brady  <P@draigBrady.com>
29159         spawn: fix link error on uclibc
29160         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
29161         to incorporate -lrt if needed (on uclibc for example).
29162         * modules/posix_spawn: Reference the substituted LIB.
29164 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
29165         timer: fix uClibc detection of threading
29166         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
29167         enabled in uClibc.
29169 2014-02-21  Eric Blake  <eblake@redhat.com>
29171         maintainer-makefiles: provide AC_PROG_SED for older autoconf
29172         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
29174 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
29176         exclude: add support for posix regexps
29178         This commit adds support for POSIX extended regular expressions
29179         and fixes a long-standing memory leak (pattern buffer was never
29180         freed).  It also implements a new interface function to read
29181         exclude patterns from a FILE, which passes an additional parameter
29182         to its callback function, thereby allowing to preserve its state
29183         between invocations.
29185         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
29186         (pattern_buffer): New struct.
29187         (exclude): New member patbuf.
29188         (exclude_add_pattern_buffer): New function.
29189         (free_exclude_segment): Free regexps.
29190         (free_exclude): Free allocated pattern buffers.
29191         (exclude_patopts): New function.
29192         (file_pattern_matches): Use exclude_patopts.
29193         (add_exclude): support regexps.
29194         (add_exclude_fp): New function.
29195         (add_exclude_file): Rewrite using add_exclude_fp.
29196         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29197         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29198         (add_exclude_fp)
29199         (add_exclude_file): Rewrite using add_exclude_fp.
29200         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29201         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29202         (add_exclude_fp)
29203         (exclude_add_pattern_buffer): New prototypes.
29204         * modules/exclude: Depends on regex and filename.
29206 2014-02-20  Eric Blake  <eblake@redhat.com>
29208         maintainer-makefiles: use $(SED) for syntax check
29209         * modules/maintainer-makefile (configure.ac): Check for sane sed.
29210         * top/maint.mk: Change sed to $(SED).
29212 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
29213             Paul Eggert  <eggert@cs.ucla.edu>
29215         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
29216         Patch based on an idea by Dick Streefland in
29217         <https://savannah.gnu.org/patch/?7892>.
29218         * NEWS: Document this.
29219         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
29220         (direntry_t, comparison_function): New types.
29221         (direntry_cmp_name): New function.
29222         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
29223         (streamsavedir, savedir): New arg OPTION.
29224         (streamsavedir): Simplify memory allocation.
29225         (fdsavedir): Remove.
29226         * lib/savedir.h (enum savedir_option): New type.
29227         (streamsavedir, savedir): New arg OPTION.
29228         (fdsavedir): Remove.
29230 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
29232         file-type: add support for doors and other less-common file types
29233         Problem with S_ISDOOR reported by Rich Burridge.
29234         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
29235         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
29236         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
29238 2014-01-23  Eric Blake  <eblake@redhat.com>
29240         pthread: work around winpthread header pollution on mingw
29241         * lib/time.in.h: Move pthread workarounds...
29242         * lib/pthread.in.h: ...here.
29243         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
29244         detect macro pollution on mingw.
29245         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
29247 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
29249         qacl: check for fchmod
29250         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
29251         and qset-acl.c both use HAVE_FCHMOD.
29253 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29255         fdopen-tests: port to Tru64
29256         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
29257         descriptor that is not open, as POSIX doesn't specify the
29258         resulting behavior and the test does not work on Tru64.
29259         Problem reported by Steven M. Schweda in:
29260         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
29262         stdalign: port to HP-UX compilers
29263         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
29264         if __HP_cc or __HP_aCC are nonzero.
29266 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
29268         strtoimax: port to platforms lacking 'long long'
29269         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
29270         check whether strtoll is declared, which causes the C file to
29271         wrongly report an error.  Problem reported by Steven M. Schweda in:
29272         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
29273         * lib/strtoimax.c (strtoull):
29274         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
29275         (strtoll): Declare only if HAVE_LONG_LONG_INT.
29277 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
29279         relocatable-perl: fix texi syntax
29280         * doc/relocatable-maint.texi: Escape braces.
29282 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
29284         relocatable-perl: like relocatable-script, but for Perl scripts
29285         * build-aux/relocatable.pl.in: Add.
29286         * doc/relocatable-maint.texi: Add documentation.
29287         * modules/relocatable-perl: Add.
29289 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
29291         tests: fix export bug in previous patch
29292         Problem reported by Jim Meyering.
29293         * tests/init.sh (re_shell): New var, which is exported instead of
29294         re_shell_.
29296         tests: simplify porting to Solaris 10 /bin/sh
29297         Some test cases in 'grep' need a shell that groks '$(';
29298         export re_shell_ for their benefit.  Problem reported for 'grep'
29299         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
29300         * tests/init.sh (re_shell_): Export if it's used.
29302 2014-01-06  Eric Blake  <eblake@redhat.com>
29304         md5, sha1, sha256, sha512: support older autoconf
29305         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
29306         for autoconf < 2.63b.
29308         include_next: port to autoconf 2.63
29309         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
29311 2014-01-04  Jim Meyering  <meyering@fb.com>
29313         maint: add a gnulib-local rule to keep non-ascii out of .texi files
29314         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
29315         so that "make sc_maint" will ding anyone who puts non-ascii
29316         in any of gnulib's .texi files.
29318 2014-01-03  Jim Meyering  <meyering@fb.com>
29320         freadable, fwritable, fwriting: declare with the "pure" attribute
29321         * lib/freadable.h (freadable): Declare with the "pure" attribute.
29322         * lib/fwritable.h (fwritable): Likewise.
29323         * lib/fwriting.h (fwriting): Likewise.
29324         Suggested by Bruno Haible.
29326         maint.mk: adapt openat.h-include-without-use test
29327         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
29328         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
29329         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
29330         With this change, running "make sc_maint" in gnulib's top-level
29331         directory now passes for me.
29333 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
29335         doc: use ASCII in .texi files where UTF-8 isn't needed
29336         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
29337         * doc/posix-functions/setkey.texi, doc/regex.texi:
29338         Use ASCII input, not UTF-8.
29340 2014-01-02  Jim Meyering  <meyering@fb.com>
29342         freading: declare with the "pure" attribute
29343         * lib/freading.h (freading): Declare with the "pure" attribute.
29345         manywarnings: remove -Wmudflap
29346         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
29347         it is no longer supported in gcc-4.9-to-be.
29349 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29351         relocatable-script: remove unused code
29352         Problem reported by Reuben Thomas in:
29353         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
29354         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
29356 2014-01-01  Jim Meyering  <meyering@fb.com>
29358         maint: fix public-submodule-commit to work with newer git
29359         * top/maint.mk (public-submodule-commit): Remove excess quoting.
29360         We were over-quoting the test arguments, and somewhere prior to
29361         version 1.8.5.2.229, git stopped removing those excess quotes,
29362         which made the test fail, since the unexpanded strings would
29363         always differ; using GIT_TRACE=1 confirmed that the git merge-base
29364         command wasn't even being run.
29366 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29368         doc: update main copyright year
29369         * doc/gnulib.texi: Update copyright date.
29371 2014-01-01  Eric Blake  <eblake@redhat.com>
29373         version-etc: new year
29374         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
29375         * all files: run 'make update-copyright'
29377 2013-12-24  Eric Blake  <eblake@redhat.com>
29379         passfd: give nicer error for recvfd at eof
29380         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
29381         * tests/test-passfd.c (main): Enhance test to cover this.
29383 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29385         gettimeofday: port recent C++ fix to Emacs
29386         Without this further patch, Emacs won't build due to
29387         the portcheck failing.  Also, this simplifies the patch a bit.
29388         * lib/time.in.h (localtime, gmtime): Don't replace unless
29389         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
29390         * lib/time.in.h (localtime, gmtime):
29391         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
29392         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29393         * modules/time (time.h):
29394         Don't worry about the possibility of localtime and gmtime
29395         being absent; they're present in all C libraries we know about.
29396         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29397         Don't assume sys_time is present and has been initialized.
29398         Instead, use a hack that should work even if it hasn't been.
29399         Don't use a portcheck for gmtime or localtime; this supports
29400         the hack.
29401         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
29403 2013-12-17  John W. Eaton  <jwe@gnu.org>
29405         gettimeofday: fix C++ crosscompilation
29407         Never replace gmtime and localtime by macros when compiling with
29408         C++, this prevents <ctime> from being included.
29410         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
29411         define gmtime and localtime as preprocessor macros.  Instead
29412         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
29413         REPLACE_LOCALTIME substitutions.
29414         * lib/time.in.h: Declare gmtime and localtime when needed.
29415         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
29416         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
29417         * modules/time: Depend on gettimeofday, and substitute the above
29418         variables in time.h.
29420 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29422         qacl: port to Windows better
29423         See Eli Zaretskii in
29424         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
29425         * lib/file-has-acl.c (acl_access_nontrivial):
29426         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
29427         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
29429 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
29431         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
29432         * lib/gl_openssl.h: Cast void pointers to a specific type.
29434 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29436         open-tests: fix build failure with -Werror=old-style-declaration
29437         * tests/test-open.h: Reorder the inline to avoid the issue.
29439 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29441         md5, sha1, sha256, sha512: fix link error with partial libcrypto
29442         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
29443         init time, so that if early checks find crypto routines,
29444         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
29445         avoiding link failures.
29447 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29449         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
29450         This provides a new way to specify the default for
29451         gl_CRYPTO_CHECK, one that is reflected in the --help message.
29452         Emacs uses this, as well as the old way.
29453         This attempts to implement a suggestion by Pádraig Brady in
29454         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
29455         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
29456         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
29458         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
29459         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
29460         Add support for a new option, --with-openssl=auto, which causes
29461         the library to be used if available and silently ignored if not.
29462         Add support to allow configure.ac to specify its own
29463         default, by setting with_openssl_default before invoking gl_INIT.
29465 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
29467         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
29468         Problem reported by Daiki Ueno in:
29469         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
29470         * tests/test-open.h (__always_inline):
29471         New macro, if not already defined.
29472         (test_open): Use it.
29474 2013-12-04  Eric Blake  <eblake@redhat.com>
29476         include_next: minimize code duplication
29477         * modules/include_next (Depends-on): Add absolute-header.
29478         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
29479         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
29481 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29483         getcwd: fix compile error in configure check
29484         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
29486 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29488         regex: suppress core dumps from detection code
29489         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
29490         to suppress core dumps that may well occur on glibc systems.
29491         These core dumps might not be cleaned up automatically, or could
29492         trigger some system core dump handling logic.
29494 2013-12-03  Pádraig Brady  <P@draigBrady.com>
29496         md5, sha1, sha256, sha512: support mandating use of openssl
29497         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
29498         description, to list the now 3 separate options.  also don't
29499         mention the default=no, since this is implicit given the option
29500         is described as --with-openssl rather than --without-openssl.
29501         If projects change the default they're free to document that.
29502         with --with-openssl[=yes] we now error out when the specified
29503         hash algorithm is not available in libcrypto.
29505 2013-12-03  Ivailo  <xakepa10@gmail.com>
29507         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
29508         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
29509         -Wformat-nonliteral checks, as these edge cases are part of the test.
29511 2013-12-03  Eric Blake  <eblake@redhat.com>
29513         regex: avoid glibc deadlock during configure
29514         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
29515         glibc bug 15078 in turn triggers bug 16159.
29516         Reported by Michal Privoznik.
29518 2013-12-02  Pádraig Brady  <P@draigBrady.com>
29520         md5, sha1, sha256, sha512: use openssl routines if available.
29521         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
29522         routines will be used if available, requiring apps to link @LIB_CRYPTO@
29523         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
29524         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
29525         in the standard system location.
29526         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
29527         * m4/sha256.m4: Likewise with SHA256.
29528         * m4/sha512.m4: Likewise with SHA512.
29529         * m4/md5.m4: Likewise with MD5.
29530         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
29531         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
29532         * lib/sha256.h: Likewise with SHA256.
29533         * lib/sha512.h: Likewise with SHA512.
29534         * lib/md5.h: Likewise with MD5.
29535         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
29536         * lib/sha256.c: Likewise with SHA256.
29537         * lib/sha512.c: Likewise with SHA512.
29538         * lib/md5.c: Likewise with MD5.
29539         * modules/crypto/sha1 (Link:): Add the new optional lib.
29540         (Depends-on:): Add dependency on extern-inline.
29541         * modules/crypto/sha256: Likewise.
29542         * modules/crypto/sha512: Likewise.
29543         * modules/crypto/md5: Likewise.
29544         * modules/crypto/sha1-tests: Reference the lib here too.
29545         * modules/crypto/md5-tests: Likewise.
29546         * modules/crypto/gc-des-tests: Likewise.
29547         * modules/crypto/gc-hmac-md5-tests: Likewise.
29548         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29549         * modules/crypto/gc-hmac-sha256-tests: Likewise.
29550         * modules/crypto/gc-hmac-sha512-tests: Likewise.
29551         * modules/crypto/gc-md5-tests: Likewise.
29552         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29553         * modules/crypto/gc-sha1-tests: Likewise.
29554         * modules/crypto/gc-tests: Likewise.
29555         * modules/crypto/hmac-md5-tests: Likewise.
29556         * modules/crypto/hmac-sha1-tests: Likewise.
29557         * modules/crypto/hmac-sha256-tests: Likewise.
29558         * modules/crypto/hmac-sha512-tests: Likewise.
29560 2013-11-29  RV1971  <rv1971@web.de>
29562         base64: (trivial) fix compilation regression on some compilers
29563         * lib/base64.c: Don't return the void function,
29564         instead split to a separate return statement.
29566 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
29568         ignore-value: revert previous code change
29569         * lib/ignore-value.h (ignore_value): Use __extension__ and
29570         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
29571         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
29572         Change the comment to try to explain this better.
29574 2013-11-27  Pádraig Brady  <P@draigBrady.com>
29576         selinux-h: improve stub types and add more stub functions
29578         * lib/se-selinux.in.h: Change security_context_t to a typedef
29579         rather than a define, as it's a pointer type and so is better
29580         as a typedef to avoid issues declaring multiple variables
29581         with the comma operator.  Also add stub for string_to_security_class().
29582         * lib/se-context.in.h: Add stub functions for
29583         context_{type,range,role,user}_get().
29585 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
29587         ignore-value: prefer GCC version back through 2.0
29588         The code didn't match the comments, so I did a bit of software
29589         archaeology.  GCC 2.0 seems to support __extension__ and
29590         __typeof__, so fix both code and comments to use 2.0.
29591         * lib/ignore-value.h (ignore_value): Use __extension__ and
29592         __typeof__ for GCC 2.0 through 3.3, too.
29594 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
29596         pty: Activate the signature wrapper of forkpty.
29597         The intended preprocessor macro HAVE_FORKPTY is
29598         never defined, yet `lib/forkpty.c' depends on it.
29600         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
29601         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
29602         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
29604 2013-11-18  Jim Meyering  <meyering@fb.com>
29605         and Paul Eggert  <eggert@cs.ucla.edu>
29607         quotearg: don't attempt to store 1 << 31 into an "int"
29608         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
29609         gcc's new -fsanitize=undefined and running its tests triggered some
29610         new test failures due to undefined behavior, all with this diagnostic:
29611           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
29612             cannot be represented in type int
29613         Rather than shifting "1" left to form a mask, shift the bits right and
29614         simply use "1" as the mask.
29616 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
29618         error: depend on stdio
29619         Problem reported by Nikos Mavrogiannopoulos in
29620         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
29621         * modules/error (Depends-on): Add stdio.
29623 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
29625         * doc/relocatable-maint.texi (Supporting Relocation): Improve
29626         wording.
29627         Reported by Reuben Thomas <rrt@sc3d.org>.
29629 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
29631         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
29632         New function and macro, to work around _DARWIN_C_SOURCE problem.
29633         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
29635 2013-11-11  Pádraig Brady  <P@draigBrady.com>
29637         base64: provide a fast path for encoding well sized buffers
29638         Avoid conditionals in the base64 encoding loop,
29639         which was seen to give 60% better throughput.
29640         * lib/base64.c (base64_encode_fast): A new function to be called
29641         when we don't want to NUL terminate, and we have enough space
29642         in the output to encode the given input.
29643         (base64_encode): Call the _fast() version when appropriate.
29644         Also remove a redundant mask with 0x3F on the first encoded byte.
29646 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
29648         extern-inline: port better to OS X 10.9
29649         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
29650         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
29651         OS X 10.9, except for g++ where the bug is still present.
29652         See <http://trac.macports.org/ticket/41033>.
29654 2013-11-08  Eric Blake  <eblake@redhat.com>
29656         fpending: fix regression on DragonFly BSD
29657         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
29658         * lib/fpending.h (__fpending): Don't declare twice.
29659         Reported by GW in
29660         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
29662 2013-11-05  Jim Meyering  <meyering@fb.com>
29664         hash: relax license to LGPLv2+, for libguestfs
29665         * modules/hash (License): Change from GPL to LGPLv2+.
29667 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
29669         intprops: port to Oracle Studio c99
29670         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
29671         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
29673 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29675         obstack: pacify HP C
29676         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
29677         warning "conversion from pointer to smaller integer" from HP
29678         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
29679         C89 or later nowadays, so cast to void instead of int.  Privately
29680         reported by H.Merijn Brand.  Also, change header to match glibc's,
29681         to make checking against glibc easier.
29683 2013-10-29  Jim Meyering  <meyering@fb.com>
29685         maint.mk: prefer gpgv2 over gpgv
29686         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
29687         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
29688         Reported by Gary Vaughan.
29690 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29692         isnan: port to VAX
29693         Reported by John Klos for NetBSD-5/VAX in
29694         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
29695         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
29696         (FUNC): Use it.
29698 2013-10-28  Jim Meyering  <meyering@fb.com>
29700         gnulib-tool: protect against CDPATH
29701         * gnulib-tool: Many "cd" built-in functions print a directory name
29702         to stdout when CDPATH is set, e.g.,
29703           $ bash -c 'CDPATH=/; cd tmp'
29704           /tmp
29705         Unset it, when possible.  Prompted by a comment from Bruce Korb.
29707         maint.mk: restore functionality removed by recent change...
29708         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
29709         the context of a shallow-cloned gnulib repository: "git describe"
29710         would fail in such a directory.  However, that change made it so
29711         the reported gnulib revision no longer includes the version number
29712         or a commit count, even when run from a full clone.
29713         * top/maint.mk (gnulib-version): Use the full "git describe"
29714         output when possible, e.g., the form above, rather than the
29715         abbreviated, no-tag, no-commit-count string, and fall back to
29716         using a 10-byte hash, rather than the default minimal-length
29717         hash prefix, since while the minimal-length one may be fine today,
29718         it is likely not to be unique for very long.
29720 2013-10-26  Jim Meyering  <meyering@fb.com>
29722         maint.mk: fix "release" target to build _version
29723         This fixes a bug in README-release whereby following the outlined
29724         steps, one would publish a tarball whose programs would report
29725         --version output not consistent with the package version number.
29726         This bug caused grep-2.15 to produce a grep program whose
29727         --version option made it print 2.14.56-1e3d rather than 2.15.
29728         * top/maint.mk (release): Making this target build "_version"
29729         ensures that the new version number is reflected in configure.
29731 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
29733         install-reloc: Support multi-binary installation.
29734         * build-aux/install-reloc: Support installing multiple programs in
29735         one invocation, as done by Automake starting with commit
29736         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
29737         Haible <bruno@clisp.org>, archived at
29738         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
29739         Reported by Sylvain <beuc@gnu.org>.
29741 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29743         selinux-h: Really build without selinux when library is missing.
29744         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
29745         continue without selinux, as already told in the warning message.
29747 2013-10-21  Jim Meyering  <meyering@fb.com>
29749         regex: also remove dependency on HAVE_WCSCOLL
29750         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
29752 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
29754         xfreopen: Fix typo. s/frepoen/freopen/
29755         * lib/xfreopen.c: Fix description.
29756         * modules/xfreopen: Likewise.
29758 2013-10-21  Jim Meyering  <meyering@fb.com>
29760         regex: don't depend on wcscoll
29761         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
29762         It is no longer used.
29764 2013-10-20  Jim Meyering  <meyering@fb.com>
29766         error: add the printf attribute to a static function
29767         * lib/error.c (error_tail): Add the printf attribute, to placate
29768         gcc's -Werror=suggest-attribute=format option.
29770 2013-09-30  Jim Meyering  <meyering@fb.com>
29772         fpending, obstack, strerror-override: use pure+const function attrs
29773         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
29774         * lib/obstack.c (_obstack_allocated_p): Likewise.
29775         * lib/obstack.h (_obstack_memory_used): Likewise.
29776         (_obstack_memory_used): Likewise.
29777         * lib/strerror-override.h (strerror_override): Declare with
29778         the "const" attribute.
29780 2013-10-18  Eric Blake  <eblake@redhat.com>
29782         extern-inline: make safe for -Wundef usage
29783         Reported by Vladimir 'phcoder' Serbinenko in
29784         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
29785         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
29787 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29789         mkfifo-tests, etc.: allow HP-UX 11.11 bug
29790         Problem reported by Daniel Richard G. in
29791         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
29792         * doc/posix-functions/mkfifo.texi (mkfifo):
29793         * doc/posix-functions/mkfifoat.texi (mkfifoat):
29794         * doc/posix-functions/mknod.texi (mknod):
29795         * doc/posix-functions/mknodat.texi (mknodat):
29796         Document the HP-UX 11.11 bug.
29797         * tests/test-mkfifo.h (test_mkfifo):
29798         Allow the HP-UX 11.11 bug.
29800 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29802         acl: allow cross-compilation to Gentoo
29803         Problem reported by Gabriel Marcano in
29804         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
29805         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
29806         test only whether it links.
29808 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29810         mgetgroups: remove dependency on realloc-gnu
29811         The dependency violates the comment in realloc-gnu, which
29812         says that tests can't depend on realloc-gnu; some tests depend
29813         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
29814         Problem reported by Daniel Richard G. in
29815         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
29816         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
29817         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
29818         not realloc-gnu.
29820 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29822         regex-tests: port to HP-UX 11.11
29823         Problem reported by Daniel Richard G. in
29824         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
29825         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
29827 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29829         verify: document some 'assume' pitfalls
29830         * doc/verify.texi (Compile-time Assertions):
29831         Mention that 'assume (E)' can sometimes slow things down.
29832         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
29834 2013-10-10  Eric Blake  <eblake@redhat.com>
29836         strtoumax: fix typo in previous commit.
29837         * modules/strtoumax (Depends-on): Fix typo.
29838         * modules/strtoimax (Depends-on): Likewise.
29840 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29842         strtoumax: port to Solaris 8
29843         This problem was introduced in the recent HP-UX patch.
29844         Reported by Tom G. Christensen in
29845         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
29846         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
29847         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
29849 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
29851         strtoimax, strtoumax: port to HP-UX 11.11
29852         Problem reported by Daniel Richard G. in
29853         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
29854         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
29855         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
29856         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
29857         REPLACE_STRTOUMAX.
29858         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
29859         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
29860         Replace the function if defined as a macro but not as a function.
29861         * modules/inttypes-incomplete (inttypes.h): Substitute
29862         REPLACE_STRTOUMAX.
29863         * modules/strtoumax (configure.ac): Replace strtoumax if
29864         REPLACE_STRTOUMAX.
29866 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29868         strtoimax: port to HP-UX 11.11
29869         Problem reported by Daniel Richard G.
29870         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
29871         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
29872         they might clash with inttypes.h.
29874 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29876         New module 'count-trailing-zeros'.
29877         * MODULES.html.sh: Mention it.
29878         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
29879         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
29880         * modules/count-trailing-zeros-tests:
29881         * tests/test-count-trailing-zeros.c:
29882         New files.
29884         count-leading-zeros: port to MSC; support types wider than 64 bits
29885         The ideas behind the MSC port are stolen from Emacs.
29886         * lib/count-leading-zeros.h:
29887         Don't include verify.h: it's no longer needed, as types wider than
29888         64 bits are now supported.
29889         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
29890         performance with MSC.  All uses changed.  Do not assume that TYPE
29891         has at most 64 bits.
29892         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
29893         All uses changed.  Fold the subtraction from 31 into the table.
29895         count-one-bits: port to MSC; support types wider than 64 bits
29896         The ideas behind the MSC port are stolen from Emacs.
29897         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
29898         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
29899         Don't include verify.h: it's no longer needed, as types wider than
29900         64 bits are now supported.
29901         (COUNT_ONE_BITS_GENERIC): New macro.
29902         (popcount_supported) [_MSC_VER]: New inline function.
29903         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
29904         performance with MSC.  All uses changed.  Do not assume that TYPE
29905         has at most 64 bits.
29906         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
29908 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
29910         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
29911         * lib/mountlist.c (read_file_system_list): fix leak of directory
29912         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
29914 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29916         tests: improve diagnostic when an assertion fails
29917         * tests/macros.h (ASSERT): Report the assertion that failed.
29919 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29921         verify: new macro 'assume'
29922         This is taken from Emacs, and should be generally useful.
29923         * doc/verify.texi (assume): Document it.
29924         * lib/verify.h (assume): New macro.
29925         (__has_builtin): Expand to 0 if not defined.
29927 2013-09-26  Eric Blake  <eblake@redhat.com>
29929         dup2, dup3: work around another cygwin crasher
29930         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
29931         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
29932         * tests/test-dup2.c (main): Likewise.
29933         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
29934         * lib/dup3.c (dup3): Likewise.
29935         * doc/posix-functions/dup2.texi (dup2): Document it.
29936         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29938         getdtablesize: work around cygwin issue
29939         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
29940         * modules/getdtablesize (configure.ac): Build replacement.
29941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
29942         * modules/unistd (Makefile.am): Expose the witness.
29943         * lib/unistd.in.h (getdtablesize): Declare replacement.
29944         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
29945         * tests/test-getdtablesize.c (main): Test it.
29946         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
29948 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
29950         pmccabe2html: escaping of special characters
29951         Escape all '<', '>', and '&' in HTML output.
29952         * build-aux/pmccabe2html (html_fnc): Call gsub()
29953         instead of sub() to capture all '<', '>', and '&'.
29954         Neither of '<' and '>' is special in a regexp,
29955         so first arguments to gsub() are corrected. Also,
29956         in replacement strings, ampersand must be escaped.
29957         Finally, '&' must be handled first, then '<' and '>'.
29959 2013-09-24  Eric Blake  <eblake@redhat.com>
29961         manywarnings: enable nicer gcc warning messages
29962         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
29963         some -f options for optimal warnings.
29965 2013-09-21  Jim Meyering  <meyering@fb.com>
29967         timespec: use the new TIMESPEC_RESOLUTION in a few more places
29968         * lib/timespec-add.c (timespec_add): Also replace 999999999
29969         with TIMESPEC_RESOLUTION - 1.
29970         * lib/timespec-sub.c (timespec_sub): Likewise.
29972 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29974         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
29975         Problem reported by Dagobert Michelsen via Eric Blake in
29976         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
29977         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
29978         not AC_COMPILE_IFELSE.
29980 2013-09-23  Eric Blake  <eblake@redhat.com>
29982         configmake: support new --runstatedir option
29983         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
29984         even if autoconf was too old to provide the command line option.
29985         * modules/configmake (Makefile.am): Propagate it to .h file.
29987 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29989         ctype, string: depend on extern-inline
29990         This is needed to complete the recent OS X fixes.
29991         Also, fix related documentation as suggested by Eric Blake.
29992         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
29993         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
29994         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
29995         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
29996         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
29997         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
29998         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
29999         * doc/posix-functions/toupper.texi:
30000         List the 'ctype' gnulib module.
30001         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
30002         * doc/posix-functions/strncpy.texi:
30003         List the 'string' gnulib module.
30004         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
30005         Add string.
30006         * modules/ctype, modules/string (Depends-on): Add extern-inline.
30008 2013-09-19  Pádraig Brady  <P@draigBrady.com>
30010         userspec: support optional parameters to parse_user_spec()
30011         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
30012         then avoid group processing and treat the full spec as a user.
30013         (parse_with_separator): Allow the USERNAME and GROUPNAME to
30014         be optional params (NULL), in which case they're ignored.
30016 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30018         timespec: new function make_timespec, and new constants
30019         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
30020         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
30021         (make_timespec): New function.
30022         * lib/dtotimespec.c (dtotimespec):
30023         * lib/timespec-add.c (timespec_add):
30024         * lib/timespec-sub.c (timespec_sub):
30025         * lib/utimens.c (validate_timespec):
30026         * lib/utimensat.c (rpl_utimensat):
30027         Use these new constants and functions.
30029         stdio: OS X port of putc_unlocked + extern inline
30030         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
30031         * doc/posix-functions/putc_unlocked.texi:
30032         * doc/posix-functions/putchar_unlocked.texi:
30033         Document this portability problem.
30035         signal: OS X port of sigaddset etc. + extern inline
30036         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
30037         (sigismember): #undef on problematic Apple platforms.
30038         * doc/posix-functions/sigaddset.texi:
30039         * doc/posix-functions/sigdelset.texi:
30040         * doc/posix-functions/sigemptyset.texi:
30041         * doc/posix-functions/sigfillset.texi:
30042         * doc/posix-functions/sigismember.texi:
30043         Document this portability problem.
30045         extern-inline: do not always suppress extern inline on OS X
30046         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
30047         extern inline on Apple only if the particular compile-time
30048         configuration is known to have the problem.
30049         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
30050         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
30051         other Gnulib modules.
30053         extern-inline: document fixes for ctype and wctype macros
30054         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30055         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
30056         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
30057         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
30058         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
30059         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
30060         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
30061         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
30062         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
30063         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
30064         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
30065         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
30066         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
30067         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
30068         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
30069         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
30070         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
30071         * doc/posix-functions/strncpy.texi:
30072         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
30073         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
30074         Document that Gnulib fixes portability problems with these
30075         functions on OS X 10.8 and earlier when called from plain inline
30076         or extern inline functions.
30078 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
30080         fflush, freadahead, fseeko: Fix for Android
30081         Suggested by Bruno Haible in:
30082         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
30083         * lib/stdio-impl.h: Use local __sfileext definition.
30085 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
30087         pmccabe2html: Portability to other awk versions.
30088         The functions systime() and strftime() are available
30089         in Gawk only.  Properly close two HTML-tags 'style'
30090         and 'span'.
30091         * build-aux/pmccabe2html (BEGIN): Store timing
30092         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
30093         systime() in HTML_COMMENT.
30094         (html_header): Correctly close tag 'style'.
30095         (END): Replace strftime() by CHRONOS_TIME.  Close
30096         tag 'span' correctly, not as 'div'.
30098 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
30100         getgroups: statement without effect
30101         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
30102         Change equality conditional to expected assignment.
30104 2013-09-09  Eric Blake  <eblake@redhat.com>
30106         glob: fix compilation
30107         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
30109 2013-09-07  Eric Blake  <eblake@redhat.com>
30111         glob: fix build for platforms without __THROW
30112         * lib/glob.in.h (__THROW): Add definition again.
30114 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
30116         regex-quote: fix buffer access out of bounds
30117         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
30118         * lib/regex-quote.c (regex_quote_spec_pcre):
30119         Fix typo that resulted in an out-of-bounds read.
30121 2013-09-04  Eric Blake  <eblake@redhat.com>
30123         glob: avoid -Wattribute warnings on glibc
30124         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
30125         __THROWNL, not __THROW, on static functions.
30126         * lib/glob.in.h (__THROW): Adjust...
30127         (__THROWNL): ...accordingly.
30129 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30131         headers: check that _GL_INLINE_HEADER_BEGIN is defined
30132         Suggested by Bruce Korb in:
30133         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
30134         * doc/extern-inline.texi (extern inline):
30135         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
30136         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
30137         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
30138         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
30139         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
30140         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
30141         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
30142         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
30143         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
30144         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
30145         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
30146         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
30147         * lib/xtime.h:
30148         Check that _GL_INLINE_HEADER_BEGIN is defined.
30150 2013-08-29  Pádraig Brady  <P@draigBrady.com>
30152         bootstrap: remove the --version requirement from ancillary tools
30153         * build-aux/bootstrap (check_exists): A new refactored function to
30154         determine if a command exists.
30155         (find_tool): Use the new function which does not require the
30156         --version option to be supported.
30157         (check_versions): Use the new function.
30159 2013-08-26  Simon Josefsson  <simon@josefsson.org>
30161         gc: support HMAC-SHA256 and HMAC-SHA512.
30162         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
30163         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
30164         functions.
30165         (gc_hmac_md5): Use symbolic constant.
30166         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
30167         (gc_hmac_sha256, gc_hmac_sha512): New functions.
30168         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
30169         * m4/sha256.m4: Protect against empty expansion.
30170         * m4/sha512.m4: Likewise.
30171         * lib/hmac-sha256.c: New file.
30172         * lib/hmac-sha512.c: Likewise.
30173         * m4/gc-hmac-sha256.m4: Likewise.
30174         * m4/gc-hmac-sha512.m4: Likewise.
30175         * m4/gc-sha256.m4: Likewise.
30176         * m4/gc-sha512.m4: Likewise.
30177         * modules/crypto/gc-hmac-sha256: Likewise.
30178         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30179         * modules/crypto/gc-hmac-sha512: Likewise.
30180         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30181         * modules/crypto/hmac-sha256: Likewise.
30182         * modules/crypto/hmac-sha256-tests: Likewise.
30183         * modules/crypto/hmac-sha512: Likewise.
30184         * modules/crypto/hmac-sha512-tests: Likewise.
30185         * tests/test-gc-hmac-sha256.c: Likewise.
30186         * tests/test-gc-hmac-sha512.c: Likewise
30187         * tests/test-hmac-sha256.c: Likewise.
30188         * tests/test-hmac-sha512.c: Likewise
30190 2013-08-24  Daiki Ueno  <ueno@gnu.org>
30192         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
30193         of AC_CHECK_DECLS.
30195 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30197         selinux-at: omit unnecessary include
30198         * lib/selinux-at.c: Don't include dosname.h; not needed, since
30199         this source file doesn't use its macros, and subsidiary files that
30200         use the macros already include it.
30202 2013-08-21  Eric Blake  <eblake@redhat.com>
30204         d-ino: avoid false negative on symlink
30205         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
30206         Reported by Stephane Chazelas.
30208 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
30210         bootstrap: port to OpenBSD sed
30211         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
30212         does not interpret `-' as a file argument to mean stdin.
30214 2013-08-15  Eric Blake  <eblake@redhat.com>
30216         warnings: minor optimization
30217         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
30219         warnings: check -Wfoo rather than -Wno-foo
30220         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
30221         -Wno-, test if the compiler recognizes the positive form instead.
30223 2013-08-15  Karl Berry  <karl@gnu.org>
30225         * config/srclist-update: add option "doclicense" to placate
30226         pulling *.texi files from Emacs.  Write terse usage
30227         documentation at the top.
30229 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
30231         xvasprintf-tests: port to GCC with hardening flags
30232         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
30233         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
30234         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
30236 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30238         fpending: port to recent Cygwin change to stdio_ext.h
30239         Reported by LRN in
30240         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
30241         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
30242         just declare __fpending unless it's a macro.
30243         A duplicate decl shouldn't hurt.
30244         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
30245         call compiles and links, instead of separately checking for
30246         decl and lib function.
30247         * modules/fpending (configure-ac):
30248         Adjust to fpending.m4's renaming of shell variable.
30250 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30252         sys_time: port to OpenBSD
30253         * lib/sys_time.in.h: Simply delegate to the system's header
30254         in the BSDish cases as well.  Problem reported by Mike Miller in
30255         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
30256         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
30257         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
30258         wider than time_t.
30260 2013-08-09  Pádraig Brady  <P@draigBrady.com>
30262         bootstrap: support checksum utils having -c but not --status
30263         * build-aux/bootstrap: Only look for sha1sum if updating po files.
30264         Add sha1 to the list of supported checksum utils since it's now
30265         supported through adjustments below.
30266         (update_po_files): Remove the use of --status
30267         in a way that will suppress all error messages, but since this is
30268         only used to minimize updates, it shouldn't cause an issue.
30269         Exit early if there is a problem updating the po file checksums.
30270         (find_tool): Remove the check for --version support as this
30271         is optional as per commit 86186b17.  Don't even check for the
30272         presence of the command as if that is needed, it's supported
30273         through configuring prerequisites in bootstrap.conf.
30274         Prompt that when a tool isn't found, one can define an environment
30275         variable to add to the hardcoded search list.
30277 2013-08-05  Jim Meyering  <meyering@fb.com>
30279         regex: port to non-glibc/lock-using systems
30280         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
30281         system with GNULIB_LOCK would fail due to absence of the
30282         included "glthread/lock.h".  This would affect any package
30283         for which the "lock" module is used only by the regex module,
30284         and not explicitly used.
30285         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
30286         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
30287         Add a dependency on the "lock" module.
30289 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30291         localecharset: make locale_charset thread-safe on Mac OS X
30292         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
30293         instead of MB_CUR_MAX.
30295 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30297         gettext: update to version 0.18.3
30298         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
30299         require AC_PROG_SED to allow user to specify custom sed command when
30300         generating en@quot PO file.
30302 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
30304         bootstrap: use correct source when copying build-aux files
30305         * build-aux/bootstrap (gnulib_extra_files): This variable is
30306         relative to upstream gnulib layout, not downstream.
30308 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
30310         tmpdir: fix bug in VMS port
30311         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
30312         See Steven M. Schweda in
30313         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
30315 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30317         tmpdir: port to VMS, to // != /, and to long dirs
30318         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
30319         __secure_getenv, so that we're more like the glibc version.
30320         All uses changed.
30321         (path_search): Don't put slash after directory if __VMS.
30322         Problem reported by Steven M. Schweda in
30323         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
30324         Simplify code to add slash; no need for a loop.
30325         Do not remove trailing slash from "//".
30326         Do not assume dlen <= INT_MAX.
30328 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30330         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
30331         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
30332         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
30333         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
30335         accept4, dup3, pipe2: port to Cygwin
30336         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
30337         * lib/accept4.c (accept4) [O_BINARY]:
30338         * lib/dup3.c (dup3) [O_BINARY]:
30339         * lib/pipe2.c (pipe2) [O_BINARY]:
30340         Use set_binary_mode, not setmode.
30341         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
30342         * modules/binary-io (Depends-on): Remove module indicator.
30343         These last two bits undo the previous change to pipe2 and binary-io.
30345 2013-07-09  Pádraig Brady  <P@draigBrady.com>
30347         mountlist: add support for deallocating returned list entries
30348         * lib/mountlist.c (free_mount_entry): A new exported function
30349         to deallocate a mount list entry.
30350         (read_file_system_list): Refactor to use the new deallocation function.
30351         Suggested by Anton Ovchinnikov.
30353 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30355         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
30356         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
30357         * lib/stdalign.in.h (_Alignas, _Alignof):
30358         Port to FreeBSD 9.1, and to C11 and C++11.
30359         (_Alignas): Also support ICC.
30360         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
30361         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
30363 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30365         fnmatch: don't goto over declaration
30366         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
30367         undefined behavior for goto over a declaration.
30368         Problem reported by Charlie Brown in
30369         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
30371         pipe2: decouple from binary-io a bit
30372         This is for Emacs, which needs pipe2 but not binary-io.
30373         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
30374         * modules/binary-io (Depends-on): Add module indicator.
30376 2013-07-03  Eric Blake  <eblake@redhat.com>
30378         mgetgroups: relax license to LGPLv2+
30379         * modules/getugroups (License): Change from GPLv3+.
30380         * modules/mgetgroups (License): Likewise.
30381         * modules/getgroups (License): Change from LGPLv3+.
30383         xalloc-oversized: relax license to LGPLv2+
30384         * modules/xalloc-oversized (License): Change from GPLv3+.
30386         nproc: relax license to LGPLv2+
30387         * modules/nproc (License): Change from LGPLv3+.
30389         bootstrap: honor --no-git
30390         * build-aux/bootstrap: Don't even try to use git when user is
30391         pointing to a static checkout.
30393 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30395         ignore-value: port to gcc -pedantic
30396         * lib/ignore-value.h (ignore_value):
30397         Port to gcc -pedantic, by using __extension__.
30398         Reindent as per usual gnulib style nowadays.
30399         Simplify GCC version check.
30401 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30403         extern-inline: port to gcc -std=c89
30404         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30405         Do not use __gnu_inline__ if pedantic and pre-C99.
30407 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
30409         doc: document extern-inline
30410         * doc/extern-inline.texi: New file.
30411         * doc/gnulib.texi (alloca-opt): Include it.
30412         * m4/extern-inline.m4: Move some comments to documentation,
30413         and others closer to what they describe.
30415         doc: chatter less
30416         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
30417         (updated-stamp): Use it.  This causes 'make' to output just
30418         one file name rather than zillions.
30420         fflush, fseeko: port to musl cross-compiles
30421         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
30422         on some implementation that (1) is not known to be buggy,
30423         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
30424         cross-compiled to so we can't easily check for lack of
30425         conformance.  This is for cross-compiling to musl.
30426         Reported by Rich Felker in
30427         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
30428         * m4/fclose.m4 (gl_FUNC_FCLOSE):
30429         * m4/fflush.m4 (gl_FUNC_FFLUSH):
30430         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
30431         Adjust to above change.
30432         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
30433         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
30434         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
30435         known not to work, or unknown.
30437 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30439         msvc-inval: port to mingw-w64
30440         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
30441         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
30442         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
30444 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
30446         getcwd-lgpl: port to Tru64
30447         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
30448         Problem reported by Steven M. Schweda in
30449         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
30451         tests: port large-fd POSIX spawn tests to OS X
30452         Problem reported by Daiki Ueno in
30453         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
30454         * tests/test-posix_spawn_file_actions_addclose.c:
30455         * tests/test-posix_spawn_file_actions_adddup2.c:
30456         * tests/test-posix_spawn_file_actions_addopen.c:
30457         Include <limits.h>, for OPEN_MAX, if available.
30458         (big_fd): New static function.
30459         (main): Use it.
30461 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
30463         tests/nap.h: use an adaptive delay to avoid ctime update issues
30464         The recent change in nap.h (5191133e) decreased the probability of lost
30465         races to about a third, however such problems could still be observed
30466         in virtual machines and openSUSE's OBS.
30467         Before, nap() detected the needed time once empirically and then used
30468         that delay (together with a small correction multiplier) in further
30469         calls.  This problem has been reported and discussed several times,
30470         including guesses about possible kernel issues:
30471         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
30472         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
30473         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
30474         http://bugs.gnu.org/12820
30475         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
30476         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
30477         Now, nap() avoids the race alltogether by verifying on a reference
30478         file whether a timestamp difference has happened.
30479         * tests/nap.h (nap_fd): Define file descriptor variable for the
30480         witness file.
30481         (nap_works): Change return value to bool.  Change passing
30482         the old file's status by value instead of by reference as this function
30483         does no longer update that timestamp; rename the function argument from
30484         st to old_st.  Remove the local variables cdiff and mdiff because that
30485         function now returns true/false instead of the precise delay.
30486         (guess_delay): Remove function.
30487         (clear_tmp_file): Add new function to close and unlink the witness file.
30488         (nap): Instead of re-using the delay which has been calculated during
30489         the first call, avoid the race by actually verifying that a timestamp
30490         difference can be observed on the current file system.  Use an adaptive
30491         approach for the delay to minimize execution time.  Assert that the
30492         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
30493         = 2^31 - 1 = 2.1s.
30494         Use atexit to call clear_tmp_file when the process terminates.
30496 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30498         sig2str: port to C++
30499         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
30500         Reported by Daniel J Sebald in
30501         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
30503 2013-05-30  Eric Blake  <eblake@redhat.com>
30505         docs: mention cygwin shortcoming in <sys/un.h>
30506         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
30508         vasnprintf: silence mingw compiler warning
30509         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
30511 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30513         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
30514         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
30515         This fixes a porting bug I recently reintroduced in regex, and
30516         some other instances that I discovered while testing the fix.
30517         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
30518         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
30519         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
30520         with an empty argument if this is a pedantic pre-C99 GCC.
30521         * lib/verify.h: Do not use _Static_assert if this is a pedantic
30522         pre-C11 GCC.
30524         regex: adapt to locking regime instead of depending on pthread
30525         Instead of depending on pthread, adapt to whatever thread
30526         modules are in use.  Problem reported by Ludovic Courtès in
30527         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
30528         and by Mats Erik Andersson in
30529         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
30530         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
30531         Support either the 'lock' module, or the 'pthread' module, or
30532         no module.
30533         (lock_lock, lock_unlock): New macros.
30534         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
30535         * modules/lock, modules/pthread (configure.ac): Add module indicator.
30536         * modules/regex (Depends-on): Remove pthread.
30538 2013-05-22  Eric Blake  <eblake@redhat.com>
30540         getgroups: document portability issues
30541         * doc/glibc-functions/initgroups.texi (initgroups): Mention
30542         multithread safety.
30543         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
30544         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
30545         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
30546         getugroups.
30547         * doc/posix-functions/getgroups.texi (getgroups): Mention
30548         multithread safety and mgetgroups.
30550 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
30552         test-lchown, test-chown: also skip test if chown fails with EPERM
30553         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
30554         skip this test, to handle FAT file systems.
30555         * tests/test-chown.h (test_chown): Likewise.
30557 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
30559         regex: fix dfa race in multithreaded uses
30560         Problem reported by Ludovic Courtès in
30561         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
30562         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
30563         New macros.  All uses of __libc_lock_define, __libc_lock_init
30564         changed to use the first two of these.
30565         (__libc_lock_lock, __libc_lock_unlock): New macros, for
30566         non-glibc platforms.
30567         (struct re_dfa_t): Define the lock unconditionally.
30568         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
30569         '#ifdef _LIBC"s.
30570         * modules/regex (Depends-on): Add pthread, if we use the
30571         included regex.
30573         * lib/regcomp.c: Do actions that are not needed for glibc,
30574         but may be needed elsewhere.
30575         (regfree, re_compile_internal): Destroy the lock.
30576         (re_compile_internal): Check for lock-initialization failure.
30578         malloca: port to compilers that reject size-zero arrays
30579         This fixes a bug introduced in my previous patch.
30580         * lib/malloca.c (struct preliminary_header): Use an int
30581         rather than a character array of size int; that's simpler.
30582         (struct header): Remove, replacing with ...
30583         (union header): New type.  This avoids the need for declaring a
30584         character array of size zero, which is not allowed on some platforms.
30585         All uses changed.
30587 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30589         parse-datetime, tests: don't use "string" + int
30590         Recent versions of 'clang' complain about C source code that
30591         uses expressions of the form '"string literal" + integer',
30592         I guess on the theory that it's confusing for readers who are
30593         used to C++.  On those grounds I suppose it's OK to make this
30594         minor style change.
30595         * lib/parse-datetime.y (parse_datetime):
30596         * tests/test-fchdir.c (main):
30597         * tests/test-snprintf-posix.h (test_function):
30598         * tests/test-snprintf.c (main):
30599         * tests/test-vasnprintf-posix.c (test_function):
30600         * tests/test-vasnprintf.c (test_function):
30601         * tests/test-vsnprintf.c (main):
30602         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
30603         Rewrite '"str" + E' to '&"str"[E]'.
30605 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
30607         argmatch: port to C++
30608         * lib/argmatch.h [__cplusplus]: Add extern "C".
30610         argp: typo fix
30611         * lib/argp-help.c: Typo in comment.
30613 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
30615         manywarnings: update for GCC 4.8.0
30616         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
30617         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
30618         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
30619         -Wmissing-noreturn, as they are duplicates of other warnings.
30620         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
30621         was documented to be flaky in earlier versions of GCC.
30623         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
30624         * tests/test-spawn.c (main):
30625         * tests/test-sys_socket.c (main):
30626         * tests/test-sys_wait.c (main):
30627         Don't have a switch value that isn't covered by a case.
30629         getaddrinfo-tests: port --enable-gcc-warnings to clang
30630         * tests/test-getaddrinfo.c (simple):
30631         Avoid casts from looser to stricter-aligned pointers.
30633         thread: port --enable-gcc-warnings to clang
30634         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
30635         Include <signal.h>, to pacify a warning about pthread_sigmask.
30637         stdio: use __REDIRECT for fwrite, fwrite_unlocked
30638         * lib/stdio.in.h (fwrite):
30639         When working around bug 11959, use __REDIRECT rather than '#define
30640         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
30641         fix the -Wunused-value issue with clang, and it works with GCC too.
30642         Problem with targeting reported by Eric Blake in
30643         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
30644         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
30645         debugging the fwrite issue.
30647         stdio: port --enable-gcc-warnings to clang
30648         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
30649         since the GCC workaround for fwrite does not pacify clang.
30651         sig2str: port --enable-gcc-warnings to clang
30652         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
30654         obstack: port --enable-gcc-warnings to clang
30655         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
30656         Avoid casts from looser to stricter-aligned pointers.
30658         memchr2: port --enable-gcc-warnings to clang
30659         * lib/memchr2.c (memchr2):
30660         Avoid casts from looser to stricter-aligned pointers.
30662         mbsstr: port --enable-gcc-warnings to clang
30663         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
30664         Avoid casts from looser to stricter-aligned pointers.
30666         malloca: port --enable-gcc-warnings to clang
30667         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
30668         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
30670         inttostr: port --enable-gcc-warnings to clang
30671         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
30673         warnings: port to clang
30674         Problem reported by Daniel P. Berrange via Eric Blake in
30675         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
30676         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
30677         (gl_WARN_ADD): Use it.
30679 2013-05-11  Jim Meyering  <meyering@fb.com>
30681         quotearg: do not read beyond end of buffer
30682         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
30683         end of an ARG for which no length was specified.  With an N-byte
30684         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
30685         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
30686         via coreutils' misc/sort-debug-keys.sh test and detected by running
30687         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
30688         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
30689         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
30690         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
30691         characters correctly."
30693 2013-05-11  Daiki Ueno  <ueno@gnu.org>
30695         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
30696         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
30697         compilation target is Mac OS X 10.6.
30698         Problem reported by parafin and Andoni Morales in
30699         <http://savannah.gnu.org/bugs/?37844> and
30700         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
30702 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30704         mkdir-p: remove assumptions about umask and mode
30705         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
30706         umask is 0, or that MODE is a subset of MODE_BITS.
30708 2013-05-10  Eric Blake  <eblake@redhat.com>
30710         maint.mk: catch more abuse of HAVE_DECL in syntax-check
30711         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
30713 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
30715         deps: require Automake >= 1.9.6 in generated Makefile fragments
30717         That is the same minimal version required in the DEPENDENCIES file.
30718         Moreover, the old code generated a requirement of Automake >= 1.5,
30719         and that is an insanely outdated version.
30721         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
30722         * tests/havelib/rpathlx/Makefile.am: Likewise.
30723         * tests/havelib/rpathly/Makefile.am: Likewise.
30724         * tests/havelib/rpathlyx/Makefile.am: Likewise.
30725         * tests/havelib/rpathlz/Makefile.am: Likewise.
30726         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
30727         * tests/havelib/rpathx/Makefile.am: Likewise.
30728         * tests/havelib/rpathy/Makefile.am: Likewise.
30729         * tests/havelib/rpathz/Makefile.am: Likewise.
30731 2013-05-08  Eric Blake  <eblake@redhat.com>
30733         bootstrap: AC_INIT may have more than four parameters
30734         * build-aux/bootstrap (extract_package_name): Correctly extract
30735         non-empty tarname field.  Avoid range in regex.
30736         Based on a report by Sami Kerola <kerolasa@iki.fi>.
30738 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
30740         qacl: port to MS-Windows port of GNU Emacs
30741         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
30742         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
30743         port of GNU Emacs.  Problem reported by Eli Zaretskii in
30744         <http://bugs.gnu.org/14295#14>.
30746 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
30748         acl: include quote.h
30749         * lib/copy-acl.c: Include quote.h.
30750         * lib/set-acl.c: Likewise.
30752 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
30754         fchownat, renameat, unlinkat: update statat dependencies
30755         These modules use statat and lstatat, not fstatat; so depend on
30756         the statat module, which was split out recently from fstatat.
30757         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
30758         * modules/renameat: Likewise.  Also delete fstat.
30759         URL: http://bugs.gentoo.org/468790
30761 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
30763         Assume gnulib is checked out from Git, not CVS
30765         In fact, access to the gnulib repository through CVS has been
30766         disabled, or more precisely, got broken and was never restored; see:
30767         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
30769         Note that support for CVS is not removed completely and unthinkingly
30770         by this change: only support for CVS checkouts of gnulib itself is
30771         removed.  For example, the 'bootstrap' script still cater to .cvsingore
30772         files and CVS directories, for the benefit of those poor gnulib clients
30773         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
30775         * gnulib-tool: Simplify accordingly.
30776         * posix-modules: Likewise.
30777         * MODULES.html.sh: Likewise.
30778         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
30779         repository.
30780         * doc/gnulib-intro.texi: Likewise.
30781         * doc/gnulib-readme.texi: Likewise.
30782         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
30783         sample '.gitignore' file rather than a sample '.cvsignore'.
30784         * NEWS: Update.
30785         * m4/extensions.m4: While at it, remove a comment mistakenly referring
30786         to "CVS Autoconf" rather than "git Autoconf".
30788 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
30790         utimensat-tests, etc.: try to fix some races
30791         Problem reported by Bernhard Voelker in
30792         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
30793         I don't know whether this patch fixes that race condition, but it
30794         fixes *some* race conditions, so it should be a win.
30795         * modules/chown-tests (Depends-on):
30796         * modules/fchownat-tests (Depends-on):
30797         * modules/fdutimensat-tests (Depends-on):
30798         * modules/futimens-tests (Depends-on):
30799         * modules/lchown-tests (Depends-on):
30800         * modules/stat-time-tests (Depends-on):
30801         * modules/utimens-tests (Depends-on):
30802         * modules/utimensat-tests (Depends-on):
30803         Depend on nanosleep, not usleep.
30804         * modules/chown-tests (test_chown_LDADD):
30805         * modules/lchown-tests (test_lchown_LDADD):
30806         * modules/stat-time-tests (test_stat_time_LDADD):
30807         New macro.
30808         * modules/fchownat-tests (test_fchownat_LDADD):
30809         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
30810         * modules/futimens-tests (test_futimens_LDADD):
30811         * modules/utimens-tests (test_utimens_LDADD):
30812         * modules/utimensat-tests (test_utimensat_LDADD):
30813         Add $(LIB_NANOSLEEP).
30814         * modules/stat-time-tests (Files): Add tests/nap.h.
30815         * tests/nap.h: Include <limits.h>, for INT_MAX.
30816         (lt_mtime): Remove.
30817         (diff_timespec): New function.
30818         (get_stat): Rename from get_mtime.  All callers changed.
30819         (nap_works): Determine the needed delay by inspecting the
30820         file system's timestamp jumps; this should be more reliable.
30821         Look at both mtime and ctime, and take the maximum of the two jumps.
30822         (nap_works, guess_delay):
30823         Return a nanosecond count, not a microsecond count.
30824         All callers changed.
30825         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
30826         failure.
30827         (nap): Multiply the guess by 1.125, to accommodate the case where
30828         the file system's clock is a bit slower than nanosleep's clock.
30829         * tests/test-stat-time.c (BASE): New macro.
30830         Include nap.h.
30831         (nap): Remove; nap.h now defines this.  This removes a duplicate
30832         implementation of 'nap'.
30834         utimens, utimensat: work around Solaris UTIME_OMIT bug
30835         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
30836         Linux kernel 2.6.32 does.  Work around it in the same way.
30837         * doc/posix-functions/futimens.texi (futimens):
30838         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
30839         * lib/utimens.c (fdutimens, lutimens):
30840         * lib/utimensat.c (rpl_utimensat): Work around the bug.
30842         gettext: now it's your responsibility to add -I$(top_builddir)/intl
30843         Formerly, it was your responsibility to do this for all Makefile.ams
30844         other than Gnulib's.  Now it's your responsibility to do it for
30845         Gnulib's Makefile.am, too.
30846         * NEWS: Document this.
30847         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
30849         acl: include errno.h to get errno
30850         Reported by Daiki Ueno in
30851         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
30852         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
30854 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
30856         tests: don't assume getdtablesize () <= 10000000
30857         * modules/cloexec-tests:
30858         * modules/dup2-tests:
30859         * modules/dup3-tests:
30860         * modules/nonblocking-tests:
30861         * modules/posix_spawn_file_actions_addclose-tests:
30862         * modules/posix_spawn_file_actions_adddup2-tests:
30863         * modules/posix_spawn_file_actions_addopen-tests:
30864         * modules/unistd-safer-tests:
30865         Depend on the getdtablesize module.
30866         * tests/test-cloexec.c:
30867         * tests/test-dup-safer.c:
30868         * tests/test-dup2.c:
30869         * tests/test-dup3.c:
30870         * tests/test-fcntl.c:
30871         * tests/test-nonblocking.c:
30872         * tests/test-posix_spawn_file_actions_addclose.c:
30873         * tests/test-posix_spawn_file_actions_adddup2.c:
30874         * tests/test-posix_spawn_file_actions_addopen.c:
30875         Don't assume getdtablesize () <= 10000000.
30877 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
30879         extern-inline: work around bug in Sun c99
30880         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
30881         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
30883 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
30885         qacl: new module, broken out from the acl module
30886         This is for GNU Emacs, which wants the acl functions but does
30887         not want 'error' invoked when they fail.
30888         * lib/acl-internal.h: Do not include error.h, quote.h.
30889         (ENOSYS, ENOTSUP): Remove; no longer needed.
30890         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
30891         * lib/acl.h: Include <stdbool.h>.
30892         (acl_errno_valid): New function.
30893         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
30894         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
30895         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
30896         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
30897         (ACL_INTERNAL_INLINE): Remove; no longer needed.
30898         * lib/file-has-acl.c (file_has_acl):
30899         * lib/qcopy-acl.c (qcopy_acl):
30900         * lib/qset-acl.c (qset_acl):
30901         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
30902         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
30903         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
30904         lib/file-has-acl.c, m4/acl.m4 to qacl module.
30905         Add lib/set-acl.c.
30906         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
30907         Add qacl.
30908         (configure.ac): Move gl_FUNC_ACL to qacl module.
30909         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
30910         Rename set-mode-acl.c to set-acl.c.
30911         * lib/acl-errno-valid.c: New file.
30912         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
30913         copy_acl function remains in copy-acl.c.
30914         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
30915         (_): Remove; not needed.
30916         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
30917         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
30918         * modules/qacl: New file, moved from the old modules/acl.
30919         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
30920         Remove set-mode-acl.c, copy-acl.c.
30921         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
30923         alignof, intprops, malloca: port better to IBM's C compiler
30924         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
30925         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
30926         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
30928 2013-04-25  Daiki Ueno  <ueno@gnu.org>
30930         wctype-h: fix gettext link error on mingw
30931         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
30932         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
30933         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
30934         rpl_towupper and rpl_towupper.
30936 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
30938         regex-tests, regex: allow glibc re_search behavior
30939         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
30940         re_search input data to make the multi-character collating element
30941         in it clearly visible, and treat re_search return code 0 as valid.
30942         * m4/regex.m4 (gl_REGEX): Likewise.
30944 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
30946         stdalign: doc fix
30947         * doc/posix-headers/stdalign.texi (stdalign.h):
30948         Gnulib doesn't support '_Alignof expr'.
30950 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
30952         stdalign: port to stricter ISO C11
30953         ISO C11 says that _Alignof's operand must be a parenthesized type.
30954         Problem reported by Eli Zaretskii in
30955         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
30956         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
30957         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
30959 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
30961         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
30962         Problem reported by Marco Atzeri in
30963         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
30964         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
30965         Simply delegate to the system <sys/select.h> in this case too.
30966         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
30967         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
30968         be needed on Solaris either.
30969         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
30970         Simply delegate to the system <sys/time.h> in this case.
30972 2013-03-19  Karl Berry  <karl@gnu.org>
30974         * build-aux/gnupload: check for erroneous (with gnupload) use of
30975         ftp-upload.gnu.org, tweak help.
30977 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30979         copy-file, rpmatch: fix problems found by cppcheck
30980         Reported by Arno Onken in
30981         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
30982         * lib/rpmatch.c (try): Fix memory leak.
30983         * lib/copy-file.c: Include "ignore-value.h".
30984         (qcopy_file_preserving): Ignore chown value.
30985         * modules/copy-file (Depends-on): Add ignore-value.
30987 2013-01-27  Jim Meyering  <jim@meyering.net>
30989         prefix-gnulib-mk: give better diagnostics
30990         * build-aux/prefix-gnulib-mk: Don't just "die".
30991         Give better diagnostics upon failure.
30993 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
30995         putenv: port to Solaris 10
30996         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
30997         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
30998         is not what is wanted here.
30999         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
31000         declaration, not for its existence.
31002 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
31004         mktime: fix configure typo
31005         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
31007 2013-03-12  Eric Blake  <eblake@redhat.com>
31009         regex-tests: skip UTF-8 test on mingw
31010         * modules/regex-tests (Depends-on): Add localcharset.
31011         * tests/test-regex.c (main): Use it to skip test on mingw.
31013 2013-03-11  Eric Blake  <eblake@redhat.com>
31015         tests: make it easier to bypass alarm time in debugger
31016         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
31017         * tests/test-memmem.c (main): Likewise.
31018         * tests/test-passfd.c (main): Likewise.
31019         * tests/test-ptsname.c (main): Likewise.
31020         * tests/test-ptsname_r.c (main): Likewise.
31021         * tests/test-strcasestr.c (main): Likewise.
31022         * tests/test-strstr.c (main): Likewise.
31024         regex: port to mingw's recent addition of undeclared alarm
31025         * doc/posix-functions/alarm.texi (alarm): Document that alarm
31026         exists but still doesn't work in newer mingw.
31027         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
31028         not existence.  Ensure SIGALRM is not trapped.
31029         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
31030         * m4/regex.m4 (gl_REGEX): Likewise.
31031         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
31032         * tests/test-regex.c (main): Use correct probe for alarm.
31034         putenv: avoid compilation warning on mingw
31035         * lib/putenv.c (_unsetenv): Protect variable declaration.
31036         (putenv): Fix indentation.
31038 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
31040         unistd: don't prevent Tru64 Unix from using gnulib strtod.
31041         * lib/unistd.in.h: be careful not to include un-needed system
31042         stdlib.h from here, because that prevents gnulib stdlib.h from
31043         defining rpl_strtod correctly.
31045 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
31047         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
31048         changesets, but for the 'precision 0' test.
31049         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31050         round-to-even, since POSIX says rounding is implementation-defined
31051         and OS X 10.8.2 rounds 1.51 to 1 here.
31053         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
31054         changeset.
31055         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31056         round-to-even, since POSIX says rounding is implementation-defined
31057         and OS X 10.8.2 rounds 1.5 to 1 here.
31059 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
31061         vasnprintf-posix-tests: allow rounding 1.5 to 1
31062         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
31063         round-to-even, since POSIX says rounding is implementation-defined
31064         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
31065         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
31067         bootstrap: port to FreeBSD
31068         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
31069         that treat '--' differently.  Reported by Mats Erik Andersson in
31070         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
31072 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
31074         regex: rename remaining __attribute calls to __attribute__.
31075         2012-02-25 changed definition of __attribute, but left some uses
31076         unchanged, preventing compilation of regex module on most non-gcc
31077         environments.
31078         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
31079         (lookup_collation_sequence_value, build_range_exp)
31080         (build_collating_symbol): Set attributes with newly renamed
31081         __attribute__ decorator.
31082         * lib/regex_internal.c (re_string_peek_byte_case)
31083         (re_node_set_compare, re_node_set_contains): Likewise.
31084         * lib/regexec.c (acquire_init_state_context): Likewise.
31086 2013-03-06  Bruno Haible  <bruno@clisp.org>
31088         execute: Revert last change, but use a different condition.
31089         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
31090         on Windows.
31092 2013-03-05  Eric Blake  <eblake@redhat.com>
31094         execute: drop dead code
31095         * lib/execute.c (nonintr_close, nonintr_open): Delete.
31097 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
31099         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
31100         * m4/non-recursive-gnulib-prefix-hack.m4
31101         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
31102         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
31103         <http://bugs.gnu.org/10305#237>.
31105 2013-03-04  Eric Blake  <eblake@redhat.com>
31107         test-getsockopt: avoid compiler warning
31108         * tests/test-getsockopt.c (includes): Ensure close is declared.
31110 2013-03-02  Bruno Haible  <bruno@clisp.org>
31112         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
31113         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
31115 2013-03-02  Bruno Haible  <bruno@clisp.org>
31117         gettext: Update to version 0.18.2.
31118         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
31119         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
31120                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
31122 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31124         regex: merge patches from libc
31126         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31127         * lib/regex_internal.h (__attribute__): Rename from __attribute.
31128         All uses changed.
31129         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
31130         (re_string_wchar_at, re_string_elem_size_at):
31131         Mark function as possibly unused.
31133         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
31134         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
31135         elements compare against the byte sequence of it, not its name.
31137 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31139         putenv: port better to native Windows
31140         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31141         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
31142         (_unsetenv): Use _putenv if available.
31143         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
31144         a bit less likely to cause damage.
31145         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31146         Fix the wrong value with SetEnvironmentVariable.
31147         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
31148         code better.
31150 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31152         regex: ignore old-style-definition warnings
31153         * lib/regex.c: Add pragma to ignore these warnings.
31154         Problem reported for GNU tar by Pavel Raiskup.
31156 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
31158         getcwd: support coreutils better
31159         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
31160         but this might not be correct in coreutils, which disables
31161         the raw decl checks.  Problem reported by Nagendra in
31162         <http://bugs.gnu.org/10305#192>.
31163         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
31164         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31165         Test the getcwd function, not any macro, since getcwd.c wants the
31166         function.
31167         * m4/getcwd.m4 (gl_FUNC_GETCWD):
31168         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
31169         compile, as might happen if there's a macro but no function.
31171         strtod: support coreutils better
31172         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
31173         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
31174         disables the raw decl checks.  This assumes there is an underlying
31175         strtod, but that's a safe assumption these days.
31176         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
31178         mountlist: port to HP NonStop
31179         Reported by Joachim Schmitz in
31180         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
31181         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
31182         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
31184 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31186         extern-inline: avoid compilation error with HP-UX cc
31187         Reported by Richard Lloyd in
31188         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
31189         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31190         Suppress extern inline with HP-UX cc.  This should be safe,
31191         though it may hurt performance.  Perhaps someone with some HP-UX
31192         experience can come up with a higher-performance fix.
31194 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
31196         putenv: fix heap corruption with mixed putenv/_putenv
31197         Problem reported by Michael Goffioul in
31198         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
31199         * lib/putenv.c (putenv) [HAVE__PUTENV]:
31200         Rely on _putenv to allocate the new environment.
31201         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
31202         * modules/putenv (configure.ac): Use it.
31204 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
31206         unsetenv etc.: port to Solaris 11 + GNU Emacs
31207         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
31208         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
31209         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
31210         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
31211         idea but is too painful to fix right now), and without this gnulib
31212         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
31213         compiling unsetenv.c on Solaris 11.  Fix the problem for
31214         unsetenv.c, and fix other similar occurrences.
31216 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
31218         secure_getenv: fix C++ declaration typo
31219         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
31220         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
31221         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
31223 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
31225         careadlinkat: stop exporting careadlinkatcwd
31226         Only Emacs used it directly, and Emacs no longer needs it.
31227         * NEWS: Document this simplification.
31228         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
31229         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
31230         for readlink.
31231         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
31232         Don't include stdlib.h; no longer needed.
31233         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
31234         * lib/relocwrapper.c: Adjust comment to match new dependencies.
31235         * modules/areadlink (Depends-on): Add readlink.
31236         (Maintainer): Add self.
31237         * modules/careadlinkat (Depends-on): Remove readlink.
31239         extensions: port better to HP-UX
31240         This is merged from git Autoconf.
31241         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31242         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
31243         so that it's compatible with the value used when compiling.
31245         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
31246         Problem reported by Mats Erik Andersson in
31247         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
31248         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31249         openpty function exists, not merely when we intend to replace it.
31250         This corrects the 2013-01-31 patch, which mistakenly defined
31251         HAVE_OPENPTY even on hosts that lacked it.
31253 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31255         secure_getenv: fix include typo
31256         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
31258         secure_getenv: port better to FreeBSD and Solaris
31259         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
31260         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
31261         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
31262         This works better on BSDish platforms.
31263         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
31264         Test for issetugid if __secure_getenv is missing.
31266 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
31268         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
31269         Some of these changes are merged in from git Autoconf.
31270         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31271         When deciding whether to define _XOPEN_SOURCE, inspect the
31272         preprocessor macro __hpux instead of the more-heavyweight
31273         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
31274         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
31275         as the key for __EXTENSIONS__.
31277         unistd: avoid namespace pollution on non-glibc systems
31278         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
31279         This avoids namespace pollution on non-glibc systems, by causing
31280         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
31281         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
31282         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
31284 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
31286         tmpdir: use secure_getenv
31287         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
31288         Define to secure_getenv, not getenv.
31289         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
31290         as that's now secure_getenv's job.
31291         * modules/tmpdir (Depends-on): Add secure_getenv.
31293         tempname: use secure_getenv
31294         * lib/tempname.c (__secure_getenv) [!_LIBC]:
31295         Define to secure_getenv, not getenv.
31296         * modules/tempname (Depends-on):
31297         Add secure_getenv.
31299         secure_getenv: new module
31300         * MODULES.html.sh (Extra functions based on ANSI C 89):
31301         Add secure_getenv.
31302         * doc/glibc-functions/secure_getenv.texi: New file.
31303         * doc/gnulib.texi: Include it.
31304         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
31305         New files.
31306         * lib/stdlib.in.h (secure_getenv): New decl.
31307         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
31308         * modules/stdlib (stdlib.h):
31309         Add secure_getenv checks.
31311 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31313         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
31314         Reported for OS X 10.8.2 by Assaf Gordon in
31315         <http://bugs.gnu.org/13516>.
31316         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
31317         !HAVE_OPENAT && !HAVE_FDOPENDIR.
31318         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
31319         so that they can be kept in sync more easily.  Avoid PATH_MAX
31320         test on the Hurd.  Sync from test-getcwd.c for errno tests after
31321         mkdir or chdir failure.
31322         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
31323         lib/getcwd.c.
31324         (test_abort_bug): Do not test for the deep directory bug unless we
31325         have openat support.  Avoid PATH_MAX test on the Hurd.
31327         regex-tests, regex: fix bug: memset undeclared
31328         * tests/test-regex.c: Don't include regex.h twice.  Include
31329         string.h, to declare memset.  Christensen's report also mentioned
31330         this issue.
31331         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
31332         test-regex.c, to avoid future problems like this.  Remove
31333         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
31334         twice.
31336         regex-tests: fix link errors on older Solaris
31337         These need to link with @LIBINTL@ to get libintl_gettext.
31338         Problem reported by Tom G. Christensen in
31339         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
31340         * modules/regex-tests (test_regex_LDADD): New macro.
31342 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
31344         regex-tests: new module
31345         * modules/regex-tests, tests/test-regex.c: New files.
31347         regex: fix off-by-one error in configure test
31348         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
31350 2013-01-31  Eric Blake  <eblake@redhat.com>
31352         regex: avoid infinite configure test
31353         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
31355 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
31357         openpty: fix bug where HAVE_OPENPTY wasn't defined
31358         See the thread starting at:
31359         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
31360         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31361         openpty function exists, not merely when we intend to replace it.
31363 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
31365         sys_time: port to Solaris 2.6
31366         There is a circularity problem on Solaris 2.6, where <time.h> includes
31367         <sys/time.h> for struct timespec.  The include nesting is gnulib
31368         <time.h>, system <time.h>, gnulib <sys/time.h>, system
31369         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
31370         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
31371         <sys/siginfo.h>; the last, innermost file needs struct
31372         timestruc_t, which is defined in <sys/time.h>, which has not been
31373         fully parsed.  Problem reported by Tom G. Christensen in
31374         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
31375         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
31376         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
31377         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
31378         uses split double-inclusion guards.
31380 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
31382         regex: test for buffer overrun
31383         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
31384         for the just-fixed regex bug.
31386 2013-01-29  Andreas Schwab  <schwab@suse.de>
31388         regex: fix buffer overrun in regexp matcher [BZ #15078]
31389         * lib/regexec.c (extend_buffers): Add parameter min_len.
31390         (check_matching): Pass minimum needed length.
31391         (clean_state_log_if_needed): Likewise.
31392         (get_subexp): Likewise.
31394 2013-01-28  Pádraig Brady  <P@draigBrady.com>
31396         mountlist: don't consider "devtmpfs" as dummy
31397         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
31398         as there is storage associcated with it.
31400 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
31402         futimens-tests, utimens-tests: Depend on gettext.
31403         This works around a problem introduced in my 2013-01-12 patch,
31404         which added @LIBINTL@ to these modules.
31405         * modules/futimens-tests (Depends-on):
31406         * modules/utimens-tests (Depends-on): Add gettext.
31408 2013-01-26  Eric Blake  <eblake@redhat.com>
31410         test-getpeername: fix typo
31411         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
31413 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
31415         bootstrap: remove the need for a sorted .gitignore file
31416         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
31417         rename to insert_if_absent(), so that we don't need or generate
31418         a sorted .gitignore file.  We do require a .gitignore with no
31419         existing duplicate entries and enforce that.
31420         (sort_patterns): Remove this function as we now use the simpler
31421         technigue of inserting blacklist entries at the top of the file,
31422         assuming gnulib won't be inserting !whitelist entries.
31424 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31426         readlinkat: don't depend on gl_FUNC_OPENAT
31427         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
31428         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
31429         renameat.m4, symlinkat.m4; but one thing at a time.
31431         statat: new module, split out from fstatat
31432         GNU Emacs needs the POSIX-specified fstatat, but not the
31433         gnulib-specified statat and lstat.  Split the latter two into a
31434         new module 'statat'.
31435         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
31436         * lib/openat.h, lib/statat.c (STATAT_INLINE):
31437         Rename from FSTATAT_INLINE. All uses changed.
31438         * modules/fstatat (Files): Remove lib/statat.c.
31439         (gl_MODULE_INDICATOR([fstatat])): Remove.
31440         (lib_SOURCES): Remove.
31441         (Maintainer): Add self.
31442         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
31443         * tests/test-fstatat.c (BASE): Don't define if already defined.
31444         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
31446 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
31448         tests: don't assume fd 99 is closed
31449         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
31450         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
31451         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
31452         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
31453         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
31454         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
31455         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
31456         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
31457         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
31458         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
31459         * tests/test-fwrite.c, tests/test-getpeername.c:
31460         * tests/test-getsockname.c, tests/test-getsockopt.c:
31461         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
31462         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
31463         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
31464         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
31465         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
31466         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
31467         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
31468         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
31469         * tests/test-unlinkat.c, tests/test-unlockpt.c:
31470         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
31471         Close file descriptor 99, instead of assuming it's already closed.
31473 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31475         stpncpy: port to OS X 10.8
31476         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
31477         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
31479 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
31481         unistd: port to recent mingw
31482         * lib/unistd.in.h: Remove special invocation convention for mingw,
31483         which breaks for the latest mingw version.  See John W. Eaton in
31484         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
31486         largefile: port better to Mac OS X 10.5
31487         This patch is backported from Autoconf git.
31488         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
31489         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
31490         with ino_t size being different for configuration time versus
31491         build/run time.  Problem reported by PHO in
31492         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
31494 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31496         doc: clarify -Werror
31497         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
31498         clarify that it's intended for developers, not for ordinary builds,
31499         and mention --enable-gcc-warnings as one possible use.
31501 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
31503         stdint: fix build with Android's Bionic fox x86
31504         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
31505         was already included as _SSIZE_T_DEFINED_ might also be defined
31506         in include/machine/_types.h, which is included by stdio.h
31508 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
31510         net_if-tests: port to Solaris 7 + GCC 3.4.6
31511         Problem reported by Tom G. Christensen in
31512         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
31513         * tests/test-net_if.c (ni): Move to next the code that uses it,
31514         so that it's declared only if needed.
31516 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
31518         net_if-tests: port to older Solaris
31519         Problem reported by Tom G. Christensen in
31520         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31521         * modules/net_if-tests (NET_IF_LIB): New substitution.
31522         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
31523         (HAVE_IF_NAMEINDEX): New C macro.
31524         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
31526         system-quote-tests: port to older Solaris
31527         Problem reported by Tom G. Christensen in
31528         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31529         * tests/test-system-quote-child.c (fopen, fread): Undef.
31531         c-xvasprintf etc.: fix link errors on older Solaris
31532         These need to link with @LIBINTL@ to get libintl_gettext.
31533         Problem reported by Tom G. Christensen in
31534         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31535         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
31536         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
31537         * modules/futimens-tests (test_futimens_LDADD):
31538         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
31540 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
31542         locale: port to Solaris 2.6 and 7 + GNU gettext
31543         * lib/locale.in.h: Just include_next <locale.h> when
31544         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
31545         when combining the localename module with GNU gettext 0.18.2.
31546         Problem reported by Tom G. Christensen in
31547         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
31549 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
31551         stdlib: port to Solaris 2.6
31552         Also, the code worked on Solaris 7 through 9 only by accident.
31553         Problem reported by Tom G. Christensen in
31554         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
31555         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
31556         simply include the system stdlib.h.
31557         * lib/getopt.in.h (__need_system_stdlib_h):
31558         * lib/pthread.in.h (__need_system_stdlib_h):
31559         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
31560         Define when including <stdlib.h>, to avoid problems at least for
31561         the pthread case on Solaris 2.6 and 7.  These .h files can get by
31562         with the system stdlib.h.
31564 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
31566         doc: update main copyright year
31567         * doc/gnulib.texi: Update copyright date.
31569         doc: improve ISO 8601 discussion
31570         * doc/parse-datetime.texi (Combined date and time of day items):
31571         Specify more carefully what formats are supported and what is
31572         done with excess precision.
31574 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
31576         doc: avoid small caps
31577         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
31578         they're more trouble than they're worth.  Suggested by Karl Berry
31579         in <http://bugs.gnu.org/13360>.
31581         regex: conform to strict C
31582         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
31583         From Aharon Robbins.
31585         gnulib-tool: fix incompatibility with autopoint 0.18.2
31586         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
31587         Problem reported by Tom G. Christensen in
31588         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
31590 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31592         fprintftime: bring back and reword fwrite comment
31593         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
31595         stdio: remove now-unnecessary stdio.c
31596         Since stdio.in.h no longer uses inline functions, we no longer
31597         need to compile the extern versions.
31598         * lib/stdio.c: Remove.
31599         * modules/stdio (Files): Remove lib/stdio.c.
31600         (lib_SOURCES): Remove.
31602         unicodeio: depend on stdio, not ignore-value
31603         * lib/unicodeio.c: Do not include ignore-value.h.
31604         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
31605         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
31607         fprintftime: depend on stdio, not ignore-value
31608         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
31609         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
31610         since the stdio module arranges to silence that warning now.
31611         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
31613 2012-10-04  Simon Josefsson  <simon@josefsson.org>
31615         stdint-tests: Fix expanded-before-required-warning.
31616         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
31618 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
31620         fwrite: silence __wur only for older glibc versions
31621         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
31622         This will help us remove this workaround some time in the far future.
31624 2013-01-03  Eric Blake  <eblake@redhat.com>
31626         fwrite: silence __wur without using inline
31627         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
31628         just gcc, and in a way that avoids inline issues.
31629         * modules/stdio (Depends-on): Drop extern-inline.
31631 2013-01-03  Jim Meyering  <jim@meyering.net>
31633         update-copyright: avoid copyright notice date corruption
31634         Given a sequence of copyright year numbers in which the final
31635         one was a two-digit number that happened to be a substring of
31636         a preceding four-digit year number, we would mistakenly update
31637         the substring (from two- to four-digit) rather than the two-digit
31638         number at the end, which, combined with the addition of the current
31639         4-digit year number would yield two 5-digit year numbers, e.g.,
31640         here, it would convert the first "99" to "1999, 2013" rather than
31641         the final one:
31642           1991, 99
31643           11999, 20131, 1999
31644         * build-aux/update-copyright: Tighten a regexp.
31645         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
31646         Reported by Joseph Myers in
31647         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
31649 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31651         regex: omit needless signed-pointer casts
31652         * lib/regcomp.c (build_charclass, build_charclass_op):
31653         Use char *, not unsigned char *, for class name and extra.
31654         The char values are always nonnegative so there's no need to
31655         insist on unsigned char * here, and using char * removes the need
31656         for casts.  Reported by Aharon Robbins in
31657         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31659         regex: support Gawk, which never uses alloca
31660         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
31661         Do not include in this case.  Gawk doesn't supply a substitute
31662         alloca.h and doesn't need one.
31664         regex: port __libc_lock_define usage to C89
31665         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
31666         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
31667         does not conform to C89, as it has an empty macro argument.
31668         Reported by Aharon Robbins in
31669         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31671 2013-01-01  Eric Blake  <eblake@redhat.com>
31673         maint: update all copyright year number ranges
31674         Run "make update-copyright".
31676         version-etc: bump copyright year reported in --version
31677         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
31679 2012-12-31  Eric Blake  <eblake@redhat.com>
31681         sigprocmask-tests: skip test if pid is unexpectedly large
31682         * tests/test-sigprocmask.c (main): Add range check.
31684         git-version-gen: avoid test -z portability glitch
31685         * build-aux/git-version-gen: Prefer portable test spelling, since
31686         git-version-gen is run on more than just developer machines.
31688 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
31690         git-version-gen: add --fallback option to use if git is not present
31691         * build-aux/git-version-gen: Add support for the new option --fallback,
31692         which comes into play when there is no $tarball_version_file and
31693         git is not working.
31694         (scriptversion): Update.
31696         maint.mk: handle missing git with more grace
31697         * top/maint.mk (no-submodule-changes, public-submodule-commit):
31698         Quietly proceed if git is not present.
31700 2012-12-31  Eric Blake  <eblake@redhat.com>
31702         dup2: work around cygwin bug
31703         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
31704         * lib/dup2.c (rpl_dup2): Work around it.
31705         * doc/posix-functions/dup2.texi (dup2): Document it.
31707 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
31709         regex: remove unnecessary dependency on localcharset.h
31710         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
31711         hasn't been needed for years.
31712         * modules/regex (Depends-on): Remove localcharset.
31714         regex: revert single-byte change
31715         * lib/regexec.c (check_node_accept_bytes): Revert previous change
31716         to this function.  This was alredy fixed in a different way, at
31717         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
31718         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
31719         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
31721         regex: simplify based on Gawk version
31722         * lib/regex_internal.c (re_dfa_add_node): Simplify.
31723         Reported by Aharon Robbins in
31724         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31726 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31728         regex: check that pattern char is single-byte
31729         Reported by Aharon Robbins in
31730         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31731         * lib/regexec.c (check_node_accept_bytes):
31732         Return 0 if the pattern string has a multibyte character here.
31734         regex: implement rational ranges
31735         Reported by Aharon Robbins in
31736         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31737         * lib/regcomp.c (build_range_exp) [!_LIBC]:
31738         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
31739         Implement rational ranges.
31741         regex: avoid redefining __wctype
31742         Reported by Aharon Robbins in
31743         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31744         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
31745         #undef before defining.
31747         regex: port to hosts where malloc (0) == NULL
31748         Reported by Aharon Robbins in
31749         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31750         * lib/regex_internal.c (re_node_set_alloc):
31751         Don't assume that malloc (0) yields nonnull.
31752         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
31753         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
31754         * modules/regex (Files): Add m4/eealloc.m4.
31756         regex: port to C89
31757         Reported by Aharon Robbins in
31758         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31759         * lib/regcomp.c (init_word_char): Declaration before statement.
31761         regex: merge glibc changes
31762         Also, copy the license wording from glibc.  This simplifies
31763         merging changes.  gnulib-tool will change the wording to GPL as
31764         appropriate, when importing it to other packages.  The only
31765         glibc change made since the last merge, which needs merging, is:
31766         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
31767         * lib/regex_internal.h (gettext): Remove use of INTUSE.
31769         * users.txt: Add Emacs.
31771         doc: omit mention of version when not needed
31772         * doc/gnulib-intro.texi (Portability and Application Code):
31773         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
31774         Don't mention particular dates or versions when not necessary, so
31775         that the documentation won't go out of date so quickly.
31777         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
31779 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
31781         bootstrap: pass --force to autoreconf.
31782         * build-aux/bootstrap (AUTORECONFFLAGS): New.
31783         Add "--force" so that Automake's ylwrap and other such tools
31784         be updated at each bootstrap invocation.
31785         Use it.
31787 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
31789         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
31790         The earlier patch forgot to update one of the #if conditions, causing
31791         a problem on Debian testing i386 reported by Mats Erik Andersson
31792         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
31793         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
31794         (__argp_fmtstream_puts, argp_fmtstream_puts)
31795         (__argp_fmtstream_write, argp_fmtstream_write)
31796         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
31798         * doc/gnulib-readme.texi: Minor fixups.
31799         (Portability guidelines): Modernize URLs.  Remove some repetition.
31800         (Indent with spaces not TABs): Reword to avoid too-long lines.
31801         Remove some '@ifset standalone' stuff that isn't used.
31803         * doc/gnulib-readme.texi (Portability guidelines):
31804         ctype.h, not ctime.h.
31806         Correct name of POSIX.1-2001.
31807         * doc/posix-functions/fgetc.texi (fgetc):
31808         * doc/posix-functions/fgets.texi (fgets):
31809         * doc/posix-functions/fread.texi (fread):
31810         * doc/posix-functions/fscanf.texi (fscanf):
31811         * doc/posix-functions/getc.texi (getc):
31812         * doc/posix-functions/getchar.texi (getchar):
31813         * doc/posix-functions/scanf.texi (scanf):
31814         POSIX.1-2001, not POSIX-2001.
31816         doc: move README into manual
31817         * README: Move contents to new file doc/gnulib-readme.texi.
31818         Replace with a one-line summary.
31819         * doc/gnulib.texi (Brief Overview): New section,
31820         with old intro preface.  Include gnulib-readme.texi for contents.
31821         (Philosophy): Rename from "Introduction", since this
31822         section no longer introduces the rest.  Write a new preface.
31823         * doc/gnulib-readme.texi: New file, with the old contents of
31824         README texinfo-ized.  This way, the README info appears
31825         in the online and printed manual.
31827 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
31829         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
31830         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
31831         c_vasprintf() prototype.
31833 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
31835         c-vasprintf: Fix "empty declaration" warning reported by GCC.
31836         * lib/c-vasprintf.h: Remove stray semicolon.
31838 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31840         gettext: avoid obsolete macro AM_PROG_MKDIR_P
31841         It is obsolete and is planned to be removed from Automake 1.14; see
31842         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
31843         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
31844         (installdirs-data, installdirs-data-yes):
31845         Use $(MKDIR_P), not $(mkdir_p).
31846         * m4/intl.m4 (AM_INTL_SUBDIR):
31847         * m4/po.m4 (AM_PO_SUBDIRS):
31848         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
31850 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
31852         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
31853         On this platform, we are not optimizing but we are using
31854         the substitute for extern inlines, so compile as if
31855         C99-style extern inline, or a substitute, is available.
31856         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
31857         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
31858         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
31859         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
31860         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
31861         Declare as ARGP_FS_EI, not as extern.
31862         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
31863         (__option_is_short, _option_is_end, __option_is_end)
31864         [!_LIBC && __USE_EXTERN_INLINES]:
31865         Declare as ARGP_EI, not as extern.
31867 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
31869         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
31870         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
31871         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
31872         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
31873         ...), as the latter is fatal with older Autoconfs.
31874         Problem reported and fix suggested by Eric Blake in thread starting at
31875         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
31877 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
31879         AC_PROG_MKDIR_P: don't workaround if not buggy
31880         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
31881         Define only for Autoconf versions before 2.62.
31882         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
31883         undocumented m4_PACKAGE_VERSION, for consistency with the
31884         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
31885         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
31886         was introduced in 2.62.
31888 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
31890         New 'c-*printf' modules for formatted output in C locale.
31892         New module 'c-vasnprintf'.
31893         * modules/c-vasnprintf: New file.
31894         * lib/c-vasnprintf.c: New file.
31895         * lib/c-vasnprintf.h: New file.
31897         New module 'c-snprintf'.
31898         * modules/c-snprintf: New file.
31899         * modules/c-snprintf-tests: New file.
31900         * lib/c-snprintf.c: New file.
31901         * lib/c-snprintf.h: New file.
31902         * tests/test-c-snprintf.c: New file.
31903         * tests/test-c-snprintf.sh: New file.
31905         New module 'c-vsnprintf'.
31906         * modules/c-vsnprintf: New file.
31907         * modules/c-vsnprintf-tests: New file.
31908         * lib/c-vsnprintf.c: New file.
31909         * lib/c-vsnprintf.h: New file.
31910         * tests/test-c-vsnprintf.c: New file.
31911         * tests/test-c-vsnprintf.sh: New file.
31913         New module 'c-vasprintf'.
31914         * modules/c-vasprintf: New file.
31915         * modules/c-vasprintf-tests: New file.
31916         * lib/c-asprintf.c: New file.
31917         * lib/c-vasprintf.c: New file.
31918         * lib/c-vasprintf.h: New file.
31919         * tests/test-c-vasprintf.c  +: New file.
31920         * tests/test-c-vasprintf.sh: New file.
31922         New module 'c-xvasprintf'.
31923         * modules/c-xvasprintf: New file.
31924         * modules/c-xvasprintf-tests: New file.
31925         * lib/c-xasprintf.c: New file.
31926         * lib/c-xvasprintf.c: New file.
31927         * lib/c-xvasprintf.h: New file.
31928         * tests/test-c-xvasprintf.c: New file.
31929         * tests/test-c-xvasprintf.sh: New file.
31931 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31933         argp: better 'inline'
31934         Use extern-inline module to declare extern inline functions.
31935         This avoids some bogus warning diagnostics.  Problem discovered
31936         when modifying GNU tar to use the manywarnings module.
31937         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
31938         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
31939         Define based on extern-inline.
31940         * modules/argp (Depends-on): Add extern-inline.
31942 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
31944         filemode, sys_stat: Handle MPX files a la AIX.
31945         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
31946         * lib/sys_stat.in.h (S_ISMPX): New macro.
31947         * tests/test-sys_stat.c: Add tests for MPX files.
31949 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31951         x-to-1: honor $PERL
31952         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
31953         a chance to use his preferred version of Perl.  This is typically
31954         required by Darwin users whose default /usr/bin/perl does not have all
31955         the libraries required by help2man, and who need to use their MacPorts
31956         installation of Perl instead.
31958 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
31960         gnu-web-doc-update: add all the new files, even in new directories
31961         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
31962         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
31963         Use it.
31964         (main): Don't use cvsutils to get the list of unknown files,
31965         just add all the existing files and directories.
31967 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
31969         gnu-web-doc-update: improve --help
31970         * build-aux/gnu-web-doc-update: Move comments into --help.
31972 2012-12-07  Eric Wong  <normalperson@yhbt.net>
31974         mountlist: recognize more "dummy" file systems
31975         * lib/mountlist.c (ME_DUMMY_0):
31976         Add these dummy FS names to the list:
31977         - "debugfs" virtual filesystem for kernel debugging
31978         - "devpts" PTY slave filesystem
31979         - "devtmpfs" device filesystem on top of tmpfs/ramfs
31980         - "fusectl" control filesystem for FUSE
31981         - "mqueue" enumerates POSIX message queues
31982         - "rpc_pipefs" kernel <-> userspace bridge for NFS
31983         - "sysfs" is for exporting kernel objects
31984         - "devfs" device filesystem for Linux 2.4 and FreeBSD
31986 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
31988         extern-inline: avoid incompatibility with Darwin Libc
31989         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
31990         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
31991         Problem reported by Akim Demaille in
31992         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
31994 2012-12-11  Simon Josefsson  <simon@josefsson.org>
31996         gnupload: Work with GnuPG using gpg-agent (for smartcards).
31997         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
31998         let it handle password prompting.
32000 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
32002         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
32003         * lib/canonicalize.c (canonicalize_filename_mode):
32004         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
32005         fetching the current directory.  Don't overrun the beginning of
32006         rpath if there's no slashes after the MS-Windows drive letter.
32008 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
32010         maint.mk: avoid extra forks
32011         * top/maint.mk (_cfg_mk): The GNU make manual documents that
32012         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
32013         So use that instead of "$(shell test -f FILE && echo FILE)".
32015 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32017         vasnprintf: fix ASCII_ONLY typo
32018         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32019         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32020         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32021         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
32022         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
32024 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32026         list, oset, xlist, xoset: fix extern inline issue with C99
32027         This was introduced by my recent changes for 'inline'.
32028         Problem reported for gettext by Daiki Ueno in
32029         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
32030         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
32031         (gl_list_nx_create, gl_list_size, gl_list_node_value)
32032         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
32033         (gl_list_previous_node, gl_list_get_at)
32034         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
32035         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
32036         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
32037         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
32038         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
32039         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
32040         (gl_list_iterator_free, gl_sortedlist_search)
32041         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
32042         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
32043         (gl_sortedlist_remove):
32044         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
32045         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
32046         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
32047         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
32048         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
32049         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
32050         (gl_list_add_at, gl_sortedlist_add):
32051         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
32052         Wrap these extern decls inside "#if 0", because they are implemented
32053         as inline functions, and extern inline is not what's wanted here.
32054         It would simplify these .h files to remove the extern decls entirely,
32055         although a downside would be less-clear separation between
32056         specification and implementation.
32058 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
32060         sys_stat: no 'static inline'
32061         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
32062         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
32064         extern-inline: no 'static inline'
32065         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
32066         Do not require AC_C_INLINE.
32067         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
32068         'static inline', for older compilers.
32070         snippet/warn-on-use: no 'static inline'
32071         * build-aux/snippet/warn-on-use.h:
32072         Remove unnecessary 'inline' in comment.
32074         rbtree-list, rbtreehash-list: no 'static inline'
32075         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
32076         * lib/gl_anytree_list2.h (node_at):
32077         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
32078         (gl_oset_first, add_nodes_to_buckets):
32079         Now static, not static inline.
32081         regex: no 'static inline'
32082         * lib/regex_internal.c (calc_state_hash):
32083         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
32084         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
32085         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
32086         Now static, not static inline.
32087         (inline) [__GNUC__ < 3 && _LIBC]:
32088         Remove macro; no longer needed.
32090         xvasprintf: no 'static inline'
32091         * lib/xvasprintf.c (xstrcat):
32092         Now static, not static inline.
32093         * m4/xvasprintf.m4 (gl_XVASPRINTF):
32094         Do not require AC_C_INLINE.
32096         parse-datetime, parse-duration: no 'static inline'
32097         * lib/parse-datetime.y (to_uchar):
32098         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
32099         (scale_n_add):
32100         Now static, not static inline.
32101         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
32102         * modules/parse-duration (configure.ac):
32103         Do not require AC_C_INLINE.
32105         getaddrinfo: no 'static inline'
32106         * lib/getaddrinfo.c (validate_family):
32107         Now static, not static inline.
32108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
32109         Do not require AC_C_INLINE.
32111         ftruncate, fts, lstat, openat, raise: no 'static inline'
32112         * lib/ftruncate.c (chsize_nothrow):
32113         * lib/fts.c (opendirat, diropen):
32114         * lib/lstat.c (orig_lstat):
32115         * lib/openat.c (orig_openat):
32116         * lib/raise.c (raise_nothrow):
32117         Now static, not static inline.
32118         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
32119         * m4/fts.m4 (gl_FUNC_FTS_CORE):
32120         * m4/lstat.m4 (gl_PREREQ_LSTAT):
32121         * m4/openat.m4 (gl_PREREQ_OPENAT):
32122         * m4/raise.m4 (gl_PREREQ_RAISE):
32123         Do not require AC_C_INLINE.
32125         fflush, stat: no 'static inline'
32126         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32127         (clear_ungetc_buffer, disable_seek_optimization)
32128         (restore_seek_optimization, update_fpos_cache):
32129         * lib/stat.c (orig_stat):
32130         Now static, not static inline.
32131         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
32132         (update_fpos_cache):
32133         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
32134         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
32135         * m4/stat.m4 (gl_PREREQ_STAT):
32136         Do not require AC_C_INLINE.
32138         error, filevercmp: no 'static inline'
32139         * lib/error.c (is_open, flush_stdout):
32140         * lib/filevercmp.c (order):
32141         Now static, not static inline.
32142         * m4/error.m4 (gl_PREREQ_ERROR):
32143         * modules/filevercmp (configure.ac):
32144         Do not require AC_C_INLINE.
32146         dup, execute, fatal-signal, etc.: no 'static inline'
32147         * lib/dup.c (dup_nothrow):
32148         * lib/execute.c (nonintr_close, nonintr_open):
32149         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
32150         * lib/fopen.c (orig_fopen):
32151         * lib/freadseek.c (freadptrinc):
32152         * lib/freopen.c (orig_freopen):
32153         * lib/fstat.c (orig_fstat, fstat_nothrow):
32154         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
32155         (get_rusage_as_via_iterator):
32156         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
32157         * lib/getdtablesize.c (_setmaxstdio_nothrow):
32158         * lib/isatty.c (_isatty_nothrow):
32159         * lib/open.c (orig_open):
32160         * lib/read.c (read_nothrow):
32161         * lib/sigprocmask.c (signal_nothrow):
32162         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
32163         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
32164         * lib/wait-process.c (unregister_slave_subprocess):
32165         * lib/write.c (write_nothrow):
32166         Now static, not static inline.
32167         * lib/spawn-pipe.c (nonintr_open): Define only if
32168         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
32169         * m4/dup.m4 (gl_PREREQ_DUP):
32170         * m4/execute.m4 (gl_EXECUTE):
32171         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
32172         * m4/fopen.m4 (gl_PREREQ_FOPEN):
32173         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
32174         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
32175         * m4/fstat.m4 (gl_PREREQ_FSTAT):
32176         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
32177         * m4/isatty.m4 (gl_PREREQ_ISATTY):
32178         * m4/open.m4 (gl_PREREQ_OPEN):
32179         * m4/read.m4 (gl_PREREQ_READ):
32180         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
32181         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
32182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
32183         * m4/wait-process.m4 (gl_WAIT_PROCESS):
32184         * m4/write.m4 (gl_PREREQ_WRITE):
32185         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
32186         Do not require AC_C_INLINE.
32188         c-strtod, memcoll, readutmp: no 'static inline'
32189         * lib/c-strtod.c (c_locale):
32190         * lib/memcoll.c (strcoll_loop):
32191         * lib/readutmp.c (desirable_utmp_entry):
32192         Now static, not static inline.
32193         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
32194         * m4/memcoll.m4 (gl_MEMCOLL):
32195         * m4/readutmp.m4 (gl_READUTMP):
32196         Do not require AC_C_INLINE.
32198         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
32199         * lib/arctwo.c (to_uchar):
32200         * lib/md4.c (set_uint32):
32201         * lib/md5.c (set_uint32):
32202         * lib/sha1.c (set_uint32):
32203         * lib/sha256.c (set_uint32):
32204         * lib/sha512.c (set_uint64):
32205         Now static, not static inline.  This is a bit simpler, and doesn't
32206         affect performance with GCC and default optimization.
32207         * m4/arctwo.m4 (gl_ARCTWO):
32208         * m4/md4.m4 (gl_MD4):
32209         * m4/md5.m4 (gl_MD5):
32210         * m4/sha1.m4 (gl_SHA1):
32211         * m4/sha256.m4 (gl_SHA256):
32212         * m4/sha512.m4 (gl_SHA512):
32213         Do not require AC_C_INLINE.
32215         cond, lock, thread: better 'inline'
32216         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
32217         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
32218         New macros.  Use them instead of static inline, for header functions.
32219         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
32220         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32221         * lib/glthread/lock.c (gl_waitqueue_init)
32222         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32223         * lib/glthread/thread.c (get_current_thread_handle):
32224         Change 'static inline' to 'inline'.
32225         * lib/glthread/cond.h, lib/glthread/thread.h:
32226         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32227         * m4/cond.m4 (gl_COND):
32228         * m4/lock.m4 (gl_PREREQ_LOCK):
32229         * m4/thread.m4 (gl_THREAD):
32230         Do not require AC_C_INLINE.
32231         * modules/cond, modules/thread (Depends-on): Add extern-inline.
32233         chdir-long, cycle-check, savewd: better 'inline'
32234         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
32235         (find_non_slash):
32236         * lib/cycle-check.c (is_zero_or_power_of_two):
32237         * lib/savewd.c (savewd_delegating):
32238         Change 'static inline' to 'inline'.
32239         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
32240         Replace all remaining uses of 'static inline' with it.
32241         * lib/savewd.h:
32242         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32243         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
32244         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
32245         * m4/savewd.m4 (gl_SAVEWD):
32246         Do not require AC_C_INLINE.
32247         * modules/savewd (Depends-on): Add extern-inline.
32249         base32, base64: no need for 'inline'
32250         * lib/base32.c (to_uchar, get_8, decode_8):
32251         * lib/base64.c (to_uchar, get_4, decode_4):
32252         Change 'static inline' to 'inline'.
32253         * m4/base32.m4 (gl_PREREQ_BASE32):
32254         * m4/base64.m4 (gl_PREREQ_BASE64):
32255         Do not require AC_C_INLINE.
32257         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
32258         * lib/gl_array_oset.c (gl_array_nx_add_at):
32259         (gl_array_remove_at):
32260         * lib/gl_linkedhash_list.c (hash_resize_after_add)
32261         (add_to_bucket, remove_from_bucket):
32262         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
32263         Change 'static inline' to 'static', as it's simpler to omit
32264         'inline' unless there's a significant performance advantage.
32266         list, oset, xlist, xoset, xsublist: simplify via extern inline
32267         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
32268         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
32269         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
32270         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
32271         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
32272         New macro.  Replace all uses of 'static inline' with it.
32273         [HAVE_INLINE]: Implement functions as *_INLINE functions,
32274         instead of as macros FOO that are defined to static inline
32275         functions FOO_inline.
32276         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
32277         * lib/gl_xsublist.c:
32278         Reimplement from scratch, by defining the corresponding *_INLINE
32279         macro and including the corresponding .h file.  This is simpler.
32280         * modules/list, modules/oset, modules/xlist, modules/xoset:
32281         (Files): Remove m4/gl_list.m4.
32282         (configure.ac): Remove gl_LIST.
32283         * m4/gl_list.m4: Remove.
32284         * modules/list, modules/oset, modules/xlist, modules/xoset:
32285         * modules/xsublist:
32286         (Depends-on): Depend on extern-inline, not inline.
32288         xalloc: better 'inline'
32289         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
32290         New macro.  Replace all uses of 'static inline' with it.
32291         (static_inline): Remove.
32292         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
32293         Let 'extern inline' do the work automatically, instead of doing
32294         it by hand.
32295         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
32296         Remove.  All uses removed.
32297         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
32299         gethrxtime: better 'inline'
32300         * lib/xtime.c: New file.
32301         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
32302         * lib/xtime.h (XTIME_INCLUDE):
32303         New macros.  Replace all uses of 'static inline' with them.
32304         * lib/gethrxtime.c (gethrxtime): Define only if
32305         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
32306         this source file is now always compiled, because of the extern inline.
32307         * lib/gethrxtime.h, lib/xtime.h:
32308         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32309         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
32310         if gethrtime works, as they're not needed in that case.
32311         (gl_XTIME): Do not require AC_C_INLINE.
32312         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
32313         compiled now.  Move the check into gl_GETHRXTIME.
32314         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
32315         (Depends-on): Add extern-inline.
32316         (configure.ac): gethrxtime is always compiled now.
32317         (lib_SOURCES): Add gethrxtime.c.
32319         wctype-h: better 'inline'
32320         * lib/wctype-h.c: New file.
32321         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
32322         New macro.  Replace all uses of 'static inline' with it.
32323         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32324         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
32325         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
32326         (Depends-on): Add extern-inline.
32328         unistd: better 'inline'
32329         * lib/unistd.c: New file.
32330         * lib/unistd.in.h (_GL_UNISTD_INLINE):
32331         New macro.  Replace all uses of 'static inline' with it.
32332         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32333         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
32334         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
32335         (Depends-on): Add extern-inline.
32337         sys_socket: better 'inline'
32338         * lib/sys_socket.c: New file.
32339         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
32340         New macro.  Replace all uses of 'static inline' with it.
32341         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32342         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
32343         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
32344         (Depends-on): Add extern-inline.
32346         stdio: better 'inline'
32347         * lib/stdio.c: New file.
32348         * lib/stdio.in.h (_GL_STDIO_INLINE):
32349         New macro.  Replace all uses of 'static inline' with it.
32350         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32351         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
32352         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
32353         (Depends-on): Add extern-inline.
32355         sigaction: better 'inline'
32356         * lib/sig-handler.c: New file.
32357         * lib/sig-handler.h (SIG_HANDLER_INLINE):
32358         New macro.  Replace all uses of 'static inline' with it.
32359         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32360         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
32361         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
32362         (Depends-on): Add extern-inline.
32364         selinux-h: better 'inline'
32365         * lib/se-context.c, lib/se-selinux.c: New files.
32366         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
32367         * lib/se-context.in.h (SE_CONTEXT_INLINE):
32368         New macro.  Replace all uses of 'static inline' with it.
32369         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32370         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
32371         New macro.  Replace all uses of 'static inline' with it.
32372         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32373         * modules/selinux-h (Files, lib_SOURCES):
32374         Add lib/se-context.c, lib/se-selinux.c.
32375         (Depends-on): Add extern-inline.
32376         (configure.ac): Do not require AC_C_INLINE.
32378         pthread: better 'inline'
32379         * lib/pthread.c: New file.
32380         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
32381         New macro.  Replace all uses of 'static inline' with it.
32382         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32383         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32384         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
32385         * modules/pthread (Files): Add lib/pthread.c.
32386         (Depends-on): Add extern-inline.
32388         math: better 'inline'
32389         * lib/math.c: New file.
32390         * lib/math.in.h (_GL_MATH_INLINE):
32391         New macro.  Replace all uses of 'static inline' with it.
32392         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32393         * m4/math_h.m4 (gl_MATH_H):
32394         Do not require AC_C_INLINE.
32395         * modules/math (Files, lib_SOURCES):
32396         Add lib/math.c.
32397         (Depends-on): Add extern-inline.
32399         count-one-bits: better 'inline'
32400         * lib/count-one-bits.c: New file.
32401         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
32402         New macro.  Replace all uses of 'static inline' with it.
32403         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32404         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
32405         Do not require AC_C_INLINE.
32406         * modules/count-one-bits (Files, lib_SOURCES):
32407         Add lib/count-one-bits.c.
32408         (Depends-on): Add extern-inline.
32410         count-leading-zeros: better 'inline'
32411         * lib/count-leading-zeros.c: New file.
32412         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
32413         New macro.  Replace all uses of 'static inline' with it.
32414         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32415         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
32416         Do not require AC_C_INLINE.
32417         * modules/count-leading-zeros (Files, lib_SOURCES):
32418         Add lib/count-leading-zeros.c.
32419         (Depends-on): Add extern-inline.
32421         bitrotate: better 'inline'
32422         * lib/bitrotate.c: New file.
32423         * lib/bitrotate.h (BITROTATE_INLINE):
32424         New macros.
32425         Replace all uses of 'static inline' with them.
32426         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32427         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
32428         (Depends-on): Add extern-inline.
32429         (configure.ac): Do not require AC_C_INLINE.
32431 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
32433         maint.mk: avoid gratuitous failure
32434         Reported by Stefano Lattarini in
32435         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
32436         * top/maint.mk (public-submodule-commit): Quote more safely.
32438 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
32440         canonicalize, canonicalize-lgpl: support MS-Windows file names
32441         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
32442         for test cases, which it'd be nice to add at some point.
32443         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
32444         * lib/canonicalize.c (canonicalize_filename_mode):
32445         * lib/canonicalize-lgpl.c (__realpath):
32446         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
32447         slash is at the beginning of the file name.  Use ISSLASH, instead
32448         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
32449         the first character with '/'.  Test for
32450         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
32451         with a drive letter.
32452         * lib/canonicalize.c (SLASHES): New macro.
32453         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
32455 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
32457         fts: introduce FTS_VERBATIM
32458         * lib/fts_.h (FTS_VERBATIM): New bit flag.
32459         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
32460         * lib/fts.c (fts_open): Honor it.
32462 2012-11-09  Pádraig Brady  <P@draigBrady.com>
32464         getlogin-tests: allow errno == ENXIO
32465         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32466         with errno == ENXIO (No controlling tty).
32467         getlogin_r-tests: Likewise. Also allow errno == ENOENT
32468         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
32469         with errno == ENOENT.  This was reported to happen in various
32470         situations on GNU/Linux.
32472 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32474         getlogin-tests: allow errno == ENOENT
32475         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32476         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
32477         when running a test in an Emacs shell buffer.
32479 2012-11-08  Jim Meyering  <jim@meyering.net>
32481         tests/nap.h: avoid warning about unused variable
32482         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
32484         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
32485         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
32486         white space before each of the special-cased file names, to avoid
32487         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
32488         in http://bugs.gnu.org/12830.
32490 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
32492         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
32493         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
32494         fails with errno == EBADF when fd is opened with O_PATH.
32495         Reported by Jim Meyering in
32496         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
32497         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
32498         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
32500 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
32502         test-utimens: speed up by taking shorter naps
32503         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
32504         New functions.
32505         (nap): Use them, to do a better job of guessing the delay.
32506         On Fedora 17 with ext4 atop md atop hard disks, this made
32507         test-utimens run 10x faster, because the test napped for
32508         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
32509         <http://bugs.gnu.org/12820#11>.
32511 2012-11-07  Jim Meyering  <jim@meyering.net>
32513         mountlist.c: fix a compilation failure
32514         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
32515         I introduced while transforming commit v0.0-7683-g613bcb6
32517 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32519         errno: port to LynxOS 178 2.2.2
32520         Problem reported by Joel Brobecker in
32521         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
32522         * doc/posix-headers/errno.texi (errno.h): Document this.
32523         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
32524         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
32525         Supply a string for EILSEQ.
32526         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
32528 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32530         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
32531         Linux kernel 2.6.39 introduced O_PATH (see
32532         <http://lwn.net/Articles/433854/>) and this is a better fallback
32533         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
32534         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
32535         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
32536         * lib/fcntl.in.h (O_ACCMODE):
32537         * tests/test-fcntl-h.c (main):
32538         Do not reject O_ACCMODE merely because it has more than the
32539         minimal number of bits, as POSIX allows extensions here.
32541 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
32543         mountlist: do not classify a bind-mounted dir entry as "dummy"
32544         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
32545         the "none"-testing clause.
32546         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
32547         exception for bind-mounted directories.
32549 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
32551         quote: provide a means to escape strings with nul characters
32552         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
32553         (quote, quote_n): Rename formal arguments for consistency with
32554         quotearg.
32556 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32558         test-raise: don't assume 199 is an invalid signal
32559         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
32561         sh-quote-tests: port to Solaris 9
32562         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
32563         Problem reported by Dagobert Michelsen in
32564         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
32566 2012-10-28  Jim Meyering  <jim@meyering.net>
32568         maint.mk: rename a new configurable variable
32569         * top/maint.mk (_gl_translatable_string_re): Rename from
32570         translation-markers: _gl_ prefix to insulate from user Makefile code,
32571         and the _re suffix to inform that it's a regular expression.
32573 2012-10-26  Eric Blake  <eblake@redhat.com>
32575         maint.mk: let packages tweak sc_po_check pattern
32576         * top/maint.mk (sc_po_check): Add translation-markers, to allow
32577         finding files with other translation markers.
32579 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32581         euidaccess: speed up 'configure' on GNU hosts
32582         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
32583         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
32584         it's needed only in this case.  Use AC_CHECK_DECLS, not
32585         AC_CHECK_DECLS_ONCE.
32586         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
32587         or AC_REQUIRE for AC_FUNC_GETGROUPS.
32589         * lib/regexec.c (re_search_internal): Fix grammar in comment.
32591 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32593         fchmodat, fchownat, fstatat: port to non-inlining compilers
32594         Problem reported for FreeBSD 9 by Jim Meyering in
32595         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
32596         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
32597         New files, which define FCHMODAT_INLINE etc.
32598         * lib/fchmodat.c (FCHMODAT_INLINE):
32599         * lib/fchownat.c (FCHOWNAT_INLINE):
32600         * lib/fstatat.c (FSTATAT_INLINE):
32601         Remove, as chmodat.c etc. now do this.
32602         * modules/fchmodat (Files): Add lib/chmodat.c.
32603         * modules/fchownat (Files): Add lib/chownat.c.
32604         * modules/fstatat (Files): Add lib/statat.c.
32606 2012-10-15  Jim Meyering  <jim@meyering.net>
32608         fchmodat.c, fchownat.c: compile-impeding typos
32609         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
32610         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
32611         Introduced in commit v0.0-7636-gd202279.
32613 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32615         fcntl-h: support GNU flags like O_IGNORE_CTTY
32616         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
32617         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
32618         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
32619         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
32620         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
32621         Define to 0 if not already defined.
32622         * tests/test-fcntl-h.c: Test these new flags.
32624 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
32626         faccessat, etc.: support AT_FDCWD-only use
32627         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
32628         this function only if its first argument is AT_FDCWD.
32629         Emacs wants faccessat for AT_EACCESS but not for any first-arg
32630         values other than AT_FDCWD, so it doesn't want all the openat
32631         machinery with fchdir etc.
32632         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
32633         * modules/fstatat, modules/mkdirat, modules/openat (Files):
32634         * modules/unlinkat (Files):
32635         Remove lib/openat-priv.h, as at-internal supplies this file.
32636         Removing this file here allows us to support programs like Emacs
32637         that avoid at-internal.
32639         faccessat: speed up 'configure' on mainstream hosts
32640         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
32641         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
32642         since it's only on unusual platforms that we need to check for
32643         'access', and it's better not to slow 'configure' down on all
32644         platforms.
32646         faccessat: port to Solaris 10
32647         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
32648         Needed on Solaris 10, which doesn't have AT_EACCESS,
32649         so we need the Gnulib fcntl.h, which defines it.
32651 2012-10-14  Pádraig Brady  <P@draigBrady.com>
32652         canonicalize: fix C89 compilation
32653         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
32654         declarations so C89 is supported.  Also remove the comment
32655         referencing memorty allocation as the suggested feature could
32656         not be implemented as suggested.
32657         Reported by Michael Goffioul.
32659 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
32661         group-member: omit unnecessary dependencies
32662         This is for Emacs, which has its own allocator and where we
32663         don't want to use xalloc.
32664         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
32665         since we no longer use xmalloc.  Do not include stdbool.h, since
32666         the changes below happen to remove the only use of bool.
32667         (GROUPBUF_SIZE): New constant.
32668         (struct group_info): Remove n_groups member.  Add groupbuf member.
32669         This lets us get the groups without using malloc, usually.
32670         (free_group_info, get_group_info): Adjust to this.
32671         (get_group_info): Return the number of groups found, or -1 on error.
32672         Use plain malloc not xmalloc, and treat its failure as if there
32673         are no groups, as the user already loses in case of error.
32674         (group_member): Simplify, based on changes to get_group_info.
32675         * modules/group-member (Depends-on): Remove dependencies on
32676         xalloc and stdbool.  Add dependency on xalloc-oversized.
32678 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
32680         gethrxtime: port to C++
32681         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
32683 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32685         ptsname: fix macro-name typo
32686         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
32688 2012-10-03  Simon Josefsson  <simon@josefsson.org>
32690         inttostr: Relax license.
32691         * modules/inttostr (License): Change from LGPL to LGPLv2+.
32693 2012-10-03  Eric Blake  <eblake@redhat.com>
32695         ptsname_r: support ptys returned by FreeBSD posix_openpt
32696         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
32697         lives in /dev/pts/.
32699 2012-10-02  Eric Blake  <eblake@redhat.com>
32701         pselect: reject invalid file descriptors
32702         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
32703         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
32704         * modules/pselect (Depends-on): Add dup2.
32705         * doc/posix-functions/pselect.texi (pselect): Document this.
32707         select: reject invalid file descriptors
32708         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
32709         * lib/select.c (rpl_select) [!win32]: Work around it.
32710         * modules/select (Depends-on): Add dup2.
32711         * doc/posix-functions/select.texi (select): Document this.
32713         select: enhance test
32714         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
32715         New functions.
32716         (test_function): Enhance test.
32717         (do_select_bad_fd): Avoid any stale errno values.
32719         ptsname: reject invalid file descriptors
32720         http://www.austingroupbugs.net/view.php?id=503
32721         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
32722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
32723         * modules/stdlib (Makefile.am): Replace witness.
32724         * lib/stdlib.in.h (ptsname): Allow for replacement.
32725         * modules/ptsname (configure.ac): Trigger replacement.
32726         * doc/posix-functions/ptsname.texi (ptsname): Document this.
32728 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
32730         hash-pjw-bare: new module
32731         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
32732         * lib/hash-pjw-bare.h: Likewise.
32733         * modules/hash-pjw-bare: New file.
32734         * MODULES.html.sh (Misc): Add it.
32736 2012-10-02  Eric Blake  <eblake@redhat.com>
32738         manywarnings: cater to more gcc infelicities
32739         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
32740         -Wuninitialized without -O.
32742 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
32744         select, poll tests: Make setsockopt invocation effective.
32745         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
32746         the bind() call.
32747         * tests/test-select.h (open_server_socket): Likewise.
32749 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32751         sockets, sys_stat: restore AC_C_INLINE
32752         This undoes the 2012-09-22 patch.
32753         * m4/sockets.m4 (gl_SOCKETS):
32754         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
32755         Restore AC_C_INLINE, since MSVC requires __inline or _inline
32756         and does not support plain 'inline'.  Reported by Bruno Haible in
32757         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
32759 2012-09-30  Bruno Haible  <bruno@clisp.org>
32761         localeconv tests: Avoid test failure on OpenIndiana.
32762         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
32763         skip the 'grouping' and 'mon_grouping' tests.
32764         Reported by Jim Meyering.
32766 2012-09-30  Bruno Haible  <bruno@clisp.org>
32768         havelib: Follow libtool developments.
32769         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
32770         Suggested by Simon Josefsson.
32772 2012-09-29  Jim Meyering  <meyering@redhat.com>
32774         fstatat.c: fix a compile-impeding typo
32775         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
32776         Introduced in commit v0.0-7636-gd202279.
32777         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
32779 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
32781         extern-inline: provide a -Wundef safe config.h
32782         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
32783         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
32784         to produce a -Wundef warning free config.h.
32786 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
32788         hash-pjw: relax license to LGPLv2+
32789         * modules/hash-pjw (License): Relax, with consent of author.
32791 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
32793         maint.mk: fix strict vs. lazy variable issues with RELEASE
32794         * top/maint.mk (_equal): New function.
32795         (member_check): Strip the result to avoid spurious spaces.
32796         (url_dir_list): Do not use ifeq, which is strict, as it will
32797         require RELEASE_TYPE to be defined.
32798         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
32799         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
32800         (announcement_Cc_alpha,announcement_mail_headers_alpha)
32801         (announcement_Cc_beta,announcement_mail_headers_beta)
32802         (announcement_Cc_stable,announcement_mail_headers_stable): these.
32803         (release): Do not depend on $(release-type), as it forces its
32804         evaluation.  Bounce to it.
32806 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
32808         maint.mk: formatting changes
32809         * top/maint.mk: Indent bodies of if's.
32811 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
32813         maint.mk: factor the validation of RELEASE_TYPE
32814         With help from Jim Meyering.
32815         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
32816         * top/maint.mk (_empty, _sp): Move their definition earlier.
32817         (member-check, release-type): New.
32818         Use the latter instead of $(RELEASE_TYPE).
32819         Remove now useless local checks.
32821 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
32823         maint.mk: provide "make upload" to ease uploading
32824         See
32825         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
32826         Do not depend simply on the current $(VERSION), as there may have been
32827         new commits since the tarball generation.  Rather, rely on $(RELEASE),
32828         as "make release-commit" already does.
32830         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
32831         "make TYPE".
32833         * top/maint.mk (upload_command, upload, release): New.
32834         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
32835         (VERSION): first word of $(RELEASE) is always right.
32836         (emit_upload_commands): Adjust.
32837         * top/README-release: Update.
32839 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
32841         maint.mk: silent rules
32842         With help from Stefano Lattarini.
32843         * top/maint.mk (writable-files): Use $(AM_V_GEN).
32844         (announcement): Use $(AM_V_at).
32846 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
32848         localename: port gl_locale_name_thread_unsafe to FreeBSD
32849         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
32850         and use the simpler FreeBSD implementation on Mac OS X as well.
32851         Original idea suggested by Ed Maste in
32852         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
32854 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
32856         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
32857         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
32858         * lib/mbuiter.c, lib/xsize.c: New files.
32859         * lib/binary-io.h (BINARY_IO_INLINE):
32860         * lib/eealloc.h (EEALLOC_INLINE):
32861         * lib/mbfile.h (MBFILE_INLINE):
32862         * lib/mbiter.h (MBITER_INLINE):
32863         * lib/mbuiter.h (MBUITER_INLINE):
32864         * lib/xsize.h (XSIZE_INLINE):
32865         New macros.
32866         Replace all uses of 'static inline' with them.
32867         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32868         * m4/eealloc.m4 (gl_EEALLOC):
32869         * m4/mbfile.m4 (gl_MBFILE):
32870         * m4/mbiter.m4 (gl_MBITER):
32871         * m4/xsize.m4 (gl_XSIZE):
32872         Do not require AC_C_INLINE.
32873         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
32874         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
32875         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
32876         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
32877         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
32878         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
32879         * modules/binary-io, modules/eealloc, modules/mbfile:
32880         * modules/mbiter, modules/mbuiter:
32881         (Depends-on): Add extern-inline.
32883         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
32884         * lib/pipe-filter-aux.c: New file.
32885         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
32886         Replace all uses of 'static inline' with it.
32887         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32888         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
32889         (filter_retcode): No real need for inline here.
32890         * modules/pipe-filter-gi, modules/pipe-filter-ii:
32891         (Files): Add lib/pipe-filter-aux.c.
32892         (Depends-on): Add extern-inline.
32893         (configure.ac): Do not require AC_C_INLINE.
32894         (lib_SOURCES): Add pipe-filter-aux.c.
32896         fdutimensat: omit unnecessary AC_C_INLINE
32897         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
32899         fchmodat, fchownat, fstatat: use extern-inline
32900         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
32901         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
32902         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
32903         New macros.
32904         * lib/openat.h:
32905         Replace all uses of 'static inline' with them.
32906         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32907         * modules/fchmodat, modules/fchownat, modules/fstatat:
32908         * modules/openat-h:
32909         (Depends-on):
32910         Add extern-inline.
32911         (configure.ac): Remove AC_C_INLINE.
32913         acl, mbchar, priv-set: use extern-inline
32914         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
32915         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
32916         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
32917         New macros.
32918         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
32919         Replace all uses of 'static inline' with it.
32920         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32921         * m4/acl.m4 (gl_FUNC_ACL):
32922         * m4/mbchar.m4 (gl_MBCHAR):
32923         * m4/priv-set.m4 (gl_PRIV_SET):
32924         Remove AC_C_INLINE, since 'inline' is no longer used directly.
32925         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
32926         Add extern-inline.
32928         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
32929         * m4/sockets.m4 (gl_SOCKETS):
32930         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
32931         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
32932         environments where it's already guaranteed to work, so we needn't
32933         check for it at 'configure'-time.
32935         tls-tests: omit unnecessary 'inline'
32936         * tests/test-tls.c (perhaps_yield): No longer inline.
32937         Simplicity and portability trump efficiency in test cases.
32939         utimens-tests: avoid unnecessary 'inline'
32940         * modules/fdutimensat-tests (configure.ac):
32941         * modules/futimens-tests (configure.ac):
32942         * modules/utimens-tests (configure.ac):
32943         * modules/utimensat-tests (configure.ac):
32944         Remove AC_C_INLINE.
32945         * tests/test-utimens-common.h (ctime_compare):
32946         No longer inline.  Simplicity and portability trump efficiency here.
32948         misc: don't limit commentary to inline functions
32949         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
32950         * lib/xalloc-oversized.h, lib/xsize.h:
32951         Contrast macros to functions in general, not just to inline functions,
32952         when the commentary does not apply only to inline functions.
32954 2012-09-20  Jim Meyering  <meyering@redhat.com>
32956         non-recursive-gnulib-prefix-hack: new module
32957         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
32958         the file that originated in Bison.
32959         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
32960         largely copied from a snippet that resided in bison's configure.ac.
32961         * modules/non-recursive-gnulib-prefix-hack: New file.
32962         * MODULES.html.sh (Support for maintaining and releasing projects):
32963         Add it.
32965 2012-09-18  Jim Meyering  <meyering@redhat.com>
32967         maint.mk: generalize _gl_tight_scope for non-recursive make
32968         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
32969         that *.h would describe additional .h files in the directory
32970         specified by $(_gl_TS_dir).  I.e., add this...
32971         (_gl_TS_other_headers): New variable.
32973         maint.mk: exempt trailing blanks found in "binary" files
32974         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
32975         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
32976         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
32978 2012-09-17  Jim Meyering  <meyering@redhat.com>
32980         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
32981         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
32982         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
32983         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
32985 2012-09-17  Jim Meyering  <meyering@redhat.com>
32987         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
32988         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
32989         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
32990         It is not in the same category as "exit (0)" or "exit (1)", and
32991         besides, I know of no symbolic name for that 77.  Reported by
32992         Richard W.M. Jones in
32993         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
32995 2012-09-17  Jim Meyering  <meyering@redhat.com>
32997         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
32998         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
32999         all uses of #define, not just those that start in column 1.
33000         Richard W.M. Jones reported a false positive in
33001         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33003 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33005         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
33006         * lib/localcharset.c (locale_charset) [DARWIN7]:
33007         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
33008         as these two values are incompatible.  Problem reported by Max Horn.
33009         For more discussion, please see
33010         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
33012         doc: document sticky-EOF issue
33013         * doc/posix-functions/fgetc.texi (fgetc):
33014         * doc/posix-functions/fgets.texi (fgets):
33015         * doc/posix-functions/fread.texi (fread):
33016         * doc/posix-functions/fscanf.texi (fscanf):
33017         * doc/posix-functions/getc.texi (getc):
33018         * doc/posix-functions/getchar.texi (getchar):
33019         * doc/posix-functions/scanf.texi (scanf):
33020         Mention that glibc and default Solaris do not conform to
33021         C99 and POSIX-2001 or later, with respect to how getchar
33022         etc. behave when feof reports nonzero.
33024 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33026         poll: fix poll(0, NULL, msec)
33027         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
33028         but nfd is 0.  In that case poll should behave like select.
33030 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33031             Paolo Bonzini  <bonzini@gnu.org>
33033         poll: fix for systems that can't recv() on a non-socket
33034         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
33035         is readable.  In this case POLLHUP will not be supported.
33036         * doc/posix-functions/poll.texi: Document this.
33038 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
33040         poll/select: document portability problems not fixed by Gnulib.
33041         * doc/posix-functions/poll.texi: poll does not work well on
33042         pipes under Windows.  It has the same limitations as select on
33043         BeOS.
33044         * doc/posix-functions/select.texi: select does not work well
33045         on pipes under Windows.
33047 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
33049         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
33050         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
33051         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
33052         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
33054 2012-09-06  Eric Blake  <eblake@redhat.com>
33056         net_if: give more details about the bug being fixed
33057         * doc/posix-headers/net_if.texi: Add clarification.
33059 2012-09-05  Eric Blake  <eblake@redhat.com>
33061         net_if: new module
33062         * modules/net_if: New module, borrowing ideas from netinet_in.
33063         * m4/net_if_h.m4: New file.
33064         * lib/net_if.in.h: Likewise.
33065         * doc/posix-headers/net_if.texi (net/if.h): Document it.
33066         * MODULES.html.sh (lacking POSIX:2008): Likewise.
33067         * tests/test-net_if.c: Make function checks conditional.
33068         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
33070 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33072         readutmp: fix non-portable UT_PID use
33073         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
33074         Use `UT_PID (u) > 0' as absolute condition.
33076 2012-09-04  Jim Meyering  <meyering@redhat.com>
33078         fts: reduce two or more trailing spaces to just one, usually
33079         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
33080         or more slashes, trim all but the final one.  But if a name consists
33081         solely of two slashes, don't modify it.  If it consists solely of
33082         three or more slashes, strip all but one.
33084         This is part of the solution to a minor problem with rm:
33085         it would print a bogus ELOOP diagnostic when failing to remove
33086         the slash-decorated name of a symlink-to-directory:
33088             $ mkdir d && ln -s d s && env rm -r s/
33089             rm: cannot remove 's': Too many levels of symbolic links
33091         With the change below and a trivial don't-trim-trailing-slashes
33092         adjustment to remove.c, it does this:
33094             $ env rm -r s/
33095             rm: cannot remove 's/': Not a directory
33097         Improved by: Eric Blake
33099         fts: when there is no risk of overlap, use memcpy, not memmove
33100         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
33102 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33104         stdbool: be more compatible with mixed C/C++ compiles
33105         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
33106         Define to bool, true, false, respectively, as GCC's builtin
33107         stdbool.h does.  Problem reported by Michael Goffioul in
33108         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
33110 2012-08-28  Jim Meyering  <meyering@redhat.com>
33112         revert last change: it was not needed
33113         * tests/test-vc-list-files-git.sh: There's already a test for
33114         a working git, just below.
33116 2012-08-28  Jim Meyering  <meyering@redhat.com>
33118         tests: test-vc-list-files-git.sh: skip if git is not available
33119         * tests/test-vc-list-files-git.sh: Skip this test when git is
33120         not available.
33122 2012-08-26  Bruno Haible  <bruno@clisp.org>
33124         gnulib-tool: Remove no-op option --no-changelog.
33125         * gnulib-tool (func_usage): Don't mention --no-changelog.
33126         (do_changelog): Remove variable.
33127         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33129 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33131         doc: remove fdl-1.2.texi
33132         It is no longer used or maintained, and its use of @acronym
33133         is problematic.  See the thread containing
33134         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
33135         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
33136         * doc/old-licenses/fdl-1.2.texi: Remove.
33138         execinfo: port to FreeBSD
33139         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
33140         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
33141         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
33142         * modules/execinfo (Link): Add $(LIB_EXECINFO).
33144 2012-08-23  Jim Meyering  <meyering@redhat.com>
33146         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
33147         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
33148         to placate gcc's -Wold-style-declaration.
33150 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33152         doc: do not use @acronym
33153         * doc/inet_ntoa.texi (inet_ntoa):
33154         * doc/parse-datetime.texi (Seconds since the Epoch)
33155         (Specifying time zone rules):
33156         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
33157         Don't use @acronym.  Problem reported by John Darlington in
33158         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
33160 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33162         stdnoreturn: port to newer GCCs
33163         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
33164         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
33165         Problem reported by Jim Meyering in
33166         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
33167         Also, rename the 'test' function to a void a clash with the
33168         already-supplied 'main' function; this fixes a bug that incorrectly
33169         rejected GCC 4.7.1's <stdnoreturn.h>.
33170         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
33171         Document GCC problem.
33173 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
33175         pipe-filter: fix comment typo
33176         * lib/pipe-filter.h: Mention correct function.
33178 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33180         execinfo: new module
33181         This is for Emacs.  Currently, it provides a no-effect stub
33182         on all platforms where it does not already work.
33183         It already works on glibc-based systems, and on Solaris 11.
33184         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
33185         New files.
33186         * doc/glibc-headers/execinfo.texi (execinfo.h):
33187         * MODULES.html.sh (Misc): Document it.
33189 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33191         extern-inline: support old GCC 'inline'
33192         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
33193         if available.  This applies to GCC versions 2.7 through 4.2, or
33194         when newer GCC is using -fgnu89-inline.  The goal is to address
33195         some of the performance issues mentioned by Bruno Haible in
33196         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
33198 2012-08-20  Eric Blake  <eblake@redhat.com>
33200         maint.mk: avoid redundant file name in message
33201         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
33202         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
33203         (sc_makefile_path_separator_check): Remove bogus $(ME).
33205 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
33207         timer-time: fix link order when static linking on glibc
33208         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
33209         _after_ -lrt so that it's significant.
33211 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33213         timespec: omit unnecessary AC_C_INLINE
33214         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
33216         stat-time: omit unnecessary AC_C_INLINE
33217         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
33218         Do not require AC_C_INLINE.
33220         ignore-value: omit unnecessary AC_C_INLINE
33221         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
33223         sys_select: avoid 'static inline'
33224         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
33226         mktime: avoid 'static inline'
33227         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
33228         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
33230 2012-08-19  Bruno Haible  <bruno@clisp.org>
33232         gnulib-tool: Improve coding style.
33233         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
33234         func_emit_lib_Makefile_am.
33235         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33237 2012-08-19  Bruno Haible  <bruno@clisp.org>
33239         gnulib-tool: Fix indentation.
33240         * gnulib-tool (func_import): Fix indentation.
33242 2012-08-19  Bruno Haible  <bruno@clisp.org>
33244         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
33245         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
33246         on the list of removed files.
33248 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33250         test-parse-datetime: avoid glibc leap-second glitch
33251         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
33252         with the 2012 rules.  Problem reported by Bruce Dubbs in
33253         <http://bugs.gnu.org/12206>.
33255 2012-08-14  Bruno Haible  <bruno@clisp.org>
33257         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
33258         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
33259         from argument.
33260         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33262 2012-08-14  Eric Blake  <eblake@redhat.com>
33264         ldexp: relax license
33265         * modules/ldexp (License): Trivial relax, since the module only
33266         provides a permissively licensed m4 file.
33268 2012-08-13  Bruno Haible  <bruno@clisp.org>
33270         gnulib-tool: Fix persistence of --witness-c-macro option.
33271         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
33272         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33274 2012-08-11  Eric Blake  <eblake@redhat.com>
33276         count-leading-zeros: use a lookup table on non-gcc compilers
33277         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
33278         alternate implementation, suggested by Jim Meyering.
33280 2012-08-10  Eric Blake  <eblake@redhat.com>
33282         count-leading-zeros: new module
33283         * modules/count-leading-zeros: New module.
33284         * m4/count-leading-zeros.m4: New file.
33285         * lib/count-leading-zeros.h: Likewise.
33286         * modules/count-leading-zeros-tests: New test.
33287         * tests/test-count-leading-zeros.c: New file.
33288         * MODULES.html.sh (Integer arithmetic functions): Document it.
33290 2012-08-07  Simon Josefsson  <simon@josefsson.org>
33291             Jim Meyering  <meyering@redhat.com>
33293         maintainer-makefile: Fix syntax error with dash.
33294         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
33295         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
33297 2012-08-05  Jim Meyering  <meyering@redhat.com>
33299         extern-inline: also ignore -Wmissing-declarations
33300         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
33301         required with gcc-4.8.0-to-be.
33303         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
33304         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
33305         for /error ?([^,]*)/.  This avoids false-positives for strings like
33306         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
33308 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
33310         gnumakefile: better interaction with Automake-NG
33311         * modules/gnumakefile [Makefile.am]: The makefiles generated by
33312         Automake-NG always contain a definition of VPATH, even in non-VPATH
33313         builds (its value being simply '.' in that case).  So, in the
33314         'clean-GNUmakefile' rule, to determine whether running under a
33315         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
33316         '$(VPATH)' expands to the empty string.
33318 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
33320         base64: Use extern C scope in header file, for C++.
33321         * lib/base64.h: Add C++ namespace protection.
33323 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
33325         stat-time, timespec, u64: support naive out-of-dir builds
33326         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
33327         Use '#include "foo.h"', not '#include <foo.h>', when including
33328         one's own interface.  This works better when configuring with
33329         out-of-directory builds, since packages need not add an
33330         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
33332 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
33334         utimens: use extern-inline
33335         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
33336         * lib/utimens.h: Add copyright notice, since this is now large enough
33337         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33338         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
33339         * modules/utimens (Depends-on): Add extern-inline.
33341         u64: use extern-inline
33342         * lib/u64.c: New file.
33343         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33344         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
33345         * modules/u64 (Files): Add lib/u64.c.
33346         (Depends-on): Add extern-inline.
33347         (configure.ac): No need to require AC_C_INLINE, since extern-inline
33348         does that now.
33349         (lib_SOURCES): Add u64.c.
33351         timespec: use extern-inline
33352         * lib/timespec.c: New file.
33353         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33354         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
33355         * modules/timespec (Files): Add lib/timespec.c.
33356         (Depends-on): Add extern-inline.
33357         (lib_SOURCES): Add timespec.c.
33359         stat-time: use extern-inline
33360         * lib/stat-time.c: New file.
33361         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33362         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
33363         * modules/stat-time (Files): Add lib/stat-time.c.
33364         (Depends-on): Add extern-inline.
33365         (lib_SOURCES): Add stat-time.c.
33367         extern-inline: new module
33368         * modules/extern-inline, m4/extern-inline.m4: New files.
33369         This is for better support of 'extern inline' a la ISO C99,
33370         with a portable alternative on compilers that do not support
33371         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
33372         of the Emacs executable, when compiled with debugging disabled,
33373         which is a typical way that Emacs is built while developing.
33375 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
33377         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
33378         * build-aux/do-release-commit-and-tag: Move variable definitions
33379         together.
33380         ($branch): Instead of defaulting to "master", default to the current
33381         branch (as gnu-web-doc-update does).
33382         (help): Display the current values of the option arguments.
33383         * top/maint.mk (release-commit): New.
33384         * top/README-release: Simplify the corresponding step.
33386 2012-07-30  Eric Blake  <eblake@redhat.com>
33388         passfd: fix comment on recvfd
33389         * lib/passfd.c (recvfd): Fix comment.
33390         Reported by Jann Horn <jannhorn@googlemail.com>.
33392 2012-07-30  Jim Meyering  <meyering@redhat.com>
33394         maint.mk: avoid a sub-shell
33395         * top/maint.mk (release-prep): Remove unneeded sub-shell.
33397 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33399         maint.mk: use silent-rules support from Automake
33400         * top/maint.mk (news-check, vc-diff-check, announcement)
33401         (no-submodule-changes, alpha beta stable, release-prep)
33402         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
33404 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33406         maint.mk: provide a web-manual-update target
33407         * top/maint.mk: here.
33408         * top/README-release: Use it to simplify the web manual update step.
33410 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33412         README-release: shorten the circuit to post a news
33413         * top/README-release: Point directly to the news submission form.
33415 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33417         gnu-web-doc-update: fix --help
33418         * build-aux/gnu-web-doc-update: The information "top level" was written
33419         twice.
33421 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33423         maint.mk: absolute VPATH issue
33424         * top/maint.mk (release-prep): Help Git find .git/.
33425         From Jim Meyering.
33427 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33429         gitlog-to-changelog: fix previous change
33430         * build-aux/gitlog-to-changelog: Fix condition.
33431         Add missing ";".
33433 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33435         gitlog-to-changelog: don't expect .git to be in $srcdir
33436         Reported by Bruno Haible.
33437         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
33438         * build-aux/gitlog-to-changelog (&git_dir_option): New.
33439         Use it.
33441 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33443         maint.mk: absolute VPATH build fix
33444         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
33445         $(srcdir) is not a parent of $(builddir).
33447 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
33449         clean-temp: Fix memory leak.
33450         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
33451         'files' members of tmpdir.
33453 2012-07-27  Jim Meyering  <meyering@redhat.com>
33455         maint.mk: new rule: refresh-gnulib-patches
33456         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
33457         Use this rule to refresh them.
33458         * top/maint.mk (refresh-gnulib-patches): New rule.
33460 2012-07-24  Bruno Haible  <bruno@clisp.org>
33462         gnulib-tool: Fix handling of inctests variable.
33463         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
33464         Reported by Nick Bowler <nbowler@elliptictech.com>.
33466 2012-07-22  Bruno Haible  <bruno@clisp.org>
33468         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
33469         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
33470         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
33471         Remove exemption for getpass.h.
33472         Suggested by Eric Blake.
33474 2012-07-20  Eric Blake  <eblake@redhat.com>
33476         verify: document conflict with -Wnested-externs
33477         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
33479         maint.mk: forbid exit(-1)
33480         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
33482 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
33484         fsusage: port back to Solaris
33485         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
33486         error (fsd not declared) on Solaris 10.  Reported privately by
33487         Andrew Borodin.
33489 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
33491         gnu-web-doc-update: fix error messages
33492         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
33494         gnu-web-doc-update: check the requirements.
33495         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
33496         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
33497         * build-aux/bootstrap (find_tool): Comment change.
33499 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
33501         maint.mk: minor simplication.
33502         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
33503         for default values.
33505 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
33507         gitlog-to-changelog: VPATH build issues
33508         If builddir is not a subdirectory of srcdir, running git from it will
33509         fail.
33510         * build-aux/gitlog-to-changelog (--srcdir): New option.
33512 2012-07-15  Bruno Haible  <bruno@clisp.org>
33514         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
33515         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
33516         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
33517         Remove exemption for fpending.h.
33518         Suggested by Eric Blake.
33520 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
33522         pthread_sigmask: fix bug on FreeBSD 9
33523         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
33524         Include string.h.
33525         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
33526         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
33527         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
33528         but pthread_sigmask (1729, NULL, NULL) returns zero.
33529         See <http://bugs.gnu.org/11884>.
33530         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
33531         by inspecting whether the main call changed the old mask.
33533 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
33535         README-release: make it more legible
33536         * top/README-release: Improve typography slightly.
33538 2012-07-15  Jim Meyering  <meyering@redhat.com>
33540         maint: require that each sc_... command start with "@"
33541         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
33542         "make sc_maint" helps us avoid this nit.
33544 2012-07-15  Jim Meyering  <meyering@redhat.com>
33546         maint.mk: add leading "@" to quiet new "make syntax-check" rule
33547         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
33549 2012-07-13  Eric Blake  <eblake@redhat.com>
33551         maint.mk: new syntax check for HAVE_DECL checks
33552         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
33553         * cfg.mk
33554         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
33555         Exempt some false positives.
33556         Based on a report by Karel Zak.
33558         argp: make HAVE_DECL usage consistent
33559         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
33560         macros, not whether they are defined.
33561         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
33562         convention with other declaration checks.
33563         Reported by Karel Zak, with suggestions from Paul Eggert.
33565         stat-time: relax license to LGPLv2+
33566         * modules/stat-time (License): Relax, with consent of all authors.
33568         strndup: fix m4 usage error
33569         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
33570         defined, to either 0 or 1.
33571         Reported by Karel Zak.
33573 2012-07-11  Jim Meyering  <meyering@redhat.com>
33575         maint: enable the sc_avoid_if_before_free syntax-check rule
33576         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
33577         (if_before_free_offenders_): Define.
33578         (if_before_free_basename_re_): Define.
33579         Exempt current files with useless if-before-free.
33581 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
33583         gettext: do not assume '#define ... defined ...' behavior
33584         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
33585         Do not use '#define FOO ... defined BAR ...', as the C standard says
33586         it's not portable to expect that this works after macro expansion.
33587         Problem reported for gzip by Steven M. Schweda in
33588         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
33590 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
33592         getloadavg: clean out old Emacs and Autoconf cruft
33593         See Glenn Morris in <http://bugs.gnu.org/11905>.
33594         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
33595         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
33596         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
33597         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
33599 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
33601         bootstrap: let warn be like tests/init.sh's warn_
33602         Reported by Jim Meyering.
33603         * build-aux/bootstrap (warn): Remove, replaced by...
33604         (warnf_, warn_): these.
33605         Adjust callers.
33606         Shorten messages that no longer fit in 80 columns.
33608 2012-07-09  Bruno Haible  <bruno@clisp.org>
33610         getopt: Simplify after Emacs changed.
33611         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
33612         (gl_GETOPT_IFELSE): Remove macro.
33614 2012-07-09  Jim Meyering  <meyering@redhat.com>
33616         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
33617         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
33619         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
33620         Bugs in both of those conspired to make the
33621         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
33622         _sc_search_regexp's handling of non-empty $in_files would filter
33623         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
33624         choice of in_files value meant there would be no match in most
33625         projects, due to the presence of two or more Makefile.in files.
33626         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
33627         Fix a bug in how a non-empty $$in_files was processed:
33628         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
33629         in spite of the name, it's a regexp, not a list of file names.
33631 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33633         getloadavg, getopt: fix commentary re configure.in
33634         Autoconf is deprecating the name 'configure.in', so change it to
33635         to the new name 'configure.ac' in a couple of places.
33636         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
33637         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
33638         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
33639         Emacs has renamed it to configure.ac, and it no longer refers
33640         to these macros anyway.
33642         timespec: mark functions with const attributes
33643         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
33644         Mark with _GL_ATTRIBUTE_CONST.
33646 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
33648         canonicalize[-lgpl]: handle "guessing" values when cross-building
33649         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33650         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
33651         matches "*yes" instead of just "yes".  Regression introduced in commit
33652         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
33654 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
33655             Bruno Haible  <bruno@clisp.org>
33657         canonicalize: make the right guess when cross-compiling to GNU
33658         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
33659         determine whether cross-compiling to glibc systems, so as to
33660         include GNU/Hurd.
33662 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33664         timespec-sub: avoid duplicate include
33665         * lib/timespec-sub.c: Do not include <config.h> twice.
33666         Reported by Juanma Barranquero.
33668 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
33670         bootstrap: use a more consistent error reporting scheme
33671         * build-aux/bootstrap (warn, die): New.
33672         Use them.
33674 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33676         sys_time: allow too-wide tv_sec
33677         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
33678         timeval even if tv_sec is wider than time_t.  This allows
33679         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
33680         as without this patch gnulib replaces struct timeval
33681         and OpenBSD futimes therefore has a type mismatch.
33682         * doc/posix-headers/sys_time.texi: Mention this.
33684         pthread: check for both pthread_create and pthread_join
33685         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
33686         alter the check so that it tests for both pthread_create and
33687         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
33688         Suggested by Bruno Haible and Richard Yao in
33689         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
33691         parse-datetime: doc tuneup
33692         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
33693         spacing issues.
33695 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
33697         do-release-commit-and-tag: fix the previous commit
33698         * build-aux/do-release-commit-and-tag: Actually the test was right,
33699         but the comment and the error message were misleading.
33700         Fix comment, and improve error message.
33701         Perform check first, so that NEWS is not modified uselessly.
33703         do-release-commit-and-tag: fix typo
33704         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
33705         _not_ start with a stub.
33707 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
33709         pthread: check for pthread_create, not pthread_join
33710         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
33711         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
33712         pthread_join in libc.  I hope this removes the need for all the
33713         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
33714         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
33716 2012-07-04  Jim Meyering  <meyering@redhat.com>
33718         parse-datetime: fix failure to diagnose invalid input
33719         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
33720         rather than diagnosing the invalid input.  Now it reports this:
33721         date: invalid date '\260'
33722         * lib/parse-datetime.y (to_uchar): Define.
33723         (yylex): Don't sign-extend "other" bytes.
33724         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
33725         Thanks to Bruno Haible for the patch to this file.
33726         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
33727         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
33729 2012-07-03  Jim Meyering  <meyering@redhat.com>
33731         bootstrap: do not require now-removed build-aux/missing
33732         Now that build-aux/missing is, er, missing, bootstrap would
33733         silently fail.
33734         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
33735         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
33736         no longer part of gnulib.
33737         Diagnose the failure.
33739 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
33741         alloca: add support for HP NonStop TNS/E native
33742         * lib/alloca.in.h (alloca): Support the new host.
33743         From a suggestion by Joachim Schmitz in
33744         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
33746 2012-07-02  Pádraig Brady  <P@draigBrady.com>
33748         fsusage: remove code not needed on non GNU/Linux systems.
33750         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
33751         Don't include headers no longer needed in this case.
33752         * lib/fsusage.c [STAT_STATVFS &&
33753         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
33754         STAT_STATFS2_FRSIZE to exclude code not used in this case.
33756 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33758         fsusage: include files needed for glibc 2.6 fallback
33759         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
33760         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
33761         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
33762         Problem reported by Ludovic Courtès in
33763         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
33765         fsusage: avoid needless check on GNU/Linux
33766         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
33767         on GNU/Linux systems, since it can't possibly work.
33769 2012-07-01  Bruno Haible  <bruno@clisp.org>
33771         log: Fix an autoconf >= 2.64 warning.
33772         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
33773         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
33775 2012-06-28  Bruno Haible  <bruno@clisp.org>
33777         log10f: Fix possible configuration problem.
33778         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
33779         $LOGF_LIBM.
33780         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
33782 2012-06-28  Bruno Haible  <bruno@clisp.org>
33784         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
33785         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
33786         not gl_cv_func_unlink_works.
33787         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
33789 2012-06-27  Eric Blake  <eblake@redhat.com>
33791         config: drop scripts that automake says are not independent
33792         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
33793         * build-aux/elisp-comp: Delete.
33794         * build-aux/missing: Likewise.
33795         * build-aux/ylwrap: Likewise.
33796         * modules/elisp-comp: Likewise.
33797         * MODULES.html.sh: Drop mention of elisp-comp.
33798         * NEWS: Mention this.
33800 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
33802         root-uid: new module
33803         This is for portability to Tandem's NonStop Kernel.
33804         * lib/root-uid.h, modules/root-uid: New files.
33805         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
33806         * lib/write-any-file.c, tests/test-sethostname2.c:
33807         Include "root-uid.h".
33808         * lib/euidaccess.c (euidaccess):
33809         * lib/pt_chown.c (main):
33810         * lib/unlinkdir.c (cannot_unlink_dir):
33811         * lib/write-any-file.c (can_write_any_file):
33812         * m4/mknod.m4 (gl_FUNC_MKNOD):
33813         * tests/test-sethostname2.c (geteuid, main):
33814         Don't assume ROOT_UID == 0.
33815         * modules/euidaccess (Depends-on):
33816         * modules/pt_chown (Depends-on):
33817         * modules/sethostname-tests (Depends-on):
33818         * modules/unlinkdir (Depends-on):
33819         * modules/write-any-file (Depends-on):
33820         Add root-uid.
33822         regex: use locale-independent comparison for codeset name
33823         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
33824         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
33825         for codeset name.
33826         * lib/regex_internal.h: Do not include <strings.h>, since we
33827         no longer use strcasecmp.
33828         * modules/regex (Depends-on): Remove strcase.
33830 2012-06-23  Bruno Haible  <bruno@clisp.org>
33832         getopt-posix: No longer guarantee that option processing is resettable.
33833         * doc/posix-functions/getopt.texi: Drop description of problem with
33834         internal state. Fix info about mingw and msvc9.
33835         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
33836         option processing by getopt(). Run three test programs instead of one.
33837         Simplify cross-compilation guess.
33838         * NEWS: Mention the change.
33839         Reported by Rich Felker <dalias@aerifal.cx>.
33841 2012-06-26  Bruno Haible  <bruno@clisp.org>
33843         argp, regex: Ensure strcasecmp gets declared.
33844         * lib/argp-help.c: Include <strings.h>.
33845         * lib/regex_internal.h: Likewise.
33846         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
33848 2012-06-24  Bruno Haible  <bruno@clisp.org>
33850         ptsname_r: Make it consistent with ptsname on AIX.
33851         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
33852         implementation as for OSF/1.
33853         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
33854         a pty master.
33856         ptsname_r: Make it consistent with ptsname on OSF/1.
33857         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
33858         OSF/1.
33860 2012-06-24  Bruno Haible  <bruno@clisp.org>
33862         ttyname_r: Fix result on OSF/1, Solaris.
33863         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
33865 2012-06-24  Bruno Haible  <bruno@clisp.org>
33867         ptsname_r: Add support for Solaris.
33868         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
33869         Solaris.
33871         ptsname_r: Fix test failure on native Windows.
33872         * modules/ptsname_r (Depends-on): Add isatty.
33874         ptsname_r: Fix test failures on IRIX, Solaris.
33875         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
33876         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
33877         accordingly.
33878         * lib/ptsname_r.c: Include <fcntl.h>.
33879         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
33880         set errno if fd is invalid.
33881         * tests/test-isatty.c (main): Update comments.
33883 2012-06-24  Bruno Haible  <bruno@clisp.org>
33885         ptsname test: Extend test.
33886         * tests/test-ptsname.c: Include <errno.h>.
33887         (main): Test behaviour with invalid file descriptor.
33889 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33891         time: fix obsolete comment
33892         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
33893         reference to HAVE_STRUCT_TIMESPEC in comment.
33895 2012-06-23  Bruno Haible  <bruno@clisp.org>
33897         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
33898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
33899         does not handle abbreviated long options with equivalent
33900         disambiguations, set gl_replace_getopt to yes.
33901         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
33903 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33905         time_r: fix typo that always overrode localtime_r decl
33906         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
33907         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
33908         not in a standard include.
33910 2012-06-22  Bruno Haible  <bruno@clisp.org>
33912         Write "Mac OS X" instead of "MacOS X".
33913         * README: Write "Mac OS X" instead of "MacOS X".
33914         * build-aux/bootstrap: Likewise.
33915         * build-aux/install-reloc: Likewise.
33916         * lib/acl-internal.h: Likewise.
33917         * lib/acl_entries.c: Likewise.
33918         * lib/argp-ba.c: Likewise.
33919         * lib/argp-pv.c: Likewise.
33920         * lib/config.charset: Likewise.
33921         * lib/copy-acl.c: Likewise.
33922         * lib/csharpexec.c: Likewise.
33923         * lib/euidaccess.c: Likewise.
33924         * lib/fbufmode.c: Likewise.
33925         * lib/fflush.c: Likewise.
33926         * lib/file-has-acl.c: Likewise.
33927         * lib/filemode.h: Likewise.
33928         * lib/fpurge.c: Likewise.
33929         * lib/freadable.c: Likewise.
33930         * lib/freadahead.c: Likewise.
33931         * lib/freading.c: Likewise.
33932         * lib/freadptr.c: Likewise.
33933         * lib/freadseek.c: Likewise.
33934         * lib/fseeko.c: Likewise.
33935         * lib/fseterr.c: Likewise.
33936         * lib/fsusage.c: Likewise.
33937         * lib/fwritable.c: Likewise.
33938         * lib/fwriting.c: Likewise.
33939         * lib/get-rusage-as.c: Likewise.
33940         * lib/get-rusage-data.c: Likewise.
33941         * lib/getdomainname.c: Likewise.
33942         * lib/idpriv-drop.c: Likewise.
33943         * lib/idpriv-droptemp.c: Likewise.
33944         * lib/localcharset.c: Likewise.
33945         * lib/locale.in.h: Likewise.
33946         * lib/localename.c: Likewise.
33947         * lib/mbsrtowcs-state.c: Likewise.
33948         * lib/nproc.c: Likewise.
33949         * lib/passfd.c: Likewise.
33950         * lib/posix_openpt.c: Likewise.
33951         * lib/printf-parse.c: Likewise.
33952         * lib/progreloc.c: Likewise.
33953         * lib/safe-read.h: Likewise.
33954         * lib/safe-write.h: Likewise.
33955         * lib/sched.in.h: Likewise.
33956         * lib/set-mode-acl.c: Likewise.
33957         * lib/signal.in.h: Likewise.
33958         * lib/stdint.in.h: Likewise.
33959         * lib/stdio-impl.h: Likewise.
33960         * lib/stdlib.in.h: Likewise.
33961         * lib/strtod.c: Likewise.
33962         * lib/sys_select.in.h: Likewise.
33963         * lib/tcgetsid.c: Likewise.
33964         * lib/unistd.in.h: Likewise.
33965         * lib/unlockpt.c: Likewise.
33966         * lib/vasnprintf.c: Likewise.
33967         * lib/vma-iter.c: Likewise.
33968         * lib/wcsrtombs-state.c: Likewise.
33969         * m4/acl.m4: Likewise.
33970         * m4/acosl.m4: Likewise.
33971         * m4/asinl.m4: Likewise.
33972         * m4/atanl.m4: Likewise.
33973         * m4/c-stack.m4: Likewise.
33974         * m4/cosl.m4: Likewise.
33975         * m4/expl.m4: Likewise.
33976         * m4/extensions.m4: Likewise.
33977         * m4/fdatasync.m4: Likewise.
33978         * m4/fmal.m4: Likewise.
33979         * m4/frexp.m4: Likewise.
33980         * m4/frexpf.m4: Likewise.
33981         * m4/frexpl.m4: Likewise.
33982         * m4/fsusage.m4: Likewise.
33983         * m4/getdomainname.m4: Likewise.
33984         * m4/getloadavg.m4: Likewise.
33985         * m4/getopt.m4: Likewise.
33986         * m4/gettext.m4: Likewise.
33987         * m4/gnulib-common.m4: Likewise.
33988         * m4/intdiv0.m4: Likewise.
33989         * m4/intlmacosx.m4: Likewise.
33990         * m4/largefile.m4: Likewise.
33991         * m4/ldexpl.m4: Likewise.
33992         * m4/link-follow.m4: Likewise.
33993         * m4/locale-ar.m4: Likewise.
33994         * m4/locale-fr.m4: Likewise.
33995         * m4/locale-ja.m4: Likewise.
33996         * m4/locale-tr.m4: Likewise.
33997         * m4/locale-zh.m4: Likewise.
33998         * m4/locale_h.m4: Likewise.
33999         * m4/lock.m4: Likewise.
34000         * m4/logl.m4: Likewise.
34001         * m4/mathfunc.m4: Likewise.
34002         * m4/minus-zero.m4: Likewise.
34003         * m4/mktime.m4: Likewise.
34004         * m4/mmap-anon.m4: Likewise.
34005         * m4/multiarch.m4: Likewise.
34006         * m4/nanosleep.m4: Likewise.
34007         * m4/nocrash.m4: Likewise.
34008         * m4/poll.m4: Likewise.
34009         * m4/printf-frexpl.m4: Likewise.
34010         * m4/printf.m4: Likewise.
34011         * m4/signbit.m4: Likewise.
34012         * m4/sinl.m4: Likewise.
34013         * m4/sqrtl.m4: Likewise.
34014         * m4/strerror_r.m4: Likewise.
34015         * m4/tanl.m4: Likewise.
34016         * m4/threadlib.m4: Likewise.
34017         * m4/ttyname_r.m4: Likewise.
34018         * m4/unlink.m4: Likewise.
34019         * m4/visibility.m4: Likewise.
34020         * m4/wcwidth.m4: Likewise.
34021         * tests/minus-zero.h: Likewise.
34022         * tests/test-alloca-opt.c: Likewise.
34023         * tests/test-copy-acl.sh: Likewise.
34024         * tests/test-copy-file.sh: Likewise.
34025         * tests/test-fdatasync.c: Likewise.
34026         * tests/test-file-has-acl.sh: Likewise.
34027         * tests/test-flock.c: Likewise.
34028         * tests/test-fsync.c: Likewise.
34029         * tests/test-localename.c: Likewise.
34030         * tests/test-malloca.c: Likewise.
34031         * tests/test-nonblocking-pipe.h: Likewise.
34032         * tests/test-nonblocking-socket.h: Likewise.
34033         * tests/test-openpty.c: Likewise.
34034         * tests/test-posix_openpt.c: Likewise.
34035         * tests/test-ptsname.c: Likewise.
34036         * tests/test-ptsname_r.c: Likewise.
34037         * tests/test-sameacls.c: Likewise.
34038         * tests/test-select.h: Likewise.
34039         * tests/test-set-mode-acl.sh: Likewise.
34040         * tests/test-snprintf-posix.h: Likewise.
34041         * tests/test-sprintf-posix.h: Likewise.
34042         * tests/test-strtod.c: Likewise.
34043         * tests/test-time.c: Likewise.
34044         * tests/test-vasnprintf-posix.c: Likewise.
34045         * tests/test-vasprintf-posix.c: Likewise.
34046         * doc/acl-resources.txt: Likewise.
34047         * doc/**/*.texi: Likewise.
34048         Reported by Max Horn <max@quendi.de>.
34050 2012-06-22  Bruno Haible  <bruno@clisp.org>
34052         grantpt: Relax requirement regarding invalid file descriptors.
34053         * lib/grantpt.c: Don't include <fcntl.h>.
34054         (grantpt): Don't verify the validity of the file descriptor.
34055         * modules/grantpt (Depends-on): Remove fcntl-h.
34056         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
34057         file descriptors.
34058         * doc/posix-functions/grantpt.texi: Document more platforms on which
34059         grantpt succeeds for invalid file descriptors.
34060         Reported by Rich Felker <dalias@aerifal.cx>.
34062 2012-06-22  Bruno Haible  <bruno@clisp.org>
34064         fbufmode test: Don't test unportable behaviour.
34065         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
34066         (main): Invoke it three times.
34067         Reported by Szabolcs Nagy <nsz@port70.net>
34068         and Rich Felker <dalias@aerifal.cx>.
34070 2012-06-21  Bruno Haible  <bruno@clisp.org>
34072         gnulib-tool: Refactor inctests variable.
34073         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
34074         (func_modules_transitive_closure,
34075         func_modules_transitive_closure_separately,
34076         func_import, func_create_testdir): Update.
34078         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
34079         * gnulib-tool: Accept option --without-tests.
34080         (func_usage): Document --without-tests option. Rearrange.
34081         (inctests): Normalize according to the mode.
34082         * NEWS: Mention the change.
34083         Suggested by Simon Josefsson.
34085 2012-06-21  Bruce Korb  <bkorb@gnu.org>
34087         parse-duration test: Avoid spurious output.
34088         * tests/test-parse-duration.sh: Reindent with leading tabs.
34090 2012-06-21  Jim Meyering  <meyering@redhat.com>
34092         maint: disable the strncpy prohibition
34093         * cfg.mk: Do not prohibit strncpy here.
34095 2012-06-21  Bruno Haible  <bruno@clisp.org>
34097         nonblocking: Avoid compilation error on mingw64.
34098         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
34099         fscanf.
34100         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
34101         * modules/vfscanf (configure.ac): Likewise.
34102         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
34103         definition only if stdio.h has prepared it.
34104         Reported by Daniel P. Berrange <berrange@redhat.com>.
34106 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
34108         gnulib-tool: Use readlink if it is available.
34109         * gnulib-tool (func_readlink): Choose function more appropriately.
34111 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34113         posixtm-tests: port to buggy compiler
34114         Problem reported by Simon Josefsson in
34115         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
34116         * modules/posixtm-tests (Depends-on): Add stdint.
34117         * tests/test-posixtm.c (struct posixtm_test.t_expected):
34118         Now of type int_least64_t, not int64_t, both because that's
34119         what INT64_C returns and because int_least64_t works even
34120         on 72-bit hosts.
34121         (T): Use INT64_C on constants outside the traditional int range,
34122         to work around compiler bug noted by Simon.
34124         mktime: fix integer overflow in 'configure'-time test
34125         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
34126         after integer overflow.  Problem reported by Rich Felker in
34127         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
34128         Also, don't look for further instances of a bug if we've already
34129         found one instance; this helps 'configure' run faster.
34131 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
34133         tmpfile, clean-temp: Fix invocation of GetVersionEx.
34134         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
34135         GetVersionEx correctly.
34136         * lib/clean-temp.c (supports_delete_on_close): Likewise.
34138 2012-06-20  Bruno Haible  <bruno@clisp.org>
34140         fdopen: Allow implementations that don't reject invalid fd arguments.
34141         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
34142         succeeds.
34143         Reported by Rich Felker <dalias@aerifal.cx>.
34145 2012-06-20  Simon Josefsson  <simon@josefsson.org>
34147         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
34148         bring in LIBINTL.
34150 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34152         init.sh: do not rely on autoupated PWD
34153         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
34154         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
34155         Although Nelson's bug was not necessarily fixed by this patch,
34156         it seems wise to make the change for safety.
34157         * tests/init.sh (path_prepend_): Do not rely on PWD updating
34158         automagically after 'cd'; this is not reliable on older shells.
34159         (setup_): Fail if we cannot cd to temporary directory.
34161 2012-06-19  Bruno Haible  <bruno@clisp.org>
34163         stat, fstat: Avoid warnings on mingw64.
34164         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
34165         redefining.
34166         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
34167         Reported by Daniel P. Berrange <berrange@redhat.com>.
34169 2012-06-19  Bruno Haible  <bruno@clisp.org>
34171         stdioext: Add support for musl libc.
34173         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
34174         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
34176         * m4/fseterr.m4: New file.
34177         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
34178         function exists.
34179         * modules/fseterr (Files): Add m4/fseterr.m4.
34180         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
34181         __fseterr does not exist.
34182         (Makefile.am): Remove fseterr.c from lib_SOURCES.
34184         * lib/freadable.h: Update comment.
34186         * lib/fwritable.h: Update comment.
34188         * lib/freading.h: Update comment.
34190         * lib/fwriting.h: Update comment.
34192         * m4/freadahead.m4: New file.
34193         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
34194         that function exists.
34195         * modules/freadahead (Files): Add m4/freadahead.m4.
34196         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
34197         __freadahead does not exist.
34198         (Makefile.am): Remove freadahead.c from lib_SOURCES.
34200         * m4/freadptr.m4: New file.
34201         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
34202         function exists.
34203         * modules/freadptr (Files): Add m4/freadptr.m4.
34204         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
34205         __freadptr does not exist.
34206         (Makefile.am): Remove freadptr.c from lib_SOURCES.
34208         * m4/freadseek.m4: New file.
34209         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
34210         exists.
34211         * modules/freadseek (Files): Add m4/freadseek.m4.
34212         (configure.ac): Invoke gl_FUNC_FREADSEEK.
34214         * lib/fpurge.c (fpurge): Update comment.
34216         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
34218 2012-06-19  Bruno Haible  <bruno@clisp.org>
34220         *printf-posix: Put more info into config.log.
34221         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
34222         exit code into config.log.
34224 2012-06-19  Bruno Haible  <bruno@clisp.org>
34226         getopt-gnu: Fix exit code overflow in autoconf test.
34227         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
34228         to keep them below < 128.
34230 2012-06-17  Jim Meyering  <meyering@redhat.com>
34232         maint.mk: fix typo in code to derive GPG key at release time
34233         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
34235 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
34237         regex: avoid warning when pointers are not long
34238         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
34239         and uintptr_t, not long, for portability to hosts where pointers and
34240         long have different sizes.  Issue noted by Daniel P. Berrange in
34241         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
34242         and fix suggested by Bruno Haible in
34243         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
34245 2012-06-17  Bruno Haible  <bruno@clisp.org>
34247         dummy: Relicense into the public domain.
34248         * modules/dummy (License): Set to "public domain".
34249         Suggested by Reuben Thomas.
34251 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34253         announce-gen: VPATH issues
34254         * build-aux/announce-gen (--srcdir): New option, used to trim the
34255         $srcdir part of the path from $builddir to NEWS.
34256         * top/maint.mk (announcement): Adjust.
34258 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34260         gnu-web-doc-update: VPATH builds
34261         * build-aux/gnu-web-doc-update (--builddir): New option.
34262         Revamp the handling of options.
34263         Prefer $(...) to `...`.
34264         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
34265         the template, and it is GNU mktemp specific.
34266         Prefer set -e to long series of &&.
34267         Restore the initial git branch, not "master".
34268         Properly initialize submodules (don't rely only on bootstrap).
34269         Do not reconfigure blindly, use config.status.
34270         * top/README-release: Update instructions for gnu-web-doc-update.
34272 2012-06-11  Jim Meyering  <meyering@redhat.com>
34274         maint.mk: revert most of the previous change re "all these"
34275         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
34276         For rationale, see the discussion at
34277         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
34279 2012-06-10  Karl Berry  <karl@gnu.org>
34281         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
34283         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
34285 2012-06-10  Bruce Korb  <bkorb@gnu.org>
34287         parse-duration: Relicense under LGPLv2+.
34288         * modules/parse-duration (License): Change to LGPLv2+.
34290 2012-06-10  Jim Meyering  <meyering@redhat.com>
34292         maint.mk: prohibit common grammar error: "all these"
34293         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
34294         the list of prohibited word sequences.  It should be "all of these".
34295         * lib/tempname.c (__gen_tempname): Fix one of them.
34297 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34299         do-release-commit-and-tag: support VPATH builds
34300         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
34301         (noteworthy): Defined earlier to factor its value.
34302         (noteworthy_stub): New.
34303         Use it to factor.
34304         (help_version): Split into...
34305         (help, version): these.
34306         Adjust the option processing part.
34307         Support "--option=value" in addition to "--option value".
34308         (builddir): New.
34309         (--builddir): New option.
34310         * top/README-release: Document this.
34311         Reword slightly so that the reader cannot understand that he
34312         has to do these steps before calling do-release-commit-and-tag.
34314 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34316         readme-release: also require announce-gen and maintainer-makefile
34317         * modules/readme-release (Depends-on): here.
34318         * modules/announce-gen, modules/do-release-commit-and-tag,
34319         modules/gnu-web-doc-update, modules/maintainer-makefile
34320         (Description): Point to readme-release.
34322 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34324         maint.mk: fix VPATH issues.
34325         * top/maint.mk (news-check): GNU Make understand $< very well.
34326         (release-prep): NEWS is in $(srcdir).
34328 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
34330         readme-release: require the promoted modules.
34331         * modules/readme-release (Depends-on): Add
34332         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
34333         in this text.
34335 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34336             Bruno Haible  <bruno@clisp.org>
34338         error, strerror-override: Support mingw64 from Fedora 17.
34339         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
34340         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
34341         EINPROGRESS.
34342         * lib/strerror-override.h (strerror_override): Test it.
34343         * lib/strerror-override.c (strerror_override): Likewise.
34344         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
34346 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34347             Bruno Haible  <bruno@clisp.org>
34349         error, strerror-override: Support mingw64 from Fedora 17.
34350         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
34351         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
34352         * lib/strerror-override.h (strerror_override): Test it.
34353         * lib/strerror-override.c (strerror_override): Likewise.
34355 2012-06-03  Bruno Haible  <bruno@clisp.org>
34357         error, strerror-override: Support new errno values from POSIX:2008.
34358         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
34359         ENOTRECOVERABLE.
34360         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
34361         platforms.
34362         * lib/strerror-override.c (strerror_override): Conditionalize the
34363         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
34364         * lib/strerror-override.h (strerror_override): Declare also if
34365         GNULIB_defined_EOWNERDEAD is defined.
34366         * tests/test-errno.c (e130, e131): New variables.
34367         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
34368         ENOTRECOVERABLE.
34369         Reported by Paolo Bonzini.
34371 2012-05-31  Jim Meyering  <meyering@redhat.com>
34373         savewd: add missing dependency on sys_wait module
34374         * modules/savewd (Depends-on): Add sys_wait, needed at least
34375         for MSVC.  Report and suggested change by Michael Goffioul.
34377 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34379         system-quote-tests: port to CentOS 5
34380         Problem reported by Tom G. Christensen in
34381         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
34382         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
34384 2012-05-29  Jim Meyering  <meyering@redhat.com>
34386         maint: fix typos in comments and ChangeLog
34387         Culprits identified and fixed mostly automatically using these commands:
34388         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
34389         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
34390         using http://github.com/lyda/misspell-check
34391         * ChangeLog: Fix typos.
34392         * doc/solaris-versions: Likewise.
34393         * lib/regexec.c (re_search_stub): Likewise.
34394         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
34396 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
34398         manywarnings: remove duplicate -Wmultichar entry
34399         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
34400         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
34401         so keep the entry marked as documented.
34403 2012-05-27  Karl Berry  <karl@gnu.org>
34405         * config/srclist.txt (mktime.c): remove last libc sync,
34406         perhaps just temporarily.
34408 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
34410         regex: don't assume uint64_t or uint32_t
34411         * lib/regcomp.c (init_word_char): Don't assume that the types
34412         uint64_t and uint32_t exist.  The C standard doesn't guarantee
34413         them, and on some 32-bit compilers there is no uint64_t.
34414         Problem reported by Gianluigi Tiesi in
34415         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
34417 2012-05-25  Jim Meyering  <meyering@redhat.com>
34419         maint.mk: add strncpy-prohibiting syntax-check rule
34420         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
34422 2012-05-24  Jim Meyering  <meyering@redhat.com>
34424         maint.mk: compute $(gpg_key_ID) more portably
34425         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
34426         That use of sed is not portable to some fringe systems.
34427         Reported by Paul Eggert in
34428         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
34430 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
34432         mktime: sync from glibc
34433         * config/srclist.txt: Uncomment mktime.c.
34434         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
34435         First, indent with tabs, since glibc uses tabs and doesn't want to
34436         change and we'd rather be identical to glibc.  Also, two small
34437         coding changes:
34438         (isdst_differ): Use &&, not &, as && is the usual style.
34439         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
34440         for clarity.
34442 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34444         announce-gen: du -h is more portable than du --human
34445         * build-aux/announce-gen (sizes): Invoke du with -h instead
34446         of --human.  Accept leading white space in its output.
34448 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34450         announce-gen: Improve diagnostics.
34451         * build-aux/announce-gen: When parsing command line options,
34452         prefer "announce-gen: option --release-type requires an argument"
34453         to "Option release-type requires an argument".
34455 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34457         maint.mk: gpg_key_ID: use sed more portably
34458         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
34459         the closing brace.
34460         (refresh-po): Fuse two sed invocations into one.
34462 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
34464         gitlog-to-changelog: support the log message format used in Bison.
34465         * build-aux/gitlog-to-changelog: Support --strip-tab and
34466         --strip-cherry-picked.
34468 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34470         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
34471         the rest of the current time slice to another thread in the current
34472         process. So if the thread that feeds the file decscriptor we're
34473         polling is not in the current process, we get busy-waiting.
34474         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
34475         Patch from Theodore Leblond.
34476         * lib/select.c: Split polling out of the loop that sets the output
34477         fd_sets.  Check for zero result and loop if the wait timeout is
34478         infinite.
34480 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34482         select: Fix build error on IRIX 6.5.
34483         * lib/select.c: Include stddef.h for NULL.
34485 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34487         gc: fix libgcrypt detection on older machines.
34488         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
34489         copyright years because the file has been distributed every year
34490         since it was created.
34492 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34494         crypto: fix bug in large buffer handling
34495         Problem reported by Serge Belyshev for glibc in
34496         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
34497         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
34498         * lib/md4.c (md4_process_block):
34499         * lib/md5.c (md5_process_block):
34500         * lib/sha1.c (sha1_process_block):
34501         * lib/sha256.c (sha256_process_block):
34502         Don't assume the buffer length is less than 2**32.
34503         * lib/sha512.c (sha512_process_block): Likewise.
34504         Here, the bug is present only in the rare case where the host does
34505         not support uint64_t or where size_t is wider than 64 bits.
34506         Use u64size to work around the problems.
34507         * lib/u64.h (u64size): New macro.
34509 2012-05-15  Pádraig Brady  <P@draigBrady.com>
34511         fsusage: fix block size returned on older Linux 2.6
34513         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
34514         which is available since Linux 2.6.
34515         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
34516         when the member is available so it can be used as a fallback.
34517         * doc/posix-functions/statvfs.texi: Mention the hang issue
34518         on Linux < 2.6.36.
34520 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
34522         bootstrap: suppress stderr chatter
34523         * build-aux/bootstrap (insert_sorted_if_absent, main program):
34524         Omit unnecessary chatter to stderr.  The main program chatter
34525         was there only inadvertantly.
34527         bootstrap: .gitignore files created by autopoint, libtool
34528         I ran into this problem when bootstrapping the latest diffutils.
34529         After './bootstrap', 'git status' reported lots of untracked files
34530         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
34531         autopoint and do not need to be version-controlled.
34532         * build-aux/bootstrap: Put into .gitignore the files that
34533         autopoint and libtool create, by keeping track of files that exist
34534         after but not before these programs are run.
34535         (version_controlled_file): Move up.  2nd arg is now full file
34536         name, not base name; this is more convenient.  Put CVS at the end,
34537         as it's now somewhat deprecated.
34539 2012-05-14  Jim Meyering  <meyering@redhat.com>
34541         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
34542         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
34543         definition.  Reported by Bruno Haible.
34545 2012-05-13  Bruno Haible  <bruno@clisp.org>
34546             Paul Eggert  <eggert@cs.ucla.edu>
34548         binary-io: Define set_binary_mode function.
34549         * lib/binary-io.h (set_binary_mode): New function.
34550         (SET_BINARY): Define in terms of set_binary_mode.
34551         * modules/binary-io (configure.ac): Require AC_C_INLINE.
34552         * tests/test-binary-io.c (main): Accept an argument, and test either
34553         set_binary_mode or SET_BINARY depending on the argument.
34554         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
34555         argument. Clean up also t-bin-out0.tmp.
34557 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
34559         bootstrap: take advantage of POSIX shell features
34561         The 'bootstrap' script offered by Gnulib script already uses POSIX
34562         shell features (like $((...)) arithmetic expansions) that are not
34563         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
34564         means that bootstrap must already be run using a proper POSIX shell,
34565         which will thus provide more features, like ${var#pattern} parameter
34566         expansion or inversion of a command exit status with '!'.  We can
34567         thus use these features to improve the clarity and the performances
34568         of the bootstrap script.
34570         Suggested by Eric Blake.
34572         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
34573         of sed/expr plus command substitutions, to save some forks.  While
34574         we are at it, prefer the POSIX $(...) form of command substitution,
34575         rather than the legacy form `...` (since the former is visually
34576         clearer and interacts better with quoting), and prefer the idiom:
34577           "if ! CMD; then ACTION ..."
34578         over the idiom:
34579           "if CMD; then :; else ACTION ..."
34580         which was required by legacy Bourne shells not supporting '!'.
34582 2012-05-12  Bruno Haible  <bruno@clisp.org>
34584         system-quote: Add more comments.
34585         * lib/system-quote.h: Add more comments about wilcards and limitations.
34586         Suggested by Eli Zaretskii <eliz@gnu.org>.
34588         sh-quote, system-quote: Add comments about wildcards.
34589         * lib/sh-quote.h: Clarify what happens with wildcard characters.
34590         * lib/system-quote.h: Likewise.
34591         Reported by Eli Zaretskii <eliz@gnu.org>.
34593 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34595         fsusage: check for GNU/Linux statvfs problem dynamically
34596         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
34597         Define STAT_STATFS2_BSIZE too, since in this case the code now
34598         checks dynamically whether statvfs is reliable, falling back on
34599         Linux-style statfs otherwise.
34600         (statvfs_works): New function, for dynamically testing statvfs.
34601         (get_fs_usage) [STAT_STATVFS]: Use it.
34602         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
34603         statvfs on GNU/Linux hosts, since it's now done dynamically.
34605 2012-05-10  Bruno Haible  <bruno@clisp.org>
34607         system-quote, execute, spawn-pipe: Escape '?' on Windows.
34608         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
34609         '?' character.
34610         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
34611         * tests/test-system-quote-main.c (check_all): Check also strings like
34612         "??????????".
34613         Reported by Eli Zaretskii <eliz@gnu.org>.
34615 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
34617         _Noreturn: port config.h to gcc -Wundef
34618         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
34619         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
34620         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
34622 2012-05-10  Bruno Haible  <bruno@clisp.org>
34624         system-quote: Refactor.
34625         * lib/system-quote.h (system_quote_copy): Fix comment.
34626         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
34627         New functions, extracted from system_quote_copy.
34628         (system_quote_length, system_quote_copy): Use these functions.
34629         Reported by Paul Eggert.
34631 2012-05-08  Bruno Haible  <bruno@clisp.org>
34633         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
34634         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
34636 2012-05-08  Bruno Haible  <bruno@clisp.org>
34638         Tests for module 'system-quote'.
34639         * modules/system-quote-tests: New file.
34640         * tests/test-system-quote.sh: New file.
34641         * tests/test-system-quote-main.c: New file.
34642         * tests/test-system-quote-child.c: New file.
34644         New module 'system-quote'.
34645         * lib/system-quote.h: New file.
34646         * lib/system-quote.c: New file.
34647         * modules/system-quote: New file.
34649 2012-05-08  Bruno Haible  <bruno@clisp.org>
34651         sh-quote: Make C++ safe and allow multiple inclusion.
34652         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
34653         declarations in extern "C".
34655 2012-05-08  Bruno Haible  <bruno@clisp.org>
34657         sh-quote tests: Make tests stricter.
34658         * tests/test-sh-quote.c (check_one): Check the return value of
34659         shell_quote_copy.
34660         (main): Check a string with a CR character. Check a string that
34661         contains UCHAR_MAX.
34663 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
34665         warnings.m4: provide a means to specify the program to compile.
34666         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
34667         (gl_WARN_ADD): here.
34668         Use gl_AS_VAR_APPEND.
34669         Support an argument to specify the program to compile.
34670         (gl_WARN_ADD): Accept an argument to specify the program to compile.
34671         AC_SUBST the WARN_CFLAGS when they are used.
34672         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
34673         leave this to gl_WARN_ADD.
34675 2012-05-08  Eric Blake  <eblake@redhat.com>
34677         doc: recommendations on gettext version
34678         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
34679         choice between versions.
34680         * DEPENDENCIES (gettext): Cover both approaches.
34682 2012-05-08  Jim Meyering  <meyering@redhat.com>
34684         init.sh: explain why EXEEXT support uses aliases rather than functions
34685         * tests/init.sh: Add a comment.
34687         init.sh: don't let bash aliases interfere with tests
34688         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
34689         is bash.  This avoids problems for those who alias standard commands to
34690         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
34691         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
34693 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34695         stdint: be more consistent with glibc, SunOS libc
34696         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
34697         (gl_int_fast16_t, gl_uint_fast16_t)
34698         (gl_int_fast32_t, gl_uint_fast32_t)
34699         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
34700         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
34701         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
34702         Be consistent with glibc by default, and with SunOS 5.10 and later
34703         if __sun is defined.  This lessens the likelihood of clashes if
34704         code compiled for older hosts is combined with code compiled for
34705         newer ones.  Problem reported by Niels Möller in
34706         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
34708 2012-05-07  Eric Blake  <eblake@redhat.com>
34710         isatty: relax license to LGPLv2+
34711         * modules/isatty (License): Relax license.
34713 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
34715         stat-size: comment fix
34716         * lib/stat-size.h: Remove obsolete comment about indenting.
34718 2012-05-06  Bruno Haible  <bruno@clisp.org>
34720         Tests for module 'sh-quote'.
34721         * modules/sh-quote-tests: New file.
34722         * tests/test-sh-quote.c: New file.
34724 2012-05-06  Bruno Haible  <bruno@clisp.org>
34726         sh-quote: Improve shell_quote_argv's signature.
34727         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
34728         * lib/sh-quote.c (shell_quote_argv): Likewise.
34730 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
34732         stdint: document issues with int_fast8_t etc.
34733         * doc/posix-headers/stdint.texi (stdint.h): Say that other
34734         stdint.h substitutes may define these types differently.  See
34735         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
34737 2012-05-05  Bruno Haible  <bruno@clisp.org>
34739         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
34740         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
34741         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
34742         or 'guessing no (mishandles large arguments)'.
34744 2012-05-05  Bruno Haible  <bruno@clisp.org>
34746         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
34747         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
34748         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
34749         set gl_cv_func_link_follows_symlink to "guessing no".
34751 2012-05-05  Bruno Haible  <bruno@clisp.org>
34753         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
34754         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
34755         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
34756         "guessing no".
34757         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
34759 2012-05-05  Bruno Haible  <bruno@clisp.org>
34761         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
34762         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
34763         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
34764         set gl_cv_struct_dirent_d_ino to "guessing yes".
34766 2012-05-05  Bruno Haible  <bruno@clisp.org>
34768         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
34769         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
34770         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
34771         "guessing yes".
34773 2012-05-05  Bruno Haible  <bruno@clisp.org>
34775         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
34776         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
34777         compiling to a glibc system, set gl_cv_func_signbit and
34778         gl_cv_func_signbit_gcc to "guessing yes".
34780 2012-05-05  Bruno Haible  <bruno@clisp.org>
34782         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
34783         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
34784         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
34785         to "guessing yes".
34786         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
34787         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
34789 2012-05-05  Bruno Haible  <bruno@clisp.org>
34791         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
34792         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
34793         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
34794         gl_cv_func_realpath_works to "guessing yes".
34796 2012-05-05  Bruno Haible  <bruno@clisp.org>
34798         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
34799         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
34800         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
34802 2012-05-04  Bruno Haible  <bruno@clisp.org>
34804         Tweak last commit.
34805         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
34806         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34808 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
34810         unistd_h: make it easier to avoid sys_types_h
34811         This is useful for Emacs, which has its own method of porting to
34812         Windows, and which therefore does not need the sys_types_h module.
34813         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
34814         code moved here from gl_SYS_TYPES_H.
34815         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
34816         using the code directly.
34817         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
34818         gl_SYS_TYPES_H.
34819         * modules/sys_types (Files):
34820         * modules/unistd (Files): Add m4/off_t.m4.
34822 2012-05-03  Bruno Haible  <bruno@clisp.org>
34824         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
34825         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
34826         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
34827         "guessing yes" or "guessing no".
34828         (gl_FUNC_LSTAT): Update.
34829         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
34830         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
34831         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
34833 2012-05-03  Bruno Haible  <bruno@clisp.org>
34835         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
34836         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
34837         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
34838         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
34839         cross-compiling, choose the first alternative on glibc systems.
34840         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
34842 2012-05-03  Bruno Haible  <bruno@clisp.org>
34844         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
34845         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
34846         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
34848 2012-05-03  Bruno Haible  <bruno@clisp.org>
34850         chown: Avoid "guessing no" when cross-compiling to glibc systems.
34851         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
34853 2012-05-03  Bruno Haible  <bruno@clisp.org>
34855         Avoid "guessing no" guesses when cross-compiling to glibc systems.
34856         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
34857         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
34858         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
34859         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
34860         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
34861         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
34862         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
34863         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
34864         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
34865         compiling to glibc systems, set gl_cv_func_chown_slash_works,
34866         gl_cv_func_chown_ctime_works to "guessing yes".
34867         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
34868         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
34869         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
34870         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
34871         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
34872         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
34873         compiling to glibc systems, set gl_cv_func_open_directory_works to
34874         "guessing yes".
34875         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
34876         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
34877         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
34878         "guessing yes".
34879         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
34880         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
34881         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
34882         compiling to glibc systems, set gl_cv_func_floorf_ieee to
34883         "guessing yes".
34884         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
34885         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
34886         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
34887         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
34888         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
34889         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
34890         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
34891         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
34892         "guessing yes".
34893         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
34894         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
34895         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
34896         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
34897         "guessing yes".
34898         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
34899         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
34900         "guessing yes".
34901         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
34902         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
34903         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
34904         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
34905         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
34906         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
34907         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
34908         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
34909         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
34910         compiling to glibc systems, set gl_cv_func_log10f_ieee to
34911         "guessing yes".
34912         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
34913         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
34914         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
34915         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
34916         "guessing yes".
34917         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
34918         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
34919         "guessing yes".
34920         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
34921         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
34922         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
34923         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
34924         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
34925         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
34926         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
34927         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
34928         compiling to glibc systems, set gl_cv_func_mkfifo_works to
34929         "guessing yes".
34930         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
34931         compiling to glibc systems, set gl_cv_func_mknod_works to
34932         "guessing yes".
34933         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
34934         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
34935         "guessing yes".
34936         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
34937         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
34938         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
34939         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
34940         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
34941         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
34942         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
34943         compiling to glibc systems, set gl_cv_func_svid_putenv to
34944         "guessing yes".
34945         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
34946         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
34947         "guessing yes".
34948         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
34949         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
34950         "guessing yes".
34951         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
34952         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
34953         to "guessing yes".
34954         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
34955         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
34956         to "guessing yes".
34957         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
34958         compiling to glibc systems, set gl_cv_func_rmdir_works to
34959         "guessing yes".
34960         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
34961         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
34962         gl_cv_func_unlink_parent_fails to "guessing yes".
34963         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
34964         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
34965         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
34966         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
34967         gl_cv_func_rename_dest_works to "guessing yes".
34968         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
34969         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
34970         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
34971         compiling to glibc systems, set gl_cv_func_roundf_ieee to
34972         "guessing yes".
34973         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
34974         compiling to glibc systems, set gl_cv_func_roundl_ieee to
34975         "guessing yes".
34976         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
34977         compiling to glibc systems, set gl_cv_func_setenv_works to
34978         "guessing yes".
34979         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
34980         compiling to glibc systems, set gl_cv_func_unsetenv_works to
34981         "guessing yes".
34982         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
34983         compiling to glibc systems, set gl_cv_func_sleep_works to
34984         "guessing yes".
34985         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
34986         compiling to glibc systems, set gl_cv_func_stat_file_slash to
34987         "guessing yes".
34988         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
34989         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
34990         "guessing yes".
34991         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
34992         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
34993         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
34994         compiling to glibc systems, set gl_cv_func_truncf_ieee to
34995         "guessing yes".
34996         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
34997         compiling to glibc systems, set gl_cv_func_truncl_ieee to
34998         "guessing yes".
34999         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
35000         compiling to glibc systems, set gl_cv_func_usleep_works to
35001         "guessing yes".
35002         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
35003         compiling to glibc systems, set gl_cv_func_futimesat_works to
35004         "guessing yes".
35006 2012-05-03  Bruno Haible  <bruno@clisp.org>
35008         Say "guessing yes" or "guessing no" when cross-compiling.
35009         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
35010         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
35011         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
35012         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
35013         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
35014         am_cv_func_working_getline to "guessing yes" or "guessing no".
35015         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
35016         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
35017         (gl_FUNC_MEMMEM): When cross-compiling, set
35018         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
35019         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
35020         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
35021         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
35022         set gl_cv_func_strcasestr_works_always to "guessing yes" or
35023         "guessing no".
35024         (gl_FUNC_STRCASESTR): When cross-compiling, set
35025         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
35026         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
35027         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
35028         (gl_FUNC_STRSTR): When cross-compiling, set
35029         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
35030         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
35031         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
35032         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
35033         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
35035 2012-05-01  Bruno Haible  <bruno@clisp.org>
35037         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
35038         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
35039         * build-aux/reloc-ldflags: Likewise.
35040         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
35042 2012-05-01  Bruno Haible  <bruno@clisp.org>
35044         gnulib-tool: Remove transitional code.
35045         * gnulib-tool: Don't warn about --import with 0 arguments any more.
35046         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35048 2012-05-01  Bruno Haible  <bruno@clisp.org>
35050         getcwd: Fix misindentation.
35051         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
35053 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35055         exclude: process exclude and include directives in order
35056         This restores the pre-2009 behavior, and is part of a fix of a
35057         grep bug reported by Quentin Arce in
35058         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
35059         * lib/exclude.c (struct exclude): Remove 'tail' member.
35060         (new_exclude_segment): Prepend the new segment instead of appending.
35061         Return void, since that's now more convenient.
35062         (file_pattern_matches): Renamed from excluded_file_pattern_p.
35063         (file_name_matches): Renamed from excluded_file_name_p.
35064         (file_pattern_matches, file_name_matches):
35065         Return true if the pattern matches, not if it excludes.
35066         All callers changed.
35067         (excluded_file_name): Process the list in reverse order;
35068         since the list is now reversed this restores the pre-2009 behavior.
35069         (add_exclude): Adjust to new reversed-order list.  Use local var
35070         rather than macro, for clarity.
35071         * tests/test-exclude7.sh: Adjust to corrected behavior.
35073         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
35074         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
35075         it's not possible here.  Handle the case of \ at end of pattern
35076         without dumping core.
35077         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
35079         _Noreturn: future-proof non-GNU and non-MSVC compilers
35080         * build-aux/snippet/_Noreturn.h (_Noreturn):
35081         * m4/gnulib-common.m4 (gl_COMMON_BODY):
35082         Do not define _Noreturn if __STDC_VERSION__ indicates this is
35083         C11 or later.  This is more likely to work with random future C
35084         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
35085         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
35087         exclude: handle wildcards with FNM_EXTMATCH
35088         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
35089         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
35090         comment that "has wildcards" really means "has or may have
35091         wildcards".  Simplify by avoiding the need to call strcspn.
35093 2012-04-29  Bruno Haible  <bruno@clisp.org>
35095         gnulib-tool: Fix list of authors.
35096         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
35098 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
35100         bootstrap: support Automake-NG in $buildreq
35101         * bootstrap (check_versions): Handle automake and aclocal from
35102         Automake-NG specially.  They can be specified as respectively
35103         the "automake-ng" and "aclocal-ng" requirements.
35105 2012-04-25  Eric Blake  <eblake@redhat.com>
35107         bootstrap: only force latest Makefile.in.in for gettext module
35108         * build-aux/bootstrap (with_gettext): Only install latest
35109         Makefile.in.in for projects requesting bleeding edge gettext.
35111 2012-04-22  Bruno Haible  <bruno@clisp.org>
35113         doc: Mention reason for replacement on glibc/Linux systems.
35114         * doc/posix-functions/dprintf.texi: Mention the problem with special
35115         'long double' values.
35116         * doc/posix-functions/fprintf.texi: Likewise.
35117         * doc/posix-functions/printf.texi: Likewise.
35118         * doc/posix-functions/snprintf.texi: Likewise.
35119         * doc/posix-functions/sprintf.texi: Likewise.
35120         * doc/posix-functions/vdprintf.texi: Likewise.
35121         * doc/posix-functions/vfprintf.texi: Likewise.
35122         * doc/posix-functions/vprintf.texi: Likewise.
35123         * doc/posix-functions/vsnprintf.texi: Likewise.
35124         * doc/posix-functions/vsprintf.texi: Likewise.
35125         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
35126         platforms with F_DUPFD_CLOEXEC problems.
35127         * doc/posix-functions/glob.texi: Mention which platforms are affected
35128         by the problem with symbolic links.
35129         * doc/posix-functions/linkat.texi: Mention the problem with
35130         AT_SYMLINK_FOLLOW on Linux.
35132 2012-04-22  Bruno Haible  <bruno@clisp.org>
35134         pwrite: Don't replace on all platforms.
35135         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
35137 2012-04-22  Bruno Haible  <bruno@clisp.org>
35139         rint* tests: Avoid gcc warnings.
35140         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
35141         * tests/test-rintf.c (INFINITY, NAN): Likewise.
35142         * tests/test-rintl.c (INFINITY, NAN): Likewise.
35144 2012-04-21  Bruno Haible  <bruno@clisp.org>
35146         users.txt: Update.
35147         * users.txt: Add freedink, wdiff. Update URLs for projects that have
35148         switched from CVS to git, bzr, or svn.
35150 2012-04-21  Bruno Haible  <bruno@clisp.org>
35152         Large File Support for native Windows platforms.
35154         * m4/largefile.m4 (gl_LARGEFILE): New macro.
35155         * modules/largefile (configure.ac): Require gl_LARGEFILE.
35157         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
35158         type.
35159         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
35160         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
35161         * doc/posix-headers/sys_types.texi: Mention the effect of the
35162         'largefile' module.
35164         * lib/fcntl.in.h: Add comments about off_t.
35165         * modules/fcntl-h (Depends-on): Add sys_types.
35167         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
35168         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
35169         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
35170         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
35171         * modules/unistd (Depends-on): Add sys_types.
35172         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
35174         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
35175         instead of lseek.
35176         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
35177         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
35178         * modules/lseek (Depends-on): Add sys_types.
35180         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
35181         msvc-nothrow.h.
35182         (SetFileSize): New function.
35183         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
35184         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
35185         if Large File Support is requested.
35186         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
35187         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
35189         * lib/stdio.in.h: Add comments about off_t.
35190         * modules/stdio (Depends-on): Add sys_types.
35192         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
35193         instead of ftello.
35194         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
35195         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
35196         (gl_PREREQ_FTELLO): New macro.
35197         * modules/ftello (Depends-on): Add sys_types.
35198         (configure.ac): Incoke gl_PREREQ_FTELLO.
35200         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
35201         instead of fseeko.
35202         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
35203         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
35204         (gl_PREREQ_FSEEKO): New macro.
35205         * modules/fseeko (Depends-on): Add sys_types.
35206         (configure.ac): Invoke gl_PREREQ_FSEEKO.
35208         * lib/sys_stat.in.h: Add comments about off_t.
35209         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
35210         64-bit integer for st_size in 'struct stat'.
35211         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
35212         Define _GL_WINDOWS_64_BIT_ST_SIZE.
35213         * modules/sys_stat (Depends-on): Add sys_types.
35214         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
35216         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
35217         instead of stat or _stat.
35219         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
35220         'struct _stati64' instead of fstat and 'struct stat'.
35221         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
35222         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
35224         Reported by Ray Satiro <raysatiro@yahoo.com>.
35226 2012-04-19  Eric Blake  <eblake@redhat.com>
35228         bootstrap: accommodate older libtool
35229         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
35230         Reported by Daniel P. Berrange.
35232 2012-04-19  Jim Meyering  <meyering@redhat.com>
35234         announce-gen: avoid failure due to lack of Digest::SHA1
35235         Even with the preferred Digest::SHA available, this script
35236         would fail when the backup module, Digest::SHA1, was not installed.
35237         * build-aux/announce-gen: Quote the conditional use of "use".
35238         Reported by Reuben Thomas in:
35239         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
35241         bootstrap: don't let a user's CDPATH setting affect this script
35242         When CDPATH is set, cd will sometimes generate output.
35243         When "cd" is run in a subshell whose output matters, that
35244         surprising-to-some output can cause malfunction.
35245         Unsetting CDPATH turns off this shell "feature."
35246         * build-aux/bootstrap (CDPATH): Unset.
35247         Reported by Reuben Thomas in:
35248         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
35249         and inspired by his patch here:
35250         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
35252 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
35253         and Jim Meyering  <meyering@redhat.com>
35255         maint.mk: catch "see @xref{}" and similar
35256         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
35257         prohibit "See also @xref{", "Also see @pxref{", and similar.
35259 2012-04-16  Jim Meyering  <meyering@redhat.com>
35261         bootstrap: really use gnulib's po/Makefile.in.in
35262         * build-aux/bootstrap: Correct the source file name in previous change.
35263         Reported by Akim Demaille.
35265         configmake: correct minor inconsistency in Makefile rule
35266         * modules/configmake (Makefile.am): All other rules like this one
35267         run the final "mv -f ..." in the same backslash-continued command
35268         as the one that does everything else.  This one put the mv -f ...
35269         command on a separate, non-backslash-continued line.
35270         Make it like the others.
35272         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
35273         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
35274         the one from gettext.  Reported by Akim Demaille.
35276 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
35278         Fix recursion of install-* into po directories.
35279         Bison's install-pdf bug reported by Hans Aberg at
35280         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
35281         * build-aux/po/Makefile.in.in (install-dvi, install-html)
35282         (install-info, install-pdf, install-ps): New targets.
35284 2012-04-16  Jim Meyering  <meyering@redhat.com>
35286         maint: avoid spurious "make sc_maint" failure
35287         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
35288         exempt all *.class file names, for lib/javaversion.class.
35290 2012-04-15  Bruno Haible  <bruno@clisp.org>
35292         lseek: Make configure test independent of environment.
35293         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
35294         Windows, we know that lseek() on pipes is broken; skip the runtime
35295         test.
35297 2012-04-14  Bruno Haible  <bruno@clisp.org>
35299         stat: Bypass buggy override in mingw64.
35300         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
35301         * lib/stat.c (stat) [mingw64]: Define to _stat.
35302         * doc/posix-functions/stat.texi: Mention mingw64 bug.
35304 2012-04-14  Bruno Haible  <bruno@clisp.org>
35306         pathmax: Fix compilation error on MSVC 9.
35307         * modules/pathmax (Depends-on): Add unistd.
35309 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
35311         README: document pointer comparison assumption
35312         * README (Portability guidelines): Document assumption about
35313         pointer comparisons, in response to a recent bug-gnulib comment by
35314         Jeffrey Kegler.
35316 2012-04-12  Bruno Haible  <bruno@clisp.org>
35318         Tests for module 'getrusage'.
35319         * modules/getrusage-tests: New file.
35320         * tests/test-getrusage.c: New file.
35322         New module 'getrusage'.
35323         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
35324         warn-on-use.h.
35325         (getrusage): New declaration.
35326         * lib/getrusage.c: New file.
35327         * m4/getrusage.m4: New file.
35328         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
35329         is declared.
35330         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
35331         HAVE_GETRUSAGE.
35332         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
35333         snippet/c++defs, snippet/warn-on-use.
35334         (Makefile.am): Update generation of sys/resource.h. Substitute
35335         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
35336         * modules/getrusage: New file.
35337         * doc/posix-functions/getrusage.texi: Mention the new module.
35339 2012-04-12  Bruno Haible  <bruno@clisp.org>
35341         Tests for module 'sys_resource'.
35342         * modules/sys_resource-tests: New file.
35343         * tests/test-sys_resource.c: New file.
35345         New module 'sys_resource'.
35346         * lib/sys_resource.in.h: New file.
35347         * m4/sys_resource_h.m4: New file.
35348         * modules/sys_resource: New file.
35349         * doc/posix-headers/sys_resource.texi: Mention the new module.
35351 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
35353         ioctl: Fix compilation error on mingw.
35354         * lib/ioctl.c: Include <windows.h>.
35355         Also reported by Ray Satiro <raysatiro@yahoo.com>.
35357 2012-04-04  Jim Meyering  <meyering@redhat.com>
35359         regex: correct #pragma guard expression
35360         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
35361         not 4.3.  Correct its cpp guard expression.
35363 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35365         regex: remove unnecessary type punning
35366         Problem reported by Vladimir Serbinenko in
35367         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
35368         * lib/regex.h (struct re_pattern_buffer): Change the type of
35369         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
35370         Fix comment to match code.
35371         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
35372         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
35373         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
35374         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
35375         (set_regs):
35376         Omit no-longer-necessary casts.
35378 2012-04-03  Bruno Haible  <bruno@clisp.org>
35380         Tests for module 'ilogbl'.
35381         * modules/ilogbl-tests: New file.
35382         * tests/test-ilogbl.c: New file.
35384         New module 'ilogbl'.
35385         * lib/math.in.h (ilogbl): New declaration.
35386         * lib/ilogbl.c: New file.
35387         * m4/ilogbl.m4: New file.
35388         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
35389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
35390         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
35391         Split sed invocation, to avoid the limit of 100 substitutions of
35392         HP-UX 'sed'.
35393         * modules/ilogbl: New file.
35394         * tests/test-math-c++.cc: Check the declaration of ilogbl.
35395         * doc/posix-functions/ilogbl.texi: Mention the new module.
35397 2012-04-03  Bruno Haible  <bruno@clisp.org>
35399         Tests for module 'ilogbf'.
35400         * modules/ilogbf-tests: New file.
35401         * tests/test-ilogbf.c: New file.
35403         New module 'ilogbf'.
35404         * lib/math.in.h (ilogbf): New declaration.
35405         * lib/ilogbf.c: New file.
35406         * m4/ilogbf.m4: New file.
35407         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
35408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
35409         REPLACE_ILOGBF.
35410         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
35411         REPLACE_ILOGBF.
35412         * modules/ilogbf: New file.
35413         * tests/test-math-c++.cc: Check the declaration of ilogbf.
35414         * doc/posix-functions/ilogbf.texi: Mention the new module.
35416 2012-04-03  Bruno Haible  <bruno@clisp.org>
35418         Tests for module 'ilogb'.
35419         * modules/ilogb-tests: New file.
35420         * tests/test-ilogb.c: New file.
35421         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
35422         tests/test-logb-ieee.h.
35424         New module 'ilogb'.
35425         * lib/math.in.h (ilogb): New declaration.
35426         * lib/ilogb.c: New file.
35427         * m4/ilogb.m4: New file.
35428         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
35429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
35430         REPLACE_ILOGB.
35431         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
35432         REPLACE_ILOGB.
35433         * modules/ilogb: New file.
35434         * tests/test-math-c++.cc: Check the declaration of ilogb.
35435         * doc/posix-functions/ilogb.texi: Mention the new module.
35437 2012-04-03  Bruno Haible  <bruno@clisp.org>
35439         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
35440         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
35441         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
35442         (main): Check their values.
35443         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
35444         problem.
35446 2012-04-03  Bruno Haible  <bruno@clisp.org>
35448         Tests for module 'logbl-ieee'.
35449         * modules/logbl-ieee-tests: New file.
35450         * tests/test-logbl-ieee.c: New file.
35452         New module 'logbl-ieee'.
35453         * modules/logbl-ieee: New file.
35455         Tests for module 'logb-ieee'.
35456         * modules/logb-ieee-tests: New file.
35457         * tests/test-logb-ieee.c: New file.
35459         New module 'logb-ieee'.
35460         * modules/logb-ieee: New file.
35462         Tests for module 'logbf-ieee'.
35463         * modules/logbf-ieee-tests: New file.
35464         * tests/test-logbf-ieee.c: New file.
35465         * tests/test-logb-ieee.h: New file.
35467         New module 'logbf-ieee'.
35468         * modules/logbf-ieee: New file.
35470 2012-04-03  Bruno Haible  <bruno@clisp.org>
35472         Tests for module 'logbl'.
35473         * modules/logbl-tests: New file.
35474         * tests/test-logbl.c: New file.
35476         New module 'logbl'.
35477         * lib/math.in.h (logbl): New declaration.
35478         * lib/logbl.c: New file.
35479         * m4/logbl.m4: New file.
35480         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
35481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
35482         REPLACE_LOGBL.
35483         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
35484         REPLACE_LOGBL.
35485         * modules/logbl: New file.
35486         * tests/test-math-c++.cc: Check the declaration of logbl.
35487         * doc/posix-functions/logbl.texi: Mention the new module.
35489 2012-04-02  Bruno Haible  <bruno@clisp.org>
35491         Tests for module 'logbf'.
35492         * modules/logbf-tests: New file.
35493         * tests/test-logbf.c: New file.
35495         New module 'logbf'.
35496         * lib/math.in.h (logbf): New declaration.
35497         * lib/logbf.c: New file.
35498         * m4/logbf.m4: New file.
35499         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
35500         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
35501         REPLACE_LOGBF.
35502         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
35503         REPLACE_LOGBF.
35504         * modules/logbf: New file.
35505         * tests/test-math-c++.cc: Check the declaration of logbf.
35506         * doc/posix-functions/logbf.texi: Mention the new module.
35508 2012-04-02  Bruno Haible  <bruno@clisp.org>
35510         logb tests: More tests.
35511         * tests/test-logb.h: New file, based on tests/test-logb.c and
35512         tests/test-frexp.h.
35513         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
35514         (main): Just invoke test_function.
35515         * modules/logb-tests (Files): Add tests/test-logb.h,
35516         tests/minus-zero.h, tests/randomd.c.
35517         (Makefile.am): Add randomd.c to test_logb_SOURCES.
35519         logb: Provide replacement and workarounds.
35520         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
35521         is 1.
35522         * lib/logb.c: New file.
35523         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
35524         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
35525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
35526         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
35527         * modules/logb (Files): Add lib/logb.c.
35528         (Depends-on): Add isfinite, frexp, isnand.
35529         (configure.ac): Compile the replacement code logb.c if needed.
35530         * tests/test-math-c++.cc: Check the declaration of logb.
35531         * doc/posix-functions/logb.texi: Mention the replacement and the bug
35532         with subnormal numbers.
35534 2012-04-02  Bruno Haible  <bruno@clisp.org>
35536         log10* tests: Speed up.
35537         * tests/test-log10.h (test_function): Reduce amount of random numbers
35538         to test.
35540 2012-04-01  Bruno Haible  <bruno@clisp.org>
35542         logf-ieee: Fix test whether logf works.
35543         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
35545 2012-04-01  Bruno Haible  <bruno@clisp.org>
35547         log10l: Work around log10l-ieee test failure on IRIX 6.5.
35548         * lib/log10l.c: Include <float.h>
35549         (log10l): On IRIX, normalize the +Infinity value.
35550         * modules/log10l (Depends-on): Add 'float'.
35551         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
35552         +Infinity.
35554         log10f-ieee: Work around test failure on NetBSD 5.1.
35555         * m4/log10f-ieee.m4: New file.
35556         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
35557         test whether log10f works with a negative argument. Replace it if not.
35558         * lib/log10f.c (log10f): For negative arguments, return NaN.
35559         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
35560         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
35561         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
35563         log10f-ieee: Work around test failure on Solaris 9.
35564         * modules/log10f-ieee (Depends-on): Add log10-ieee.
35565         (configure.ac): Require gl_FUNC_LOG10F.
35567         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
35568         * m4/log10-ieee.m4: New file.
35569         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
35570         whether log10 works with a negative argument. Replace it if not.
35571         * lib/log10.c (log10): For negative arguments, return NaN.
35572         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
35573         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
35574         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
35576         Tests for module 'log10l-ieee'.
35577         * modules/log10l-ieee-tests: New file.
35578         * tests/test-log10l-ieee.c: New file.
35580         New module 'log10l-ieee'.
35581         * modules/log10l-ieee: New file.
35583         Tests for module 'log10-ieee'.
35584         * modules/log10-ieee-tests: New file.
35585         * tests/test-log10-ieee.c: New file.
35587         New module 'log10-ieee'.
35588         * modules/log10-ieee: New file.
35590         Tests for module 'log10f-ieee'.
35591         * modules/log10f-ieee-tests: New file.
35592         * tests/test-log10f-ieee.c: New file.
35593         * tests/test-log10-ieee.h: New file.
35595         New module 'log10f-ieee'.
35596         * modules/log10f-ieee: New file.
35598 2012-04-01  Bruno Haible  <bruno@clisp.org>
35600         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
35601         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
35602         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
35603         workaround.
35604         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
35605         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
35606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
35607         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
35608         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
35609         (Depends-on): Update conditions.
35610         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
35611         IRIX 6.5, OSF/1 5.1 problems.
35613 2012-04-01  Bruno Haible  <bruno@clisp.org>
35615         log10f: Work around OSF/1 5.1 bug.
35616         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
35617         * lib/log10f.c (log10f): If logf exists, use it and provide just the
35618         workaround.
35619         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
35620         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
35621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
35622         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
35623         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
35624         (Depends-on): Update conditions.
35625         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
35627 2012-04-01  Bruno Haible  <bruno@clisp.org>
35629         log10: Work around OSF/1 5.1 bug.
35630         * lib/math.in.h (log10): New declaration.
35631         * lib/log10.c: New file.
35632         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
35633         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
35634         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
35635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
35636         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
35637         * modules/log10 (Files): Add lib/log10.c.
35638         (Depends-on): Add math.
35639         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
35640         * tests/test-math-c++.cc: Check the declaration of log10.
35641         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
35643 2012-03-31  Bruno Haible  <bruno@clisp.org>
35645         log10l tests: More tests.
35646         * modules/log10l-tests (Files): Add tests/test-log10l.h,
35647         tests/minus-zero.h, tests/randoml.c.
35648         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
35649         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
35650         (main): Invoke test_function.
35652         log10f tests: More tests.
35653         * modules/log10f-tests (Files): Add tests/test-log10.h,
35654         tests/minus-zero.h, tests/randomf.c.
35655         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
35656         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
35657         (main): Invoke test_function.
35659         log10 tests: More tests.
35660         * tests/test-log10.h: New file.
35661         * modules/log10-tests (Files): Add tests/test-log10.h,
35662         tests/minus-zero.h, tests/randomd.c.
35663         (Makefile.am): Add randomd.c to test_log10_SOURCES.
35664         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
35665         (main): Invoke test_function.
35667 2012-03-31  Simon Josefsson  <simon@josefsson.org>
35669         fflush: Fix syntax error.
35670         * lib/fflush.c: Include unused-parameter.h, needed for
35671         _GL_UNUSED_PARAMETER.
35672         * modules/fflush (Depends-on): Add snippet/unused-parameter.
35674 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35676         regex: pacify GCC when compiling GRUB
35677         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
35678         a diagnostic.  Reported by Vladimir Serbinenko in
35679         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
35681 2012-03-29  Eric Blake  <eblake@redhat.com>
35683         stdio: don't assume gets any more
35684         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
35685         support.
35686         * modules/stdio (Makefile.am): Likewise.
35687         * lib/stdio-read.c (gets): Likewise.
35688         * tests/test-stdio-c++.cc: Likewise.
35689         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
35690         * lib/stdio.in.h (gets): Make warning occur in more places.
35691         * doc/posix-functions/gets.texi (gets): Update documentation.
35692         Reported by Christer Solskogen.
35694         maint.mk: fix syntax checks without exclusions
35695         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
35696         Reported by Daniel P. Berrange.
35698         strerror_r: avoid compiler warning
35699         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
35700         level.
35702         fflush: avoid compiler warning
35703         * lib/fflush.c (update_fpos_cache): Mark variables that are
35704         potentially unused.
35706 2012-03-25  Bruno Haible  <bruno@clisp.org>
35708         Tests for module 'localeconv'.
35709         * modules/localeconv-tests: New file.
35710         * tests/test-localeconv.c: New file.
35712         New module 'localeconv'.
35713         * lib/locale.in.h (localeconv): New declaration.
35714         * lib/localeconv.c: New file.
35715         * m4/localeconv.m4: New file.
35716         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
35717         REPLACE_LOCALECONV.
35718         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
35719         REPLACE_LOCALECONV.
35720         * modules/localeconv: New file.
35721         * modules/nl_langinfo (Depends-on): Add localeconv.
35722         * modules/human (Depends-on): Likewise.
35723         * doc/posix-functions/localeconv.texi: Mention the new module.
35725 2012-03-25  Bruno Haible  <bruno@clisp.org>
35727         locale: Provide a complete 'struct lconv'.
35728         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
35729         'struct lconv' does not contain int_p_cs_precedes.
35730         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
35731         * doc/posix-headers/locale.texi: Update.
35733         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
35734         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
35735         * doc/posix-headers/locale.texi: Update.
35737         locale: Provide a working 'struct lconv'.
35738         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
35739         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
35740         'struct lconv' does not even contain decimal_point.
35741         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
35742         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
35743         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
35744         * doc/posix-headers/locale.texi: Mention the problems with
35745         'struct lconv'.
35746         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
35748 2012-03-24  Bruno Haible  <bruno@clisp.org>
35750         Enable common subexpression optimization in GCC.
35751         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
35752         macros.
35753         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
35754         GCC attribute 'const'.
35755         (uc_locale_language): Declare with GCC attribute 'pure'.
35756         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
35757         with GCC attribute 'const'.
35758         * lib/unictype.in.h (uc_is_general_category_withtable,
35759         uc_combining_class, uc_combining_class_name,
35760         uc_combining_class_long_name, uc_bidi_class_name,
35761         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
35762         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
35763         uc_decimal_value, uc_digit_value, uc_numeric_value,
35764         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
35765         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
35766         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
35767         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
35768         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
35769         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
35770         Declare with GCC attribute 'const'.
35771         (uc_general_category_name, uc_general_category_long_name,
35772         uc_general_category_byname, uc_general_category,
35773         uc_is_general_category, uc_combining_class_byname,
35774         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
35775         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
35776         Declare with GCC attribute 'pure'.
35777         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
35778         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
35779         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
35780         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
35781         with GCC attribute 'pure'.
35782         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
35783         'const'.
35784         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
35785         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
35786         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
35787         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
35788         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
35789         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
35790         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
35791         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
35792         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
35793         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
35794         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
35795         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
35796         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
35797         GCC attribute 'pure'.
35798         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
35799         'const'.
35800         * lib/uniwidth.in.h (uc_width): Simplify declaration.
35801         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
35802         u32_strwidth): Declare with GCC attribute 'pure'.
35804         Enable common subexpression optimization in GCC.
35805         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
35806         (alphasort): Declare with GCC attribute 'pure'.
35807         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
35808         (atoll): Declare with GCC attribute 'pure'.
35809         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
35810         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
35811         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
35812         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
35813         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
35814         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
35815         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
35817 2012-03-24  Bruno Haible  <bruno@clisp.org>
35819         gnulib-tool: Avoid unintended error output from 'cmp'.
35820         * gnulib-tool (func_add_file, func_update_file, func_import): Use
35821         "cmp -s", not "cmp > /dev/null".
35823 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
35825         gnulib-tool: fix imprecise comments w.r.t. an automake bug
35827         It's not just Automake versions < 1.9b that creates an empty
35828         pkgdatadir at installation time if pkgdata_DATA is specified
35829         to empty; modern automake versions do this as well, at least
35830         until automake 1.11.4 (not yet released at the moment of writing,
35831         but soon to appear).  That behaviour was generally considered a
35832         feature rather than a bug, at least until this discussion:
35833         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
35835         See also automake bugs #10997 and #11030.
35837         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
35838         reference to relevant automake bug numbers.
35839         (func_emit_tests_Makefile_am): Likewise.
35841 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
35843         announce-gen: use Digest::SHA when possible
35844         * build-aux/announce-gen: Use Digest::SHA when possible, falling
35845         back to Digest::SHA1 if necessary.
35847 2012-03-20  Jim Meyering  <meyering@redhat.com>
35849         tests: avoid gcc warnings about argv vs. const initializers
35850         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
35851         warnings about discarding 'const' qualifier from pointer target type.
35852         * tests/test-posix_spawn2.c (main): Likewise.
35854 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
35856         README-release: simplify slightly
35857         * top/README-release: Run "git checkout master" only once.
35859 2012-03-15  Mark Wielaard  <mark@klomp.org>
35861         git-merge-changelog: add specific example on how to use with hg.
35862         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
35864 2012-03-18  Mark Wielaard  <mark@klomp.org>
35866         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
35868 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
35870         git-version-gen: don't let "prefix" envvar cause trouble
35871         * build-aux/git-version-gen (prefix): Initialize properly,
35872         so as not to use a value specified via the environment.
35873         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
35875 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35877         regex: diagnose too-large repeat counts in EREs
35878         Previously, the code did not diagnose the too-large repeat count
35879         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
35880         as if it were 'b\{1000000000}', which is unexpected.
35881         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
35882         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
35883         is a reasonable one for this problem.  Another option would be to
35884         create a new REG_OVERFLOW error for repeat counts that are too large.
35885         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
35886         count is too large, so that the caller can distinguish the two cases.
35887         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
35888         "Too large" return code, and that repeat counts are one example of this.
35890 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35892         doc: some glibc x32 integer width issues
35893         * doc/posix-headers/sys_types.texi (sys/types.h):
35894         * doc/posix-headers/time.texi (time.h):
35895         Mention that glibc x32 does not conform to POSIX in a couple of
35896         areas related to integer widths.
35898 2012-03-15  Bruno Haible  <bruno@clisp.org>
35900         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
35901         * lib/fma.c (VOLATILE): New macro.
35902         (FUNC): Use it to work around a GCC compiler bug.
35904 2012-03-13  Bruno Haible  <bruno@clisp.org>
35906         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
35907         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
35908         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
35909         REPLACE_HYPOTL to 1.
35910         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
35912 2012-03-13  Bruno Haible  <bruno@clisp.org>
35914         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
35915         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
35916         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
35917         REPLACE_REMAINDERL to 1.
35918         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
35919         bug.
35921 2012-03-13  Bruno Haible  <bruno@clisp.org>
35923         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
35924         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
35925         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
35926         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
35927         too big rounding errors.
35928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
35929         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
35930         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
35931         (Depends-on): Update conditions.
35932         * tests/test-sqrtl.c (my_ldexpl): New function.
35933         (main): Add test of a particular value.
35934         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
35936 2012-03-13  Pádraig Brady  <P@draigBrady.com>
35938         doc: Update timer_* platform portability notes.
35939         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
35940         that always return ENOSYS.
35941         * doc/posix-functions/timer_delete.texi: Likewise.
35942         * doc/posix-functions/timer_gettime.texi: Likewise.
35943         * doc/posix-functions/timer_settime.texi: Likewise.
35945 2012-03-13  Bruno Haible  <bruno@clisp.org>
35947         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
35948         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
35949         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
35950         REPLACE_CBRTL to 1.
35951         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
35953 2012-03-13  Bruno Haible  <bruno@clisp.org>
35955         remainderl: Avoid compilation error on AIX >= 5.2.
35956         * lib/math.in.h (remainderl): Undefine macro from the system header.
35958 2012-03-13  Bruno Haible  <bruno@clisp.org>
35960         Avoid compilation errors with MSVC option -fp:strict.
35961         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
35962         * lib/cbrtf.c: Likewise.
35963         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
35965 2012-03-12  Bruno Haible  <bruno@clisp.org>
35967         uninorm: Don't crash in out-of-memory conditions.
35968         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
35969         gracefully.
35970         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
35971         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
35973 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
35975         quote: fix syntax-check
35976         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
35977         also exports quote_quoting_options.
35979 2012-03-12  Simon Josefsson  <simon@josefsson.org>
35981         Collapse list of copyright years to ranges.  See
35982         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
35983         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
35984         build-aux/csharpexec.sh.in, build-aux/gnupload,
35985         build-aux/install-reloc, build-aux/javacomp.sh.in,
35986         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
35987         build-aux/move-if-change, build-aux/reloc-ldflags,
35988         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
35990 2012-03-11  Bruno Haible  <bruno@clisp.org>
35992         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
35993         * m4/log2f-ieee.m4: New file.
35994         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
35995         whether log2f works with a minus zero argument. Replace it if not.
35996         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
35997         (Depends-on): Add log2-ieee.
35998         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
35999         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
36001         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36002         * m4/log2-ieee.m4: New file.
36003         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
36004         whether log2 works with a minus zero argument. Replace it if not.
36005         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
36006         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
36007         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
36009         Tests for module 'log2l-ieee'.
36010         * modules/log2l-ieee-tests: New file.
36011         * tests/test-log2l-ieee.c: New file.
36013         New module 'log2l-ieee'.
36014         * modules/log2l-ieee: New file.
36016         Tests for module 'log2-ieee'.
36017         * modules/log2-ieee-tests: New file.
36018         * tests/test-log2-ieee.c: New file.
36020         New module 'log2-ieee'.
36021         * modules/log2-ieee: New file.
36023         Tests for module 'log2f-ieee'.
36024         * modules/log2f-ieee-tests: New file.
36025         * tests/test-log2f-ieee.c: New file.
36026         * tests/test-log2-ieee.h: New file.
36028         New module 'log2f-ieee'.
36029         * modules/log2f-ieee: New file.
36031 2012-03-11  Bruno Haible  <bruno@clisp.org>
36033         Tests for module 'log2l'.
36034         * modules/log2l-tests: New file.
36035         * tests/test-log2l.c: New file.
36037         New module 'log2l'.
36038         * lib/math.in.h (log2l): New declaration.
36039         * lib/log2l.c: New file.
36040         * m4/log2l.m4: New file.
36041         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
36042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
36043         REPLACE_LOG2L.
36044         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
36045         REPLACE_LOG2L.
36046         * modules/log2l: New file.
36047         * tests/test-math-c++.cc: Check the declaration of log2l.
36048         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
36049         and OSF/1 problems.
36051 2012-03-11  Bruno Haible  <bruno@clisp.org>
36053         Tests for module 'log2f'.
36054         * modules/log2f-tests: New file.
36055         * tests/test-log2f.c: New file.
36057         New module 'log2f'.
36058         * lib/math.in.h (log2f): New declaration.
36059         * lib/log2f.c: New file.
36060         * m4/log2f.m4: New file.
36061         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
36062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
36063         REPLACE_LOG2F.
36064         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
36065         REPLACE_LOG2F.
36066         * modules/log2f: New file.
36067         * tests/test-math-c++.cc: Check the declaration of log2f.
36068         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
36069         and OSF/1 and Cygwin problems.
36071 2012-03-11  Bruno Haible  <bruno@clisp.org>
36073         Tests for module 'log2'.
36074         * modules/log2-tests: New file.
36075         * tests/test-log2.c: New file.
36076         * tests/test-log2.h: New file.
36078         New module 'log2'.
36079         * lib/math.in.h (log2): New declaration.
36080         * lib/log2.c: New file.
36081         * m4/log2.m4: New file.
36082         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
36083         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
36084         REPLACE_LOG2.
36085         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
36086         REPLACE_LOG2.
36087         * modules/log2: New file.
36088         * tests/test-math-c++.cc: Check the declaration of log2.
36089         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
36090         and OSF/1 and Cygwin problems.
36092 2012-03-11  Bruno Haible  <bruno@clisp.org>
36094         exp2* tests: More tests.
36095         * tests/test-exp2.h (test_function): Test all integral arguments that
36096         don't need to overflow or denormalized numbers.
36097         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
36098         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
36099         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
36101 2012-03-10  Bruno Haible  <bruno@clisp.org>
36103         log1pl-ieee: Work around test failure on AIX 7.1.
36104         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
36106         log1pl-ieee: Work around test failure on IRIX 6.5.
36107         * m4/log1pl-ieee.m4: New file.
36108         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
36109         test whether log1pl works with a minus zero argument. Replace it if
36110         not.
36111         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
36112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
36113         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
36114         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
36115         (Depends-on): Update conditions.
36116         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36117         m4/signbit.m4.
36118         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
36119         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
36121         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
36122         * m4/log1pf-ieee.m4: New file.
36123         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
36124         test whether log1pf works with a minus zero argument. Replace it if
36125         not.
36126         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
36127         m4/signbit.m4.
36128         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
36129         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
36131         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
36132         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
36133         (configure.ac): Require gl_FUNC_LOG1PF.
36135         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
36136         * m4/log1p-ieee.m4: New file.
36137         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
36138         whether log1p works with a minus zero argument. Replace it if not.
36139         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
36140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
36141         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
36142         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
36143         (Depends-on): Update conditions.
36144         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36145         m4/signbit.m4.
36146         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
36147         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
36149         Tests for module 'log1pl-ieee'.
36150         * modules/log1pl-ieee-tests: New file.
36151         * tests/test-log1pl-ieee.c: New file.
36153         New module 'log1pl-ieee'.
36154         * modules/log1pl-ieee: New file.
36156         Tests for module 'log1p-ieee'.
36157         * modules/log1p-ieee-tests: New file.
36158         * tests/test-log1p-ieee.c: New file.
36160         New module 'log1p-ieee'.
36161         * modules/log1p-ieee: New file.
36163         Tests for module 'log1pf-ieee'.
36164         * modules/log1pf-ieee-tests: New file.
36165         * tests/test-log1pf-ieee.c: New file.
36166         * tests/test-log1p-ieee.h: New file.
36168         New module 'log1pf-ieee'.
36169         * modules/log1pf-ieee: New file.
36171 2012-03-10  Bruno Haible  <bruno@clisp.org>
36173         Tests for module 'log1pl'.
36174         * modules/log1pl-tests: New file.
36175         * tests/test-log1pl.c: New file.
36177         New module 'log1pl'.
36178         * lib/math.in.h (log1pl): New declaration.
36179         * lib/log1pl.c: New file.
36180         * m4/log1pl.m4: New file.
36181         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
36182         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
36183         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
36184         * modules/log1pl: New file.
36185         * tests/test-math-c++.cc: Check the declaration of log1pl.
36186         * doc/posix-functions/log1pl.texi: Mention the new module.
36188 2012-03-10  Bruno Haible  <bruno@clisp.org>
36190         Tests for module 'log1pf'.
36191         * modules/log1pf-tests: New file.
36192         * tests/test-log1pf.c: New file.
36194         New module 'log1pf'.
36195         * lib/math.in.h (log1pf): New declaration.
36196         * lib/log1pf.c: New file.
36197         * m4/log1pf.m4: New file.
36198         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
36199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
36200         REPLACE_LOG1PF.
36201         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
36202         REPLACE_LOG1PF.
36203         * modules/log1pf: New file.
36204         * tests/test-math-c++.cc: Check the declaration of log1pf.
36205         * doc/posix-functions/log1pf.texi: Mention the new module.
36207 2012-03-10  Bruno Haible  <bruno@clisp.org>
36209         log1p tests: More tests.
36210         * tests/test-log1p.h: New file.
36211         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
36212         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
36213         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
36214         (main): Invoke test_function.
36216         log1p: Provide replacement for Minix and MSVC.
36217         * lib/math.in.h (log1p): New declaration.
36218         * lib/log1p.c: New file.
36219         * m4/log1p.m4: New file.
36220         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
36221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
36222         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
36223         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
36224         (Depends-on): Add math, isnand, log, round.
36225         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
36226         HAVE_LOG1P is 0.
36227         * tests/test-math-c++.cc: Check the declaration of log1p.
36228         * doc/posix-functions/log1p.texi: Mention the replacement.
36230 2012-03-10  Bruno Haible  <bruno@clisp.org>
36232         math tests: Small simplification.
36233         * tests/test-exp.h (test_function): Use the same err_bound for
36234         'double' on platforms with sizeof (long double) == sizeof (double)
36235         than on platforms with sizeof (long double) > sizeof (double).
36236         * tests/test-exp2.h (test_function): Likewise.
36237         * tests/test-expm1.h (test_function): Likewise.
36238         * tests/test-log.h (test_function): Likewise.
36240 2012-03-10  Bruno Haible  <bruno@clisp.org>
36242         Fix some comments.
36243         * lib/expl.c: Fix an ambiguous comment.
36244         * lib/expm1.c: Likewise.
36245         * lib/expm1l.c: Likewise.
36246         * lib/exp2.c: Likewise.
36247         * lib/exp2l.c: Likewise.
36249 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
36251         regex: allow inclusion of <regex.h> before <limits.h>
36252         Without this patch, portable programs had to include <limits.h> before
36253         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
36254         I ran into this problem with a test version of GNU grep on Solaris 8.
36255         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
36256         This is done conditionally so that this change can be merged
36257         back to glibc.
36258         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
36259         using the included regex.
36261         fts: depend on fdopendir
36262         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
36263         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
36264         problem was introduced when fdopendir was split out.
36266 2012-03-10  Bruno Haible  <bruno@clisp.org>
36268         Remove unused variables.
36269         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
36270         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
36272 2012-03-10  Bruno Haible  <bruno@clisp.org>
36274         isnanf-nolibm: Fix last commit.
36275         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
36277         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
36278         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
36280 2012-03-10  Bruno Haible  <bruno@clisp.org>
36282         logf-ieee: Work around test failure on NetBSD 5.1.
36283         * m4/logf-ieee.m4: New file.
36284         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
36285         whether logf works with a negative argument. Replace it if not.
36286         * lib/logf.c (logf): For negative arguments, return NaN.
36287         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
36288         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
36289         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
36291         logf-ieee: Work around test failure on Solaris 9.
36292         * modules/logf-ieee (Depends-on): Add log-ieee.
36293         (configure.ac): Require gl_FUNC_LOGF.
36295         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36296         * m4/log-ieee.m4: New file.
36297         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
36298         log works with a negative argument. Replace it if not.
36299         * lib/log.c (log): For negative arguments, return NaN.
36300         * modules/log-ieee (Files): Add m4/log-ieee.m4.
36301         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
36302         * doc/posix-functions/log.texi: Mention the log-ieee module.
36304         Tests for module 'logl-ieee'.
36305         * modules/logl-ieee-tests: New file.
36306         * tests/test-logl-ieee.c: New file.
36308         New module 'logl-ieee'.
36309         * modules/logl-ieee: New file.
36311         Tests for module 'log-ieee'.
36312         * modules/log-ieee-tests: New file.
36313         * tests/test-log-ieee.c: New file.
36315         New module 'log-ieee'.
36316         * modules/log-ieee: New file.
36318         Tests for module 'logf-ieee'.
36319         * modules/logf-ieee-tests: New file.
36320         * tests/test-logf-ieee.c: New file.
36321         * tests/test-log-ieee.h: New file.
36323         New module 'logf-ieee'.
36324         * modules/logf-ieee: New file.
36326 2012-03-10  Bruno Haible  <bruno@clisp.org>
36328         log: Fix bug introduced on 2012-03-09.
36329         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
36331 2012-03-10  Pádraig Brady  <P@draigBrady.com>
36333         timer-time: link explicitly with pthreads on glibc
36334         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36335         to support static linking, when newer glibc is
36336         detected, as that contains pthread emulation of
36337         POSIX timer functions where required.
36338         * modules/timer-time: Depend on threadlib to
36339         pull in the appropriate library to link.
36341 2012-03-10  Bruno Haible  <bruno@clisp.org>
36343         log* tests: More tests.
36344         * tests/test-log.h: New file.
36345         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
36346         (main): Invoke test_function.
36347         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
36348         (main): Invoke test_function.
36349         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
36350         (main): Invoke test_function.
36351         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36352         tests/randomd.c.
36353         (Makefile.am): Add randomd.c to test_log_SOURCES.
36354         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36355         tests/randomf.c.
36356         (Makefile.am): Add randomf.c to test_logf_SOURCES.
36357         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36358         tests/randoml.c.
36359         (Depends-on): Add 'float'.
36360         (Makefile.am): Add randoml.c to test_logl_SOURCES.
36362 2012-03-09  Bruno Haible  <bruno@clisp.org>
36364         logl: Work around OSF/1 5.1 bug.
36365         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
36366         * lib/logl.c (logl): If logl exists, use it and provide just the
36367         workaround.
36368         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
36369         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
36370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
36371         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
36372         * modules/logl (configure.ac): Consider REPLACE_LOGL.
36373         (Depends-on): Update conditions.
36374         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
36376 2012-03-09  Bruno Haible  <bruno@clisp.org>
36378         logf: Work around OSF/1 5.1 bug.
36379         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
36380         * lib/logf.c (logf): If logf exists, use it and provide just the
36381         workaround.
36382         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
36383         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
36384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
36385         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
36386         * modules/logf (configure.ac): Consider REPLACE_LOGF.
36387         (Depends-on): Update conditions.
36388         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
36390 2012-03-09  Bruno Haible  <bruno@clisp.org>
36392         log: Work around OSF/1 5.1 bug.
36393         * lib/math.in.h (log): New declaration.
36394         * lib/log.c: New file.
36395         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
36396         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
36397         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
36398         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
36399         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
36400         * modules/log (Files): Add lib/log.c.
36401         (Depends-on): Add math.
36402         (configure.ac): If REPLACE_LOG is 1, compile an override.
36403         * tests/test-math-c++.cc: Check the declaration of log.
36404         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
36406 2012-03-09  Jim Meyering  <meyering@redhat.com>
36408         readtokens.c: adjust wording in a comment
36409         * lib/readtokens.c: Insert omitted "that" in a comment.
36411 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36413         modechange: add notations +40, 00440, etc.
36414         * lib/modechange.c (mode_compile): Support new notations
36415         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
36417 2012-03-08  Bruno Haible  <bruno@clisp.org>
36419         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
36420         * m4/exp2l-ieee.m4: New file.
36421         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
36422         test whether exp2l works with a NaN argument and with a negative
36423         infinity argument. Replace it if not.
36424         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
36425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
36426         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
36427         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
36428         (Depends-on): Update conditions.
36429         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
36430         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
36431         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
36433         Tests for module 'exp2l-ieee'.
36434         * modules/exp2l-ieee-tests: New file.
36435         * tests/test-exp2l-ieee.c: New file.
36437         New module 'exp2l-ieee'.
36438         * modules/exp2l-ieee: New file.
36440         Tests for module 'exp2-ieee'.
36441         * modules/exp2-ieee-tests: New file.
36442         * tests/test-exp2-ieee.c: New file.
36444         New module 'exp2-ieee'.
36445         * modules/exp2-ieee: New file.
36447         Tests for module 'exp2f-ieee'.
36448         * modules/exp2f-ieee-tests: New file.
36449         * tests/test-exp2f-ieee.c: New file.
36450         * tests/test-exp2-ieee.h: New file.
36452         New module 'exp2f-ieee'.
36453         * modules/exp2f-ieee: New file.
36455 2012-03-08  Bruno Haible  <bruno@clisp.org>
36457         Tests for module 'exp2l'.
36458         * modules/exp2l-tests: New file.
36459         * tests/test-exp2l.c: New file.
36461         New module 'exp2l'.
36462         * lib/math.in.h (exp2l): New declaration.
36463         * lib/exp2l.c: New file.
36464         * lib/expl-table.c: New file, extracted from lib/expl.c.
36465         * lib/expl.c (gl_expl_table): New declaration.
36466         (expl): Remove expl_table. Update reference.
36467         * m4/exp2l.m4: New file.
36468         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
36469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
36470         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
36471         * modules/exp2l: New file.
36472         * modules/expl (Files): Add lib/expl-table.c.
36473         (configure.ac): Compile also expl-table.c.
36474         * tests/test-math-c++.cc: Check the declaration of exp2l.
36475         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
36476         problem.
36478 2012-03-08  Bruno Haible  <bruno@clisp.org>
36480         Tests for module 'exp2f'.
36481         * modules/exp2f-tests: New file.
36482         * tests/test-exp2f.c: New file.
36484         New module 'exp2f'.
36485         * lib/math.in.h (exp2f): New declaration.
36486         * lib/exp2f.c: New file.
36487         * m4/exp2f.m4: New file.
36488         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
36489         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
36490         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
36491         * modules/exp2f: New file.
36492         * tests/test-math-c++.cc: Check the declaration of exp2f.
36493         * doc/posix-functions/exp2f.texi: Mention the new module and the
36494         IRIX problem.
36496 2012-03-08  Bruno Haible  <bruno@clisp.org>
36498         Tests for module 'exp2'.
36499         * modules/exp2-tests: New file.
36500         * tests/test-exp2.c: New file.
36501         * tests/test-exp2.h: New file.
36503         New module 'exp2'.
36504         * lib/math.in.h (exp2): New declaration.
36505         * lib/exp2.c: New file.
36506         * m4/exp2.m4: New file.
36507         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
36508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
36509         REPLACE_EXP2.
36510         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
36511         REPLACE_EXP2.
36512         * modules/exp2: New file.
36513         * tests/test-math-c++.cc: Check the declaration of exp2.
36514         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
36515         and OpenBSD problems.
36517 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36519         savedir: fix comment typo
36520         * lib/savedir.c (savedirstream): Fix typo in comment.
36522 2012-03-08  Bruno Haible  <bruno@clisp.org>
36524         test-readtokens.c: use const; remove unwarranted cast
36525         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
36527 2012-03-08  Bruno Haible  <bruno@clisp.org>
36529         fmal: Avoid compilation error on AIX.
36530         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
36531         AIX 5.2..7.1.
36533 2012-03-08  Bruno Haible  <bruno@clisp.org>
36535         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
36536         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
36537         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
36538         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
36539         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
36540         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
36541         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
36543 2012-03-08  Bruno Haible  <bruno@clisp.org>
36545         remainderf: Override buggy system function on IRIX 6.5.
36546         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
36547         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
36548         when it exists.
36549         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
36551 2012-03-08  Jim Meyering  <meyering@redhat.com>
36553         test-readtokens.c: avoid const-related compilation warnings
36554         * tests/test-readtokens.c: Avoid const-related compilation warnings.
36556 2012-03-07  Jim Meyering  <meyering@redhat.com>
36557             Bruno Haible  <bruno@clisp.org>
36559         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
36560         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
36561         tests/randomd.c.
36562         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
36563         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
36564         tests/randoml.c.
36565         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
36567 2012-03-07  Bruno Haible  <bruno@clisp.org>
36569         expm1l: Avoid compilation error on AIX.
36570         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
36571         AIX 5.2..7.1.
36573 2012-03-07  Bruno Haible  <bruno@clisp.org>
36575         expm1l: Don't override undeclared system function on IRIX 6.5.
36576         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
36577         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
36578         it exists. Set HAVE_DECL_EXPM1L.
36579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
36580         HAVE_EXPM1L.
36581         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
36582         HAVE_EXPM1L.
36583         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
36585 2012-03-07  Bruno Haible  <bruno@clisp.org>
36587         remainderl: Don't override undeclared system function on IRIX 6.5.
36588         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
36589         HAVE_REMAINDERL.
36590         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
36591         declared when it exists. Set HAVE_DECL_REMAINDERL.
36592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
36593         not HAVE_REMAINDERL.
36594         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
36595         HAVE_REMAINDERL.
36596         * doc/posix-functions/remainderl.texi: Mention missing declaration
36597         problem.
36599 2012-03-07  Bruno Haible  <bruno@clisp.org>
36601         rintf: Don't override undeclared system function on IRIX 6.5.
36602         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
36603         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
36604         exists. Set HAVE_DECL_RINTF.
36605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
36606         HAVE_RINTF.
36607         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
36608         HAVE_RINTF.
36609         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
36611 2012-03-07  Bruno Haible  <bruno@clisp.org>
36613         roundl: Avoid compilation error on AIX.
36614         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
36615         AIX 5.2..7.1.
36617 2012-03-07  Bruno Haible  <bruno@clisp.org>
36619         roundl: Don't override undeclared system function on IRIX 6.5.
36620         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
36621         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
36622         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
36623         * modules/roundl (configure.ac): For replacement code, test
36624         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
36625         (Depends-on): Update conditions.
36626         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
36628 2012-03-07  Bruno Haible  <bruno@clisp.org>
36630         roundf: Don't override undeclared system function on IRIX 6.5.
36631         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
36632         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
36633         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
36634         * modules/roundf (configure.ac): For replacement code, test
36635         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
36636         (Depends-on): Update conditions.
36637         * modules/roundf-ieee (Depends-on): Update conditions.
36638         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
36640 2012-03-07  Bruno Haible  <bruno@clisp.org>
36642         round: Don't override undeclared system function on IRIX 6.5.
36643         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
36644         argument.
36645         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
36646         also when it is not declared. Set HAVE_ROUND. For replacement code,
36647         test HAVE_ROUND, not HAVE_DECL_ROUND.
36648         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
36649         not HAVE_DECL_ROUND.
36650         (Depends-on): Update conditions.
36651         * modules/round-ieee (Depends-on): Update conditions.
36652         * doc/posix-functions/round.texi: Mention the IRIX problem.
36654 2012-03-07  Bruno Haible  <bruno@clisp.org>
36656         copysignf: Don't override undeclared system function on IRIX 6.5.
36657         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
36658         HAVE_COPYSIGNF.
36659         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
36660         declared when it exists. Set HAVE_DECL_COPYSIGNF.
36661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
36662         not HAVE_COPYSIGNF.
36663         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
36664         HAVE_COPYSIGNF.
36665         * doc/posix-functions/copysignf.texi: Mention missing declaration
36666         problem.
36668 2012-03-07  Jim Meyering  <meyering@redhat.com>
36670         readtokens: add tests
36671         * modules/readtokens-tests: New file.
36672         * tests/test-readtokens.c: New file.
36674 2012-03-07  Jim Meyering  <meyering@redhat.com>
36676         quotearg: the module must now include quote.h
36677         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
36678         So must the module.
36679         * modules/quotearg (Files): Add quote.h.
36681 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
36683         readtokens: avoid core dumps with unusual calling patterns
36684         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
36685         * lib/readtokens.c: Include limits.h.
36686         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
36687         (readtoken): Don't cache the delimiters; the cache code was buggy
36688         if !delim && saved_delim, or if the new n_delim differs from the old.
36689         Also, it wasn't thread-safe.
36691 2012-03-07  Bruno Haible  <bruno@clisp.org>
36693         quote: Adhere to common module description layout.
36694         * modules/quote (Makefile.am): Add back empty section.
36696 2012-03-06  Akim Demaille  <demaille@gostai.com>
36698         quote: fuse into quotearg
36699         This patch is made for the benefit of Bison.
36700         quote does not leave the choice of the quoting style to the user.
36701         quoting_style provides poor customizability, yet quoting_options,
36702         which is very rich, is hidden inside quotearg.c.  So in order to
36703         allow quote customization, move its implementation to quotearg.c.
36704         * lib/quote.c: Remove.
36705         * modules/quote: Adjust.
36706         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
36707         warning: provide all the members of literal structs.
36708         (quote_quoting_options): New.
36709         (quote, quote_n): Import implementation from quote.c.
36710         * lib/quote.h: Import the comments from quote.c.
36711         (quote_quoting_options): New.
36713 2012-03-06  Bruno Haible  <bruno@clisp.org>
36715         Tests for module 'expm1l-ieee'.
36716         * modules/expm1l-ieee-tests: New file.
36717         * tests/test-expm1l-ieee.c: New file.
36719         New module 'expm1l-ieee'.
36720         * modules/expm1l-ieee: New file.
36722         Tests for module 'expm1f-ieee'.
36723         * modules/expm1f-ieee-tests: New file.
36724         * tests/test-expm1f-ieee.c: New file.
36726         New module 'expm1f-ieee'.
36727         * modules/expm1f-ieee: New file.
36729         Tests for module 'expm1-ieee'.
36730         * modules/expm1-ieee-tests: New file.
36731         * tests/test-expm1-ieee.c: New file.
36732         * tests/test-expm1-ieee.h: New file.
36734         New module 'expm1-ieee'.
36735         * modules/expm1-ieee: New file.
36736         * m4/expm1-ieee.m4: New file.
36737         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
36738         whether expm1 works with a minus zero argument. Replace it if not.
36739         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
36740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
36741         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
36742         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
36743         (Depends-on): Update conditions.
36744         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
36745         AIX problem.
36747 2012-03-06  Bruno Haible  <bruno@clisp.org>
36749         Work around expm1f bug on IRIX 6.5.
36750         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
36751         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
36752         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
36753         not work.
36754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
36755         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
36756         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
36757         (Depends-on): Update conditions.
36758         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
36760 2012-03-06  Bruno Haible  <bruno@clisp.org>
36762         Tests for module 'expm1l'.
36763         * modules/expm1l-tests: New file.
36764         * tests/test-expm1l.c: New file.
36766         New module 'expm1l'.
36767         * lib/math.in.h (expm1l): New declaration.
36768         * lib/expm1l.c: New file.
36769         * m4/expm1l.m4: New file.
36770         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
36771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
36772         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
36773         * modules/expm1l: New file.
36774         * tests/test-math-c++.cc: Check the declaration of expm1l.
36775         * doc/posix-functions/expm1l.texi: Mention the new module.
36777 2012-03-06  Bruno Haible  <bruno@clisp.org>
36779         Tests for module 'expm1f'.
36780         * modules/expm1f-tests: New file.
36781         * tests/test-expm1f.c: New file.
36783         New module 'expm1f'.
36784         * lib/math.in.h (expm1f): New declaration.
36785         * lib/expm1f.c: New file.
36786         * m4/expm1f.m4: New file.
36787         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
36788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
36789         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
36790         * modules/expm1f: New file.
36791         * tests/test-math-c++.cc: Check the declaration of expm1f.
36792         * doc/posix-functions/expm1f.texi: Mention the new module.
36794 2012-03-06  Bruno Haible  <bruno@clisp.org>
36796         Tests for module 'expm1'.
36797         * modules/expm1-tests: New file.
36798         * tests/test-expm1.c: New file.
36799         * tests/test-expm1.h: New file.
36801         New module 'expm1'.
36802         * lib/math.in.h (expm1): New declaration.
36803         * lib/expm1.c: New file.
36804         * m4/expm1.m4: New file.
36805         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
36806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
36807         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
36808         * modules/expm1: New file.
36809         * tests/test-math-c++.cc: Check the declaration of expm1.
36810         * doc/posix-functions/expm1.texi: Mention the new module.
36812 2012-03-06  Bruno Haible  <bruno@clisp.org>
36814         math: Ensure declarations of math functions.
36815         * modules/acosf (Depends-on): Add 'extensions'.
36816         * modules/asinf (Depends-on): Likewise.
36817         * modules/atan2f (Depends-on): Likewise.
36818         * modules/atanf (Depends-on): Likewise.
36819         * modules/cbrt (Depends-on): Likewise.
36820         * modules/cbrtf (Depends-on): Likewise.
36821         * modules/cbrtl (Depends-on): Likewise.
36822         * modules/copysignf (Depends-on): Likewise.
36823         * modules/copysignl (Depends-on): Likewise.
36824         * modules/cosf (Depends-on): Likewise.
36825         * modules/coshf (Depends-on): Likewise.
36826         * modules/expf (Depends-on): Likewise.
36827         * modules/fabsf (Depends-on): Likewise.
36828         * modules/fabsl (Depends-on): Likewise.
36829         * modules/fmaf (Depends-on): Likewise.
36830         * modules/fmal (Depends-on): Likewise.
36831         * modules/fmodf (Depends-on): Likewise.
36832         * modules/fmodl (Depends-on): Likewise.
36833         * modules/frexpf (Depends-on): Likewise.
36834         * modules/frexpl (Depends-on): Likewise.
36835         * modules/hypot (Depends-on): Likewise.
36836         * modules/hypotf (Depends-on): Likewise.
36837         * modules/hypotl (Depends-on): Likewise.
36838         * modules/ldexpf (Depends-on): Likewise.
36839         * modules/ldexpl (Depends-on): Likewise.
36840         * modules/log10f (Depends-on): Likewise.
36841         * modules/log10l (Depends-on): Likewise.
36842         * modules/log1p (Depends-on): Likewise.
36843         * modules/logb (Depends-on): Likewise.
36844         * modules/logf (Depends-on): Likewise.
36845         * modules/modff (Depends-on): Likewise.
36846         * modules/modfl (Depends-on): Likewise.
36847         * modules/powf (Depends-on): Likewise.
36848         * modules/remainderf (Depends-on): Likewise.
36849         * modules/remainderl (Depends-on): Likewise.
36850         * modules/rintf (Depends-on): Likewise.
36851         * modules/rintl (Depends-on): Likewise.
36852         * modules/sinf (Depends-on): Likewise.
36853         * modules/sinhf (Depends-on): Likewise.
36854         * modules/sqrtf (Depends-on): Likewise.
36855         * modules/tanf (Depends-on): Likewise.
36856         * modules/tanhf (Depends-on): Likewise.
36857         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
36858         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
36859         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
36860         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
36861         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
36862         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
36863         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
36864         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
36865         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
36866         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
36867         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
36868         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
36869         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
36870         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
36871         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
36872         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
36873         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
36874         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
36875         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
36876         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
36877         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
36878         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
36879         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
36880         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
36881         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
36882         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
36883         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
36884         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
36885         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
36886         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
36887         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
36888         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
36889         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
36890         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
36891         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
36892         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
36893         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
36894         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
36895         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
36896         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
36897         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
36899 2012-03-06  Bruno Haible  <bruno@clisp.org>
36901         math: Update module names in warnings.
36902         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36903         tanl): Use specific module name in warn-on-use warning.
36905 2012-03-06  Bruno Haible  <bruno@clisp.org>
36907         expl: Simplify computation.
36908         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
36910 2012-03-05  Bruno Haible  <bruno@clisp.org>
36912         exp* tests: More tests.
36913         * tests/test-exp.h: New file.
36914         * tests/test-exp.c: Include <float.h> and test-exp.h.
36915         (main): Invoke test_function.
36916         * tests/test-expf.c: Include <float.h> and test-exp.h.
36917         (main): Invoke test_function.
36918         * tests/test-expl.c: Include <float.h> and test-exp.h.
36919         (main): Invoke test_function.
36920         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
36921         (Makefile.am): Add randomd.c to test_exp_SOURCES.
36922         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
36923         (Makefile.am): Add randomf.c to test_expf_SOURCES.
36924         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
36925         (Depends-on): Add 'float'.
36926         (Makefile.am): Add randoml.c to test_expl_SOURCES.
36928         expl: Fix precision of computed result.
36929         * lib/expl.c: Completely rewritten.
36930         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
36931         (Maintainer): Add me.
36932         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
36934 2012-03-05  Bruno Haible  <bruno@clisp.org>
36936         cbrt* tests: More tests.
36937         * tests/test-cbrt.h: New file.
36938         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
36939         (main): Invoke test_function.
36940         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
36941         (main): Invoke test_function.
36942         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
36943         (main): Invoke test_function.
36944         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
36945         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
36946         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
36947         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
36948         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
36949         (Depends-on): Add 'float'.
36950         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
36952 2012-03-05  Bruno Haible  <bruno@clisp.org>
36954         hypot* tests: More tests.
36955         * tests/test-hypot.h: New file, partially extracted from
36956         tests/test-hypotl.c.
36957         * tests/test-hypot.c: Include test-hypot.h.
36958         (main): Invoke test_function.
36959         * tests/test-hypotf.c: Include test-hypot.h.
36960         (main): Invoke test_function.
36961         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
36962         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
36963         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
36964         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
36965         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
36966         tests/randomf.c.
36967         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
36968         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
36969         tests/randoml.c.
36970         (Depends-on): Add 'fpucw', 'float'.
36971         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
36973 2012-03-05  Bruno Haible  <bruno@clisp.org>
36975         fpucw: Doc about FreeBSD.
36976         * lib/fpucw.h: Mention FreeBSD in comments.
36978 2012-03-04  Bruno Haible  <bruno@clisp.org>
36980         sqrt* tests: More tests.
36981         * tests/test-sqrt.h: New file.
36982         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
36983         (main): Invoke test_function.
36984         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
36985         (main): Invoke test_function.
36986         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
36987         (main): Invoke test_function.
36988         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
36989         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
36990         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
36991         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
36992         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
36993         (Depends-on): Add 'float'.
36994         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
36996 2012-03-04  Bruno Haible  <bruno@clisp.org>
36998         remainder* tests: More tests.
36999         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
37000         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
37001         (main): Invoke test_function.
37002         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
37003         (main): Invoke test_function.
37004         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
37005         (main): Invoke test_function.
37006         * modules/remainder-tests (Files): Add tests/test-remainder.h,
37007         tests/randomd.c.
37008         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
37009         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
37010         tests/randomf.c.
37011         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
37012         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
37013         tests/randoml.c.
37014         (Depends-on): Add 'float'.
37015         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
37017 2012-03-04  Bruno Haible  <bruno@clisp.org>
37019         remainder, remainderf, remainderl: Fix computation for large quotients.
37020         * lib/remainder.c: Completely rewritten.
37021         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
37022         USE_FLOAT.
37023         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
37024         USE_LONG_DOUBLE.
37025         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
37026         isnand, isinf. Remove round, fma.
37027         * modules/remainderf (Files): Add lib/remainder.c.
37028         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
37029         Remove roundf, fmaf.
37030         * modules/remainderl (Files): Add lib/remainder.c.
37031         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
37032         isinf. Remove roundl, fmal.
37033         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
37034         REMAINDER_LIBM.
37035         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
37036         REMAINDERF_LIBM.
37037         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
37038         REMAINDERL_LIBM.
37040 2012-03-04  Bruno Haible  <bruno@clisp.org>
37042         fmod* tests: More tests.
37043         * tests/test-fmod.h (my_ldexp): New function.
37044         (test_function): Reduce amount of random numbers to test. Add tests
37045         of very large quotients x / y.
37046         * tests/test-fmod.c (MAX_EXP): New macro.
37047         * tests/test-fmodf.c (MAX_EXP): Likewise.
37048         * tests/test-fmodl.c (MAX_EXP): Likewise.
37050 2012-03-04  Bruno Haible  <bruno@clisp.org>
37052         fmod, fmodl: Fix computation for large quotients x / y.
37053         * lib/fmod.c: Completely rewritten.
37054         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
37055         USE_LONG_DOUBLE.
37056         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
37057         isnand. Remove fma.
37058         * modules/fmodl (Files): Add lib/fmod.c.
37059         (Depends-on): Add float, isfinite, signbit, fabsl,
37060         frexpl, ldexpl, isnanl. Remove fma.
37061         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
37062         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
37064 2012-03-03  Bruno Haible  <bruno@clisp.org>
37066         fmod* tests: More tests.
37067         * tests/test-fmod.h: New file.
37068         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
37069         (main): Invoke test_function.
37070         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
37071         (main): Invoke test_function.
37072         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
37073         (main): Invoke test_function.
37074         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
37075         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
37076         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
37077         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
37078         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
37079         (Depends-on): Add 'float'.
37080         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
37082 2012-03-03  Bruno Haible  <bruno@clisp.org>
37084         rint* tests: More tests.
37085         * tests/test-rint.h: New file, partially extracted from
37086         tests/test-rintl.c.
37087         * tests/test-rint.c: Include test-rint.h.
37088         (main): Invoke test_function.
37089         * tests/test-rintf.c: Include test-rint.h.
37090         (main): Invoke test_function.
37091         * tests/test-rintl.c: Include test-rint.h.
37092         (main): Invoke test_function.
37093         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
37094         (Makefile.am): Add randomd.c to test_rint_SOURCES.
37095         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
37096         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
37097         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
37098         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
37100 2012-03-03  Bruno Haible  <bruno@clisp.org>
37102         modf* tests: More tests.
37103         * tests/test-modf.h: New file.
37104         * tests/test-modf.c: Include <float.h> and test-modf.h.
37105         (main): Invoke test_function.
37106         * tests/test-modff.c: Include <float.h> and test-modf.h.
37107         (main): Invoke test_function.
37108         * tests/test-modfl.c: Include <float.h> and test-modf.h.
37109         (main): Invoke test_function.
37110         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
37111         (Makefile.am): Add randomd.c to test_modf_SOURCES.
37112         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
37113         (Makefile.am): Add randomf.c to test_modff_SOURCES.
37114         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
37115         (Depends-on): Add 'float'.
37116         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
37118 2012-03-03  Bruno Haible  <bruno@clisp.org>
37120         fabs* tests: More tests.
37121         * tests/test-fabs.h: New file, partially extracted from
37122         tests/test-fabsl.c.
37123         * tests/test-fabs.c (RANDOM): New macro.
37124         * tests/test-fabsf.c (RANDOM): New macro.
37125         * tests/test-fabsl.c (RANDOM): New macro.
37126         * modules/fabs-tests (Files): Add tests/randomd.c.
37127         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
37128         * modules/fabsf-tests (Files): Add tests/randomf.c.
37129         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
37130         * modules/fabsl-tests (Files): Add tests/randoml.c.
37131         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
37133 2012-03-03  Bruno Haible  <bruno@clisp.org>
37135         ldexp* tests: More tests.
37136         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
37137         * tests/test-ldexp.c (RANDOM): New macro.
37138         * tests/test-ldexpf.c (RANDOM): New macro.
37139         * tests/test-ldexpl.c (RANDOM): New macro.
37140         * modules/ldexp-tests (Files): Add tests/randomd.c.
37141         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
37142         * modules/ldexpf-tests (Files): Add tests/randomf.c.
37143         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
37144         * modules/ldexpl-tests (Files): Add tests/randoml.c.
37145         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
37147 2012-03-03  Bruno Haible  <bruno@clisp.org>
37149         frexp* tests: More tests.
37150         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
37151         * tests/test-frexp.c (RANDOM): New macro.
37152         * tests/test-frexpf.c (RANDOM): New macro.
37153         * tests/test-frexpl.c (RANDOM): New macro.
37154         * modules/frexp-tests (Files): Add tests/randomd.c.
37155         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
37156         * modules/frexpf-tests (Files): Add tests/randomf.c.
37157         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
37158         * modules/frexpl-tests (Files): Add tests/randoml.c.
37159         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
37161 2012-03-03  Bruno Haible  <bruno@clisp.org>
37163         Support for pseudo-random numbers in tests.
37164         * tests/randomf.c: New file.
37165         * tests/randomd.c: New file.
37166         * tests/randoml.c: New file.
37167         * tests/macros.h (randomf, randomd, randoml): New declarations.
37169 2012-03-03  Bruno Haible  <bruno@clisp.org>
37171         frexp* tests: Refactor.
37172         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
37173         * tests/test-frexp.c: Include and use it.
37174         * tests/test-frexpf.c: Likewise.
37175         * tests/test-frexpl.c: Likewise.
37176         * modules/frexp-tests (Files): Add tests/test-frexp.h.
37177         * modules/frexpf-tests (Files): Likewise.
37178         * modules/frexpl-tests (Files): Likewise.
37180 2012-03-02  Jim Meyering  <meyering@redhat.com>
37182         maint: don't specify XZ_OPT=-9ev in dist-related rule
37183         Using xz's -9 option is warranted only if you have a very large
37184         tarball (see xz's documentation for the sizes vs. presets), and
37185         requires 64MiB of memory at decompression time.
37186         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
37187         Automake's default of just "-e" is fine.  Override on a
37188         per-package basis by setting XZ_OPT e.g., in cfg.mk.
37190 2012-03-01  Eric Blake  <eblake@redhat.com>
37192         maint.mk: allow announcement for non-gnulib project
37193         * maint.mk (announcement): Skip gnulib version if not used.
37195 2012-03-01  Jim Meyering  <meyering@redhat.com>
37197         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
37198         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
37199         envvar settings cannot interfere.  Otherwise, setting envvars like
37200         prohibit=foo require=bar, etc. would cause spurious test failures.
37202 2012-03-01  Eric Blake  <eblake@redhat.com>
37204         maint.mk: add per-line exclusions to prohibitions
37205         * maint.mk (_sc_search_regexp): Add $exclude parameter.
37206         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37207         (sc_const_long_option): Use it.
37209 2012-03-01  Bruno Haible  <bruno@clisp.org>
37211         Tests for module 'expl-ieee'.
37212         * modules/expl-ieee-tests: New file.
37213         * tests/test-expl-ieee.c: New file.
37215         New module 'expl-ieee'.
37216         * modules/expl-ieee: New file.
37218         Tests for module 'exp-ieee'.
37219         * modules/exp-ieee-tests: New file.
37220         * tests/test-exp-ieee.c: New file.
37222         New module 'exp-ieee'.
37223         * modules/exp-ieee: New file.
37225         Tests for module 'expf-ieee'.
37226         * modules/expf-ieee-tests: New file.
37227         * tests/test-expf-ieee.c: New file.
37228         * tests/test-exp-ieee.h: New file.
37230         New module 'expf-ieee'.
37231         * modules/expf-ieee: New file.
37233 2012-02-29  Bruno Haible  <bruno@clisp.org>
37235         cbrtl-ieee: Work around test failure on IRIX 6.5.
37236         * m4/cbrtl-ieee.m4: New file.
37237         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
37238         test whether cbrtl works with a minus zero argument. Replace it if not.
37239         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
37240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
37241         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
37242         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
37243         (Depends-on): Update conditions.
37244         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
37245         m4/signbit.m4.
37246         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
37247         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
37248         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
37250         Tests for module 'cbrtl-ieee'.
37251         * modules/cbrtl-ieee-tests: New file.
37252         * tests/test-cbrtl-ieee.c: New file.
37254         New module 'cbrtl-ieee'.
37255         * modules/cbrtl-ieee: New file.
37257         Tests for module 'cbrt-ieee'.
37258         * modules/cbrt-ieee-tests: New file.
37259         * tests/test-cbrt-ieee.c: New file.
37261         New module 'cbrt-ieee'.
37262         * modules/cbrt-ieee: New file.
37264         Tests for module 'cbrtf-ieee'.
37265         * modules/cbrtf-ieee-tests: New file.
37266         * tests/test-cbrtf-ieee.c: New file.
37267         * tests/test-cbrt-ieee.h: New file.
37269         New module 'cbrtf-ieee'.
37270         * modules/cbrtf-ieee: New file.
37272 2012-02-29  Bruno Haible  <bruno@clisp.org>
37274         cbrtf: Work around bug in IRIX 6.5 system function.
37275         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
37276         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
37277         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
37278         work.
37279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
37280         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
37281         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
37282         (Depends-on): Update conditions.
37283         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
37285 2012-02-29  Bruno Haible  <bruno@clisp.org>
37287         Tests for module 'cbrtl'.
37288         * modules/cbrtl-tests: New file.
37289         * tests/test-cbrtl.c: New file.
37291         New module 'cbrtl'.
37292         * lib/math.in.h (cbrtl): New declaration.
37293         * lib/cbrtl.c: New file.
37294         * m4/cbrtl.m4: New file.
37295         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
37296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
37297         HAVE_DECL_CBRTL.
37298         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
37299         HAVE_DECL_CBRTL.
37300         * modules/cbrtl: New file.
37301         * tests/test-math-c++.cc: Check the declaration of cbrtl.
37302         * doc/posix-functions/cbrtl.texi: Mention the new module.
37304 2012-02-29  Bruno Haible  <bruno@clisp.org>
37306         Tests for module 'cbrtf'.
37307         * modules/cbrtf-tests: New file.
37308         * tests/test-cbrtf.c: New file.
37310         New module 'cbrtf'.
37311         * lib/math.in.h (cbrtf): New declaration.
37312         * lib/cbrtf.c: New file.
37313         * m4/cbrtf.m4: New file.
37314         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
37315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
37316         HAVE_DECL_CBRTF.
37317         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
37318         HAVE_DECL_CBRTF.
37319         * modules/cbrtf: New file.
37320         * tests/test-math-c++.cc: Check the declaration of cbrtf.
37321         * doc/posix-functions/cbrtf.texi: Mention the new module.
37323 2012-02-29  Bruno Haible  <bruno@clisp.org>
37325         cbrt: Provide replacement on MSVC and Minix.
37326         * lib/math.in.h (cbrt): New declaration.
37327         * lib/cbrt.c: New file.
37328         * m4/cbrt.m4: New file.
37329         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
37330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
37331         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
37332         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
37333         (Depends-on): Add dependencies.
37334         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
37335         * tests/test-math-c++.cc: Check the declaration of cbrt.
37336         * doc/posix-functions/cbrt.texi: Mention that the module provides a
37337         replacement.
37339 2012-02-29  Bruno Haible  <bruno@clisp.org>
37341         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
37342         * m4/hypotl-ieee.m4: New file.
37343         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
37344         test whether hypotl works with mixed NaN and Infinity arguments.
37345         Replace it if not.
37346         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
37347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
37348         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
37349         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
37350         (Depends-on): Update conditions.
37351         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
37352         (Depends-on): Add hypot-ieee.
37353         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
37354         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
37356         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
37357         * m4/hypotf-ieee.m4: New file.
37358         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
37359         test whether hypotf works with mixed NaN and Infinity arguments.
37360         Replace it if not.
37361         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
37362         (Depends-on): Add hypot-ieee.
37363         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
37364         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
37366         hypot-ieee: Work around test failure on OSF/1 and native Windows.
37367         * lib/math.in.h (hypot): New declaration.
37368         * lib/hypot.c: New file.
37369         * m4/hypot-ieee.m4: New file.
37370         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
37371         whether hypot works with mixed NaN and Infinity arguments. Replace it
37372         if not.
37373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
37374         REPLACE_HYPOT.
37375         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
37376         * modules/hypot (Files): Add lib/hypot.c.
37377         (Depends-on): Add dependencies.
37378         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
37379         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
37380         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
37381         * tests/test-math-c++.cc: Check the declaration of hypot.
37382         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
37384         Tests for module 'hypotl-ieee'.
37385         * modules/hypotl-ieee-tests: New file.
37386         * tests/test-hypotl-ieee.c: New file.
37388         New module 'hypotl-ieee'.
37389         * modules/hypotl-ieee: New file.
37391         Tests for module 'hypot-ieee'.
37392         * modules/hypot-ieee-tests: New file.
37393         * tests/test-hypot-ieee.c: New file.
37395         New module 'hypot-ieee'.
37396         * modules/hypot-ieee: New file.
37398         Tests for module 'hypotf-ieee'.
37399         * modules/hypotf-ieee-tests: New file.
37400         * tests/test-hypotf-ieee.c: New file.
37401         * tests/test-hypot-ieee.h: New file.
37403         New module 'hypotf-ieee'.
37404         * modules/hypotf-ieee: New file.
37406 2012-02-29  Bruno Haible  <bruno@clisp.org>
37408         Remove unused variables.
37409         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
37410         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37411         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
37412         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37414 2012-02-29  Eric Blake  <eblake@redhat.com>
37416         termios: fix pid_t always, not just for tcgetsid
37417         * doc/posix-headers/termios.texi (termios.h): Mention problem.
37418         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
37419         just when building tcgetsid.
37421 2012-02-29  Bruno Haible  <bruno@clisp.org>
37423         Tests for module 'hypotl'.
37424         * modules/hypotl-tests: New file.
37425         * tests/test-hypotl.c: New file.
37427         New module 'hypotl'.
37428         * lib/math.in.h (hypotl): New declaration.
37429         * lib/hypotl.c: New file.
37430         * m4/hypotl.m4: New file.
37431         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
37432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
37433         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
37434         * modules/hypotl: New file.
37435         * tests/test-math-c++.cc: Check the hypotl declaration.
37436         * doc/posix-functions/hypotl.texi: Mention the new module.
37438 2012-02-29  Eric Blake  <eblake@redhat.com>
37440         tcgetsid: fix cygwin header bug
37441         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
37443         docs: update cygwin progress
37444         * doc/posix-functions/llround.texi (llround): Added in cygwin
37445         1.7.8.
37446         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
37447         * doc/glibc-functions/program_invocation_name.texi
37448         (program_invocation_name): Likewise.
37449         * doc/glibc-functions/program_invocation_short_name.texi
37450         (program_invocation_short_name): Likewise.
37451         * doc/glibc-functions/madvise.texi (madvise): Likewise.
37452         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
37453         Likewise.
37454         * doc/posix-functions/pthread_spin_destroy.texi
37455         (pthread_spin_destroy): Added in cygwin 1.7.10.
37456         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
37457         Likewise.
37458         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
37459         Likewise.
37460         * doc/posix-functions/pthread_spin_trylock.texi
37461         (pthread_spin_trylock): Likewise.
37462         * doc/posix-functions/pthread_spin_unlock.texi
37463         (pthread_spin_unlock): Likewise.
37464         * doc/posix-functions/pthread_setschedprio.texi
37465         (pthread_setschedprio): Likewise.
37466         * doc/posix-functions/pthread_attr_getstack.texi
37467         (pthread_attr_getstack): Likewise.
37468         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
37469         (pthread_attr_getstackaddr): Likewise.
37470         * doc/glibc-functions/pthread_getattr_np.texi
37471         (pthread_getattr_np): Likewise.
37472         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
37473         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
37474         * doc/posix-functions/clock_settime.texi (clock_settime):
37475         Likewise.
37476         * doc/posix-functions/pthread_attr_getguardsize.texi
37477         (pthread_attr_getguardsize): Likewise.
37478         * doc/posix-functions/pthread_attr_setguardsize.texi
37479         (pthread_attr_setguardsize): Likewise.
37480         * doc/posix-functions/pthread_attr_setstack.texi
37481         (pthread_attr_setstack): Likewise.
37482         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
37483         (pthread_attr_setstackaddr): Likewise.
37484         * doc/posix-functions/clock_getcpuclockid.texi
37485         (clock_getcpuclockid): Likewise.
37486         * doc/posix-functions/pthread_getcpuclockid.texi
37487         (pthread_getcpuclockid): Likewise.
37488         * doc/glibc-functions/error.texi (error): Likewise.
37489         * doc/glibc-functions/error_at_line.texi (error_at_line):
37490         Likewise.
37491         * doc/glibc-functions/error_message_count.texi
37492         (error_message_count): Likewise.
37493         * doc/glibc-functions/error_one_per_line.texi
37494         (error_one_per_line): Likewise.
37495         * doc/glibc-functions/error_print_progname.texi
37496         (error_print_progname): Likewise.
37497         * doc/posix-functions/pthread_condattr_getclock.texi
37498         (pthread_condattr_getclock): Likewise.
37499         * doc/posix-functions/pthread_condattr_setclock.texi
37500         (pthread_condattr_setclock): Likewise.
37501         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
37502         Likewise.
37503         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
37504         * doc/glibc-functions/getpt.texi (getpt): Likewise.
37505         * doc/glibc-functions/get_current_dir_name.texi
37506         (get_current_dir_name): Likewise.
37507         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
37508         Likewise.
37509         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
37510         wrong return type.
37511         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
37512         1.7.11.
37514 2012-02-29  Bruno Haible  <bruno@clisp.org>
37516         Tests for module 'hypotf'.
37517         * modules/hypotf-tests: New file.
37518         * tests/test-hypotf.c: New file.
37520         New module 'hypotf'.
37521         * lib/math.in.h (hypotf): New declaration.
37522         * lib/hypotf.c: New file.
37523         * m4/hypotf.m4: New file.
37524         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
37525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
37526         REPLACE_HYPOTF.
37527         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
37528         REPLACE_HYPOTF.
37529         * modules/hypotf: New file.
37530         * tests/test-math-c++.cc: Check the hypotf declaration.
37531         * doc/posix-functions/hypotf.texi: Mention the new module.
37533         hypot: Prepare for hypotf module.
37534         * m4/hypot.m4: New file.
37535         * modules/hypot (Files): Add m4/hypot.m4.
37536         (configure.ac): Invoke gl_FUNC_HYPOT.
37538 2012-02-29  Bruno Haible  <bruno@clisp.org>
37540         hypot tests: More tests.
37541         * tests/test-hypot.c: Include <float.h>.
37542         (main): Add tests about overflow and underflow.
37544 2012-02-29  Bruno Haible  <bruno@clisp.org>
37546         math code: Add comments.
37547         * lib/acosl.c: Add comment about related glibc source files.
37548         * lib/asinl.c: Likewise.
37549         * lib/atanl.c: Likewise.
37550         * lib/expl.c: Likewise.
37551         * lib/logl.c: Likewise.
37552         * lib/sincosl.c: Likewise.
37553         * lib/sinl.c: Likewise.
37554         * lib/tanl.c: Likewise.
37555         * lib/trigl.c: Likewise.
37556         * lib/cosl.c: Likewise. Fix comments.
37558 2012-02-28  Bruno Haible  <bruno@clisp.org>
37560         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
37561         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
37562         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
37563         HUGE_VALL are defined.
37564         (numeric_equald): Renamed from numeric_equal.
37565         (numeric_equalf, numeric_equall): New functions.
37566         (main): Check also HUGE_VALF, HUGE_VALL.
37567         * modules/math-tests (Files): Add tests/macros.h.
37568         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
37569         HUGE_VALL.
37571 2012-02-28  Bruno Haible  <bruno@clisp.org>
37573         doc: Move ISO C11 feature notes into POSIX chapters.
37574         * doc/posix-functions/aligned_alloc.texi: Renamed from
37575         doc/glibc-functions/aligned_alloc.texi.
37576         * doc/posix-functions/quick_exit.texi: Renamed from
37577         doc/glibc-functions/quick_exit.texi.
37578         * doc/posix-headers/uchar.texi: Renamed from
37579         doc/glibc-headers/uchar.texi.
37580         * doc/posix-functions/c16rtomb.texi: Renamed from
37581         doc/glibc-functions/c16rtomb.texi.
37582         * doc/posix-functions/c32rtomb.texi: Renamed from
37583         doc/glibc-functions/c32rtomb.texi.
37584         * doc/posix-functions/mbrtoc16.texi: Renamed from
37585         doc/glibc-functions/mbrtoc16.texi.
37586         * doc/posix-functions/mbrtoc32.texi: Renamed from
37587         doc/glibc-functions/mbrtoc32.texi.
37588         * doc/gnulib.texi: Update.
37589         (Glibc uchar.h): Remove section.
37590         Suggested by Eric Blake.
37592 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
37594         stdnoreturn: port to MSVC better
37595         MSVC standard headers use __declspec(noreturn), so #define noreturn
37596         to empty on that platform.  Reported by Bruno Haible in
37597         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
37598         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
37599         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
37601 2012-02-28  Bruno Haible  <bruno@clisp.org>
37603         doc: Mention new glibc headers and functions.
37604         * doc/glibc-headers/uchar.texi: New file.
37605         * doc/glibc-functions/aligned_alloc.texi: New file.
37606         * doc/glibc-functions/c16rtomb.texi: New file.
37607         * doc/glibc-functions/c32rtomb.texi: New file.
37608         * doc/glibc-functions/clock_adjtime.texi: New file.
37609         * doc/glibc-functions/fanotify_init.texi: New file.
37610         * doc/glibc-functions/fanotify_mark.texi: New file.
37611         * doc/glibc-functions/inet6_opt_append.texi: New file.
37612         * doc/glibc-functions/inet6_opt_find.texi: New file.
37613         * doc/glibc-functions/inet6_opt_finish.texi: New file.
37614         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
37615         * doc/glibc-functions/inet6_opt_init.texi: New file.
37616         * doc/glibc-functions/inet6_opt_next.texi: New file.
37617         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
37618         * doc/glibc-functions/inet6_rth_add.texi: New file.
37619         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
37620         * doc/glibc-functions/inet6_rth_init.texi: New file.
37621         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
37622         * doc/glibc-functions/inet6_rth_segments.texi: New file.
37623         * doc/glibc-functions/inet6_rth_space.texi: New file.
37624         * doc/glibc-functions/login.texi: New file.
37625         * doc/glibc-functions/mbrtoc16.texi: New file.
37626         * doc/glibc-functions/mbrtoc32.texi: New file.
37627         * doc/glibc-functions/name_to_handle_at.texi: New file.
37628         * doc/glibc-functions/ntp_gettimex.texi: New file.
37629         * doc/glibc-functions/open_by_handle_at.texi: New file.
37630         * doc/glibc-functions/prlimit.texi: New file.
37631         * doc/glibc-functions/process_vm_readv.texi: New file.
37632         * doc/glibc-functions/process_vm_writev.texi: New file.
37633         * doc/glibc-functions/recvmmsg.texi: New file.
37634         * doc/glibc-functions/scandirat.texi: New file.
37635         * doc/glibc-functions/sendmmsg.texi: New file.
37636         * doc/glibc-functions/setns.texi: New file.
37637         * doc/glibc-functions/timespec_get.texi: New file.
37638         * doc/gnulib.texi: Include them.
37639         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
37640         sections.
37641         Reported by Eric Blake.
37643 2012-02-28  Bruno Haible  <bruno@clisp.org>
37645         Avoid compilation errors with MSVC option -fp:strict.
37646         * lib/floor.c: Use MSVC specific pragma fenv_access.
37647         * lib/ceil.c: Likewise.
37648         * lib/trunc.c: Likewise.
37649         * lib/round.c: Likewise.
37650         * lib/rint.c: Likewise.
37651         * lib/fma.c: Likewise.
37652         * lib/integer_length.c: Likewise.
37653         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37654         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37655         * tests/test-floor2.c: Likewise.
37656         * tests/test-floorf2.c: Likewise.
37657         * tests/test-ceil2.c: Likewise.
37658         * tests/test-ceilf2.c: Likewise.
37659         * tests/test-trunc2.c: Likewise.
37660         * tests/test-truncf2.c: Likewise.
37661         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
37663 2012-02-27  Bruno Haible  <bruno@clisp.org>
37665         Tests for module 'sqrtl-ieee'.
37666         * modules/sqrtl-ieee-tests: New file.
37667         * tests/test-sqrtl-ieee.c: New file.
37669         New module 'sqrtl-ieee'.
37670         * modules/sqrtl-ieee: New file.
37672         Tests for module 'sqrt-ieee'.
37673         * modules/sqrt-ieee-tests: New file.
37674         * tests/test-sqrt-ieee.c: New file.
37676         New module 'sqrt-ieee'.
37677         * modules/sqrt-ieee: New file.
37679         Tests for module 'sqrtf-ieee'.
37680         * modules/sqrtf-ieee-tests: New file.
37681         * tests/test-sqrtf-ieee.c: New file.
37682         * tests/test-sqrt-ieee.h: New file.
37684         New module 'sqrtf-ieee'.
37685         * modules/sqrtf-ieee: New file.
37687 2012-02-27  Bruno Haible  <bruno@clisp.org>
37689         remainderl-ieee: Work around test failure on OSF/1.
37690         * m4/remainderl-ieee.m4: New file.
37691         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
37692         present, test whether remainderl works with a zero second argument.
37693         Replace it if not.
37694         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
37695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
37696         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
37697         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
37698         (Depends-on): Update conditions.
37699         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
37700         (Depends-on): Add remainder-ieee.
37701         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
37702         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
37703         module.
37705         remainderf-ieee: Work around test failure on OSF/1.
37706         * m4/remainderf-ieee.m4: New file.
37707         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
37708         present, test whether remainderf works with a zero second argument.
37709         Replace it if not.
37710         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
37711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
37712         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
37713         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
37714         (Depends-on): Update conditions.
37715         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
37716         (Depends-on): Add remainder-ieee.
37717         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
37718         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
37719         module.
37721         remainder-ieee: Work around test failure on OSF/1.
37722         * m4/remainder-ieee.m4: New file.
37723         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
37724         present, test whether remainder works with a zero second argument.
37725         Replace it if not.
37726         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
37727         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
37728         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
37729         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
37730         (Depends-on): Update dependencies.
37731         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
37732         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
37733         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
37735         Tests for module 'remainderl-ieee'.
37736         * modules/remainderl-ieee-tests: New file.
37737         * tests/test-remainderl-ieee.c: New file.
37739         New module 'remainderl-ieee'.
37740         * modules/remainderl-ieee: New file.
37742         Tests for module 'remainder-ieee'.
37743         * modules/remainder-ieee-tests: New file.
37744         * tests/test-remainder-ieee.c: New file.
37746         New module 'remainder-ieee'.
37747         * modules/remainder-ieee: New file.
37749         Tests for module 'remainderf-ieee'.
37750         * modules/remainderf-ieee-tests: New file.
37751         * tests/test-remainderf-ieee.c: New file.
37752         * tests/test-remainder-ieee.h: New file.
37754         New module 'remainderf-ieee'.
37755         * modules/remainderf-ieee: New file.
37757 2012-02-27  Bruno Haible  <bruno@clisp.org>
37759         modff, modfl: Fix configure syntax error.
37760         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
37761         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
37763 2012-02-27  Bruno Haible  <bruno@clisp.org>
37765         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
37766         * m4/fmodl-ieee.m4: New file.
37767         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
37768         whether fmodl works with zero arguments. Replace it if not.
37769         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
37770         (Depends-on): Add fmod-ieee.
37771         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
37772         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
37774         fmodf-ieee: Work around test failure on OSF/1.
37775         * m4/fmodf-ieee.m4: New file.
37776         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
37777         whether fmodf works with zero arguments. Replace it if not.
37778         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
37779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
37780         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
37781         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
37782         (Depends-on): Update dependencies.
37783         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
37784         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
37785         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
37787         fmodf-ieee: Work around test failure on MSVC 9.
37788         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
37789         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
37791         fmod-ieee: Work around test failures on OSF/1, mingw.
37792         * m4/fmod-ieee.m4: New file.
37793         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
37794         whether fmod works with zero arguments. Replace it if not.
37795         * lib/math.in.h (fmod): New declaration.
37796         * lib/fmod.c: New file.
37797         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
37798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
37799         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
37800         * modules/fmod (Files): Add lib/fmod.c.
37801         (Depends-on): Add math, isinf, trunc, fma.
37802         (configure.ac): Arrange to compile lib/fmod.c if needed.
37803         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
37804         m4/signbit.m4.
37805         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
37806         * tests/test-math-c++.cc: Check the declaration of fmod.
37807         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
37809         fmodl-ieee: Fix test failures.
37810         * lib/fmodl.c (fmodl): Treat Inf specially.
37811         * modules/fmodl (Depends-on): Add isinf.
37813         Tests for module 'fmodl-ieee'.
37814         * modules/fmodl-ieee-tests: New file.
37815         * tests/test-fmodl-ieee.c: New file.
37817         New module 'fmodl-ieee'.
37818         * modules/fmodl-ieee: New file.
37820         Tests for module 'fmod-ieee'.
37821         * modules/fmod-ieee-tests: New file.
37822         * tests/test-fmod-ieee.c: New file.
37824         New module 'fmod-ieee'.
37825         * modules/fmod-ieee: New file.
37827         Tests for module 'fmodf-ieee'.
37828         * modules/fmodf-ieee-tests: New file.
37829         * tests/test-fmodf-ieee.c: New file.
37830         * tests/test-fmod-ieee.h: New file.
37832         New module 'fmodf-ieee'.
37833         * modules/fmodf-ieee: New file.
37835 2012-02-27  Bruno Haible  <bruno@clisp.org>
37837         Tests for module 'rintl-ieee'.
37838         * modules/rintl-ieee-tests: New file.
37839         * tests/test-rintl-ieee.c: New file.
37841         New module 'rintl-ieee'.
37842         * modules/rintl-ieee: New file.
37844         Tests for module 'rint-ieee'.
37845         * modules/rint-ieee-tests: New file.
37846         * tests/test-rint-ieee.c: New file.
37848         New module 'rint-ieee'.
37849         * modules/rint-ieee: New file.
37851         Tests for module 'rintf-ieee'.
37852         * modules/rintf-ieee-tests: New file.
37853         * tests/test-rintf-ieee.c: New file.
37854         * tests/test-rint-ieee.h: New file.
37856         New module 'rintf-ieee'.
37857         * modules/rintf-ieee: New file.
37859 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
37861         regex: re_search etc. should return -2 when memory exhausted
37862         This bug was uncovered when testing 'grep'.  Without the fix,
37863         re_search and friends return -1 when memory is exhausted, but -1
37864         means no match, and this causes grep to falsely report no-match
37865         instead of memory-exhaustion.  See
37866         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
37867         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
37868         trouble; this can occur if re_search_internal ran out of memory.
37870 2012-02-26  Bruno Haible  <bruno@clisp.org>
37872         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
37873         * m4/modfl-ieee.m4: New file.
37874         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
37875         whether modfl works with Inf. Replace it if not.
37876         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
37877         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
37878         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
37879         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
37880         (Depends-on): Update dependencies.
37881         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
37882         m4/signbit.m4.
37883         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
37884         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
37886         modfl-ieee: Fix dependencies.
37887         * modules/modfl-ieee (Depends-on): Add modf-ieee.
37889         modfl-ieee: Fix test failures.
37890         * lib/modfl.c (modfl): Treat NaN and Inf specially.
37891         * modules/modfl (Depends-on): Add isfinite, isinf.
37893         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
37894         * m4/modff-ieee.m4: New file.
37895         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
37896         whether modff works with NaN and Inf. Replace it if not.
37897         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
37898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
37899         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
37900         * modules/modff (configure.ac): Consider REPLACE_MODFF.
37901         (Depends-on): Update dependencies.
37902         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
37903         m4/signbit.m4.
37904         (Depends-on): Add modf-ieee.
37905         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
37906         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
37908         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
37909         * m4/modf-ieee.m4: New file.
37910         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
37911         whether modf works with NaN and Inf. Replace it if not.
37912         * lib/math.in.h (modf): New declaration.
37913         * lib/modf.c: New file.
37914         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
37915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
37916         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
37917         * modules/modf (Files): Add lib/modf.c.
37918         (Depends-on): Add math, isfinite, trunc, isinf.
37919         (configure.ac): Addrange to compile lib/modf.c if needed.
37920         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
37921         m4/signbit.m4.
37922         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
37923         * tests/test-math-c++.cc: Check the declaration of modf.
37924         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
37926         Tests for module 'modfl-ieee'.
37927         * modules/modfl-ieee-tests: New file.
37928         * tests/test-modfl-ieee.c: New file.
37930         New module 'modfl-ieee'.
37931         * modules/modfl-ieee: New file.
37933         Tests for module 'modf-ieee'.
37934         * modules/modf-ieee-tests: New file.
37935         * tests/test-modf-ieee.c: New file.
37937         New module 'modf-ieee'.
37938         * modules/modf-ieee: New file.
37940         Tests for module 'modff-ieee'.
37941         * modules/modff-ieee-tests: New file.
37942         * tests/test-modff-ieee.c: New file.
37943         * tests/test-modf-ieee.h: New file.
37945         New module 'modff-ieee'.
37946         * modules/modff-ieee: New file.
37948 2012-02-26  Bruno Haible  <bruno@clisp.org>
37950         Tests for module 'fabsl-ieee'.
37951         * modules/fabsl-ieee-tests: New file.
37952         * tests/test-fabsl-ieee.c: New file.
37954         New module 'fabsl-ieee'.
37955         * modules/fabsl-ieee: New file.
37957         Tests for module 'fabs-ieee'.
37958         * modules/fabs-ieee-tests: New file.
37959         * tests/test-fabs-ieee.c: New file.
37961         New module 'fabs-ieee'.
37962         * modules/fabs-ieee: New file.
37964         Tests for module 'fabsf-ieee'.
37965         * modules/fabsf-ieee-tests: New file.
37966         * tests/test-fabsf-ieee.c: New file.
37967         * tests/test-fabs-ieee.h: New file.
37969         New module 'fabsf-ieee'.
37970         * modules/fabsf-ieee: New file.
37972 2012-02-26  Bruno Haible  <bruno@clisp.org>
37974         Tests for module 'fmal-ieee'.
37975         * modules/fmal-ieee-tests: New file.
37976         * tests/test-fmal-ieee.c: New file.
37978         New module 'fmal-ieee'.
37979         * modules/fmal-ieee: New file.
37981         Tests for module 'fma-ieee'.
37982         * modules/fma-ieee-tests: New file.
37983         * tests/test-fma-ieee.c: New file.
37985         New module 'fma-ieee'.
37986         * modules/fma-ieee: New file.
37988         Tests for module 'fmaf-ieee'.
37989         * modules/fmaf-ieee-tests: New file.
37990         * tests/test-fmaf-ieee.c: New file.
37991         * tests/test-fma-ieee.h: New file.
37993         New module 'fmaf-ieee'.
37994         * modules/fmaf-ieee: New file.
37996 2012-02-26  Bruno Haible  <bruno@clisp.org>
37998         Tests for module 'ldexpl-ieee'.
37999         * modules/ldexpl-ieee-tests: New file.
38000         * tests/test-ldexpl-ieee.c: New file.
38002         New module 'ldexpl-ieee'.
38003         * modules/ldexpl-ieee: New file.
38005         Tests for module 'ldexp-ieee'.
38006         * modules/ldexp-ieee-tests: New file.
38007         * tests/test-ldexp-ieee.c: New file.
38009         New module 'ldexp-ieee'.
38010         * modules/ldexp-ieee: New file.
38012         Tests for module 'ldexpf-ieee'.
38013         * modules/ldexpf-ieee-tests: New file.
38014         * tests/test-ldexpf-ieee.c: New file.
38015         * tests/test-ldexp-ieee.h: New file.
38017         New module 'ldexpf-ieee'.
38018         * modules/ldexpf-ieee: New file.
38020 2012-02-26  Bruno Haible  <bruno@clisp.org>
38022         Refactor frexp*-ieee tests.
38023         * tests/test-frexp-ieee.h: New file.
38024         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
38025         (main): Just call test_function.
38026         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
38027         (main): Just call test_function.
38028         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
38029         (main): Just call test_function.
38030         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
38031         * modules/frexp-ieee-tests (Files): Likewise.
38032         * modules/frexpl-ieee-tests (Files): Likewise.
38034         Tests for module 'frexpl-ieee'.
38035         * modules/frexpl-ieee-tests: New file.
38036         * tests/test-frexpl-ieee.c: New file.
38038         New module 'frexpl-ieee'.
38039         * modules/frexpl-ieee: New file.
38041         Tests for module 'frexp-ieee'.
38042         * modules/frexp-ieee-tests: New file.
38043         * tests/test-frexp-ieee.c: New file.
38045         New module 'frexp-ieee'.
38046         * modules/frexp-ieee: New file.
38048         Tests for module 'frexpf-ieee'.
38049         * modules/frexpf-ieee-tests: New file.
38050         * tests/test-frexpf-ieee.c: New file.
38052         New module 'frexpf-ieee'.
38053         * modules/frexpf-ieee: New file.
38055 2012-02-26  Bruno Haible  <bruno@clisp.org>
38057         roundl-ieee tests: More tests.
38058         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38059         (main): Add tests for [MX] shaded specification in POSIX.
38060         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38061         (Depends-on): Add isnanl-nolibm.
38063         round-ieee tests: More tests.
38064         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38065         (main): Add tests for [MX] shaded specification in POSIX.
38066         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38067         (Depends-on): Add isnand-nolibm.
38069         roundf-ieee tests: More tests.
38070         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38071         (main): Add tests for [MX] shaded specification in POSIX.
38072         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38073         (Depends-on): Add isnanf-nolibm.
38075         truncl-ieee tests: More tests.
38076         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38077         (main): Add tests for [MX] shaded specification in POSIX.
38078         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38079         (Depends-on): Add isnanl-nolibm.
38081         trunc-ieee tests: More tests.
38082         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38083         (main): Add tests for [MX] shaded specification in POSIX.
38084         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38085         (Depends-on): Add isnand-nolibm.
38087         truncf-ieee tests: More tests.
38088         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38089         (main): Add tests for [MX] shaded specification in POSIX.
38090         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38091         (Depends-on): Add isnanf-nolibm.
38093         ceill-ieee tests: More tests.
38094         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38095         (main): Add tests for [MX] shaded specification in POSIX.
38096         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38097         (Depends-on): Add isnanl-nolibm.
38099         ceil-ieee tests: More tests.
38100         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38101         (main): Add tests for [MX] shaded specification in POSIX.
38102         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38103         (Depends-on): Add isnand-nolibm.
38105         ceilf-ieee tests: More tests.
38106         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38107         (main): Add tests for [MX] shaded specification in POSIX.
38108         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38109         (Depends-on): Add isnanf-nolibm.
38111         floorl-ieee tests: More tests.
38112         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38113         (main): Add tests for [MX] shaded specification in POSIX.
38114         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38115         (Depends-on): Add isnanl-nolibm.
38117         floor-ieee tests: More tests.
38118         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38119         (main): Add tests for [MX] shaded specification in POSIX.
38120         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38121         (Depends-on): Add isnand-nolibm.
38123         floorf-ieee tests: More tests.
38124         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38125         (main): Add tests for [MX] shaded specification in POSIX.
38126         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38127         (Depends-on): Add isnanf-nolibm.
38129 2012-02-26  Bruno Haible  <bruno@clisp.org>
38131         fpieee: More comments.
38132         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
38134 2012-02-25  Bruno Haible  <bruno@clisp.org>
38136         Tests for module 'log10l'.
38137         * modules/log10l-tests: New file.
38138         * tests/test-log10l.c: New file.
38139         * tests/test-math-c++.cc: Check the declaration of log10l.
38141         New module 'log10l'.
38142         * lib/math.in.h (log10l): New declaration.
38143         * lib/log10l.c: New file.
38144         * m4/log10l.m4: New file.
38145         * modules/log10l: New file.
38146         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
38147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
38148         HAVE_DECL_LOG10L.
38149         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
38150         HAVE_DECL_LOG10L.
38151         * doc/posix-functions/log10l.texi: Mention the new module.
38153 2012-02-25  Bruno Haible  <bruno@clisp.org>
38155         fmodl, remainder*: Avoid wrong results due to rounding errors.
38156         * lib/fmodl.c (fmodl): Correct the result if it is not within the
38157         expected bounds.
38158         * lib/remainderf.c (remainderf): Likewise.
38159         * lib/remainder.c (remainder): Likewise.
38160         * lib/remainderl.c (remainderl): Likewise.
38162 2012-02-25  Bruno Haible  <bruno@clisp.org>
38164         Tests for module 'remainderl'.
38165         * modules/remainderl-tests: New file.
38166         * tests/test-remainderl.c: New file.
38167         * tests/test-math-c++.cc: Check the declaration of remainderl.
38169         New module 'remainderl'.
38170         * lib/math.in.h (remainderl): New declaration.
38171         * lib/remainderl.c: New file.
38172         * m4/remainderl.m4: New file.
38173         * modules/remainderl: New file.
38174         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
38175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
38176         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
38177         HAVE_REMAINDERL.
38178         * doc/posix-functions/remainderl.texi: Mention the new module.
38180 2012-02-25  Bruno Haible  <bruno@clisp.org>
38182         Tests for module 'remainderf'.
38183         * modules/remainderf-tests: New file.
38184         * tests/test-remainderf.c: New file.
38185         * tests/test-math-c++.cc: Check the declaration of remainderf.
38187         New module 'remainderf'.
38188         * lib/math.in.h (remainderf): New declaration.
38189         * lib/remainderf.c: New file.
38190         * m4/remainderf.m4: New file.
38191         * modules/remainderf: New file.
38192         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
38193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
38194         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
38195         HAVE_REMAINDERF.
38196         * doc/posix-functions/remainderf.texi: Mention the new module.
38198 2012-02-25  Bruno Haible  <bruno@clisp.org>
38200         remainder: Support for MSVC.
38201         * lib/math.in.h (remainder): New declaration.
38202         * lib/remainder.c: New file.
38203         * m4/remainder.m4: New file.
38204         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
38205         (Depends-on): Add math, round, fma.
38206         (configure.ac): Use results of gl_FUNC_REMAINDER.
38207         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
38208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
38209         HAVE_DECL_REMAINDER.
38210         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
38211         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
38212         * tests/test-math-c++.cc: Check the declaration of remainder.
38213         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
38214         problems are fixed.
38216 2012-02-25  Bruno Haible  <bruno@clisp.org>
38218         Tests for module 'fmodl'.
38219         * modules/fmodl-tests: New file.
38220         * tests/test-fmodl.c: New file.
38221         * tests/test-math-c++.cc: Check the declaration of fmodl.
38223         New module 'fmodl'.
38224         * lib/math.in.h (fmodl): New declaration.
38225         * lib/fmodl.c: New file.
38226         * m4/fmodl.m4: New file.
38227         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
38228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
38229         REPLACE_FMODL.
38230         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
38231         REPLACE_FMODL.
38232         * modules/fmodl: New file.
38233         * doc/posix-functions/fmodl.texi: Mention the new module.
38235 2012-02-25  Bruno Haible  <bruno@clisp.org>
38237         Tests for module 'modfl'.
38238         * modules/modfl-tests: New file.
38239         * tests/test-modfl.c: New file.
38240         * tests/test-math-c++.cc: Check the declaration of modfl.
38242         New module 'modfl'.
38243         * lib/math.in.h (modfl): New declaration.
38244         * lib/modfl.c: New file.
38245         * m4/modfl.m4: New file.
38246         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
38247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
38248         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
38249         * modules/modfl: New file.
38250         * doc/posix-functions/modfl.texi: Mention the new module.
38252 2012-02-25  Bruno Haible  <bruno@clisp.org>
38254         Tests for module 'fabsl'.
38255         * modules/fabsl-tests: New file.
38256         * tests/test-fabsl.c: New file.
38257         * tests/test-math-c++.cc: Check the declaration of fabsl.
38259         New module 'fabsl'.
38260         * lib/math.in.h (fabsl): New declaration.
38261         * lib/fabsl.c: New file.
38262         * m4/fabsl.m4: New file.
38263         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
38264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
38265         REPLACE_FABSL.
38266         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
38267         REPLACE_FABSL.
38268         * modules/fabsl: New file.
38269         * doc/posix-functions/fabsl.texi: Mention the new module.
38271 2012-02-25  Bruno Haible  <bruno@clisp.org>
38273         fabs tests: More tests.
38274         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
38275         (zero): New variable.
38276         (main): Add tests for signed zero.
38277         * modules/fabs-tests (Files): Add tests/minus-zero.h.
38279         fabsf tests: More tests.
38280         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
38281         (zero): New variable.
38282         (main): Add tests for signed zero.
38283         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
38285 2012-02-24  Bruno Haible  <bruno@clisp.org>
38287         atanl: Provide function definition on MSVC.
38288         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
38289         function pointer.
38290         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
38292 2012-02-24  Bruno Haible  <bruno@clisp.org>
38294         acosl: Provide function definition on MSVC.
38295         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
38296         function pointer.
38297         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
38299 2012-02-24  Bruno Haible  <bruno@clisp.org>
38301         asinl: Provide function definition on MSVC.
38302         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
38303         function pointer.
38304         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
38306 2012-02-24  Bruno Haible  <bruno@clisp.org>
38308         tanl: Provide function definition on MSVC.
38309         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
38310         function pointer.
38311         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
38313 2012-02-24  Bruno Haible  <bruno@clisp.org>
38315         cosl: Provide function definition on MSVC.
38316         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
38317         function pointer.
38318         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
38320 2012-02-24  Bruno Haible  <bruno@clisp.org>
38322         sinl: Provide function definition on MSVC.
38323         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
38324         function pointer.
38325         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
38327 2012-02-24  Bruno Haible  <bruno@clisp.org>
38329         logl: Provide function definition on MSVC.
38330         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
38331         function pointer.
38332         * lib/math.in.h (logl): Undefine if it does not exist as a function.
38334 2012-02-24  Bruno Haible  <bruno@clisp.org>
38336         expl: Provide function definition on MSVC.
38337         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
38338         function pointer.
38339         * lib/math.in.h (expl): Undefine if it does not exist as a function.
38341 2012-02-24  Bruno Haible  <bruno@clisp.org>
38343         sqrtl: Provide function definition on MSVC.
38344         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
38345         a function pointer.
38346         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
38348 2012-02-24  Bruno Haible  <bruno@clisp.org>
38350         ceill: Provide function definition on MSVC.
38351         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
38352         used as a function pointer.
38353         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
38355 2012-02-24  Bruno Haible  <bruno@clisp.org>
38357         floorl: Provide function definition on MSVC.
38358         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
38359         used as a function pointer.
38360         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
38362 2012-02-24  Bruno Haible  <bruno@clisp.org>
38364         ceilf: Provide function definition on MSVC.
38365         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
38366         used as a function pointer.
38367         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
38369 2012-02-24  Bruno Haible  <bruno@clisp.org>
38371         floorf: Provide function definition on MSVC.
38372         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
38373         used as a function pointer.
38374         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
38376 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38378         stdnoreturn: new module
38379         This implements a replacement for C11's <stdnoreturn.h>.
38380         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
38381         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
38382         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
38383         * tests/test-stdnoreturn.c: New files.
38385 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
38387         regex: fix false multibyte matches in some regular expressions
38388         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
38389         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
38390         * lib/regex_internal.c (re_string_skip_chars):
38391         Fix miscomputation of remain_len that may cause incomplete
38392         multi-byte character and false match.
38394 2012-02-24  Jim Meyering  <meyering@redhat.com>
38396         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
38397         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
38398         uses with "==" *before* the call, e.g., 0 == strcmp (...)
38399         Remove now-unnecessary str''cmp obfuscation.
38400         Suggested by Akim Demaille.
38402 2012-02-24  Bruno Haible  <bruno@clisp.org>
38404         streq: Rename macro.
38405         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
38406         * NEWS: Mention the change.
38407         * lib/mbrtowc.c (mbrtowc): Update.
38408         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
38409         * lib/wcwidth.c (wcwidth): Update.
38410         Suggested by Akim Demaille and Jim Meyering.
38412 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38414         regex: fix typo in definition of MIN
38415         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
38416         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
38418 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38419             Bruno Haible  <bruno@clisp.org>
38421         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
38422         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
38423         entries into a stack-allocated buffer directly.
38424         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
38426 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38427             Bruno Haible  <bruno@clisp.org>
38429         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
38431          - There were several instances of this pattern:
38433              for (;;) {
38434                n = acl (f, GETACLCNT, 0, NULL);
38435                [ allocate an array A of size N ]
38436                if (acl (f, GETACL, n, a) == n)
38437                  break;
38438              }
38440            This loop might never terminate if some other process is constantly
38441            manipulating the file's ACL.  The loop should be rewritten to
38442            terminate.
38444          - The acl (... GETACLNT ...) call is merely an optimization; its value
38445            is merely a hint as to how big to make the array.  A better
38446            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
38447            and just guess a reasonably-big size, growing the size and trying
38448            again if it's not large enough.  This guarantees termination, and
38449            saves a system call.
38451         * lib/acl-internal.h: Include <limits.h>.
38452         (MIN, SIZE_MAX): New macros.
38453         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
38454         a stack-allocated buffer, and use malloc if it does not fit. Don't
38455         use GETACLCNT.
38456         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38458 2012-02-19  Bruno Haible  <bruno@clisp.org>
38460         acl: Fix endless loop on Solaris with vxfs.
38461         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
38462         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
38463         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38464         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
38465         * tests/test-sameacls.c (main)[Solaris]: Likewise.
38466         Reported by Bill Jones in
38467         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
38469 2012-02-19  Bruno Haible  <bruno@clisp.org>
38471         acl: Fix copy-acl test failure on Solaris 11.0.
38472         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
38473         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
38474         that this function returns 0 in some more cases.
38476 2012-02-19  Bruno Haible  <bruno@clisp.org>
38478         acl: Update doc references.
38479         * doc/acl-resources.txt: Update links to Solaris documentation.
38481 2012-02-19  Bruno Haible  <bruno@clisp.org>
38483         Fix test failure in many locales on Solaris 11.
38484         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
38485         'tr' arguments.
38486         * tests/test-pipe-filter-ii1.c (main): Likewise.
38487         * build-aux/bootstrap (check_versions): Run 'tr' command with range
38488         expressions in the C locale.
38489         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
38490         * m4/host-os.m4 (gl_HOST_OS): Likewise.
38492 2012-02-19  Bruno Haible  <bruno@clisp.org>
38494         gnulib-tool: Improve usage message.
38495         * gnulib-tool (func_usage): Move doc of --help and --version to the
38496         section "Operation modes".
38498 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
38500         README-release: make it easier to execute commands
38501         * top/README-release: break commands out on to separate lines.
38503 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
38505         GNUmakefile: simplify detection of unconfigured trees
38506         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
38507         whether the tree make is being run from is already configured or
38508         not.  Related simplifications.
38510 2012-02-13  Simon Josefsson  <simon@josefsson.org>
38512         * gnulib-tool (func_usage): Document --help and --version.
38514 2012-02-11  Jim Meyering  <meyering@redhat.com>
38516         bootstrap: don't exit 0 upon gnulib-tool failure
38517         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
38518         its exit status, not 0.
38520 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
38522         README-release: various improvements
38523         * top/README-release: Give a command to push changes for the
38524         release.  Add "distcheck" to list of other pre-release checks.
38525         Fix instance of "make stable" which should be "make TYPE".
38527 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
38529         maint: replace FSF snail-mail addresses with URLs
38530         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
38531         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
38532         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
38533         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
38534         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
38535         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
38536         * lib/check-version.c, lib/check-version.h, lib/config.charset:
38537         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
38538         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
38539         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
38540         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
38541         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
38542         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
38543         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
38544         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
38545         * lib/glthread/thread.c, lib/glthread/thread.h:
38546         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
38547         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
38548         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
38549         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
38550         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
38551         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
38552         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
38553         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
38554         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
38555         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
38556         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
38557         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
38558         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
38559         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
38560         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
38561         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
38562         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
38563         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
38564         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
38565         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
38566         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
38567         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
38568         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
38569         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
38570         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
38571         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
38572         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
38573         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
38574         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
38575         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
38576         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
38577         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
38578         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
38579         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
38580         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
38581         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
38582         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
38583         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
38584         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
38585         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
38586         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
38587         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
38588         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
38589         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
38590         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
38591         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
38592         * tests/test-poll.c, tests/test-quotearg-simple.c:
38593         * tests/test-quotearg.c, tests/test-quotearg.h:
38594         * tests/test-round-ieee.c, tests/test-round1.c:
38595         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
38596         * tests/test-roundl-ieee.c, tests/test-roundl.c:
38597         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
38598         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
38599         * tests/test-strerror.c, tests/test-strerror_r.c:
38600         * tests/test-strsignal.c, tests/test-strverscmp.c:
38601         * tests/test-xmemdup0.c:
38602         Replace FSF snail mail addresses with URLs, as per GNU coding
38603         standards.  See glibc bug
38604         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
38606 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
38608         README-release: capitalize a word and split a line
38609         * top/README-release: Fix punctuation and spacing.
38611 2012-02-08  Akim Demaille  <demaille@gostai.com>
38613         fatal-signal: use C prototypes (with explicit void).
38614         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38615         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
38617 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
38619         regex: spelling fix
38620         * lib/regexec.c: spelling fix
38622         regex: rely on stdint.h for SIZE_MAX
38623         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
38625 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
38627         regex: merge glibc changes
38629         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
38630         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
38631         (init_word_char): Work even if bitset words are not exactly 32 or
38632         64 bits wide.  Don't assume there are no padding bits.
38633         * lib/regex.c [_LIBC]: Do not include <config.h>.
38634         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
38635         and -Wtype-limits.
38636         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
38637         needless disagreement with glibc.  All uses changed.  Define it to
38638         1 only if _GNU_SOURCE, to match glibc.
38639         (_REG_RM_NAME): Remove; no longer needed, since the names in
38640         question are now all protected by __USE_GNU.
38641         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
38642         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
38643         * lib/regex_internal.h (MIN): New macro.
38645         2012-01-03 Ulrich Drepper <drepper@gmail.com>
38646         * lib/regcomp.c (init_word_char): Optimize regex a bit.
38648         2011-12-30 Jakub Jelinek <jakub@redhat.com>
38649         * lib/regex_internal.c (re_string_fetch_byte_case):
38650         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
38651         is miscompiled, and it turns out it is because of an incorrect
38652         attribute on re_string_fetch_byte_case.  Unlike
38653         re_string_peek_byte_case, this one is really not pure, it modifies
38654         memory (increments pstr->cur_idx), and with the pure attribute GCC
38655         assumed it doesn't and it cached the presumed value of
38656         regexp->cur_idx in a variable across the
38657          for (;; ++i)
38658            {
38659              if (i >= BRACKET_NAME_BUF_SIZE)
38660                return REG_EBRACK;
38661              if (token->type == OP_OPEN_CHAR_CLASS)
38662                ch = re_string_fetch_byte_case (regexp);
38663              else
38664                ch = re_string_fetch_byte (regexp);
38665              if (re_string_eoi(regexp))
38666                return REG_EBRACK;
38667              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
38668                break;
38669              elem->opr.name[i] = ch;
38670            }
38672         2011-11-29 Andreas Schwab <schwab@redhat.com>
38673         * lib/regcomp.c (build_equiv_class):
38674         Fix access after end of search string in regex matcher.
38676         2011-11-12 Ulrich Drepper <drepper@redhat.com>
38677         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
38679         2011-10-12 Ulrich Drepper <drepper@redhat.com>
38680         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
38682         2011-10-11 Ulrich Drepper <drepper@redhat.com>
38683         * lib/regcomp.c (parse_branch, parse_sub_exp):
38684         More regex memory leak fixes and tests.
38685         (parse_sub_exp, parse_bracket_exp):
38686         Fix memory leak for some invalid regular expressions.
38688         2011-05-28 Ulrich Drepper <drepper@gmail.com>
38689         * lib/regex_internal.c, lib/regexec.c:
38690         Fix unnecessary overallocation due to incomplete character.  When
38691         incomplete characters are found at the end of a string the code
38692         ran amok and allocated lots of memory.  Stricter limits are now in
38693         place.
38695         2011-05-20 Reuben Thomas <rrt@sc3d.org>
38696         * lib/regex.h: Update documentation.
38698         2011-05-16 Aharon Robbins <arnold@skeeve.com>
38699         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
38701         2010-05-05 Andreas Schwab <schwab@redhat.com>
38702         * lib/regexec.c (find_collation_sequence_value):
38703         Fix lookup of collation sequence value during regexp matching.
38705         2010-01-22 Ulrich Drepper <drepper@redhat.com>
38706         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
38708         2008-01-16 Ulrich Drepper <drepper@redhat.com>
38709         * lib/regex.h: Cleanup namespace.
38711         2007-11-26 Ulrich Drepper <drepper@redhat.com>
38712         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
38714         2007-08-26 Ulrich Drepper <drepper@redhat.com>
38715         * lib/regex_internal.h: Prevent some declarations and definitions
38716         to be seen when used in tests.
38718         2005-05-06 Ulrich Drepper <drepper@redhat.com>
38719         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
38720         __libc_lock_* macros if not _LIBC.
38721         (struct re_dfa_t): Add lock.
38723 2012-02-07  Eric Blake  <eblake@redhat.com>
38725         maint.mk: also prohibit lower-case @var@
38726         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
38727         lower case, like @top_srcdir@.
38729 2012-02-04  Eric Blake  <eblake@redhat.com>
38731         canonicalize: avoid uninitialized memory use
38732         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
38733         random '/' left in dest.
38734         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
38736 2012-02-04  Bruno Haible  <bruno@clisp.org>
38738         isatty: Fix test failure of ptsname_r on native Windows.
38739         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
38740         and don't set errno.
38741         (isatty): Test first whether fd is valid. Set errno when returning 0.
38743 2012-02-04  Bruno Haible  <bruno@clisp.org>
38745         spawn-pipe tests: Fix a NULL program name in a diagnostic.
38746         * tests/test-spawn-pipe-main.c: Include progname.h.
38747         (main): Invoke set_program_name.
38748         * modules/spawn-pipe-tests (Depends-on): Add progname.
38750         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
38751         * tests/test-nonblocking-socket-main.c: Include progname.h.
38752         (main): Invoke set_program_name.
38753         * modules/nonblocking-socket-tests (Depends-on): Add progname.
38755         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
38756         * tests/test-nonblocking-pipe-main.c: Include progname.h.
38757         (main): Invoke set_program_name.
38758         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
38760 2012-02-04  Eric Blake  <eblake@redhat.com>
38762         canonicalize-lgpl: fix // handling
38763         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
38765         canonicalize: fix // handling
38766         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
38767         /// to //, since only // is special.
38769 2012-02-04  Bruno Haible  <bruno@clisp.org>
38771         ioctl: Fix test failure on native Windows.
38772         * lib/ioctl.c: Include msvc-nothrow.h.
38773         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
38775 2012-02-04  Bruno Haible  <bruno@clisp.org>
38777         fsync: Avoid test failure on native Windows.
38778         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
38779         read-only.
38781 2012-02-04  Bruno Haible  <bruno@clisp.org>
38783         sys_select: Avoid syntax error on OpenBSD 5.0.
38784         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
38785         currently being included, just include the system's <sys/select.h>.
38787 2012-02-04  Bruno Haible  <bruno@clisp.org>
38789         sys_select: Avoid syntax error on OpenBSD 5.0.
38790         * lib/sys_select.in.h: Include <signal.h> only after the include_next
38791         <sys/select.h>, not before.
38792         Reported by Jiri B <jirib@devio.us>.
38794 2012-02-04  Bruno Haible  <bruno@clisp.org>
38796         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
38797         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
38798         global variables.
38799         * tests/test-get-rusage-data.c (main): Likewise.
38800         Reported by Jim Meyering.
38802 2012-02-04  Bruno Haible  <bruno@clisp.org>
38804         stdioext: Fix last commit.
38805         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
38807 2012-02-03  Bruno Haible  <bruno@clisp.org>
38809         stdioext: Add tentative support for Plan9.
38810         * lib/stdio-impl.h: Include <errno.h>.
38811         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
38812         * lib/freadable.c (freadable): Likewise.
38813         * lib/fwritable.c (fwritable): Likewise.
38814         * lib/fbufmode.c (fbufmode): Likewise.
38815         * lib/freading.c (freading): Likewise.
38816         * lib/fwriting.c (fwriting): Likewise.
38817         * lib/freadptr.c (freadptr): Likewise.
38818         * lib/freadseek.c (freadptrinc): Likewise.
38819         * lib/freadahead.c (freadahead): Likewise.
38820         * lib/fpurge.c (fpurge): Likewise.
38821         * lib/fseeko.c (rpl_fseeko): Likewise.
38822         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
38823         Reported by Jens Staal <staal1978@gmail.com>.
38825 2012-02-02  Jim Meyering  <meyering@redhat.com>
38827         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
38828         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
38829         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
38830         not even to try to add the attribute.  Instead, add a pragma to suppress
38831         the suggestion/warning.
38833 2012-01-31  Karl Berry  <karl@gnu.org>
38835         setstate doc: typo.
38836         * doc/posix-functions/setstate.texi (setstate): { not (.
38838 2012-01-31  Bruno Haible  <bruno@clisp.org>
38840         popen: Make more robust on Windows.
38841         * lib/popen.c: On native Windows, use the _popen based code even if
38842         HAVE_POPEN is set.
38843         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
38844         environment variable on native Windows.
38846 2012-01-30  Bruno Haible  <bruno@clisp.org>
38848         pclose: Fix typo.
38849         * lib/stdio.in.h (pclose): Fix typo in warning message.
38851 2012-01-30  Bruno Haible  <bruno@clisp.org>
38853         doc about getlogin_r, setstate.
38854         * doc/posix-functions/getlogin_r.texi: List the incompatible
38855         declaration problem under "not fixed by gnulib".
38856         * doc/posix-functions/setstate.texi: Mention incompatible declaration
38857         problem on Solaris 11 and other platforms.
38859 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
38860             Bruno Haible  <bruno@clisp.org>
38862         poll tests: Make test more robust.
38863         * tests/test-poll.c: Include macros.h.
38864         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
38865         return value of various I/O operations.
38866         * modules/poll-tests (Files): Add tests/macros.h.
38868 2012-01-30  Bruno Haible  <bruno@clisp.org>
38870         sys_stat: Fix support for mingw64 and MSVC.
38871         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
38872         header files already do it.
38873         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
38874         stat itself.
38875         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
38877 2012-01-30  Bruno Haible  <bruno@clisp.org>
38879         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
38880         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
38881         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
38883 2012-01-29  Bruno Haible  <bruno@clisp.org>
38885         quotearg: Fix test failure on MacOS X 10.5.
38886         * tests/test-quotearg-simple.c: Include localcharset.h.
38887         (main): If the locale encoding is not ASCII, bypass the tests of
38888         locale_quoting_style and clocale_quoting_style.
38889         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
38891 2012-01-29  Jim Meyering  <meyering@redhat.com>
38893         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
38894         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
38895         detect uses of canonicalize_file_name.
38897 2012-01-28  Bruno Haible  <bruno@clisp.org>
38899         test-framework-sh: Fix test failure with AIX 7.1 diff.
38900         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
38901         in column 1, like 'diff -c' does.
38902         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
38903         whether 'diff -u' is used. Instead, test whether the output contains
38904         some '@' character.
38906 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38908         strtoimax: eliminate need for stdint.h, inttypes.h checks
38909         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
38910         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
38911         the prerequisites for a recently-introduced strtoimax test.
38912         I guess this might cause strtoimax to be replaced when not
38913         strictly necessary on older hosts, but this shouldn't introduce
38914         any bugs and it should make Emacs 'configure' faster on typical
38915         modern hosts.  Problem discovered when importing the latest gnulib
38916         to an Emacs test version.
38917         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
38919 2012-01-28  Bruno Haible  <bruno@clisp.org>
38921         sys_time: Override 'struct timeval' on some native Windows platforms.
38922         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
38923         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
38924         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
38925         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
38926         needs to be overridden.
38927         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
38928         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
38929         * tests/test-sys_select.c: Check that the tv_sec member has the same
38930         size as a 'time_t'.
38931         * tests/test-sys_time.c: Likewise.
38932         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
38933         is set, set also REPLACE_GETTIMEOFDAY.
38934         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
38935         convert the resulting 'struct timeval' before returning.
38936         * lib/select.c: Include <sys/time.h>.
38937         (select, timeval): Undefine at the right place.
38938         * modules/select (Depends-on): Add sys_time.
38939         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
38940         some Windows platforms.
38941         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
38943 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
38945         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
38946         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
38947         an integer.
38948         * lib/fcntl.c (dupfd): Likewise.
38949         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
38951 2012-01-28  Bruno Haible  <bruno@clisp.org>
38953         fcntl: Avoid compilation error on native Windows.
38954         * modules/fcntl (Depends-on): Add 'close'.
38956 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
38958         select, poll, isatty: Avoid warnings on x86_64 mingw64.
38959         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
38960         pointer to an integer.
38961         * lib/poll.c (IsConsoleHandle): Likewise.
38962         * lib/isatty.c (IsConsoleHandle): Likewise.
38964 2012-01-28  Jim Meyering  <meyering@redhat.com>
38966         doc: clarify README-release
38967         * top/README-release: Clarify: you should make a point to have
38968         the latest stable versions of build tools in your PATH, and the
38969         reference to buildreq is solely for its list of tool names, not
38970         for its minimal-functional version numbers.
38971         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
38973         maint.mk: use more readable (yet functionally equivalent) quoting
38974         It is common to quote a single quote in a single quoted string like
38975         this:  '...'\''...'.  Unless you know the idiom, that looks like
38976         gibberish, so prefer to double-quote the string when possible.
38977         Then you can use a more readable, lone single quote: "...'..."
38978         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
38979         "don't" is more readable than the equivalent 'don'\''t'.
38980         (sc_cast_of_x_alloc_return_value): Likewise.
38981         (sc_cast_of_alloca_return_value): Likewise.
38982         (sc_makefile_path_separator_check): Similar: use ":" in '...',
38983         rather than '\'':'\''.
38985 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
38987         stdalign: relax _Alignof and tighten _Alignas test
38988         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
38989         as it was too strict: alignof must divide offsetof, but it need
38990         not equal offsetof.  Inspired by Joseph S. Myers's comment
38991         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
38992         Conversely, tighten the _Alignas test a bit, as the resulting
38993         alignment must be exactly 8.
38995 2012-01-27  Bruno Haible  <bruno@clisp.org>
38997         stdalign: Document the last change.
38998         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
39000 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39002         stdalign: check that alignof and offsetof are consistent
39003         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
39004         Problem reported for gnulib by Richard W.M. Jones in
39005         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
39007 2012-01-27  Jim Meyering  <meyering@redhat.com>
39009         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
39010         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
39011         convert a sequence with gaps to the minimal containing range.
39012         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
39013         * tests/test-update-copyright.sh: Test for this.
39014         The FSF confirmed it is ok to do this, assuming there is at
39015         least one significant change per year in the affected range:
39016         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
39018 2012-01-26  Bruno Haible  <bruno@clisp.org>
39020         pipe2: refine doc about thread-safety
39021         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
39022         multithread-safety problem.
39023         * doc/glibc-functions/accept4.texi: Likewise.
39025 2012-01-26  Bruno Haible  <bruno@clisp.org>
39027         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
39028         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
39029         In the test program, include <fcntl.h>, for O_RDONLY.
39031 2012-01-26  Eric Blake  <eblake@redhat.com>
39033         pipe2: document lack of thread-safety in replacement
39034         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
39035         issue in replacement.
39036         * doc/glibc-functions/accept4.texi (accept4): Likewise.
39037         Based on a report by Eric Wong.
39039 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39040             Bruno Haible  <bruno@clisp.org>
39042         malloca: Avoid warnings on x86_64 mingw64.
39043         * lib/malloca.c: Include <stdint.h>.
39044         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
39045         * modules/malloca (Depends-on): Add stdint.
39046         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
39048 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39050         obstack: remove __STDC__ conditionals
39051         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
39052         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
39053         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
39054         m4/include_next.m4 as the only gnulib-maintained places that still
39055         refer to __STDC__.
39057 2012-01-24  Bruno Haible  <bruno@clisp.org>
39059         havelib: Modern quoting.
39060         * build-aux/config.rpath: Quote 'like this', not `like this', as per
39061         the recent change to the GNU coding standards.
39063 2012-01-24  Bruno Haible  <bruno@clisp.org>
39065         stdint: Improve support for Android.
39066         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
39067         Reported by Simon Josefsson <simon@josefsson.org>.
39069 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39071         doc: omit trailing empty lines from INSTALL etc.
39072         * doc/Makefile (INSTALL): Omit trailing empty lines.
39073         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
39074         omit trailing empty lines.  This simplifies the build procedure.
39076 2012-01-23  Jim Meyering  <meyering@redhat.com>
39078         tests: avoid spurious warnings about gl_sockets_startup
39079         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
39080         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
39081         reporting a "statement with no effect".
39082         * tests/test-accept.c (main): Mark as "(void)".
39083         * tests/test-accept4.c (main): Likewise.
39084         * tests/test-bind.c (main): Likewise.
39085         * tests/test-connect.c (main): Likewise.
39086         * tests/test-getpeername.c (main): Likewise.
39087         * tests/test-getsockname.c (main): Likewise.
39088         * tests/test-getsockopt.c (main): Likewise.
39089         * tests/test-listen.c (main): Likewise.
39090         * tests/test-recv.c (main): Likewise.
39091         * tests/test-recvfrom.c (main): Likewise.
39092         * tests/test-send.c (main): Likewise.
39093         * tests/test-sendto.c (main): Likewise.
39094         * tests/test-setsockopt.c (main): Likewise.
39095         * tests/test-shutdown.c (main): Likewise.
39097 2012-01-21  Bruno Haible  <bruno@clisp.org>
39099         locale-fr.m4: Fix for Android.
39100         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
39101         failure of the test program on Bionic libc.
39103 2012-01-21  Jim Meyering  <meyering@redhat.com>
39105         bootstrap: fail when bootstrap_post_import_hook fails
39106         Otherwise, it's far too easy to miss diagnostics emitted
39107         between gnulib-tool's output and that of running configure.
39108         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
39110 2012-01-17  Jim Meyering  <meyering@redhat.com>
39112         maint: enable sc_trailing_blank
39113         * build-aux/pmccabe.css: Remove trailing blanks.
39114         * doc/acl-cygwin.txt: Likewise.
39115         * doc/gnu-oids.texi: Likewise
39116         * cfg.mk: Enable sc_trailing_blank.
39117         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
39119 2012-01-17  Jim Meyering  <meyering@redhat.com>
39121         maint: enable sc_prohibit_openat_without_use
39122         * cfg.mk: Enable sc_prohibit_openat_without_use.
39123         Exempt lib/selinux-at.c.
39125 2012-01-17  Jim Meyering  <meyering@redhat.com>
39127         maint: enable sc_prohibit_cloexec_without_use
39128         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
39129         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
39131 2012-01-17  Jim Meyering  <meyering@redhat.com>
39133         maint: enable sc_prohibit_intprops_without_use
39134         * cfg.mk: Enable sc_prohibit_intprops_without_use
39135         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
39137 2012-01-17  Jim Meyering  <meyering@redhat.com>
39139         maint: enable sc_prohibit_hash_pjw_without_use
39140         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
39141         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
39142         to match any use of \<hash_pjw\>, i.e., not necessarily with a
39143         following " (".
39145 2012-01-17  Jim Meyering  <meyering@redhat.com>
39147         maint: enable double-word-prohibiting rule
39148         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
39149         Exempt three files.
39151 2012-01-17  Jim Meyering  <meyering@redhat.com>
39153         maint: remove empty lines at EOF, but excluding modules/*
39154         Apply syntax rules at home as well as abroad.  Most changes
39155         were induced by running this:
39156           make srcdir=. _build-aux=build-aux -f top/maint.mk \
39157             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
39158             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
39159         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
39160         Exempt modules/* and two binary files.
39161         Also exempt doc/INSTALL*, per request from Bruno Haible.
39162         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
39163         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
39164         * doc/Copyright/request-assign.future: Likewise.
39165         * doc/Copyright/request-disclaim.changes: Likewise.
39166         * doc/INSTALL: Likewise.
39167         * doc/INSTALL.ISO: Likewise.
39168         * doc/INSTALL.UTF-8: Likewise.
39169         * doc/acl-cygwin.txt: Likewise.
39170         * doc/acl-resources.txt: Likewise.
39171         * doc/fdl-1.2.texi: Likewise.
39172         * doc/fdl-1.3.texi: Likewise.
39173         * doc/fdl.texi: Likewise.
39174         * lib/argp-pin.c: Likewise.
39175         * lib/round.c: Likewise.
39176         * lib/unicase/u16-totitle.c: Likewise.
39177         * lib/unictype/block_test.c: Likewise.
39178         * lib/uninorm/canonical-decomposition.c: Likewise.
39179         * m4/README: Likewise.
39180         * m4/relocatable-lib.m4: Likewise.
39181         * tests/test-isnand-nolibm.c: Likewise.
39182         * tests/test-isnand.c: Likewise.
39183         * tests/uninorm/NormalizationTest.txt: Likewise.
39185 2012-01-17  Jim Meyering  <meyering@redhat.com>
39187         maint: add framework to run syntax-check rules against gnulib sources
39188         * cfg.mk: New file, to disable all currently-failing tests.
39189         We'll enable them one by one, as they are made to pass.
39190         * Makefile (sc_maint): New rule.
39192 2012-01-21  Bruno Haible  <bruno@clisp.org>
39194         stdint: Add support for Android.
39195         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
39196         include the system's <stdint.h>.
39197         Reported by Simon Josefsson <simon@josefsson.org>.
39199 2012-01-19  Jim Meyering  <meyering@redhat.com>
39201         bootstrap: add bootstrap_post_import_hook
39202         Bison does still need something like the gnulib_mk_hook whose
39203         invocation I had to remove along with slurp in commit 767ccd40.
39204         Technically, we could get along without it, but doing so would
39205         have required living with a warning and a mandatory post-bootstrap
39206         automake rerun.
39207         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
39208         (bootstrap_post_import_hook): New function.
39209         Invoke it after gnulib-tool --import and before autoreconf.
39211 2012-01-18  Jim Meyering  <meyering@redhat.com>
39213         gitlog-to-changelog: don't use "no_"-prefixed variable name
39214         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
39215         to enable both --cluster and --no-cluster.  Change variable name,
39216         s/\$no_cluster/$cluster/, and reverse usage to match.
39218         gitlog-to-changelog: use "||", not "or" in expressions
39219         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
39220         expressions.
39222 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
39224         gitlog-to-changelog: new option --no-cluster
39225         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
39226         clustering of adjacent commit messages.
39228 2012-01-17  Jim Meyering  <meyering@redhat.com>
39230         maint: spell file systems with two words, not one
39231         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
39232         two words, not one.
39234 2012-01-16  Jim Meyering  <meyering@redhat.com>
39236         bootstrap: add a FIXME comment to ensure we eventually remove the hack
39237         * build-aux/bootstrap (gnulib_tool_options): Add comment.
39239 2012-01-16  Eric Blake  <eblake@redhat.com>
39241         bootstrap: cater to autoconf 2.59
39242         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
39243         is not available.
39245         bootstrap: properly check for libtool
39246         * build-aux/bootstrap (libtoolize): Also run libtool when older
39247         usage is detected.
39249 2012-01-15  Bruno Haible  <bruno@clisp.org>
39251         Improve support for MSVC 9.
39252         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
39253         clashes on MSVC.
39254         * lib/fcntl.in.h: Likewise.
39255         * lib/stdlib.in.h: Likewise.
39256         * lib/sys_stat.in.h: Likewise.
39258 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
39260         gnupload: we hold the master copy of this script now
39261         For motivation and more information, see:
39262         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
39263         * build-aux/gnupload: Make it clear in the heading comments that the
39264         master copy of this file is maintained by gnulib.  Since we are at
39265         it, bump its copyright year and ...
39266         ($scriptversion): ... the date in its version.
39267         ($usage): Patches and bug reports should be sent to the gnulib list,
39268         not the automake one.
39269         * config/srclist.txt: Don't try to sync 'gnupload' from automake
39270         anymore.
39272 2012-01-15  Bruno Haible  <bruno@clisp.org>
39274         Fix module 'random'.
39275         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
39276         initstate, setstate are declared.
39278 2012-01-14  Bruno Haible  <bruno@clisp.org>
39280         Tests for module 'random'.
39281         * modules/random-tests: New file.
39282         * tests/test-random.c: New file, based on tests/test-random_r.c.
39284         New module 'random'.
39285         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
39286         declarations.
39287         * lib/random.c: New file, based on glibc/stdlib/random.c.
39288         * m4/random.m4: New file.
39289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
39290         HAVE_RANDOM.
39291         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
39292         * modules/random: New file.
39293         * config/srclist.txt: Add an entry for random.c.
39294         * doc/posix-functions/random.texi: Mention the 'random' module.
39295         * doc/posix-functions/initstate.texi: Likewise.
39296         * doc/posix-functions/setstate.texi: Likewise.
39297         * doc/posix-functions/srandom.texi: Likewise.
39299 2012-01-12  Bruno Haible  <bruno@clisp.org>
39301         random_r: Use common idioms.
39302         * lib/random_r.c: Include <stdlib.h> first.
39304         random_r: Override incompatible API on AIX, OSF/1.
39305         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
39306         Override the system function if REPLACE_RANDOM_R is 1.
39307         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
39308         and OSF/1, set REPLACE_RANDOM_R.
39309         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
39310         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
39311         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
39312         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
39313         * doc/glibc-functions/random_r.texi: Likewise.
39314         * doc/glibc-functions/setstate_r.texi: Likewise.
39316         random_r: Support for MSVC 9.
39317         * lib/random_r.c: Include stdint.h, not inttypes.h.
39319 2012-01-12  Eric Blake  <eblake@redhat.com>
39321         inet_ntop: guard extra work by IF_LINT
39322         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
39323         better code generation when not checking for warnings.
39324         Suggested by Paul Eggert and Jim Meyering.
39326         strptime: fix regression on mingw
39327         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
39328         Fix regression.  Reported by Bruno Haible.
39330 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
39331             Bruno Haible  <bruno@clisp.org>
39333         copy-file: add error-code-returning variant.
39334         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
39335         (qcopy_file_preserving): New declaration.
39336         * lib/copy-file.c (qcopy_file_preserving): Renamed from
39337         copy_file_preserving. Change return type to 'int'. Don't emit an error
39338         message here.
39339         (copy_file_preserving): New function.
39340         * tests/test-copy-file.c: Include <stdlib.h>.
39341         (main): Test qcopy_file_preserving if the environment variable
39342         NO_STDERR_OUTPUT is set.
39343         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
39344         with NO_STDERR_OUTPUT
39345         * tests/test-copy-file-2.sh: Likewise.
39347 2012-01-10  Bruno Haible  <bruno@clisp.org>
39349         copy-file: Use 'quote' module consistently.
39350         * lib/copy-file.c (copy_file_preserving): Use quote().
39352         copy-file: Refactor.
39353         * lib/copy-file.c: Include quote.h.
39354         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
39355         message here.
39356         * modules/copy-file (Depends-on): Add quote.
39358         acl: Export qcopy_acl.
39359         * lib/acl.h (qcopy_acl): New declaration.
39360         * lib/copy-acl.c (qcopy_acl): Make non-static.
39362         acl: Rename a local variable.
39363         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
39365         acl: Align return values of copy_acl and qcopy_acl.
39366         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
39367         maybe < -1.
39369 2012-01-11  Eric Blake  <eblake@redhat.com>
39371         strptime: silence gcc warnings
39372         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
39373         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
39374         Reported by Daniel P. Berrange.
39376         inet_ntop: silence gcc warning
39377         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
39378         Reported by Daniel P. Berrange.
39380 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
39382         getloadavg test: skip the test on GNU/Linux without /proc mounted
39383         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
39384         file.  When /proc is not mounted, it always fails with ENOENT.
39385         * tests/test-getloadavg.c (main): Treat ENOENT return code from
39386         getloadavg(3) the same way as ENOSYS and ENOTSUP.
39388 2012-01-10  Bruno Haible  <bruno@clisp.org>
39390         regex: Avoid link error on MSVC 9.
39391         * modules/regex (Depends-on): Add wctype.
39393 2012-01-10  Bruno Haible  <bruno@clisp.org>
39395         doc: Mention --with-tests option.
39396         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
39397         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
39398         --with-tests.
39399         Reported by Reuben Thomas.
39401 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
39403         users.txt: order package names lexicographically.
39404         * users.txt: Order package names lexicographically.
39406 2012-01-10  Jim Meyering  <meyering@redhat.com>
39408         maint.mk: fix description in comment
39409         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
39411         ignore-value: remove deprecated ignore_ptr function
39412         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
39413         * NEWS: Note this.
39415 2012-01-09  Jim Meyering  <meyering@redhat.com>
39417         test-init.sh: avoid a subshell
39418         * tests/test-init.sh: Remove protective subshell.
39419         Suggested by Bernhard Voelker.  While a subshell is normally
39420         required to protect against older shells (Solaris, FreeBSD) that
39421         warn about a missing program before performing redirection, the
39422         shell-selection tests performed by init.sh probably exclude any
39423         offending shell.
39425 2012-01-08  Bruno Haible  <bruno@clisp.org>
39427         setlocale tests: Avoid test failure on Solaris 11.0.
39428         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
39429         variable.
39431 2012-01-08  Bruno Haible  <bruno@clisp.org>
39433         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
39434         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39435         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39436         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
39437         macro.
39438         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
39439         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39440         * lib/spawn_faction_addopen.c: Add workaround implementation if
39441         HAVE_WORKING_POSIX_SPAWN.
39442         * modules/spawn (Makefile): Substitute
39443         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39444         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
39445         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
39446         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39447         (Depends-on): Update conditions.
39448         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39449         the Solaris 11 bug.
39451 2012-01-08  Bruno Haible  <bruno@clisp.org>
39453         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
39454         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39455         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39456         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
39457         macro.
39458         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
39459         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39460         * lib/spawn_faction_adddup2.c: Add workaround implementation if
39461         HAVE_WORKING_POSIX_SPAWN.
39462         * modules/spawn (Makefile): Substitute
39463         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39464         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
39465         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
39466         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39467         (Depends-on): Update conditions.
39468         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39469         the Solaris 11 bug.
39471 2012-01-08  Bruno Haible  <bruno@clisp.org>
39473         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
39474         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39475         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39476         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
39477         HAVE_WORKING_POSIX_SPAWN.
39478         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
39479         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
39480         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39481         * lib/spawn_faction_addclose.c: Add workaround implementation if
39482         HAVE_WORKING_POSIX_SPAWN.
39483         * modules/spawn (Makefile): Substitute
39484         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39485         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
39486         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
39487         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39488         (Depends-on): Update conditions.
39489         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39490         the Solaris 11 bug.
39492 2012-01-08  Bruno Haible  <bruno@clisp.org>
39494         doc: Update for Solaris 11.0.
39495         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
39496         * m4/printf.m4: Update comments.
39498 2012-01-08  Bruno Haible  <bruno@clisp.org>
39500         mktime: Avoid compilation error on Solaris 11.
39501         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
39503 2012-01-08  Bruno Haible  <bruno@clisp.org>
39505         doc: Small fix.
39506         * doc/posix-headers/nl_types.texi: Correct platforms list.
39508 2012-01-08  Simon Josefsson  <simon@josefsson.org>
39510         Add lgpl-3.0 module.
39511         * MODULES.html.sh (Support for building documentation): Add
39512         lgpl-3.0.
39513         * modules/lgpl-3.0: New file.
39515 2012-01-08  Jim Meyering  <meyering@redhat.com>
39517         select.c: indent with spaces, not TABs
39518         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
39520 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39522         quotearg: do not use grave accent for left quote
39523         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
39524         locale_quoting_style.
39525         (quotearg_buffer_restyled): Fix example.
39526         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
39528 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39530         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
39531         Most programs do not have translation catalogs for English and much
39532         less separate catalogs for British and American English.  Drop the
39533         suggestion to translators about these two, and provide it
39534         automatically for Unicode locales.  Like most programs, even those
39535         using American English, we use single quotation marks.  This conflicts
39536         with the American typographic convention, but works better when you
39537         cite the entire error message within double quotes.  It also tries not
39538         to clash with established practice and with what non-gnulib programs
39539         will usually do.
39540         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
39541         using an UTF-8 or GB-18030 locale.  The list of other locales with
39542         quotes was provided by Bruno Haible.
39543         (quotearg_buffer_restyled): Adjust instructions to translators.
39544         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
39545         text, since this would be wrong when using Unicode.
39546         * modules/quotearg: Depend on c-strcaseeq.
39548 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39550         quotearg: fix Wikipedia link
39551         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
39553 2012-01-07  Simon Josefsson  <simon@josefsson.org>
39555         Fix for mingw with MSVC9.
39556         * m4/ld-version-script.m4: Check that compiler rejects version
39557         scripts with syntax errors.  Reported by Bruno Haible
39558         <bruno@clisp.org>.
39560 2012-01-06  Bruno Haible  <bruno@clisp.org>
39562         Talk about "native Windows API", not "Woe32".
39563         * lib/accept4.c: Update comments to mention native Windows.
39564         * lib/execute.c: Likewise.
39565         * lib/fatal-signal.c: Likewise.
39566         * lib/localcharset.c: Likewise.
39567         * lib/nanosleep.c: Likewise.
39568         * lib/nl_langinfo.c: Likewise.
39569         * lib/pclose.c: Likewise.
39570         * lib/pipe-filter-gi.c: Likewise.
39571         * lib/pipe-filter-ii.c: Likewise.
39572         * lib/pipe.c: Likewise.
39573         * lib/pipe2.c: Likewise.
39574         * lib/popen.c: Likewise.
39575         * lib/progreloc.c: Likewise.
39576         * lib/relocatable.c: Likewise.
39577         * lib/sigaction.c: Likewise.
39578         * lib/sigprocmask.c: Likewise.
39579         * lib/spawn-pipe.h: Likewise.
39580         * lib/spawn-pipe.c: Likewise.
39581         * lib/spawni.c: Likewise.
39582         * lib/stat-time.h: Likewise.
39583         * lib/w32spawn.h: Likewise.
39584         * tests/test-isatty.c: Likewise.
39585         * lib/config.charset: More comments.
39586         * doc/gnulib-intro.texi: Mention native Windows.
39587         * doc/posix-functions/_Exit_C99.texi: Likewise.
39588         * doc/posix-headers/fcntl.texi: Likewise.
39590 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
39592         argp: Avoid crash if translator uses % characters in a translation.
39593         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
39594         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
39596 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
39598         doc: C11 and C++11 are now official
39599         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
39600         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
39601         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
39602         * modules/stdalign:
39603         Replace references to draft C1X to C11, and to draft C++0X to C++11.
39605 2012-01-06  Bruno Haible  <bruno@clisp.org>
39607         uc-is-grapheme-break tests: Tweak.
39608         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
39609         message.
39611 2012-01-06  Bruno Haible  <bruno@clisp.org>
39613         test-init.sh: correct the test for diff -u
39614         * tests/test-init.sh: Also redirect stdout to /dev/null.
39616 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39618         Use ', not `, for quoting output.
39619         * build-aux/announce-gen (usage, sizes, print_news_deltas)
39620         (print_changelog_deltas, get_tool_versions, main program):
39621         * build-aux/git-version-gen:
39622         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
39623         * build-aux/move-if-change (help):
39624         * build-aux/useless-if-before-free (usage, main program):
39625         * check-module (parse_module_file, usage)
39626         (find_included_lib_files, check_module):
39627         * lib/argmatch.c (main) [TEST]:
39628         * lib/argp-help.c (_help):
39629         * lib/getopt1.c (main) [TEST]:
39630         * lib/git-merge-changelog.c (usage):
39631         * lib/xstrtol-error.c (xstrtol_error):
39632         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
39633         * m4/argz.m4 (gl_FUNC_ARGZ):
39634         * m4/bison.m4 (gl_BISON):
39635         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
39636         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
39637         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39638         * m4/fpending.m4 (gl_PREREQ_FPENDING):
39639         * m4/gc-random.m4 (gl_GC_RANDOM):
39640         * m4/intl.m4 (gt_CHECK_DECL):
39641         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
39642         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
39643         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
39644         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
39645         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
39646         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
39647         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
39648         * tests/test-dirname.c (main):
39649         * tests/test-getpass.c (main):
39650         * tests/test-iconvme.c (main):
39651         * tests/test-parse-datetime.c (LOG):
39652         * tests/test-xstrtoimax.sh:
39653         * tests/test-xstrtol.sh:
39654         * tests/test-xstrtoll.sh:
39655         * tests/test-xstrtoumax.sh:
39656         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
39657         * top/GNUmakefile (abort-due-to-no-makefile):
39658         Quote 'like this', not `like this', as per the recent change to
39659         the GNU coding standards.
39661 2012-01-05  Bruno Haible  <bruno@clisp.org>
39663         strtoimax: Don't force a replacement on systems where intmax_t is int.
39664         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
39665         'intmax_t' is not larger than 'int'.
39666         Reported by Pádraig Brady <P@draigBrady.com>.
39668 2012-01-05  Bruno Haible  <bruno@clisp.org>
39670         doc: Mention NetBSD bugs.
39671         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
39672         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
39674 2012-01-05  Bruno Haible  <bruno@clisp.org>
39676         strtoumax tests: Enhance tests.
39677         * tests/test-strtoumax.c (main): Add tests for large values.
39679 2012-01-05  Bruno Haible  <bruno@clisp.org>
39681         strtoimax: Work around AIX 5.1 bug.
39682         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
39683         definition.
39684         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
39685         Set HAVE_STRTOIMAX.
39686         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
39687         REPLACE_STRTOIMAX.
39688         * modules/inttypes-incomplete (Makefile.am): Substitute
39689         REPLACE_STRTOIMAX.
39690         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
39691         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
39692         (Depends-on): Update conditions.
39693         * tests/test-strtoimax.c (main): Add tests for large values.
39694         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
39696 2012-01-05  Bruno Haible  <bruno@clisp.org>
39698         inttypes: Modernize.
39699         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
39700         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
39701         (Makefile.am): Update inttypes.h rule.
39703 2012-01-05  Jim Meyering  <meyering@redhat.com>
39705         init.sh: don't waste a subshell just to redirect stderr
39706         * tests/init.sh: In testing for diff -u and diff -c, use a
39707         stderr-redirecting exec inside `...` rather than a subshell.
39709         test-init.sh: avoid failure on HP-UX 11.00
39710         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
39711         resolves to diff -c or cmp.  Reported by Bruno Haible.
39713 2012-01-05  Bruno Haible  <bruno@clisp.org>
39715         Tests for module 'strtoull'.
39716         * modules/strtoull-tests: New file.
39717         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
39719 2012-01-05  Bruno Haible  <bruno@clisp.org>
39721         Tests for module 'strtoll'.
39722         * modules/strtoll-tests: New file.
39723         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
39725 2012-01-05  Bruno Haible  <bruno@clisp.org>
39727         Tests for module 'strtoul'.
39728         * modules/strtoul-tests: New file.
39729         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
39731 2012-01-05  Bruno Haible  <bruno@clisp.org>
39733         Tests for module 'strtol'.
39734         * modules/strtol-tests: New file.
39735         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
39737 2012-01-04  Jim Meyering  <meyering@redhat.com>
39739         test-init.sh: accommodate Solaris 5.10's different diff -u output
39740         * tests/test-init.sh: Also exempt @@ lines from the comparison
39741         of diff output, since Solaris 5.10 and GNU diff formats differ.
39742         Reported by Stefano Lattarini.
39744 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39746         test-posixtm: don't assume signed integer wraparound
39747         * tests/test-posixtm.c (main): Don't assume wraparound semantics
39748         after signed integer overflow.  Inspired by (though it may not
39749         fix) Bruno Haible's bug report in
39750         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
39752         Spell out "Windows 9x" and "Windows XP".
39753         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
39754         "Windows 9x" and "WinXP" with "Windows XP".
39756 2012-01-04  Jim Meyering  <meyering@redhat.com>
39758         test-vc-list-files-cvs.sh: remove obsolete comment
39759         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
39760         double exit.  Now that's all encapsulated via skip_ and Exit.
39762 2012-01-04  Bruno Haible  <bruno@clisp.org>
39764         Talk about "native Windows API", not "Win32".
39765         * lib/classpath.c: Update comments to mention native Windows.
39766         * lib/csharpexec.c: Likewise.
39767         * lib/dup2.c: Likewise.
39768         * lib/error.c: Likewise.
39769         * lib/fcntl.c: Likewise.
39770         * lib/filename.h: Likewise.
39771         * lib/findprog.c: Likewise.
39772         * lib/get-rusage-as.c: Likewise.
39773         * lib/get-rusage-data.c: Likewise.
39774         * lib/getpagesize.c: Likewise.
39775         * lib/javaexec.c: Likewise.
39776         * lib/msvc-inval.c: Likewise.
39777         * lib/msvc-nothrow.c: Likewise.
39778         * lib/nanosleep.c: Likewise.
39779         * lib/nonblocking.c: Likewise.
39780         * lib/printf-parse.c: Likewise.
39781         * lib/setlocale.c: Likewise.
39782         * lib/sigaction.c: Likewise.
39783         * lib/strerror_r.c: Likewise.
39784         * lib/tmpdir.c: Likewise.
39785         * lib/vasnprintf.c: Likewise.
39786         * lib/w32spawn.h: Likewise.
39787         * lib/waitpid.c: Likewise.
39788         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
39789         * m4/locale-ar.m4: Likewise.
39790         * m4/locale-fr.m4: Likewise.
39791         * m4/locale-ja.m4: Likewise.
39792         * m4/locale-tr.m4: Likewise.
39793         * m4/locale-zh.m4: Likewise.
39794         * m4/printf.m4: Likewise.
39795         * tests/test-cloexec.c: Likewise.
39796         * tests/test-copy-acl.sh: Likewise.
39797         * tests/test-copy-file.sh: Likewise.
39798         * tests/test-file-has-acl.sh: Likewise.
39799         * tests/test-set-mode-acl.sh: Likewise.
39800         * tests/test-dup-safer.c: Likewise.
39801         * tests/test-dup2.c: Likewise.
39802         * tests/test-dup3.c: Likewise.
39803         * tests/test-fcntl.c: Likewise.
39804         * tests/test-nonblocking-pipe.h: Likewise.
39805         * tests/test-nonblocking-socket.h: Likewise.
39806         * tests/test-pipe.c: Likewise.
39807         * tests/test-pipe2.c: Likewise.
39808         * tests/test-spawn-pipe-child.c: Likewise.
39809         * doc/acl-resources.txt: Likewise.
39810         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
39811         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
39812         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
39813         * lib/localcharset.c: Update comments to mention native Windows.
39814         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
39815         * lib/localename.c: Likewise.
39816         * lib/progreloc.c: Likewise.
39817         * lib/relocatable.c: Likewise.
39818         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
39819         (windows_compute_revents): Renamed from win32_compute_revents.
39820         (windows_compute_revents_socket): Renamed from
39821         win32_compute_revents_socket.
39822         * lib/select.c: Update comments to mention native Windows.
39823         (windows_poll_handle): Renamed from win32_poll_handle.
39824         * m4/threadlib.m4: Update comments to mention native Windows.
39825         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
39826         --enable-threads=windows instead of --enable-threads=win32. Set
39827         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
39828         * lib/glthread/lock.h: Update comments to mention native Windows.
39829         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
39830         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
39831         USE_WIN32_THREADS.
39832         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
39833         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
39834         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
39835         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
39836         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
39837         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
39838         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
39839         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
39840         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
39841         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
39842         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
39843         * tests/test-tls.c: Likewise.
39844         Rationale:
39845         Microsoft renamed the "Win32 API" to "Windows API", as it is available
39846         on both 32-bit and 64-bit Windows systems.
39847         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
39848         line of distinction is between "native Windows" on one side and Unix/
39849         POSIX systems on the other side. More details in
39850         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
39851         Suggested by Paul Eggert.
39853 2012-01-03  Bruno Haible  <bruno@clisp.org>
39855         isatty: Support for MSVC 9.
39856         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
39857         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
39858         (_isatty_nothrow): New function.
39859         (isatty): Use it instead of _isatty.
39860         (IsConsoleHandle): Add comment, from Paolo Bonzini.
39861         * lib/poll.c (IsConsoleHandle): Likewise.
39862         * lib/select.c (IsConsoleHandle): Likewise.
39863         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
39864         (gl_PREREQ_ISATTY): New macro.
39865         * modules/isatty (Depends-on): Add msvc-inval.
39866         (configure.ac): Invoke gl_PREREQ_ISATTY.
39868 2012-01-03  Jim Meyering  <meyering@redhat.com>
39870         maint.mk: remove temporary transition aid from over 1.5 years ago
39871         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
39872         purpose was to aid in the transition (avoiding silent malfunction)
39873         from that old name to the new _sc_search_regexp.  This shim was
39874         added by commit 219c504b.
39876         init.sh: do not try to accommodate compare arguments starting with "-"
39877         * tests/init.sh (compare_dev_null_): Do not try to accommodate
39878         compare arguments that start with "-".  Besides, we do not worry
39879         about this when invoking diff or cmp; why start now with sed?
39880         Using "--" to separate options from argument would trigger sed
39881         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
39882         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
39884 2012-01-02  Bruno Haible  <bruno@clisp.org>
39886         Enhance tests for module 'isatty'.
39887         * modules/isatty-tests (Depends-on): Add pipe-posix.
39888         * tests/test-isatty.c: Include <fcntl.h>.
39889         (DEV_NULL): New macro.
39890         (main): Test the resut of isatty() also on regular files, pipes, and
39891         /dev/null.
39893         New module 'isatty'.
39894         * lib/unistd.in.h (isatty): New declaration.
39895         * lib/isatty.c: New file, based on an idea of
39896         Bastien Roucariès <roucaries.bastien@gmail.com>.
39897         * m4/isatty.m4: New file.
39898         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
39899         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
39900         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
39901         REPLACE_ISATTY.
39902         * modules/isatty: New file.
39903         * doc/posix-functions/isatty.texi: Mention the new module.
39904         Suggested by Paolo Bonzini.
39906 2012-01-02  Bruno Haible  <bruno@clisp.org>
39908         canonicalize: Tweak 2011-12-29 commit.
39909         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
39910         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
39912 2012-01-02  Jim Meyering  <meyering@redhat.com>
39914         gitlog-to-changelog: describe input syntax in --help output
39915         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
39917         gitlog-to-changelog: fix typo in --help: show backslash before email @
39918         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
39919         in sources, but not in actual output.
39921 2011-12-30  Jim Meyering  <meyering@redhat.com>
39923         gitlog-to-changelog: don't malfunction when name contains %-directive
39924         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
39925         in a name string cause trouble.  E.g., with a user name of "%s",
39926         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
39928 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
39930         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
39931         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
39932         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
39933         the "  (tiny change)" notation that is appended to the standard
39934         ChangeLog "date  name  email" header line.
39936 2012-01-01  Jim Meyering  <meyering@redhat.com>
39938         test-framework-sh: init.sh: fix "make dist" failure
39939         When using gnulib-tool's --with-tests option and any module that
39940         depends on test-framework-sh, "make dist" would fail due to the
39941         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
39942         in the gltests directory, and not in the gllib/ directory.
39943         One way to work around that is to move the EXTRA_DIST += init.sh
39944         from the primary module to the -tests one:
39945         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
39946         * modules/test-framework-sh (Makefile.am): ...not here.
39947         Reported by Tom G. Christensen in
39948         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
39950         version-etc: update copyright year reported by --version
39951         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
39953 2011-12-31  Pádraig Brady  <P@draigBrady.com>
39955         canonicalize: only stat() if required
39956         * lib/canonicalize.c (canonicalize_filename_mode):
39957         Avoid calling l?stat() when both CAN_MISSING,
39958         and CAN_NOLINKS are set, as we neither need
39959         to resolve symlinks or test component existence.
39961 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
39963         doc: cover st_ino issues once; add OpenVMS etc.
39964         * doc/posix-functions/stat.texi (stat):
39965         * doc/posix-functions/lstat.texi (lstat):
39966         * doc/posix-functions/fstatat.texi (fstatat):
39967         * doc/posix-functions/fstat.texi (fstat):
39968         Move general 'struct stat' stuff to sys_stat.texi,
39969         leaving behind a pointer.
39970         * doc/posix-headers/sys_stat.texi (sys/stat.h):
39971         Merge duplicate info about 'struct stat' problems into here.
39972         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
39973         and suggest partial workarounds.
39975         same-inode: port to OpenVMS
39976         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
39977         three st_ino values.
39979 2011-12-30  Pádraig Brady  <P@draigBrady.com>
39981         canonicalize: fix references to stat() and lstat()
39982         * lib/canonicalize.c (canonicalize_filename_mode):
39983         Ensure references always resolve to a replacement
39984         function if required (even via a macro).
39986 2011-12-30  Jim Meyering  <meyering@redhat.com>
39988         gitlog-to-changelog: remove a little duplication
39989         * build-aux/gitlog-to-changelog (main): Grep @lines once,
39990         rather than twice.
39992 2011-12-29  Pádraig Brady  <P@draigBrady.com>
39994         canonicalize: add support for not resolving symlinks
39995         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
39996         indicate we don't want to follow symlinks.  Also
39997         provide CAN_MODE_MASK to aid setting these existing
39998         mutually exclusive values.
39999         * lib/canonicalize.c (canonicalize_filename_mode):
40000         Extract the flags from can_mode parameter, which
40001         are currently just used to select between stat()
40002         and lstat().  Also ensure that mutually exclusive
40003         values are flagged immediately as invalid.
40004         * tests/test-canonicalize.c: Verify symlinks are
40005         not followed, and that invalid flag combinations
40006         are diagnosed.
40008 2011-12-25  Jim Meyering  <meyering@redhat.com>
40010         gitlog-to-changelog: do not clump multi-paragraph entries
40011         Identical header lines (date,name,email+coauthors) are suppressed,
40012         thus putting all entries with those same characteristics under
40013         a single header.  However, when a log entry consists of two or
40014         more paragraphs, it may not be clear where it starts and ends.
40015         This change makes it so that such an entry is always separated
40016         from others by a header line, even when that header would
40017         otherwise be suppressed.
40018         * build-aux/gitlog-to-changelog: Implement the above.
40019         Inspired by a related request from Stefano Lattarini in
40020         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
40022 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40024         announce-gen: fix `cmd' typo in diagnostic
40025         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
40026         diagnostic: a missing '$' meant that the command was not output.
40028 2011-12-23  Jim Meyering  <meyering@redhat.com>
40030         test-framework-sh: distribute init.sh
40031         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
40032         Otherwise, "make -C gnulib-tests check" (at least in grep) would
40033         fail due to the lack of init.sh.
40035         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
40036         * modules/atexit-tests: Rather than listing tests/init.sh,
40037         now that there's a module for it, simply depend on that new module.
40038         * modules/closein-tests: Likewise.
40039         * modules/exclude-tests: Likewise.
40040         * modules/getcwd-tests: Likewise.
40041         * modules/perror-tests: Likewise.
40042         * modules/pread-tests: Likewise.
40043         * modules/pwrite-tests: Likewise.
40044         * modules/vc-list-files-tests: Likewise.
40045         * modules/verify-tests: Likewise.
40046         * modules/xalloc-die-tests: Likewise.
40047         * modules/xstrtoimax-tests: Likewise.
40048         * modules/xstrtol-tests: Likewise.
40049         * modules/xstrtoll-tests: Likewise.
40050         * modules/xstrtoumax-tests: Likewise.
40051         * modules/yesno-tests: Likewise.
40053 2011-12-22  Jim Meyering  <meyering@redhat.com>
40055         test-framework-sh: add minimal tests of init.sh's compare function
40056         * modules/test-framework-sh-tests: New file.
40057         * tests/test-init.sh: New file.
40059         test-framework-sh: new module
40060         * modules/test-framework-sh: New file.
40061         * MODULES.html.sh (Support for maintaining and releasing projects):
40062         List it.
40064         init.sh: do not emit simulated diff output to stderr
40065         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
40067 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
40069         .gitignore: ignore gnulib.dvi and regex.info
40070         * doc/.gitignore:add gnulib.dvi and regex.info
40072 2011-12-22  Jim Meyering  <meyering@redhat.com>
40074         init.sh: correct previous change
40075         * tests/init.sh (compare): My previous change was wrong.
40076         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
40078         init.sh: avoid unwarranted test failure when using "set -e"
40079         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
40080         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
40081         a use like "compare exp out" would get evoke an unconditional failure.
40083 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
40085         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
40086         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
40087         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
40088         autoreconf that did not.
40089         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
40090         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40092 2011-12-17  Jim Meyering  <meyering@redhat.com>
40094         bootstrap: remove some now-unneeded code
40095         This script arose back when gnulib-tool was young.
40096         Since then, it has seen improvements that render much of this
40097         script unnecessary.  In particular, it can now make symlinks
40098         to the files it uses.  Also, I no longer see as much value in
40099         marking files as read-only via comments.
40100         If you relied on the symlink-creation feature of the preceding
40101         version of this script, you can get most of that functionality
40102         by adding the --symlink option to the definition of
40103         gnulib_tool_option_extras in your bootstrap.conf file.
40104         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
40105         Run autopoint and libtoolize *before* gnulib-tool.
40106         After it, run an abbreviated autoreconf, rather than a loop around
40107         all tools.
40108         (slirp, bt_mark_as_generated): Remove functions.
40110 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40112         ftoastr: fix typo
40113         * lib/ftoastr.h: Fix misspelling in comment.
40115 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
40117         * top/README-release: fix punctuation.
40119 2011-12-17  Jim Meyering  <meyering@redhat.com>
40121         bootstrap: correct the recent buildreq change
40122         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
40123         had no effect.
40124         * build-aux/bootstrap (buildreq): Bracket each search term with
40125         "*...*", so that the shell "case" statement works as intended.
40126         Add comments.
40128 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
40130         build: let bootstrap resort to wget when downloading .po files
40131         * build-aux/bootstrap (download_po_files): Fallback to wget when
40132         downloading the .po files via rsync fails.  This is necessary to
40133         bootstrap from behind a strict firewall.
40135 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40137         stdint: don't assume C++11 when compiling with g++
40138         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
40139         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
40140         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
40141         work also in C++ before C++11, as that improperly inhibits
40142         generating a substitute stdint.h for that case.
40144 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40146         alloca: protect comment from gnulib-tool
40147         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
40148         that gnulib-tool doesn't think it's a license, and munge it to
40149         say "GCC version 3".
40151 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
40153         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
40154         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
40155         $(abs_top_builddir) instead of $(top_builddir).
40157 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
40159         strftime-tests: also test nanoseconds
40160         * tests/test-strftime.c (T): Add a test of %N.
40162 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
40164         inttypes, stdint: add C++11 support
40165         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
40166         when including inttypes.h and stdint.h.  Support this change to
40167         the standard.
40168         * doc/posix-headers/inttypes.texi (inttypes.h):
40169         * doc/posix-headers/stdint.texi (stdint.h): Document this.
40170         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
40171         Define if not defined already, for the benefit of pre-C++11 hosts.
40172         Define the standard format macros (e.g., PRId8) always.
40173         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
40174         Likewise, if __cpluspus.  Define the standard constant and limit
40175         macros (e.g., INT8_C, INT8_MAX) always.
40176         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
40177         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
40178         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
40179         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
40180         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
40181         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
40182         Likewise.
40184 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
40186         nonblocking tests: Fix test failure on Linux/PPC.
40187         Suggested by Prerna Saxena in
40188         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
40189         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
40190         Set to 1100000.
40192 2011-12-12  Jim Meyering  <meyering@redhat.com>
40194         argmatch: don't hard-code `' when listing valid option arguments
40195         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
40196         use the quote function to add quotes.  Use fputs rather than
40197         fprintf for the format string with no format directive.
40199 2011-12-07  Eric Blake  <eblake@redhat.com>
40201         bootstrap: detect tools required by gnulib-tool
40202         * build-aux/bootstrap (buildreq): Provide minimum implicit
40203         dependencies.
40204         * DEPENDENCIES: Mention patch as a prereq.
40206 2011-12-04  Bruno Haible  <bruno@clisp.org>
40208         sethostname: Port to Windows platforms.
40209         * lib/sethostname.c: Provide an alternate implementation for Windows
40210         platforms.
40211         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
40212         (main): Skip the test if sethostname() fails with EPERM. On Windows
40213         platforms, don't check the result of gethostname().
40215 2011-12-04  Bruno Haible  <bruno@clisp.org>
40216             Jim Meyering  <meyering@redhat.com>
40218         tests: Avoid spurious error message on platforms without mktemp program.
40219         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
40221 2011-12-04  Bruno Haible  <bruno@clisp.org>
40223         sethostname: Fix documentation.
40224         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
40225         "not fixed" section.
40227 2011-12-03  Bruno Haible  <bruno@clisp.org>
40229         gnulib-tool: Verify that the License field is present and non-empty.
40230         * gnulib-tool (func_get_license_raw): New function, extracted from
40231         func_get_license.
40232         (func_get_license): Use it. Warn if the module is not a test module and
40233         has no license.
40234         Suggested by Jim Meyering.
40236 2011-12-03  Bruno Haible  <bruno@clisp.org>
40238         sethostname tests: Fix link error on mingw.
40239         * tests/test-sethostname1.c: New file, extracted from
40240         tests/test-sethostname.c.
40241         * tests/test-sethostname2.c: New file, extracted from
40242         tests/test-sethostname.c.
40243         * tests/test-sethostname.c: Remove file.
40244         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
40245         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
40246         (Depends-on): Add gethostname.
40247         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
40248         Link the latter with $(GETHOSTNAME_LIB).
40250         sethostname tests: Fix compilation error on mingw.
40251         * tests/test-sethostname.c: Don't include <sys/types.h>.
40252         (geteuid): Use a dummy value without uid_t.
40253         * modules/sethostname-tests (Depends-on): Remove sys_types.
40255         sethostname tests: Avoid a gcc warning.
40256         * tests/test-sethostname.c (main): Remove an unused variable.
40258         Tweak last commit.
40259         * modules/sethostname-tests (Files): Sort by decreasing importance.
40260         (configure.ac): Check for geteuid.
40261         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
40262         the test when there's nothing to test. Drop an unnecessary cast.
40263         Improve an error message. Verify that the final sethostname() call
40264         succeeds.
40266 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40268         Add a test suite for the sethostname module.
40269         * modules/sethostname-tests: New file.  A test program
40270         for the sethostname module.
40271         * tests/test-sethostname.c: Likewise.
40273 2011-12-03  Bruno Haible  <bruno@clisp.org>
40275         Tweak last commit.
40276         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
40277         Fix preprocessor directives indentation. Fix typos.
40278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
40279         * modules/unistd (Makefile): Likewise.
40281 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40283         Integrate the sethostname module into unistd.
40284         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
40285         into the unistd.h header.
40286         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
40287         preprocessor directives.
40288         * modules/unistd: Setup the Makefile substitutions of the
40289         SETHOSTNAME preprocessor directives.
40291 2011-12-03  Bruno Haible  <bruno@clisp.org>
40293         Tweak last commit.
40294         * lib/sethostname.c: Don't include <string.h>.
40295         (sethostname): No need to copy the argument string to the stack. Don't
40296         call clearerr. Preserve errno when fprintf failed.
40297         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
40298         Don't invoke AC_REPLACE_FUNCS.
40299         * modules/sethostname (Link): Remove empty section.
40300         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
40301         failure problem.
40303 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40305         New module 'sethostname'.
40306         * lib/sethostname.c (sethostname): New file.  Provide sethostname
40307         for systems that lack it.
40308         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
40309         sethostname declaration and function.
40310         * modules/sethostname: New file.  Define the sethostname module.
40312 2011-12-03  Bruno Haible  <bruno@clisp.org>
40314         Tweak last commit.
40315         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
40317 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40319         Split the HOST_NAME_MAX detection into a separate m4 macro.
40320         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
40321         macro so it can be used by the pending sethostname module.
40323 2011-12-03  Bruno Haible  <bruno@clisp.org>
40325         Fix module descriptions syntax.
40326         * modules/argv-iter (License): Fix syntax.
40327         * modules/di-set (License): Likewise.
40328         * modules/ino-map (License): Likewise.
40329         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
40331 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
40333         stdalign: port to Clang 3.0
40334         Problem reported by Simon Josefsson in
40335         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
40336         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
40337         which has <stdalign.h> but which does not define alignof.
40338         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
40340 2011-12-01  Eric Blake  <eblake@redhat.com>
40342         mktempd: silence dd usage
40343         * build-aux/mktempd (rand_bytes): Silence dd.
40345 2011-11-30  Simon Josefsson  <simon@josefsson.org>
40347         manywarnings: Don't mention gcc version in docstring.
40348         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
40349         Jim Meyering <meyering@redhat.com>.
40351 2011-11-30  Jim Meyering  <meyering@redhat.com>
40353         hash: mark a few floating point constants with "f" suffix
40354         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
40355         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
40356         floating point constants with "f", since they're destined to be
40357         saved/used as "float"s.
40359 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
40361         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
40362         * tests/test-float.c (test_long_double): Correct and re-enable the
40363         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
40365 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
40367         Avoid subtracting two pointers that don't point into the same block.
40368         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
40369         only pointers into the same memory block are subtracted. We cannot
40370         assume that sizeof (ptrdiff_t) == sizeof (void *).
40372 2011-11-29  Eric Blake  <eblake@redhat.com>
40374         maint.mk: add syntax check for use of compare from init.sh
40375         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
40376         moved here from coreutils.
40378         manywarnings: drop -Wunsuffixed-float-constants
40379         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
40380         '1.0D', which is the only way to silence this warning for 'double'.
40382 2011-11-29  Jim Meyering  <meyering@redhat.com>
40384         hash: mark compute_bucket_size with the pure attribute
40385         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
40387         quotearg, propername: correct pragma guard expression
40388         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
40389         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
40391 2011-11-28  Jim Meyering  <meyering@redhat.com>
40393         propername: do not mark proper_name with the const attribute
40394         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
40395         since it examines data pointed to by its parameter.
40396         * lib/propername.c (proper_name): Instead, add a pragma to suppress
40397         the suggestion from -Wsuggest-attribute=const.
40399         propername: mark one more function as const
40400         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
40402 2011-11-27  Jim Meyering  <meyering@redhat.com>
40404         mark functions with const and pure attributes
40406         Mark functions per suggestions from gcc-4.6 when using these options:
40407         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
40408         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
40409         Follow these guidelines: when possible, apply the attribute to
40410         an extern declaration, not to its definition.  Apply it to the
40411         definition only when the definition is static.
40412         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
40413         * lib/argv-iter.h (argv_iter_n_args): Likewise.
40414         * lib/base64.h (isbase64): Likewise.
40415         * lib/basename-lgpl.c (last_component, base_len): Likewise.
40416         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
40417         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
40418         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
40419         (c_tolower, c_toupper): Likewise.
40420         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
40421         * lib/chdir-long.c (find_non_slash): Likewise.
40422         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
40423         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
40424         * lib/file-type.h (file_type): Likewise.
40425         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
40426         * lib/filevercmp.c (verrevcmp): Likewise.
40427         * lib/freadahead.h (freadahead): Likewise.
40428         * lib/fts.c (fts_maxarglen): Likewise.
40429         * lib/hash-pjw.h (hash_pjw): Likewise.
40430         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
40431         * lib/hash.c (is_prime, next_prime): Likewise.
40432         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
40433         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
40434         (hash_table_ok, hash_get_first, hash_string): Likewise.
40435         (compute_bucket_size): Likewise.
40436         * lib/i-ring.h (i_ring_empty): Likewise.
40437         * lib/isnan.c (isnanl): Likewise.
40438         * lib/math.h (isnanl, rpl_isnanl): Likewise.
40439         * lib/memcasecmp.h (memcasecmp): Likewise.
40440         * lib/memchr2.h (memchr2): Likewise.
40441         * lib/memcmp2.h (memcmp2): Likewise.
40442         * lib/parse-datetime.y (lookup_zone): Likewise.
40443         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
40444         [!WINDOWS_SOCKETS]: Likewise.
40445         * lib/strnlen1.h (strnlen1): Likewise.
40446         * lib/uniwidth.in.h (uc_width): Likewise.
40447         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
40448         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
40449         (quoting_options_from_style): Add a comment.
40450         * lib/propername.h (proper_name): Add a comment.
40452 2011-11-27  Bruno Haible  <bruno@clisp.org>
40454         Remove unused macros from !_LIBC code in glibc-borrowed files.
40455         * lib/fnmatch.c (STRCOLL): Remove macro.
40456         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
40457         * lib/glob.c (__stat, __readdir64): Remove macros.
40458         * lib/tempname.c (__open64, __xstat64): Remove macros.
40459         Suggested by Paul Eggert.
40461 2011-11-27  Bruno Haible  <bruno@clisp.org>
40463         getcwd: Fix link error on MSVC 9.
40464         * modules/getcwd (Depends-on): Add readdir, rewinddir.
40466 2011-11-27  Bruno Haible  <bruno@clisp.org>
40468         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
40469         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
40470         HAVE_OPENDIR is 0.
40471         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
40472         HAVE_CLOSEDIR is 0.
40473         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
40474         is 0.
40475         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
40477 2011-11-27  Bruno Haible  <bruno@clisp.org>
40479         getcwd: Fix bug from 2011-08-17.
40480         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
40481         platforms that need it.
40482         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
40483         code of 4 to be a failure, not a success. This ensures that
40484         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
40486 2011-11-27  Bruno Haible  <bruno@clisp.org>
40488         binary-io tests: Avoid test failure on mingw when libtool is used.
40489         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
40490         Don't verify the size of t-bin-out1.tmp here.
40491         * tests/test-binary-io.sh: Verify it here.
40492         Reported by Simon Josefsson.
40494 2011-11-26  Bruno Haible  <bruno@clisp.org>
40496         Fix conflict between two instantiations of module 'unistd'.
40497         * gnulib-tool (func_emit_autoconf_snippet): Substitute
40498         ${include_guard_prefix} also in the autoconf snippet.
40499         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
40500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
40501         GNULIB_UNISTD_H_GETOPT.
40502         * modules/getopt-posix (configure.ac): Set the
40503         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
40504         * modules/getopt-gnu (configure.ac): Likewise.
40505         * modules/unistd (Makefile.am): Change the substitution value of
40506         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
40507         Reported by Simon Josefsson.
40509 2011-11-25  Bruno Haible  <bruno@clisp.org>
40511         pagealign_alloc: Doc and comments.
40512         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
40513         module.
40514         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
40516 2011-11-25  Jim Meyering  <meyering@redhat.com>
40518         test-update-copyright.sh: avoid false-positive failure
40519         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
40520         around false positive failure on Cygwin/Windows.  The latter was
40521         matching erroneously-created files with names like
40522         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
40524 2011-11-25  Simon Josefsson  <simon@josefsson.org>
40526         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
40527         * m4/valgrind-tests.m4: Check that the parameters that will be
40528         used works, not just a subset of them.  Reported by Bruno Haible
40529         <bruno@clisp.org>.
40531 2011-11-24  Jim Meyering  <meyering@redhat.com>
40533         test-stdalign.c: comment out long double tests
40534         * tests/test-stdalign.c: Don't try to reduce alignment of long double
40535         variables.  That provokes errors like this from gcc-4.7.0 20111124:
40536         error: '_Alignas' specifiers cannot reduce alignment of \
40537         'static_longdouble_alignas'.
40539 2011-11-22  Jim Meyering  <meyering@redhat.com>
40541         init.sh: make "compare /dev/null FILE" output more readable
40542         * tests/init.sh (compare_): Document the preferred order of arguments.
40543         (emit_diff_u_header_): New function.
40544         (compare_dev_null_): Emit a simulated diff, rather than just the
40545         contents of the unexpected file.  Suggestion from Bruno Haible.
40547 2011-11-21  Jim Meyering  <meyering@redhat.com>
40548             Eric Blake  <eblake@redhat.com>
40550         init.sh: work around OSF/1 5.1's mishandling of /dev/null
40551         * tests/init.sh: Make our compare function slightly more portable.
40552         Reported by Bruno Haible in
40553         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
40555 2011-11-21  Simon Josefsson  <simon@josefsson.org>
40557         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
40558         before using it, in code that ends up in config.h.
40560 2011-11-20  Bruno Haible  <bruno@clisp.org>
40562         getcwd: Work around getcwd bug on AIX 5..7.
40563         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
40564         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
40565         Use a different value for gl_cv_func_getcwd_path_max. Move the
40566         definition of HAVE_PARTLY_WORKING_GETCWD from here...
40567         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
40568         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
40569         Define HAVE_MINIMALLY_WORKING_GETCWD.
40570         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
40571         where it is not even minimally working, that is, on AIX.
40572         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
40573         m4/getcwd-path-max.m4.
40574         (main): Update exit code computation.
40575         * doc/posix-functions/getcwd.texi: Mention list of platforms where
40576         getcwd does not handle long file names.
40578 2011-11-20  Bruno Haible  <bruno@clisp.org>
40580         getcwd: Fix bug from 2009-09-10.
40581         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
40582         like "no".
40584 2011-11-20  Simon Josefsson  <simon@josefsson.org>
40586         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
40588 2011-11-20  Bruno Haible  <bruno@clisp.org>
40590         fma tests: Avoid shadowing local variables.
40591         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
40592         expected.
40594 2011-11-20  Bruno Haible  <bruno@clisp.org>
40596         copysignf tests: Fix.
40597         * tests/test-copysignf.c: Fix signature check.
40599 2011-11-20  Bruno Haible  <bruno@clisp.org>
40601         fma: Remove unused code.
40602         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
40603         unused macros.
40605 2011-11-20  Bruno Haible  <bruno@clisp.org>
40607         sethostname: Fix doc about AIX.
40608         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
40609         sethostname; it has it.
40611         sethostname: Mention more portability problems.
40612         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
40613         problem.
40614         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
40616 2011-11-19  Bruno Haible  <bruno@clisp.org>
40618         Depend on module fcntl-h when AT_FDCWD is used.
40619         * modules/utimens (Depends-on): Add fcntl-h.
40620         * modules/areadlinkat (Depends-on): Likewise.
40621         * modules/areadlinkat-with-size (Depends-on): Likewise.
40622         * modules/faccessat (Depends-on): Likewise.
40623         * modules/fchmodat (Depends-on): Likewise.
40624         * modules/fchownat (Depends-on): Likewise.
40625         * modules/getcwd (Depends-on): Likewise.
40626         * modules/mkdirat (Depends-on): Likewise.
40627         * modules/mkfifoat (Depends-on): Likewise.
40628         * modules/readlinkat (Depends-on): Likewise.
40629         * modules/symlinkat (Depends-on): Likewise.
40630         * modules/dup2-tests (Depends-on): Likewise.
40631         * modules/fdutimensat-tests (Depends-on): Likewise.
40632         * modules/futimens-tests (Depends-on): Likewise.
40634 2011-11-19  Bruno Haible  <bruno@clisp.org>
40636         euidaccess: Update a comment.
40637         * lib/euidaccess.c: Update comment about platforms with faccessat.
40639 2011-11-19  Bruno Haible  <bruno@clisp.org>
40641         openat: Fix file list.
40642         * modules/openat (Files): Remove lib/at-func.c.
40644 2011-11-19  Bruno Haible  <bruno@clisp.org>
40646         fstatat: Simplify.
40647         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
40648         gnulib should define rpl_fstatat, there is a
40649         "#define fstatat rpl_fstatat" in <sys/stat.h>.
40651 2011-11-19  Bruno Haible  <bruno@clisp.org>
40653         Ensure 'inline' can be used in tests/test-utimens-common.h.
40654         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
40655         * modules/futimens-tests (configure.ac): Likewise.
40656         * modules/utimens-tests (configure.ac): Likewise.
40657         * modules/utimensat-tests (configure.ac): Likewise.
40659 2011-11-19  Simon Josefsson  <simon@josefsson.org>
40661         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
40662         not hash_insert0.
40663         (hash_insert_if_absent): Doc fix.
40665 2011-11-19  Simon Josefsson  <simon@josefsson.org>
40667         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
40669 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
40671         test-getcwd: disambiguate exit status
40672         * tests/test-getcwd.c (test_long_name): Return 0..7.
40673         (main): Exit with an unambiguous exit status.  The old
40674         code yielded a mysterious mixture of two failure codes.
40676         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
40677         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
40678         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
40679         rpl_fstatat or fstatat.  This should fix the other problem
40680         reported by Kai Habel in
40681         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
40682         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
40683         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
40684         and I reproduced it on a Solaris 8 host we still have in production.
40686 2011-11-18  Jim Meyering  <meyering@redhat.com>
40688         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
40689         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
40690         Add a sentence to the comment.
40691         (hash_insert0): New function that simply calls hash_insert_if_absent.
40692         * lib/hash.h (hash_insert_if_absent): Declare it.
40693         (hash_insert0): Add deprecation attribute.
40694         (_GL_ATTRIBUTE_DEPRECATED): Define.
40695         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
40696         not hash_insert0.
40697         * NEWS: Mention it, even though it's not really an incompatible change.
40699 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
40701         openat: avoid compilation failure due to lack of <errno.h> inclusion
40702         * lib/openat.c: Include <errno.h>.
40704 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40706         * modules/getcwd (Depends-on): Add fdopendir.
40707         This fixes one of the two problems reported by Kai Habel in
40708         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
40710         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
40711         stdalign problem reported by Ian Beckwith in
40712         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
40713         * modules/crypto/gc-arcfour (Depends-on):
40714         Depend conditionally on crypto/arcfour.
40715         * modules/crypto/gc-arctwo (Depends-on):
40716         Depend conditionally on crypto/arctwo.
40717         * modules/crypto/gc-des (Depends-on):
40718         Depend conditionally on crypto/des.
40719         * modules/crypto/gc-hmac-md5 (Depends-on):
40720         Depend conditionally on crypto/hmac-md5.
40721         * modules/crypto/gc-hmac-sha1 (Depends-on):
40722         Depend conditionally on crypto/hmac-sha1.
40723         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
40724         * modules/crypto/gc-md4 (Depends-on):
40725         Depend conditionally on crypto/md4.
40726         * modules/crypto/gc-md5 (Depends-on):
40727         Depend conditionally on crypto/md5.
40728         * modules/crypto/gc-rijndael (Depends-on):
40729         Depend conditionally on crypto/rijndael.
40730         * modules/crypto/gc-sha1 (Depends-on):
40731         Depend conditionally on crypto/sha1.
40732         * modules/crypto/gc-arcfour:
40733         * modules/crypto/gc-arctwo:
40734         * modules/crypto/gc-des:
40735         * modules/crypto/gc-hmac-md5:
40736         * modules/crypto/gc-hmac-sha1:
40737         * modules/crypto/gc-md2:
40738         * modules/crypto/gc-md4:
40739         * modules/crypto/gc-md5:
40740         * modules/crypto/gc-rijndael:
40741         * modules/crypto/gc-sha1:
40742         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
40743         now that the conditional dependencies do the work for us.
40745 2011-11-17  Jim Meyering  <meyering@redhat.com>
40747         tests: factor st_ctime-comparison out of two headers
40748         * tests/test-utimens-common.h (ctime_compare): Define.
40749         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
40750         * tests/test-lutimens.h (test_lutimens): Likewise.
40751         * tests/test-utimens.h (test_utimens): Likewise.
40753         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
40754         Invoke the test program via an init.sh-using wrapper.
40755         * tests/test-getcwd.sh: New file.
40756         * modules/getcwd-tests (Files): Add it.
40757         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
40759 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
40761         gitlog-to-changelog: support multi-author commits.
40762         The FSF cares about keeping track of all authors of patches to its
40763         projects, but Git doesn't provide obvious support for multi-author
40764         changesets. Consensus seems to be forming around the use of extra
40765         Signed-off-by inspired lines in the log message formatted as
40766         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
40767         multi-author commits between version control systems.
40768         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
40769         log message and output in standard ChangeLog multi-author format.
40770         Reported by Peter Rosin <peda@lysator.liu.se>
40772 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
40773             Bruno Haible  <bruno@clisp.org>
40775         Fix some modules' file list.
40776         * modules/fstatat (Files): Add m4/lstat.m4.
40777         * modules/openat (Files): Likewise.
40778         * modules/unlinkat (Files): Likewise.
40780 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
40782         maint.mk: fix tight-scope.mk generation in VPATH builds.
40783         * top/maint.mk (tight-scope.mk): Make sure to prefix file
40784         reference with $(srcdir) so that the file is found correctly even
40785         when running `make syntax-check' in a VPATH build.
40787 2011-11-13  Bruno Haible  <bruno@clisp.org>
40788             Jim Meyering  <meyering@redhat.com>
40790         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
40791         * tests/init.sh (compare): Remove "No differences encountered" or
40792         synonymous output from the 'diff' program.
40794 2011-11-13  Bruno Haible  <bruno@clisp.org>
40796         Makefile: Tweak indentation.
40797         * Makefile: Use tab as first character in every line that contains rule
40798         commands.
40800 2011-11-13  Bruno Haible  <bruno@clisp.org>
40802         Syntax check for copyright statements.
40803         * check-copyright: New file.
40804         * Makefile (sc_check_copyright): New rule.
40806 2011-11-13  Simon Josefsson  <simon@josefsson.org>
40808         * build-aux/git-version-gen: Add --prefix to configure the tag
40809         match string.
40811 2011-11-13  Simon Josefsson  <simon@josefsson.org>
40813         * build-aux/git-version-gen: Add --help and --version.
40815 2011-11-12  Jim Meyering  <meyering@redhat.com>
40817         revamp the other test-exclude?.sh scripts to use init.sh, too
40818         * tests/test-exclude1.sh: Use init.sh.
40819         * tests/test-exclude2.sh: Likewise.
40820         * tests/test-exclude3.sh: Likewise.
40821         * tests/test-exclude4.sh: Likewise.
40822         * tests/test-exclude5.sh: Likewise.
40823         * tests/test-exclude6.sh: Likewise.
40824         * tests/test-exclude7.sh: Likewise.
40825         * tests/test-exclude8.sh: Likewise.
40826         * modules/exclude-tests (Files): List init.sh.
40828         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
40829         These shell scripts ignored failure of the binary test-exclude,
40830         so making the latter return 77 didn't cause them to be skipped.
40831         * tests/test-exclude5.sh: Exit with test-exclude's error status
40832         when that program fails.  Revamp to use init.sh.
40833         * tests/test-exclude2.sh: Likewise.
40835         test-exclude: fix a typo
40836         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
40838 2011-11-11  Bruno Haible  <bruno@clisp.org>
40840         obstack: Fix compilation error on MSVC 9.
40841         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
40843 2011-11-11  Jim Meyering  <meyering@redhat.com>
40845         test-exclude: skip tests rather than failing on deficient systems
40846         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
40847         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
40848         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
40849         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
40851 2011-11-10  Bruno Haible  <bruno@clisp.org>
40853         ptsname_r test: Avoid gcc warning on glibc systems.
40854         * tests/test-ptsname_r.c (null_ptr): New function.
40855         (test_errors): Use it.
40857 2011-11-10  Bruno Haible  <bruno@clisp.org>
40859         ptsname_r: Avoid compilation error on OSF/1 5.1.
40860         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
40861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
40862         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
40863         function is not declared or incompatibly declared.
40864         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
40865         * modules/ptsname_r (Depends-on, configure.ac): Update.
40866         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
40868 2011-11-10  Bruno Haible  <bruno@clisp.org>
40870         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
40871         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
40872         When cross-compiling, guess yes on all platforms except AIX.
40873         Reported by Ludovic Courtès <ludo@gnu.org>.
40875 2011-11-09  Bruno Haible  <bruno@clisp.org>
40877         ptsname_r tests: Fix bugs.
40878         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
40879         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
40881 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40883         fstatat: work with cross-compilation
40884         Problem reported by Ludovic Courtès in
40885         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
40886         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
40887         "cross-compiling" and assume the bug is present.  Replace
40888         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
40889         an inverted sense, to be more conservative about our assumptions.
40890         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
40892 2011-11-09  Bruno Haible  <bruno@clisp.org>
40894         Improve MODULES.html output.
40895         * modules/mkfifoat (Description): Use the word "function".
40896         * modules/readlinkat (Description): Likewise.
40897         * modules/symlinkat (Description): Likewise.
40899 2011-11-09  Eric Blake  <eblake@redhat.com>
40901         ptsname_r-tests: new test module
40902         * modules/ptsname_r-tests: New module.
40903         * tests/test-ptsname_r.c: New file.
40905         ptsname_r: new module
40906         * modules/ptsname_r: New module.
40907         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
40908         * lib/ptsname.c (__ptsname_r): Split...
40909         * lib/ptsname_r.c: ...into new file.
40910         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
40911         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
40912         * modules/stdlib (Makefile.am): Substitute witnesses.
40913         * lib/stdlib.in.h (ptsname_r): Declare it.
40914         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
40915         * MODULES.html.sh (Misc): Likewise.
40916         * modules/ptsname (Depends-on): Alter dependency.
40917         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
40919 2011-11-09  Jim Meyering  <meyering@redhat.com>
40921         announce-gen: be more concise when there's only one URL+tarball
40922         * build-aux/announce-gen (get_tool_versions): When you distribute
40923         only one type of tarball, combine the first two "Here are..."
40924         sections and make the key-checking grammar independent of
40925         how many tarballs there are.
40927 2011-11-09  Eric Blake  <eblake@redhat.com>
40929         openpty: provide a stub on mingw
40930         * lib/pty.in.h (includes): Provide forward declarations.
40931         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
40933         raise: fix mingw handling of SIGPIPE
40934         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
40936 2011-11-08  Bruno Haible  <bruno@clisp.org>
40938         More conditional dependencies.
40939         * modules/faccessat (Depends-on): Add conditions.
40940         * modules/fchmodat (Depends-on): Likewise.
40941         * modules/fchownat (Depends-on): Likewise.
40942         * modules/fstatat (Depends-on): Likewise.
40943         * modules/mkfifoat (Depends-on): Likewise.
40944         * modules/readlinkat (Depends-on): Likewise.
40945         * modules/symlinkat (Depends-on): Likewise.
40946         * modules/unlinkat (Depends-on): Likewise.
40947         * modules/utimensat (Depends-on): Likewise.
40948         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
40949         * modules/linkat (Depends-on): Refine the conditions.
40950         * modules/renameat (Depends-on): Likewise.
40952 2011-11-08  Bruno Haible  <bruno@clisp.org>
40954         faccessat: Move AC_LIBOBJ invocation to module description.
40955         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
40956         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
40957         invocation from here...
40958         * modules/faccessat (configure.ac): ... to here. Invoke
40959         gl_PREREQ_FACCESSAT.
40961 2011-11-08  Bruno Haible  <bruno@clisp.org>
40963         faccessat: Simplify autoconf macro.
40964         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
40965         gl_FUNC_EUIDACCESS.
40967 2011-11-08  Bruno Haible  <bruno@clisp.org>
40969         renameat: Fix dependencies.
40970         * modules/renameat (Depends-on): Add stdbool.
40972 2011-11-08  Bruno Haible  <bruno@clisp.org>
40974         mkfifoat: Fix module description.
40975         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
40976         not gl_UNISTD_MODULE_INDICATOR.
40978 2011-11-08  Bruno Haible  <bruno@clisp.org>
40980         fstatat: Remove unused dependency.
40981         * modules/fstatat (Depends-on): Remove fstat.
40983 2011-11-08  Simon Josefsson  <simon@josefsson.org>
40985         GNUmakefile: behave when Makefile is missing.
40986         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
40988 2011-11-08  Bruno Haible  <bruno@clisp.org>
40990         openat: Conditionalize dependencies.
40991         * lib/openat.c: Reduce the scope of some #includes.
40992         * modules/openat (Depends-on): Add conditions.
40994 2011-11-07  Jim Meyering  <meyering@redhat.com>
40996         maint.mk: extract GPG key ID without using a temporary file
40997         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
40998         without using a temporary file.  Based on a suggestion from Werner Koch
40999         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
41001 2011-11-07  Eric Blake  <eblake@redhat.com>
41003         grantpt: fix typo
41004         * lib/stdlib.in.h (grantpt): Check correct function.
41006         maint.mk: silence new syntax check
41007         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
41009 2011-11-06  Bruno Haible  <bruno@clisp.org>
41011         Doc about floating-point and math API.
41012         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
41013         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
41015 2011-11-06  Bruno Haible  <bruno@clisp.org>
41017         stdalign tests: Skip the test when compiled by Sun C.
41018         * tests/test-stdalign.c (main): Skip the test on Sun C.
41020 2011-11-06  Bruno Haible  <bruno@clisp.org>
41022         ansi-c++-opt: Complete the 2011-06-05 change.
41023         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
41024         does not support namespaces, set the variable to "no", not to ":".
41026 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41028         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
41030 2011-11-06  Bruno Haible  <bruno@clisp.org>
41032         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
41033         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
41034         (minus_zerol) [HP-UX]: New macro.
41035         (unary_minus) [HP-UX]: New function.
41036         (copysignl) [HP-UX]: Use unary_minus function.
41038 2011-11-06  Bruno Haible  <bruno@clisp.org>
41040         ldexp, ldexpf, ldexpl: Enhance tests.
41041         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
41042         and tests/test-ldexpl.c.
41043         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
41044         LDEXP, MIN_EXP, MAX_EXP): New macros.
41045         Include test-ldexp.h.
41046         (main): Just call test_function.
41047         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
41048         infinity.h, nan.h.
41049         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41050         MAX_EXP): New macros.
41051         Include test-ldexp.h.
41052         (x, y): Remove variables.
41053         (main): Just call test_function.
41054         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
41055         infinity.h, nan.h.
41056         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41057         MAX_EXP): New macros.
41058         Include test-ldexp.h.
41059         (x, y): Remove variables.
41060         (main): Just call test_function.
41061         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
41062         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
41063         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41064         (Depends-on): Add isnand-nolibm, signbit, float.
41065         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
41066         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41067         (Depends-on): Add isnanf-nolibm, signbit, float.
41069 2011-11-06  Bruno Haible  <bruno@clisp.org>
41071         math tests: Cosmetics.
41072         * tests/test-math-c++.cc: Reorder declarations.
41074 2011-11-05  Bruno Haible  <bruno@clisp.org>
41076         fma*: Simplify test.
41077         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
41078         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
41080         Tests for module 'fmal'.
41081         * modules/fmal-tests: New file.
41082         * tests/test-fmal1.c: New file.
41083         * tests/test-fmal2.c: New file.
41085         New module 'fmal'.
41086         * lib/math.in.h (fmal): New declaration.
41087         * lib/fmal.c: New file.
41088         * m4/fmal.m4: New file.
41089         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
41090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
41091         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
41092         REPLACE_FMAL.
41093         * modules/fmal: New file.
41094         * doc/posix-functions/fmal.texi: Mention the new module and the various
41095         bugs.
41097         Tests for module 'fmaf'.
41098         * modules/fmaf-tests: New file.
41099         * tests/test-fmaf1.c: New file.
41100         * tests/test-fmaf2.c: New file.
41102         New module 'fmaf'.
41103         * lib/math.in.h (fmaf): New declaration.
41104         * lib/fmaf.c: New file.
41105         * m4/fmaf.m4: New file.
41106         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
41107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
41108         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
41109         REPLACE_FMAF.
41110         * modules/fmaf: New file.
41111         * doc/posix-functions/fmaf.texi: Mention the new module and the various
41112         bugs.
41114         Tests for module 'fma'.
41115         * modules/fma-tests: New file.
41116         * tests/test-fma1.c: New file.
41117         * tests/test-fma1.h: New file.
41118         * tests/test-fma2.c: New file.
41119         * tests/test-fma2.h: New file.
41121         New module 'fma'.
41122         * lib/math.in.h (fma): New declaration.
41123         * lib/fma.c: New file.
41124         * m4/fma.m4: New file.
41125         * m4/fegetround.m4: New file.
41126         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
41127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
41128         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
41129         REPLACE_FMA.
41130         * modules/fma: New file.
41131         * doc/posix-functions/fma.texi: Mention the new module and the various
41132         bugs.
41134         Extend gl_MATHFUNC.
41135         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
41136         Support 'void' as argument type.
41137         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
41139 2011-11-05  Jim Meyering  <meyering@redhat.com>
41141         maint.mk: also prohibit inclusion of dirent.h without use
41142         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
41144 2011-11-05  Bruno Haible  <bruno@clisp.org>
41146         ldexpl tests: Avoid test failure on MSVC 9.
41147         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
41148         value. Needed in order to enforce the conversion from a value greater
41149         than LDBL_MAX to Infinity.
41151 2011-11-05  Bruno Haible  <bruno@clisp.org>
41153         New modules 'at-internal', 'openat-h', split off from module 'openat'.
41154         * modules/at-internal: New file, extracted from modules/openat.
41155         * modules/openat-h: New file.
41156         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
41157         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
41158         * modules/openat (Description): Add reference to POSIX function.
41159         (Files): Remove lib/openat.h, lib/openat-proc.c.
41160         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
41161         intprops, unistd.
41162         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
41163         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
41164         gl_FCNTL_MODULE_INDICATOR.
41165         (Include): Remove unistd.h, openat.h.
41166         * modules/areadlinkat (Files): Add lib/at-func.c.
41167         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41168         openat-die, openat-h, save-cwd.
41169         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
41170         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41171         openat-die, openat-h, save-cwd, unistd.
41172         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
41173         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41174         openat-h, save-cwd. Remove fcntl-h, openat.
41175         * modules/fchmodat (Files): Remove lib/openat.h.
41176         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41177         openat, stdbool, unistd.
41178         * modules/fchownat (Files): Remove lib/openat.h.
41179         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41180         openat, stdbool, sys_stat.
41181         * modules/fdopendir (Files): Remove lib/openat-priv.h,
41182         lib/openat-proc.c.
41183         (Depends-on): Add at-internal.
41184         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
41185         * modules/fstatat (Files): Remove lib/openat.h.
41186         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41187         stdbool, unistd.
41188         * modules/fts (Depends-on): Add openat-h.
41189         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
41190         openat.
41191         * modules/mkdirat (Files): Remove lib/openat.h.
41192         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41193         openat, stdbool, sys_stat.
41194         * modules/mkfifoat (Files): Add lib/at-func.c.
41195         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41196         openat-h, save-cwd. Remove fcntl-h, openat.
41197         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
41198         * modules/readlinkat (Files): Add lib/at-func.c.
41199         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41200         openat-h, save-cwd. Remove fcntl-h, openat.
41201         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
41202         openat.
41203         * modules/selinux-at (Files): Add lib/at-func.c.
41204         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41205         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
41206         * modules/symlinkat (Files): Add lib/at-func.c.
41207         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41208         openat-h, save-cwd. Remove fcntl-h, openat.
41209         * modules/unlinkat (Files): Remove lib/openat.h.
41210         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41211         stdbool.
41212         * modules/utimensat (Files): Add lib/at-func.c.
41213         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
41214         openat-die, openat-h, save-cwd.
41215         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
41216         * modules/fdutimensat-tests (Depends-on): Add openat.
41217         * modules/fstatat-tests (Depends-on): Add openat-h.
41218         * modules/readlinkat-tests (Depends-on): Add openat.
41219         * modules/symlinkat-tests (Depends-on): Add openat.
41221 2011-11-05  Bruno Haible  <bruno@clisp.org>
41223         openat: Include <stdbool.h>.
41224         * lib/openat.c: Include <stdbool.h>.
41226 2011-11-04  Bruno Haible  <bruno@clisp.org>
41228         fchownat, renameat, unlinkat: Fix dependencies.
41229         * modules/fchownat (Depends-on): Add fstatat.
41230         * modules/renameat (Depends-on): Likewise.
41231         * modules/unlinkat (Depends-on): Likewise.
41233 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
41235         openat: remove direct dependency on dirent
41236         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
41237         and hasn't been needed ever since fdopendir was split into its own
41238         module on 2009-08-31.
41239         * modules/openat (Depends-on): Remove dirent.
41241 2011-11-04  Bruno Haible  <bruno@clisp.org>
41243         renameat: Optimize code size.
41244         * modules/renameat (configure.ac): Don't compile at-func2.c if
41245         REPLACE_RENAMEAT is 1.
41247 2011-11-04  Bruno Haible  <bruno@clisp.org>
41249         openat tests: Fix file list.
41250         * modules/openat-tests (Files): Add tests/test-open.h.
41252 2011-11-04  Bruno Haible  <bruno@clisp.org>
41254         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
41255         * modules/fchmodat (Depends-on): Add openat-die.
41256         * modules/fchownat (Depends-on): Likewise.
41257         * modules/linkat (Depends-on): Likewise.
41258         * modules/renameat (Depends-on): Likewise.
41259         * modules/openat (Depends-on): Add dirent.
41261 2011-11-04  Jim Meyering  <meyering@redhat.com>
41263         at-func*.c: fix comments
41264         * lib/at-func2.c: Correct/improve first-line comment.
41265         * lib/at-func.c: Correct grammar in first-line comment.
41267 2011-11-04  Bruno Haible  <bruno@clisp.org>
41269         New module 'mkdirat', split off from module 'openat'.
41270         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
41271         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
41272         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
41273         * modules/mkdirat: New file, extracted from modules/openat.
41274         * modules/openat (Files): Remove lib/mkdirat.c.
41275         (Depends-on): Remove mkdir.
41276         (configure.ac): Remove AC_LIBOBJ of mkdirat.
41277         (Include): Remove <sys/stat.h>.
41278         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
41279         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
41280         tests/test-mkdir.h.
41281         (Depends-on): Remove ignore-value.
41282         (Makefile.am): Remove rules for test-mkdirat.
41283         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
41284         of module 'openat'.
41285         * NEWS: Mention the change.
41287 2011-11-04  Bruno Haible  <bruno@clisp.org>
41289         closedir: Avoid warning on mingw.
41290         * lib/closedir.c: Include <unistd.h>.
41292 2011-11-04  Bruno Haible  <bruno@clisp.org>
41294         New module 'fstatat', split off from module 'openat'.
41295         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
41296         defined.
41297         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
41298         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
41299         gl_FUNC_FSTATAT.
41300         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
41301         * modules/fstatat: New file, extracted from modules/openat.
41302         * modules/openat (Files): Remove lib/fstatat.c.
41303         (Depends-on): Remove lstat.
41304         (configure.ac): Remove AC_LIBOBJ of fstatat.
41305         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
41306         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
41307         tests/test-lstat.h, tests/test-stat.h.
41308         (Depends-on): Remove getcwd-lgpl.
41309         (Makefile.am): Remove rules for test-fstatat.
41310         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
41311         of module 'openat'.
41312         * NEWS: Mention the change.
41313         * modules/getcwd (Depends-on): Add fstatat.
41314         * modules/linkat (Depends-on): Likewise.
41315         * modules/mkfifoat-tests (Depends-on): Likewise.
41316         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
41318 2011-11-03  Bruno Haible  <bruno@clisp.org>
41320         New module 'unlinkat', split off from module 'openat'.
41321         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
41322         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
41323         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
41324         * modules/unlinkat: New file, extracted from modules/openat. Correct
41325         the dependency conditions.
41326         * modules/openat (Files): Remove lib/unlinkat.c.
41327         (Depends-on): Remove rmdir, unlink.
41328         (configure.ac): Remove AC_LIBOBJ of unlinkat.
41329         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
41330         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
41331         tests/test-rmdir.h, tests/test-unlink.h.
41332         (Depends-on): Remove unlinkdir.
41333         (Makefile.am): Remove rules for test-unlinkat.
41334         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
41335         of module 'openat'.
41336         * NEWS: Mention the change.
41337         * modules/linkat-tests (Depends-on): Add unlinkat.
41338         * modules/mkfifoat-tests (Depends-on): Likewise.
41339         * modules/readlinkat-tests (Depends-on): Likewise.
41341 2011-11-02  Bruno Haible  <bruno@clisp.org>
41343         New module 'fchmodat', split off from module 'openat'.
41344         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
41345         defined.
41346         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
41347         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
41348         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
41349         * modules/fchmodat: New file, extracted from modules/openat.
41350         * modules/openat (Files): Remove lib/fchmodat.c.
41351         (configure.ac): Remove AC_LIBOBJ of fchmodat.
41352         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
41353         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
41354         (Makefile.am): Remove rules for test-fchmodat.
41355         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
41356         of module 'openat'.
41357         * NEWS: Mention the change.
41359 2011-11-02  Jim Meyering  <meyering@redhat.com>
41361         putenv: indent #definition of "environ" to placate cppi
41362         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
41364         gitlog-to-changelog: provide a ChangeLog-repair mechanism
41365         Git logs are often treated as immutable, because editing them
41366         changes the SHA1 checksums of all descendants.  Thus, errors in
41367         git logs tend to stay there forever.  However, when we generate
41368         a ChangeLog file -- typically for distribution -- from that git log,
41369         we can actually make corrections in the generated file.  The key
41370         lies in recording in machine-readable/applicable form the desired
41371         corrections.  See --help for description and an example.
41372         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
41373         (usage): Describe it; alphabetize option descriptions.
41374         (main): Honor the new option, carefully.
41376 2011-11-01  Jim Meyering  <meyering@redhat.com>
41378         gitlog-to-changelog: avoid an infloop
41379         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
41380         that ends up being empty.
41382 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41384         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
41385         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
41386         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
41387         contains (possibly-quoted) backslashes.  This should avoid
41388         all-too-common shell bugs if COMPLICATED contains backslashes in
41389         the "wrong" places.  Reported by David Evans in
41390         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
41391         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
41392         because we want ASCII ranges.  Is there some reason we don't use
41393         the C locale everywhere in this script?
41394         (func_module, top level): Avoid unwanted pathname expansion when
41395         $repo_url_prefix or $repo_url_suffix_repl contain shell
41396         metacharacters like '?' and '*'.
41398 2011-11-01  Bruno Haible  <bruno@clisp.org>
41400         fchownat: Improve description.
41401         * modules/fchownat (Description): Add link to function.
41403 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41405         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
41406         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
41407         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
41408         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
41410 2011-11-01  Bruno Haible  <bruno@clisp.org>
41412         alignof: Avoid collision with stdalign module.
41413         * lib/alignof.h (alignof): Remove macro.
41414         * NEWS: Mention the change.
41415         Reported by Paul Eggert.
41417 2011-11-01  Bruno Haible  <bruno@clisp.org>
41419         New module 'fchownat', split off from module 'openat'.
41420         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
41421         defined.
41422         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
41423         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
41424         invoke gl_FUNC_FCHOWNAT.
41425         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
41426         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
41427         * modules/fchownat: New file, extracted from modules/openat.
41428         * modules/openat (Files): Remove lib/fchownat.c.
41429         (Depends-on): Remove lchown.
41430         (configure.ac): Remove AC_LIBOBJ of fchownat.
41431         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
41432         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
41433         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
41434         (Depends-on): Remove mgetgroups, usleep, stat-time.
41435         (configure.ac): Remove test for getegid.
41436         (Makefile.am): Remove rules for test-fchownat.
41437         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
41438         of module 'openat'.
41439         * NEWS: Mention the change.
41441 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41443         stdalign: port better to MSVC and to Sun C 5.11
41444         This fixes some of the problems reported by Bruno Haible in
41445         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
41446         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
41447         shortcomings of MSVC and of Sun C 5.11.
41448         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
41449         around __declspec arg.
41450         * modules/stdalign-tests (Files): Add tests/macros.h.
41451         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
41452         Include macros.h, for ASSERT.
41453         (DECLARE_ALIGNED): Remove.
41454         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
41455         to catch bug), and to 1 if not (simplifies the rest of the code).
41456         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
41457         (CHECK_AUTO): Remove.
41458         (CHECK_ALIGNED): Check only the alignment of the static vars,
41459         since auto var alignment isn't supported by Sun C 5.11.
41460         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
41461         ASSERT failures are easier to diagnose.
41463 2011-10-31  Bruno Haible  <bruno@clisp.org>
41465         doc about some IRIX 5.3 problems.
41466         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
41467         on IRIX 5.3.
41468         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
41469         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
41470         5.3.
41471         * doc/posix-functions/grantpt.texi: Likewise.
41472         * doc/posix-functions/unlockpt.texi: Likewise.
41473         * doc/posix-functions/lgamma.texi: Likewise.
41474         * doc/posix-functions/nextafter.texi: Likewise.
41475         * doc/posix-functions/remainder.texi: Likewise.
41476         * doc/posix-functions/select.texi: Mention misplaced declaration on
41477         IRIX 5.3.
41478         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41480 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
41482         gitlog-to-changelog: fix git-log invocation.
41483         git-log mishandles date strings before 1970-01-01 UTC, and there is
41484         no use to specify --since=1970-01-01 by default anyway.
41485         * build-aux/gitlog-to-changelog: By default, when no --since option
41486         was given, do not specify explicit --since option to git-log.
41488 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
41490         gitlog-to-changelog: new option --append-dot.
41491         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
41492         first non-blank line of each commit message terminated with a dot.
41494 2011-10-30  Bruno Haible  <bruno@clisp.org>
41496         ffsl, ffsll: Avoid compilation error due to 'restrict'.
41497         * lib/ffsl.h: Include <config.h>.
41498         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
41500 2011-10-30  Jim Meyering  <meyering@redhat.com>
41502         GNUmakefile: reenable "make syntax-check" for most projects
41503         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
41504         build-aux variable", "syntax-check" would do nothing but succeed with
41505         the "No version control files detected..." diagnostic (unless you
41506         happened to override _build-aux via cfg.mk).
41507         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
41508         to precede inclusion of maint.mk.  Otherwise, these variables would
41509         be used undefined in any project that does not override the default.
41511 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
41513         gitlog-to-changelog: treat a message with only blank lines as empty.
41514         * build-aux/gitlog-to-changelog: Move the code that removes leading and
41515         trailing blank lines before the code that issues a warning about an
41516         empty commit message.
41518 2011-10-30  Jim Meyering  <meyering@redhat.com>
41520         test-parse-datetime.c: avoid new DST-related false positive test failure
41521         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
41522         based on the time/date we'll convert, not the current time.
41523         Otherwise, the moment we cross a DST boundary like today's in
41524         Europe, (CEST to CET), that offset ends up being one hour off.
41526 2011-10-27  Bruno Haible  <bruno@clisp.org>
41528         fstat: Tweak documentation.
41529         * modules/fstat (Description): More precise description.
41531 2011-10-27  Bruno Haible  <bruno@clisp.org>
41533         Update documentation regarding 'largefile' module.
41534         * doc/posix-functions/fstat.texi: Tweak wording.
41535         * doc/posix-functions/opendir.texi: Mention that the module fixes the
41536         problems with huge directories and/or small ino_t types.
41537         * doc/posix-functions/readdir.texi: Likewise.
41538         * doc/posix-functions/rewinddir.texi: Likewise.
41540 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
41542         maint.mk: don't maintain a second build-aux variable.
41543         * maint.mk (build_aux): Removed.  The maintainer-makefile module
41544         depends on GNUmakefile, which already maintains a cfg.mk
41545         overridable $(_build-aux) for projects with a non-standard
41546         build-aux directory location, although without the $(srcdir)
41547         prefix.  Use that variable consistently instead of introducing a
41548         second one.  Adjust all call sites.
41550 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41552         Add stdalign module and use it in other modules.
41553         This is based on a previous proposal by Bruno Haible
41554         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
41556         stdalign: new module
41557         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
41558         * modules/stdalign: New files.
41559         * MODULES.html.sh (c1x_core_properties): Add stdalign.
41560         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
41562         stdalign-tests: new module
41563         * modules/stdalign-tests, tests/test-stdalign.c: New files.
41565         argp: use stdalign
41566         * lib/argp-parse.c: Include <stdalign.h>.
41567         (alignof): Remove.
41568         * modules/argp (Depends-on): Add stdalign.
41570         crypto libraries: use stdalign
41571         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
41572         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
41573         Do not include <stdlib.h> twice, in md4.c.
41574         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
41575         because we are accessing a pointer's bit-pattern, not a size.
41576         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
41577         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
41578         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
41579         * modules/crypto/sha512: Likewise.
41581         sys_socket: use stdalign, not alignof
41582         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
41583         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
41585 2011-10-27  Bruno Haible  <bruno@clisp.org>
41587         raise test: Avoid a test failure on Linux/MIPS.
41588         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
41589         because 99 is a valid signal on Linux/MIPS.
41591 2011-10-27  Bruno Haible  <bruno@clisp.org>
41593         nonblocking tests: Fix test failure on Linux/MIPS.
41594         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
41595         Set to 270000.
41597 2011-10-27  Bruno Haible  <bruno@clisp.org>
41599         utimensat: Work around problem on Linux/hppa.
41600         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
41601         values.
41602         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
41604 2011-10-25  Jim Meyering  <meyering@redhat.com>
41606         maint.mk: fix a bug in sc_prohibit_stddef_without_use
41607         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
41608         after symbols like NULL, size_t, etc.
41609         Reported by Alfred M. Szmidt.
41611         maint.mk: exempt ENODATA from a syntax-check rule
41612         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
41613         from the sc_prohibit_always-defined_macros syntax-check rule.
41614         Add a comment.  See this for more details:
41615         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
41617 2011-10-23  Jim Meyering  <meyering@redhat.com>
41619         fts: close parent dir FD before returning from post-traversal fts_read
41620         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
41621         unlink A, even though an FD open on A remained.  This is suboptimal
41622         (holding a file descriptor open longer than needed), but otherwise not
41623         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
41624         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
41625         that represents a real problem: it causes the removal of A to fail
41626         with e.g., "rm: cannot remove `A': Device or resource busy"
41628         fts visits each directory twice and keeps a cache (fts_fd_ring) of
41629         directory file descriptors.  After completing the final, FTS_DP,
41630         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
41631         cache, but then proceeded to add a new FD to it via the subsequent
41632         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
41633         final file descriptor would be closed only via fts_close's call to
41634         fd_ring_clear.  Now, it is usually closed earlier, via the final
41635         FTS_DP-returning fts_read call.
41636         * lib/fts.c (restore_initial_cwd): New function, converted from
41637         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
41638         Update callers.
41639         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
41640         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
41642 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
41643             Bruno Haible  <bruno@clisp.org>
41644             Jim Meyering  <jim@meyering.net>
41646         readme-release: improve safety of release prep instructions.
41647         * README-release: Don't git pull all branches when only master
41648         is needed for the release process.
41649         Run make maintainer-clean before changing trees and merging.
41650         Don't try to run ./configure right after git pull in case files
41651         that influence the bootstrap process have changed, move the
41652         ./configure step to after running ./bootstrap.
41653         Don't bootstrap "one last time"... it's the first time!
41655 2011-10-22  Bruno Haible  <bruno@clisp.org>
41657         errno, strerror-override: Support for MSVC 10.
41658         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
41659         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
41660         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
41661         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
41662         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
41663         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
41664         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
41665         Assign values compatible with MSVC 10.
41666         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
41667         New macros.
41668         (GNULIB_defined_EWINSOCK): New macro.
41669         * lib/strerror-override.c (strerror_override): Update accordingly.
41670         * lib/strerror-override.h: Likewise.
41671         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
41672         longer equal to the corresponding errno value.
41673         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41675 2011-10-22  Bruno Haible  <bruno@clisp.org>
41677         perror: Recognize when test program crashes.
41678         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
41679         strerror, set gl_cv_func_perror_works to no.
41680         Reported by Daniel Richard G. <skunk@iskunk.org>.
41682         perror: Fix indentation.
41683         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
41685 2011-10-22  Bruno Haible  <bruno@clisp.org>
41687         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
41688         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
41689         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
41690         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
41691         functions, not as a macro.
41692         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
41693         macros.
41694         (isfinite, isinf, isnan, signbit): Check overloaded functions and
41695         absence of macro.
41696         Suggested by Eric Blake.
41697         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41699 2011-10-21  Bruno Haible  <bruno@clisp.org>
41701         relocatable-prog-wrapper: Don't leave object files behind.
41702         * build-aux/install-reloc: Re-synchronize list of .o files to be
41703         removed with list of compilation units.
41705 2011-10-20  Bruno Haible  <bruno@clisp.org>
41707         openpty, posix_openpt: Remove code duplication.
41708         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
41709         * lib/openpty.c: Include <stdlib.h>.
41710         (openpty): Use posix_openpt on all platforms except IRIX.
41711         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
41713 2011-10-20  Bruno Haible  <bruno@clisp.org>
41715         unlockpt: Detect invalid argument.
41716         * lib/unlockpt.c: Include <fcntl.h>.
41717         (unlockpt): Check whether fd is valid, using fcntl().
41718         * modules/unlockpt (Depends-on): Add fcntl-h.
41720 2011-10-20  Bruno Haible  <bruno@clisp.org>
41722         openpty: Avoid compilation error on AIX 6.1.
41723         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
41725 2011-10-20  Bruno Haible  <bruno@clisp.org>
41727         posix_openpt: Support for OpenBSD.
41728         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
41729         (posix_openpt) [OpenBSD]: New code.
41730         * lib/grantpt.c: Include <fcntl.h>.
41731         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
41732         * modules/grantpt (Depends-on): Add fcntl-h.
41734 2011-10-20  Bruno Haible  <bruno@clisp.org>
41736         posix_openpt test: Coding style.
41737         * tests/test-posix_openpt.c: Use GNU coding style.
41739 2011-10-20  Bruno Haible  <bruno@clisp.org>
41741         grantpt: Support --avoid=pt_chown.
41742         * modules/grantpt (Files): Add lib/pty-private.h.
41744 2011-10-20  Bruno Haible  <bruno@clisp.org>
41746         posix_openpt: Fix autoconf macro.
41747         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
41748         unneeded check for _getpty.
41750 2011-10-20  Bruno Haible  <bruno@clisp.org>
41752         openpty: Update comments.
41753         * lib/openpty.c: Add comments about Minix.
41755 2011-10-19  Eric Blake  <eblake@redhat.com>
41757         openpty: relax license
41758         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
41760         pt_chown: use configmake to simplify build
41761         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
41763         ptsname and others: relax license
41764         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
41765         * modules/unlockpt (License): Likewise.
41766         * modules/pt_chown (License): Likewise.
41767         * modules/ptsname (License): Likewise.
41768         * modules/ttyname_r (License): Likewise.
41770 2011-10-19  Jim Meyering  <meyering@redhat.com>
41772         posix_openpt: remove spurious #endif
41773         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
41775 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
41777         maint.mk: Respect $(build_aux) in web-manual rule.
41778         * top/maint.mk (web-manual): Find gen-announce script in user's
41779         $(build_aux) directory instead of hard-coding 'build-aux'.
41781 2011-10-19  Bruno Haible  <bruno@clisp.org>
41783         posix_openpt: Fix compilation error.
41784         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
41785         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
41786         Mention the openpty module as an alternative.
41788 2011-10-19  Bruno Haible  <bruno@clisp.org>
41790         Support for old NeXTstep 3.3 frexp().
41791         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
41792         execution time of the test to 5 seconds.
41793         Reported by Daniel Richard G. <skunk@iskunk.org>.
41795 2011-10-19  Bruno Haible  <bruno@clisp.org>
41797         Support for old NeXTstep 3.3 sed.
41798         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
41799         part, use /.../, not \|...|. Escape periods in the header file name.
41800         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
41801         Reported by Daniel Richard G. <skunk@iskunk.org>.
41803 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
41805         Support for old NeXTstep 3.3 gcc.
41806         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
41807         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
41808         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
41809         * lib/spawn.in.h (_Restrict_arr_): Likewise.
41810         * lib/regex.h (_Restrict_arr_): Likewise.
41811         * lib/regex_internal.h (re_token_t): Likewise.
41812         * lib/regexec.c (check_node_accept_bytes): Likewise.
41813         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
41815 2011-10-18  Eric Blake  <eblake@redhat.com>
41817         posix_openpt: new module
41818         * modules/posix_openpt: New module.
41819         * m4/posix_openpt.m4: New file.
41820         * lib/posix_openpt.c: Likewise.
41821         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
41822         (gl_STDLIB_H_DEFAULTS): Set defaults.
41823         * modules/stdlib (Makefile.am): Substitute macros.
41824         * lib/stdlib.in.h (posix_openpt): Declare.
41825         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
41826         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
41827         * modules/posix_openpt-tests: New test module.
41828         * tests/test-posix_openpt.c: New test.
41830 2011-10-15  Bruno Haible  <bruno@clisp.org>
41832         xstrtoll: Fix compilation failure.
41833         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
41834         from lib/strtol.c.
41835         * doc/posix-headers/limits.texi: Mention missing numerical limits on
41836         some platforms.
41837         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41839 2011-10-15  Bruno Haible  <bruno@clisp.org>
41841         vasnprintf: Optimize bit search operation.
41842         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
41843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
41844         gl_DOUBLE_EXPONENT_LOCATION.
41845         * modules/vasnprintf (Files): Add m4/exponentd.m4.
41846         * modules/unistdio/u8-vasnprintf (Files): Likewise.
41847         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
41848         * modules/unistdio/u16-vasnprintf (Files): Likewise.
41849         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
41850         * modules/unistdio/u32-vasnprintf (Files): Likewise.
41851         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
41852         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
41853         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
41855 2011-10-15  Bruno Haible  <bruno@clisp.org>
41857         vasnprintf: Fix comments.
41858         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
41860 2011-10-14  Bruno Haible  <bruno@clisp.org>
41862         Tests for module 'integer_length_ll'.
41863         * modules/integer_length_ll-tests: New file.
41864         * tests/test-integer_length_ll.c: New file.
41866         New module 'integer_length_ll'.
41867         * lib/integer_length_ll.c: New file.
41868         * modules/integer_length_ll: New file.
41870 2011-10-14  Bruno Haible  <bruno@clisp.org>
41872         Tests for module 'integer_length_l'.
41873         * modules/integer_length_l-tests: New file.
41874         * tests/test-integer_length_l.c: New file.
41876         New module 'integer_length_l'.
41877         * lib/integer_length_l.c: New file.
41878         * modules/integer_length_l: New file.
41880 2011-10-14  Bruno Haible  <bruno@clisp.org>
41882         Tests for module 'integer_length'.
41883         * modules/integer_length-tests: New file.
41884         * tests/test-integer_length.c: New file.
41886         New module 'integer_length'.
41887         * lib/integer_length.h: New file.
41888         * lib/integer_length.c: New file.
41889         * modules/integer_length: New file.
41891 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
41893         popen: Fix dependency conditions.
41894         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
41896 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
41898         perror: Fix autoconf test.
41899         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
41900         <stdlib.h> and <string.h>.
41902 2011-10-14  Bruno Haible  <bruno@clisp.org>
41904         ffsl: Optimize on 64-bit platforms.
41905         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
41906         unrolling.
41908 2011-10-13  Bruno Haible  <bruno@clisp.org>
41910         ffsl: Optimize on 32-bit platforms.
41911         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
41912         use ffs() without a loop.
41914         ffsl, ffsll: Optimize for GCC.
41915         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
41916         * lib/ffsl.c (GCC_BUILTIN): New macro.
41917         * lib/ffsll.c (GCC_BUILTIN): Likewise.
41919 2011-10-13  Bruno Haible  <bruno@clisp.org>
41921         ffs, bcopy, memset: Support symbol renaming via config.h.
41922         * lib/ffs.c: Include <config.h>.
41923         * lib/bcopy.c: Likewise.
41924         * lib/memset.c: Likewise.
41926 2011-10-10  Bruno Haible  <bruno@clisp.org>
41928         atanl: Simplify for platforms where 'long double' == 'double'.
41929         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
41930         alternative implementation.
41931         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
41932         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
41933         * modules/atanl (Depends-on): Add atan. Update conditions.
41935 2011-10-10  Bruno Haible  <bruno@clisp.org>
41937         acosl: Simplify for platforms where 'long double' == 'double'.
41938         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
41939         alternative implementation.
41940         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
41941         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
41942         * modules/acosl (Depends-on): Add acos. Update conditions.
41944 2011-10-10  Bruno Haible  <bruno@clisp.org>
41946         asinl: Simplify for platforms where 'long double' == 'double'.
41947         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
41948         alternative implementation.
41949         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
41950         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
41951         * modules/asinl (Depends-on): Add asin. Update conditions.
41953 2011-10-10  Bruno Haible  <bruno@clisp.org>
41955         tanl: Simplify for platforms where 'long double' == 'double'.
41956         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
41957         implementation.
41958         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
41959         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
41960         * modules/tanl (Depends-on): Add tan. Update conditions.
41961         (configure.ac): Don't compile trigl.c if
41962         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
41964 2011-10-10  Bruno Haible  <bruno@clisp.org>
41966         cosl: Simplify for platforms where 'long double' == 'double'.
41967         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
41968         implementation.
41969         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
41970         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
41971         * modules/cosl (Depends-on): Add cos. Update conditions.
41972         (configure.ac): Don't compile sincosl.c and trigl.c if
41973         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
41975 2011-10-10  Bruno Haible  <bruno@clisp.org>
41977         sinl: Simplify for platforms where 'long double' == 'double'.
41978         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
41979         implementation.
41980         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
41981         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
41982         * modules/sinl (Depends-on): Add sin. Update conditions.
41983         (configure.ac): Don't compile sincosl.c and trigl.c if
41984         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
41986 2011-10-10  Bruno Haible  <bruno@clisp.org>
41988         logl: Simplify for platforms where 'long double' == 'double'.
41989         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
41990         implementation.
41991         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
41992         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
41993         * modules/logl (Depends-on): Add log. Update conditions.
41995 2011-10-10  Bruno Haible  <bruno@clisp.org>
41997         expl: Simplify for platforms where 'long double' == 'double'.
41998         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
41999         implementation.
42000         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42001         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42002         * modules/expl (Depends-on): Add exp. Update conditions.
42004 2011-10-10  Bruno Haible  <bruno@clisp.org>
42006         sqrtl: Simplify for platforms where 'long double' == 'double'.
42007         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42008         alternative implementation.
42009         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42010         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42011         * modules/sqrtl (Depends-on): Update conditions.
42013 2011-10-10  Bruno Haible  <bruno@clisp.org>
42015         ldexpl: Simplify for platforms where 'long double' == 'double'.
42016         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42017         alternative implementation.
42018         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42019         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42020         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
42022 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
42024         ffsll: set correct witness
42025         * modules/ffsll (configure.ac): Fix typo.
42027 2011-10-10  Bruno Haible  <bruno@clisp.org>
42029         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
42030         * lib/printf-frexpl.c: Include <config.h>.
42031         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42032         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
42033         second time.
42034         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
42035         gl_LONG_DOUBLE_VS_DOUBLE.
42036         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
42037         conditions.
42039 2011-10-10  Bruno Haible  <bruno@clisp.org>
42041         frexpl: Simplify for platforms where 'long double' == 'double'.
42042         * lib/frexpl.c: Include <config.h>.
42043         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42044         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42045         time.
42046         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42047         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42048         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
42049         * modules/frexpl (Depends-on): Add frexp. Update conditions.
42050         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
42051         conditions.
42053 2011-10-10  Jim Meyering  <meyering@redhat.com>
42055         test-renameat: don't leave behind a temporary file
42056         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
42057           ERROR: files left in build directory after distclean:
42058           ./gltests/test-renameat.too
42059           make[1]: *** [distcleancheck] Error 1
42060         Reported by Tom G. Christensen.
42062 2011-10-09  Bruno Haible  <bruno@clisp.org>
42064         rint: Determine RINT_LIBM correctly on AIX 7.
42065         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
42066         directly, not only through a function pointer. Also accept an optional
42067         4th argument with extra code.
42068         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
42069         rintf() call by gcc when optimizing.
42071         mathfunc.m4: Refactor.
42072         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
42073         m4 variable.
42075 2011-10-09  Bruno Haible  <bruno@clisp.org>
42077         rintl: Simplify for platforms where 'long double' == 'double'.
42078         * lib/rintl.c: Include <config.h>.
42079         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42080         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42081         time.
42082         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42083         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42084         * modules/rintl (Depends-on): Add rint. Update conditions.
42086 2011-10-09  Bruno Haible  <bruno@clisp.org>
42088         roundl: Simplify for platforms where 'long double' == 'double'.
42089         * lib/roundl.c: Include <config.h>.
42090         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42091         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42092         time.
42093         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42094         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42095         * modules/roundl (Depends-on): Add round. Update conditions.
42097 2011-10-09  Bruno Haible  <bruno@clisp.org>
42099         truncl: Simplify for platforms where 'long double' == 'double'.
42100         * lib/truncl.c: Include <config.h>.
42101         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42102         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42103         time.
42104         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42105         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42106         * modules/truncl (Depends-on): Add trunc. Update conditions.
42108 2011-10-09  Bruno Haible  <bruno@clisp.org>
42110         ceill: Simplify for platforms where 'long double' == 'double'.
42111         * lib/ceill.c: Include <config.h>.
42112         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42113         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42114         time.
42115         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42116         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42117         * modules/ceill (Depends-on): Add ceil. Update conditions.
42119 2011-10-09  Bruno Haible  <bruno@clisp.org>
42121         floorl: Simplify for platforms where 'long double' == 'double'.
42122         * lib/floorl.c: Include <config.h>.
42123         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42124         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42125         time.
42126         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42127         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42128         * modules/floorl (Depends-on): Add floor. Update conditions.
42130 2011-10-09  Bruno Haible  <bruno@clisp.org>
42132         rint: Fix ordering constraints.
42133         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
42134         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
42135         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
42137 2011-10-09  Bruno Haible  <bruno@clisp.org>
42139         copysignl: Simplify for platforms where 'long double' == 'double'.
42140         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42141         alternative.
42142         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42143         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42144         * modules/copysignl (Depends-on): Add copysign. Update conditions.
42146 2011-10-09  Bruno Haible  <bruno@clisp.org>
42148         Tests for module 'rintl'.
42149         * modules/rintl-tests: New file.
42150         * tests/test-rintl.c: New file.
42152         New module 'rintl'.
42153         * lib/math.in.h (rintl): New declaration.
42154         * lib/rintl.c: New file.
42155         * m4/rintl.m4: New file.
42156         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
42157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
42158         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
42159         * modules/rintl: New file.
42160         * tests/test-math-c++.cc: Check the declaration of rintl.
42161         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42162         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
42163         * doc/posix-functions/rintl.texi: Mention the new module.
42165 2011-10-09  Bruno Haible  <bruno@clisp.org>
42167         Tests for module 'rintf'.
42168         * modules/rintf-tests: New file.
42169         * tests/test-rintf.c: New file.
42171         New module 'rintf'.
42172         * lib/math.in.h (rintf): New declaration.
42173         * lib/rintf.c: New file.
42174         * m4/rintf.m4: New file.
42175         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
42176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
42177         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
42178         * modules/rintf: New file.
42179         * tests/test-math-c++.cc: Check the declaration of rintf.
42180         * doc/posix-functions/rintf.texi: Mention the new module.
42182 2011-10-09  Bruno Haible  <bruno@clisp.org>
42184         rint: Support for MSVC.
42185         * lib/math.in.h (rint): New declaration.
42186         * lib/rint.c: New file.
42187         * m4/rint.m4: New file.
42188         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
42189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
42190         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
42191         * modules/rint (Description): Fix.
42192         (Files): Add lib/rint.c, m4/rint.m4.
42193         (Depends-on): Add math.
42194         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
42195         gl_MATH_MODULE_INDICATOR.
42196         * tests/test-math-c++.cc: Check the declaration of rint.
42197         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42198         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
42199         * doc/posix-functions/rint.texi: Mention the replacement provided by
42200         the module.
42202         rint tests: More tests.
42203         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
42204         minus-zero.h, infinity.h, nan.h.
42205         (main): Skip the test if the current rounding mode is not standard. Add
42206         tests for negative numbers, minus zero, infinity, NaN.
42207         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
42208         tests/nan.h.
42209         (Depends-on): Add isnand-nolibm.
42211 2011-10-09  Bruno Haible  <bruno@clisp.org>
42213         Tests for module 'copysignl'.
42214         * modules/copysignl-tests: New file.
42215         * tests/test-copysignl.c: New file.
42217         New module 'copysignl'.
42218         * lib/math.in.h (copysignl): New declaration.
42219         * lib/copysignl.c: New file.
42220         * m4/copysignl.m4: New file.
42221         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
42222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
42223         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
42224         HAVE_COPYSIGNL.
42225         * modules/copysignl: New file.
42226         * tests/test-math-c++.cc: Check the declaration of copysignl.
42227         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42228         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
42229         * doc/posix-functions/copysignl.texi: Mention the new module.
42231 2011-10-09  Bruno Haible  <bruno@clisp.org>
42233         Tests for module 'copysignf'.
42234         * modules/copysignf-tests: New file.
42235         * tests/test-copysignf.c: New file.
42237         New module 'copysignf'.
42238         * lib/math.in.h (copysignf): New declaration.
42239         * lib/copysignf.c: New file.
42240         * m4/copysignf.m4: New file.
42241         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
42242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
42243         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
42244         HAVE_COPYSIGNF.
42245         * modules/copysignf: New file.
42246         * tests/test-math-c++.cc: Check the declaration of copysignf.
42247         * doc/posix-functions/copysignf.texi: Mention the new module.
42249 2011-10-09  Bruno Haible  <bruno@clisp.org>
42251         Ensure that HAVE_* variables are set to 1 before they are set to 0.
42252         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
42253         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
42254         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
42255         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
42256         gl_SIGNAL_H_DEFAULTS.
42258 2011-10-09  Bruno Haible  <bruno@clisp.org>
42260         poll: Make macro safer.
42261         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
42262         ac_cv_header_poll_h is not set.
42264 2011-10-09  Bruno Haible  <bruno@clisp.org>
42266         copysign: Provide replacement.
42267         * lib/math.in.h (copysign): New declaration.
42268         * lib/copysign.c: New file.
42269         * m4/copysign.m4: New file.
42270         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
42271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
42272         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
42273         HAVE_COPYSIGN.
42274         * modules/copysign (Description): Clarify.
42275         (Files): Add lib/copysign.c, m4/copysign.m4.
42276         (Depends-on): Add math, signbit.
42277         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
42278         gl_MATH_MODULE_INDICATOR.
42279         * tests/test-math-c++.cc: Check the declaration of copysign.
42280         * doc/posix-functions/copysign.texi: Mention the effects of the module
42281         on Minix and MSVC.
42283 2011-10-09  Bruno Haible  <bruno@clisp.org>
42285         isinf: Ensure macro on AIX 5.1.
42286         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
42287         macro.
42288         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
42290 2011-10-09  Bruno Haible  <bruno@clisp.org>
42292         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
42293         * modules/snprintf-posix-tests (configure.ac): Require
42294         gl_LONG_DOUBLE_VS_DOUBLE.
42295         * modules/sprintf-posix-tests (configure.ac): Likewise.
42296         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
42297         * modules/vasprintf-posix-tests (configure.ac): Likewise.
42298         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
42299         * modules/vsprintf-posix-tests (configure.ac): Likewise.
42300         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
42301         tests on platforms where 'long double' is the same as 'double'.
42302         * tests/test-sprintf-posix.h (test_function): Likewise.
42303         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42304         * tests/test-vasprintf-posix.c (test_function): Likewise.
42306         *printf: Fix for platforms where 'long double' == 'double'.
42307         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
42308         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
42309         * modules/dprintf-posix (Files): Add m4/math_h.m4.
42310         * modules/fprintf-posix (Files): Likewise.
42311         * modules/obstack-printf-posix (Files): Likewise.
42312         * modules/snprintf-posix (Files): Likewise.
42313         * modules/sprintf-posix (Files): Likewise.
42314         * modules/vasnprintf (Files): Likewise.
42315         * modules/vasnprintf-posix (Files): Likewise.
42316         * modules/vasprintf-posix (Files): Likewise.
42317         * modules/vdprintf-posix (Files): Likewise.
42318         * modules/vfprintf-posix (Files): Likewise.
42319         * modules/vsnprintf-posix (Files): Likewise.
42320         * modules/vsprintf-posix (Files): Likewise.
42321         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42322         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42323         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42324         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42325         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42326         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42327         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42329         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
42330         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
42331         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42332         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
42333         'long double'.
42334         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
42336         isinf: Fix for platforms where 'long double' == 'double'.
42337         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42338         Don't blindly assume 80-bit 'long double'.
42340         isfinite: Fix for platforms where 'long double' == 'double'.
42341         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42342         Don't blindly assume 80-bit 'long double'.
42344         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
42345         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
42346         * modules/isfinite-tests (configure.ac): Require
42347         gl_LONG_DOUBLE_VS_DOUBLE.
42348         * modules/isinf-tests (configure.ac): Likewise.
42349         * modules/isnan-tests (configure.ac): Likewise.
42350         * modules/isnanl-tests (configure.ac): Likewise.
42351         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
42352         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
42353         tests on platforms where 'long double' is the same as 'double'.
42354         * tests/test-isinf.c (test_isinfl): Likewise.
42355         * tests/test-isnan.c (test_long_double): Likewise.
42356         * tests/test-isnanl.h (main): Likewise.
42358 2011-10-08  Bruno Haible  <bruno@clisp.org>
42360         Tests for module 'tanhf'.
42361         * modules/tanhf-tests: New file.
42362         * tests/test-tanhf.c: New file.
42364         New module 'tanhf'.
42365         * lib/math.in.h (tanhf): New declaration.
42366         * lib/tanhf.c: New file.
42367         * m4/tanhf.m4: New file.
42368         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
42369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
42370         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
42371         * modules/tanhf: New file.
42372         * tests/test-math-c++.cc: Check the declaration of tanhf.
42373         * doc/posix-functions/tanhf.texi: Mention the new module.
42375         tanh: Use a .m4 file.
42376         * m4/tanh.m4: New file.
42377         * modules/tanh (Files): Add it.
42378         (configure.ac): Just invoke gl_FUNC_TANH.
42380 2011-10-08  Bruno Haible  <bruno@clisp.org>
42382         Tests for module 'coshf'.
42383         * modules/coshf-tests: New file.
42384         * tests/test-coshf.c: New file.
42386         New module 'coshf'.
42387         * lib/math.in.h (coshf): New declaration.
42388         * lib/coshf.c: New file.
42389         * m4/coshf.m4: New file.
42390         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
42391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
42392         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
42393         * modules/coshf: New file.
42394         * tests/test-math-c++.cc: Check the declaration of coshf.
42395         * doc/posix-functions/coshf.texi: Mention the new module.
42397         cosh: Use a .m4 file.
42398         * m4/cosh.m4: New file.
42399         * modules/cosh (Files): Add it.
42400         (configure.ac): Just invoke gl_FUNC_COSH.
42402 2011-10-08  Bruno Haible  <bruno@clisp.org>
42404         Tests for module 'sinhf'.
42405         * modules/sinhf-tests: New file.
42406         * tests/test-sinhf.c: New file.
42408         New module 'sinhf'.
42409         * lib/math.in.h (sinhf): New declaration.
42410         * lib/sinhf.c: New file.
42411         * m4/sinhf.m4: New file.
42412         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
42413         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
42414         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
42415         * modules/sinhf: New file.
42416         * tests/test-math-c++.cc: Check the declaration of sinhf.
42417         * doc/posix-functions/sinhf.texi: Mention the new module.
42419         sinh: Use a .m4 file.
42420         * m4/sinh.m4: New file.
42421         * modules/sinh (Files): Add it.
42422         (configure.ac): Just invoke gl_FUNC_SINH.
42424 2011-10-08  Bruno Haible  <bruno@clisp.org>
42426         Tests for module 'atan2f'.
42427         * modules/atan2f-tests: New file.
42428         * tests/test-atan2f.c: New file.
42430         New module 'atan2f'.
42431         * lib/math.in.h (atan2f): New declaration.
42432         * lib/atan2f.c: New file.
42433         * m4/atan2f.m4: New file.
42434         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
42435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
42436         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
42437         * modules/atan2f: New file.
42438         * tests/test-math-c++.cc: Check the declaration of atan2f.
42439         * doc/posix-functions/atan2f.texi: Mention the new module.
42441         atan2: Use a .m4 file.
42442         * m4/atan2.m4: New file.
42443         * modules/atan2 (Files): Add it.
42444         (configure.ac): Just invoke gl_FUNC_ATAN2.
42446 2011-10-08  Bruno Haible  <bruno@clisp.org>
42448         Tests for module 'atanf'.
42449         * modules/atanf-tests: New file.
42450         * tests/test-atanf.c: New file.
42452         New module 'atanf'.
42453         * lib/math.in.h (atanf): New declaration.
42454         * lib/atanf.c: New file.
42455         * m4/atanf.m4: New file.
42456         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
42457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
42458         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
42459         * modules/atanf: New file.
42460         * tests/test-math-c++.cc: Check the declaration of atanf.
42461         * doc/posix-functions/atanf.texi: Mention the new module.
42463         atan: Use a .m4 file.
42464         * m4/atan.m4: New file.
42465         * modules/atan (Files): Add it.
42466         (configure.ac): Just invoke gl_FUNC_ATAN.
42468 2011-10-08  Bruno Haible  <bruno@clisp.org>
42470         Tests for module 'acosf'.
42471         * modules/acosf-tests: New file.
42472         * tests/test-acosf.c: New file.
42474         New module 'acosf'.
42475         * lib/math.in.h (acosf): New declaration.
42476         * lib/acosf.c: New file.
42477         * m4/acosf.m4: New file.
42478         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
42479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
42480         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
42481         * modules/acosf: New file.
42482         * tests/test-math-c++.cc: Check the declaration of acosf.
42483         * doc/posix-functions/acosf.texi: Mention the new module.
42485         acos: Use a .m4 file.
42486         * m4/acos.m4: New file.
42487         * modules/acos (Files): Add it.
42488         (configure.ac): Just invoke gl_FUNC_ACOS.
42490 2011-10-08  Bruno Haible  <bruno@clisp.org>
42492         Tests for module 'asinf'.
42493         * modules/asinf-tests: New file.
42494         * tests/test-asinf.c: New file.
42496         New module 'asinf'.
42497         * lib/math.in.h (asinf): New declaration.
42498         * lib/asinf.c: New file.
42499         * m4/asinf.m4: New file.
42500         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
42501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
42502         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
42503         * modules/asinf: New file.
42504         * tests/test-math-c++.cc: Check the declaration of asinf.
42505         * doc/posix-functions/asinf.texi: Mention the new module.
42507         asin: Use a .m4 file.
42508         * m4/asin.m4: New file.
42509         * modules/asin (Files): Add it.
42510         (configure.ac): Just invoke gl_FUNC_ASIN.
42512 2011-10-08  Bruno Haible  <bruno@clisp.org>
42514         Tests for module 'tanf'.
42515         * modules/tanf-tests: New file.
42516         * tests/test-tanf.c: New file.
42518         New module 'tanf'.
42519         * lib/math.in.h (tanf): New declaration.
42520         * lib/tanf.c: New file.
42521         * m4/tanf.m4: New file.
42522         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
42523         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
42524         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
42525         * modules/tanf: New file.
42526         * tests/test-math-c++.cc: Check the declaration of tanf.
42527         * doc/posix-functions/tanf.texi: Mention the new module.
42529         tan: Use a .m4 file.
42530         * m4/tan.m4: New file.
42531         * modules/tan (Files): Add it.
42532         (configure.ac): Just invoke gl_FUNC_TAN.
42534 2011-10-08  Bruno Haible  <bruno@clisp.org>
42536         Tests for module 'cosf'.
42537         * modules/cosf-tests: New file.
42538         * tests/test-cosf.c: New file.
42540         New module 'cosf'.
42541         * lib/math.in.h (cosf): New declaration.
42542         * lib/cosf.c: New file.
42543         * m4/cosf.m4: New file.
42544         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
42545         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
42546         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
42547         * modules/cosf: New file.
42548         * tests/test-math-c++.cc: Check the declaration of cosf.
42549         * doc/posix-functions/cosf.texi: Mention the new module.
42551         cos: Use a .m4 file.
42552         * m4/cos.m4: New file.
42553         * modules/cos (Files): Add it.
42554         (configure.ac): Just invoke gl_FUNC_COS.
42556 2011-10-08  Bruno Haible  <bruno@clisp.org>
42558         Tests for module 'sinf'.
42559         * modules/sinf-tests: New file.
42560         * tests/test-sinf.c: New file.
42562         New module 'sinf'.
42563         * lib/math.in.h (sinf): New declaration.
42564         * lib/sinf.c: New file.
42565         * m4/sinf.m4: New file.
42566         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
42567         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
42568         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
42569         * modules/sinf: New file.
42570         * tests/test-math-c++.cc: Check the declaration of sinf.
42571         * doc/posix-functions/sinf.texi: Mention the new module.
42573         sin: Use a .m4 file.
42574         * m4/sin.m4: New file.
42575         * modules/sin (Files): Add it.
42576         (configure.ac): Just invoke gl_FUNC_SIN.
42578 2011-10-08  Bruno Haible  <bruno@clisp.org>
42580         Tests for module 'powf'.
42581         * modules/powf-tests: New file.
42582         * tests/test-powf.c: New file.
42584         New module 'powf'.
42585         * lib/math.in.h (powf): New declaration.
42586         * lib/powf.c: New file.
42587         * m4/powf.m4: New file.
42588         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
42589         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
42590         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
42591         * modules/powf: New file.
42592         * tests/test-math-c++.cc: Check the declaration of powf.
42593         * doc/posix-functions/powf.texi: Mention the new module.
42595         pow: Use a .m4 file.
42596         * m4/pow.m4: New file.
42597         * modules/pow (Files): Add it.
42598         (configure.ac): Just invoke gl_FUNC_POW.
42600 2011-10-08  Bruno Haible  <bruno@clisp.org>
42602         Tests for module 'log10f'.
42603         * modules/log10f-tests: New file.
42604         * tests/test-log10f.c: New file.
42606         New module 'log10f'.
42607         * lib/math.in.h (log10f): New declaration.
42608         * lib/log10f.c: New file.
42609         * m4/log10f.m4: New file.
42610         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
42611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
42612         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
42613         * modules/log10f: New file.
42614         * tests/test-math-c++.cc: Check the declaration of log10f.
42615         * doc/posix-functions/log10f.texi: Mention the new module.
42617         log10: Use a .m4 file.
42618         * m4/log10.m4: New file.
42619         * modules/log10 (Files): Add it.
42620         (configure.ac): Just invoke gl_FUNC_LOG10.
42622 2011-10-08  Bruno Haible  <bruno@clisp.org>
42624         Tests for module 'logf'.
42625         * modules/logf-tests: New file.
42626         * tests/test-logf.c: New file.
42628         New module 'logf'.
42629         * lib/math.in.h (logf): New declaration.
42630         * lib/logf.c: New file.
42631         * m4/logf.m4: New file.
42632         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
42633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
42634         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
42635         * modules/logf: New file.
42636         * tests/test-math-c++.cc: Check the declaration of logf.
42637         * doc/posix-functions/logf.texi: Mention the new module.
42639         log: Use a .m4 file.
42640         * m4/log.m4: New file.
42641         * modules/log (Files): Add it.
42642         (configure.ac): Just invoke gl_FUNC_LOG.
42644 2011-10-08  Bruno Haible  <bruno@clisp.org>
42646         Tests for module 'expf'.
42647         * modules/expf-tests: New file.
42648         * tests/test-expf.c: New file.
42650         New module 'expf'.
42651         * lib/math.in.h (expf): New declaration.
42652         * lib/expf.c: New file.
42653         * m4/expf.m4: New file.
42654         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
42655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
42656         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
42657         * modules/expf: New file.
42658         * tests/test-math-c++.cc: Check the declaration of expf.
42659         * doc/posix-functions/expf.texi: Mention the new module.
42661         exp: Use a .m4 file.
42662         * m4/exp.m4: New file.
42663         * modules/exp (Files): Add it.
42664         (configure.ac): Just invoke gl_FUNC_EXP.
42666 2011-10-08  Bruno Haible  <bruno@clisp.org>
42668         Tests for module 'sqrtf'.
42669         * modules/sqrtf-tests: New file.
42670         * tests/test-sqrtf.c: New file.
42672         New module 'sqrtf'.
42673         * lib/math.in.h (sqrtf): New declaration.
42674         * lib/sqrtf.c: New file.
42675         * m4/sqrtf.m4: New file.
42676         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
42677         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
42678         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
42679         * modules/sqrtf: New file.
42680         * tests/test-math-c++.cc: Check the declaration of sqrtf.
42681         * doc/posix-functions/sqrtf.texi: Mention the new module.
42683 2011-10-08  Bruno Haible  <bruno@clisp.org>
42685         Tests: Avoid link failures w.r.t. libintl.
42686         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
42687         $(LIBINTL).
42688         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
42689         $(LIBINTL).
42690         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
42691         against $(LIBINTL).
42692         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
42693         $(LIBINTL).
42694         * modules/openat-tests (Makefile.am): Link test-fchmodat against
42695         $(LIBINTL).
42696         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
42698 2011-10-08  Bruno Haible  <bruno@clisp.org>
42700         pow tests: Defeat compiler optimizations.
42701         * tests/test-pow.c (main): Assign arguments to x and y before use.
42703 2011-10-08  Bruno Haible  <bruno@clisp.org>
42705         gnulib-tool: Improve last commit.
42706         * gnulib-tool (func_modules_transitive_closure): Simplify code.
42707         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
42708         ignore dependencies that are not among the modules list.
42710 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
42712         gnulib-tool: don't follow dependencies to avoided modules
42713         This fixes a bug that is related to the previous one.
42714         * gnulib-tool (func_modules_transitive_closure)
42715         (func_emit_autoconf_snippets):
42716         Check whether a dependency is acceptable before using it.
42717         (--extract-dependencies): Report an error if --avoid is also used,
42718         since this combination of options is not yet supported.
42720         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
42721         Problem reported by Peter Dyballa in
42722         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
42723         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
42724         when echoing "$condition".
42726 2011-10-07  Bruno Haible  <bruno@clisp.org>
42728         Fix documentation about math functions on MacOS X.
42729         * doc/posix-functions/exp2.texi: Don't say the function is missing on
42730         MacOS X 10.5.
42731         * doc/posix-functions/fdim.texi: Likewise.
42732         * doc/posix-functions/feclearexcept.texi: Likewise.
42733         * doc/posix-functions/fegetenv.texi: Likewise.
42734         * doc/posix-functions/fegetround.texi: Likewise.
42735         * doc/posix-functions/feholdexcept.texi: Likewise.
42736         * doc/posix-functions/feraiseexcept.texi: Likewise.
42737         * doc/posix-functions/fesetenv.texi: Likewise.
42738         * doc/posix-functions/fesetround.texi: Likewise.
42739         * doc/posix-functions/fetestexcept.texi: Likewise.
42740         * doc/posix-functions/feupdateenv.texi: Likewise.
42741         * doc/posix-functions/fmax.texi: Likewise.
42742         * doc/posix-functions/fmin.texi: Likewise.
42743         * doc/posix-functions/log2.texi: Likewise.
42744         * doc/posix-functions/modff.texi: Likewise.
42745         * doc/posix-functions/nan.texi: Likewise.
42746         * doc/posix-functions/nanf.texi: Likewise.
42747         * doc/posix-functions/nextafterf.texi: Likewise.
42748         * doc/posix-functions/remquo.texi: Likewise.
42750 2011-10-07  Bruno Haible  <bruno@clisp.org>
42752         modff: Drop assumption about library that defines modff.
42753         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
42754         AC_CHECK_FUNCS.
42755         * modules/modff (Files): Add m4/mathfunc.m4.
42757 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
42759         raise tests: Avoid a GCC warning.
42760         * tests/test-raise.c (handler): Use _Noreturn.
42762 2011-10-07  Bruno Haible  <bruno@clisp.org>
42764         Tests for module 'ldexpf'.
42765         * modules/ldexpf-tests: New file.
42766         * tests/test-ldexpf.c: New file.
42768         New module 'ldexpf'.
42769         * lib/math.in.h (ldexpf): New declaration.
42770         * lib/ldexpf.c: New file.
42771         * m4/ldexpf.m4: New file.
42772         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
42773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
42774         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
42775         * modules/ldexpf: New file.
42776         * tests/test-math-c++.cc: Check the declaration of ldexpf.
42777         * doc/posix-functions/ldexpf.texi: Mention the new module.
42779 2011-10-06  Bruno Haible  <bruno@clisp.org>
42781         frexpf: Work around problems on IRIX and mingw.
42782         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
42783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
42784         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
42785         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
42786         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
42787         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
42788         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
42790 2011-10-06  Bruno Haible  <bruno@clisp.org>
42792         fabsf: Drop assumption about library that defines fabsf.
42793         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
42794         AC_CHECK_FUNCS.
42795         * modules/fabsf (Files): Add m4/mathfunc.m4.
42797 2011-10-06  Bruno Haible  <bruno@clisp.org>
42799         frexpf: Drop assumption about library that defines frexpf.
42800         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
42801         'int *', 'float *', 'long double *', 'float', 'long double'.
42802         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
42803         AC_CHECK_FUNCS.
42804         * modules/frexpf (Files): Add m4/mathfunc.m4.
42806         Tests for module 'frexpf'.
42807         * modules/frexpf-tests: New file.
42808         * tests/test-frexpf.c: New file.
42810         New module 'frexpf'.
42811         * lib/math.in.h (frexpf): New declaration.
42812         * lib/frexpf.c: New file.
42813         * m4/frexpf.m4: New file.
42814         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
42815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
42816         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
42817         * modules/frexpf: New file.
42818         * tests/test-math-c++.cc: Check the declaration of frexpf.
42819         * doc/posix-functions/frexpf.texi: Mention the new module.
42821 2011-10-06  Bruno Haible  <bruno@clisp.org>
42823         math: Sort function declarations of math.in.h.
42824         * lib/math.in.h (frexp, logb): Move declarations.
42826 2011-10-05  Bruno Haible  <bruno@clisp.org>
42828         Tests for module 'modff'.
42829         * modules/modff-tests: New file.
42830         * tests/test-modff.c: New file.
42832         New module 'modff'.
42833         * lib/math.in.h (modff): New declaration.
42834         * lib/modff.c: New file.
42835         * m4/modff.m4: New file.
42836         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
42837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
42838         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
42839         * modules/modff: New file.
42840         * tests/test-math-c++.cc: Check the declaration of modff.
42841         * doc/posix-functions/modff.texi: Mention the new module.
42843         modf tests: Make test sharper.
42844         * tests/test-modf.c (main): Strengthen upper bound.
42846         modf: Use a .m4 file.
42847         * m4/modf.m4: New file.
42848         * modules/modf (Files): Add it.
42849         (configure.ac): Just invoke gl_FUNC_MODF.
42851 2011-10-05  Bruno Haible  <bruno@clisp.org>
42853         Tests for module 'fmodf'.
42854         * modules/fmodf-tests: New file.
42855         * tests/test-fmodf.c: New file.
42857         New module 'fmodf'.
42858         * lib/math.in.h (fmodf): New declaration.
42859         * lib/fmodf.c: New file.
42860         * m4/fmodf.m4: New file.
42861         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
42862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
42863         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
42864         * modules/fmodf: New file.
42865         * tests/test-math-c++.cc: Check the declaration of fmodf.
42866         * doc/posix-functions/fmodf.texi: Mention the new module.
42868         fmod: Use a .m4 file.
42869         * m4/fmod.m4: New file.
42870         * modules/fmod (Files): Add it.
42871         (configure.ac): Just invoke gl_FUNC_FMOD.
42873 2011-10-05  Bruno Haible  <bruno@clisp.org>
42875         Tests for module 'fabsf'.
42876         * modules/fabsf-tests: New file.
42877         * tests/test-fabsf.c: New file.
42879         New module 'fabsf'.
42880         * lib/math.in.h (fabsf): New declaration.
42881         * lib/fabsf.c: New file.
42882         * m4/fabsf.m4: New file.
42883         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
42884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
42885         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
42886         * modules/fabsf: New file.
42887         * tests/test-math-c++.cc: Check the declaration of fabsf.
42888         * doc/posix-functions/fabsf.texi: Mention the new module.
42890         fabs: Use a .m4 file.
42891         * m4/fabs.m4: New file.
42892         * modules/fabs (Files): Add it.
42893         (configure.ac): Just invoke gl_FUNC_FABS.
42895 2011-10-05  Jim Meyering  <meyering@redhat.com>
42897         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
42898         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
42899         ls -lL regression introduced in coreutils-8.12, it does so at the
42900         cost of an additional stat call in the common case.  Besides, now
42901         that the kernel change that prompted commit 95f7c57f has been reverted
42902         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
42903         we have no use for commit 95f7c57f, "file-has-acl: use
42904         acl_extended_file_nofollow if available".
42906 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
42908         file-has-acl: revert unintended change in behavior of ls -L
42909         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
42910         derived from...
42911         (file_has_acl): ...code here.  Call it.
42912         This problem was introduced with 2011-07-22 commit 95f7c57f,
42913         "file-has-acl: use acl_extended_file_nofollow if available".
42914         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
42916 2011-10-03  Bruno Haible  <bruno@clisp.org>
42918         poll: Avoid link errors on MSVC.
42919         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
42920         * modules/poll (Depends-on): Add sockets.
42921         (Link): New section.
42922         * NEWS: Mention the change.
42923         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
42924         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
42925         $(LIB_POLL) instead of $(LIBSOCKET).
42927 2011-10-03  Bruno Haible  <bruno@clisp.org>
42929         sys_select tests: Fix link error on MSVC 9.
42930         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
42931         with $(LIB_SELECT) instead of $(LIBSOCKET).
42933 2011-10-03  Bruno Haible  <bruno@clisp.org>
42935         sys_select: Fix compilation error on mingw.
42936         * lib/sys_select.in.h: On native Windows, include <io.h>.
42938 2011-10-03  Bruno Haible  <bruno@clisp.org>
42940         wmemset: Support for MSVC.
42941         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
42942         whether wmemset() exists.
42944 2011-10-03  Bruno Haible  <bruno@clisp.org>
42946         wmemmove: Support for MSVC.
42947         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
42948         whether wmemmove() exists.
42950 2011-10-03  Bruno Haible  <bruno@clisp.org>
42952         wmemcpy: Support for MSVC.
42953         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
42954         whether wmemcpy() exists.
42956 2011-10-03  Bruno Haible  <bruno@clisp.org>
42958         wmemcmp: Support for MSVC.
42959         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
42960         whether wmemcmp() exists.
42962 2011-10-03  Bruno Haible  <bruno@clisp.org>
42964         wmemchr: Support for MSVC.
42965         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
42966         whether wmemchr() exists.
42968 2011-10-03  Bruno Haible  <bruno@clisp.org>
42970         glthread/*, strsignal: Support for MSVC.
42971         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
42972         including <winsock.h> on MSVC 9.
42973         * lib/glthread/lock.h: Likewise.
42974         * lib/glthread/thread.h: Likewise.
42975         * lib/glthread/tls.h: Likewise.
42976         * lib/glthread/yield.h: Likewise.
42977         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
42978         if HAVE_UNISTD_H is false.
42979         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
42981 2011-10-03  Bruno Haible  <bruno@clisp.org>
42983         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
42984         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
42985         Set to 100000.
42987 2011-10-03  Bruno Haible  <bruno@clisp.org>
42989         acl: Fix specification.
42990         * lib/file-has-acl.c (file_has_acl): Fix specification.
42992 2011-10-03  Bruno Haible  <bruno@clisp.org>
42994         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
42995         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
42996         (compute_curr_prefix, shared_library_fullname,
42997         find_shared_library_fullname, get_shared_library_fullname, relocate):
42998         Use it together with PIC && INSTALLDIR.
42999         Reported by <jojelino@gmail.com>
43000         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
43002 2011-10-01  Jim Meyering  <meyering@redhat.com>
43004         maint.mk: adjust a release-related rule not to require use of gzip
43005         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
43006         Instead, check each file in $(DIST_ARCHIVES).  This is better for
43007         projects that build only .tar.xz files.  Also fix an erroneous test.
43009         test-linkat: don't leave behind a temporary file
43010         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
43011         Otherwise, coreutils' "make distcheck" would fail with this:
43012           Only in /c/cu/tests/torture/coreutils/test/\
43013             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
43014           make[2]: *** [my-distcheck] Error 1
43016         float, math: add omitted file
43017         * lib/itold.c: Add file, required for yesterday's float change.
43019 2011-10-01  Bruno Haible  <bruno@clisp.org>
43021         isinf: Fix for OpenBSD/x86.
43022         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
43023         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
43024         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
43026 2011-10-01  Bruno Haible  <bruno@clisp.org>
43028         isfinite: Fix syntax error in configure test.
43029         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
43031         isfinite: Fix typo.
43032         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
43033         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
43035 2011-10-01  Bruno Haible  <bruno@clisp.org>
43037         nonblocking tests: Fix test failure on Linux/IA-64.
43038         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
43039         Set to 270000.
43041 2011-10-01  Bruno Haible  <bruno@clisp.org>
43043         mkfifoat tests: Fix a test failure on mingw.
43044         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
43045         with error ENOSYS.
43047 2011-09-30  Bruno Haible  <bruno@clisp.org>
43049         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
43050         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
43051         'long double'. Set REPLACE_ITOLD.
43052         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
43053         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
43054         * lib/itold.c: New file.
43055         * modules/float (Files): Add lib/itold.c.
43056         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
43057         (Makefile.am): Substitute REPLACE_ITOLD.
43058         * modules/math (Depends-on): Add float.
43059         (Makefile.am): Substitute REPLACE_ITOLD.
43060         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
43061         * doc/posix-headers/math.texi: Likewise.
43062         * doc/posix-functions/logl.texi: Likewise.
43064 2011-09-30  Bruno Haible  <bruno@clisp.org>
43066         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
43067         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
43068         Set to 140000.
43070 2011-09-30  Bruno Haible  <bruno@clisp.org>
43072         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
43073         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
43074         invocation, say "right after AC_PROG_CC_STDC", not "right after
43075         AC_PROG_CC".
43076         Reported by Gary V. Vaughan <gary@gnu.org>.
43078 2011-09-30  Bruno Haible  <bruno@clisp.org>
43080         Centralize C99 requirement.
43081         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
43082         * modules/stdarg (configure.ac-early): Invoke it instead of
43083         AC_PROG_CC_STDC.
43084         Reported by Gary V. Vaughan and Paul Eggert.
43086 2011-09-29  Bruno Haible  <bruno@clisp.org>
43088         float: Fix LDBL_MAX value on Linux/PowerPC.
43089         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
43090         on Linux/PowerPC.
43091         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
43092         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
43093         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
43094         platform.
43095         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
43097 2011-09-29  Bruno Haible  <bruno@clisp.org>
43099         doc: Improve doc about gl_EARLY.
43100         * doc/gnulib-tool.texi (Initial import): Mention where to place an
43101         AC_PROG_CC_STDC invocation.
43102         Reported by Gary V. Vaughan <gary@gnu.org>.
43104 2011-09-28  Bruno Haible  <bruno@clisp.org>
43106         fgetc, fputc, fread, fwrite tests: Fix link error.
43107         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
43108         on non-MSVC platforms.
43109         * tests/test-fputc.c (main): Likewise.
43110         * tests/test-fread.c (main): Likewise.
43111         * tests/test-fwrite.c (main): Likewise.
43112         Reported by Jim Meyering.
43114 2011-09-27  Bruno Haible  <bruno@clisp.org>
43116         fputc, fwrite tests: Avoid test failure on MSVC.
43117         * tests/test-fgetc.c: Include msvc-inval.h.
43118         (main): Invoke gl_msvc_inval_ensure_handler.
43119         * tests/test-fputc.c: Include msvc-inval.h.
43120         (main): Invoke gl_msvc_inval_ensure_handler.
43121         * tests/test-fread.c: Include msvc-inval.h.
43122         (main): Invoke gl_msvc_inval_ensure_handler.
43123         * tests/test-fwrite.c: Include msvc-inval.h.
43124         (main): Invoke gl_msvc_inval_ensure_handler.
43125         * modules/fgetc-tests (Depends-on): Add msvc-inval.
43126         * modules/fputc-tests (Depends-on): Likewise.
43127         * modules/fread-tests (Depends-on): Likewise.
43128         * modules/fwrite-tests (Depends-on): Likewise.
43130 2011-09-27  Bruno Haible  <bruno@clisp.org>
43132         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
43133         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
43134         (raise): Remove older, duplicated declaration.
43135         (_gl_raise_SIGPIPE): New declaration.
43136         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
43137         (rpl_raise): Remove function.
43138         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
43139         a gnulib-defined SIGPIPE here.
43140         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
43141         'sigprocmask' has detected missing signal-blocking and the module
43142         'sigpipe' is enabled.
43143         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
43145 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
43147         base64-tests: avoid memory leak
43148         * tests/test-base64.c (main): Plug memory leak.
43150         base32: new module
43151         * modules/base32: New module.
43152         * lib/base32.c: New file.
43153         * lib/base32.h: Likewise.
43154         * m4/base32.m4: Likewise.
43155         * modules/base32-tests: New test.
43156         * tests/test-base32.c: Likewise.
43157         * MODULES.html.sh (Misc): Mention it.
43159 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43161         gnulib: use more-standard license notice wording
43162         * gnulib-tool (func_emit_copyright_notice): When emitting a
43163         license notice into a file, use the standard wording as suggested
43164         by the current information for GNU maintainers, except say "file"
43165         rather than "program".  The new wording gives a license version
43166         number, which addresses an issue raised by Glenn Morris in
43167         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
43168         * m4/onceonly.m4: Use that same wording here, too.
43170         dup2: minor simplification
43171         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
43172         as lib/dup2.c no longer uses 'inline'.
43174 2011-09-25  Bruno Haible  <bruno@clisp.org>
43176         strings: Fix compilation error on MSVC.
43177         * lib/strings.in.h: Include <stddef.h> for size_t.
43179 2011-09-25  Bruno Haible  <bruno@clisp.org>
43181         fflush et al.: Document limitation on MSVC.
43182         * doc/posix-functions/fflush.texi: Document possible crash in handling
43183         mode other than DEFAULT_HANDLING.
43184         * doc/posix-functions/fgetc.texi: Likewise.
43185         * doc/posix-functions/fputc.texi: Likewise.
43186         * doc/posix-functions/fread.texi: Likewise.
43187         * doc/posix-functions/fwrite.texi: Likewise.
43189 2011-09-25  Bruno Haible  <bruno@clisp.org>
43191         msvc-inval: Allow three invalid parameter handling modes.
43192         * lib/msvc-inval.h: Don't include <stdlib.h> here.
43193         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
43194         macros.
43195         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
43196         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
43197         SANE_LIBRARY_HANDLING as a no-op.
43198         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
43199         <stdlib.h>.
43200         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
43202 2011-09-25  Bruno Haible  <bruno@clisp.org>
43204         msvc-inval: Make handler multithread-safe.
43205         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
43206         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
43207         declarations.
43208         (gl_msvc_inval_current): New declaration.
43209         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43210         Operate on the structure returned by gl_msvc_inval_current().
43211         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
43212         Remove varaiables.
43213         (tls_index, tls_initialized): New variables.
43214         (not_per_thread): New variable.
43215         (gl_msvc_inval_current): New function.
43216         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
43217         returned by gl_msvc_inval_current().
43219 2011-09-25  Bruno Haible  <bruno@clisp.org>
43221         msvc-inval: Install handler globally.
43222         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
43223         !_MSC_VER.
43224         (gl_msvc_invalid_parameter_handler): Remove declaration.
43225         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
43226         declarations.
43227         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43228         Install the handler globally, don't uninstall it.
43229         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
43230         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
43231         currently valid, call RaiseException instead.
43232         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
43233         for !_MSC_VER.
43235 2011-09-25  Bruno Haible  <bruno@clisp.org>
43237         strerror_r-posix: Fix for MSVC 9.
43238         * lib/strerror_r.c (local_snprintf): New function.
43239         (snprintf): Define to local_snprintf, not to _snprintf.
43241 2011-09-25  Bruno Haible  <bruno@clisp.org>
43243         ftruncate: Support for MSVC 9.
43244         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
43245         (chsize_nothrow): New function.
43246         (chsize): Redefine as a macro.
43247         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
43248         * modules/ftruncate (Depends-on): Add msvc-inval.
43250 2011-09-25  Bruno Haible  <bruno@clisp.org>
43252         New module 'fstat'.
43253         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
43254         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
43255         * lib/fchdir.c (rpl_fstat): Remove function.
43256         * m4/fstat.m4: New file.
43257         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
43258         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
43259         declared.
43260         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
43261         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
43262         * modules/fstat: New file.
43263         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
43264         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
43265         is set.
43266         * doc/posix-functions/fstat.texi: Mention the new module and the
43267         problem on MSVC.
43268         * NEWS: Mention the change.
43269         * modules/acl (Depends-on): Add fstat.
43270         * modules/chdir-safer (Depends-on): Likewise.
43271         * modules/chown (Depends-on): Likewise.
43272         * modules/copy-file (Depends-on): Likewise.
43273         * modules/fchdir (Depends-on): Likewise.
43274         * modules/fdopendir (Depends-on): Likewise.
43275         * modules/fopen (Depends-on): Likewise.
43276         * modules/fts (Depends-on): Likewise.
43277         * modules/getcwd (Depends-on): Likewise.
43278         * modules/isapipe (Depends-on): Likewise.
43279         * modules/linkat (Depends-on): Likewise.
43280         * modules/lseek (Depends-on): Likewise.
43281         * modules/mkdir-p (Depends-on): Likewise.
43282         * modules/open (Depends-on): Likewise.
43283         * modules/openat (Depends-on): Likewise.
43284         * modules/read-file (Depends-on): Likewise.
43285         * modules/renameat (Depends-on): Likewise.
43286         * modules/utimens (Depends-on): Likewise.
43288 2011-09-25  Bruno Haible  <bruno@clisp.org>
43290         linkat: Fix compilation on MSVC 9.
43291         * lib/linkat.c: Don't include <stdint.h>.
43293 2011-09-25  Bruno Haible  <bruno@clisp.org>
43295         fclose: Support for MSVC 9.
43296         * lib/fclose.c: Include msvc-inval.h.
43297         (fclose_nothrow): New function.
43298         (rpl_fclose): Use it.
43299         * modules/fclose (Depends-on): Add msvc-inval.
43300         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
43302 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
43304         dup2: minor simplifications
43305         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
43306         that it's a performance win.
43307         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
43308         ! defined __CYGWIN__)" to "ifdef F_GETFL".
43310 2011-09-24  Jim Meyering  <meyering@redhat.com>
43312         test-futimens: avoid a warning from gcc -Wshadow
43313         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
43314         to avoid a shadowing warning.
43316 2011-09-24  Bruno Haible  <bruno@clisp.org>
43318         fdopen: Support for MSVC 9.
43319         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
43320         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
43321         * lib/fdopen.c: Include msvc-inval.h.
43322         (fdopen_nothrow): New function.
43323         (rpl_fdopen): Use it.
43324         * modules/fdopen (Depends-on): Add msvc-inval.
43325         * modules/fclose-tests (Depends-on): Add fdopen.
43326         * modules/fflush-tests (Depends-on): Likewise.
43327         * modules/fgetc-tests (Depends-on): Likewise.
43328         * modules/fputc-tests (Depends-on): Likewise.
43329         * modules/fread-tests (Depends-on): Likewise.
43330         * modules/freopen-tests (Depends-on): Likewise.
43331         * modules/fseeko-tests (Depends-on): Likewise.
43332         * modules/ftello-tests (Depends-on): Likewise.
43333         * modules/fwrite-tests  (Depends-on): Likewise.
43334         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
43336 2011-09-24  Bruno Haible  <bruno@clisp.org>
43338         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
43339         * modules/fgetc-tests (Depends-on): Add unistd.
43340         * modules/fputc-tests (Depends-on): Likewise.
43341         * modules/fread-tests (Depends-on): Likewise.
43342         * modules/fwrite-tests (Depends-on): Likewise.
43344 2011-09-24  Bruno Haible  <bruno@clisp.org>
43346         dup: Simplify autoconf test.
43347         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
43348         on gl_MSVC_INVAL's result.
43350 2011-09-24  Bruno Haible  <bruno@clisp.org>
43352         Tests for function fwrite().
43353         * modules/fwrite-tests: New file.
43354         * tests/test-fwrite.c: New file.
43355         * modules/stdio-tests (Depends-on): Add fwrite-tests.
43357         Tests for function fread().
43358         * modules/fread-tests: New file.
43359         * tests/test-fread.c: New file.
43360         * modules/stdio-tests (Depends-on): Add fread-tests.
43362         Activate fputc tests.
43363         * modules/stdio-tests (Depends-on): Add fputc-tests.
43365         Enhance fgetc, fputc tests.
43366         * tests/test-fgetc.c (main): Also test the stream's error indicator.
43367         * tests/test-fputc.c (main): Likewise.
43369 2011-09-24  Bruno Haible  <bruno@clisp.org>
43371         write: Support for MSVC 9.
43372         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43373         is not 1.
43374         * lib/write.c (write_nothrow): New function.
43375         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
43376         not 1. Use write_nothrow.
43377         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
43378         invalid parameter handler.
43379         (gl_PREREQ_WRITE): New macro.
43380         * modules/write (Depends-on): Add msvc-inval.
43381         (configure.ac): Invoke gl_PREREQ_WRITE.
43382         * doc/posix-functions/write.texi: Mention the problem on MSVC.
43384 2011-09-24  Bruno Haible  <bruno@clisp.org>
43386         read: Fix last commit.
43387         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
43389 2011-09-24  Bruno Haible  <bruno@clisp.org>
43391         dup2: Fix last commit.
43392         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
43393         (rpl_dup2): Disable fcntl workaround on native Windows.
43395         sigprocmask: Make code safer.
43396         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
43397         section that changes macro definitions for this compilation unit.
43399 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
43401         dup2: clarify by coalescing Windows-specific material
43402         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
43403         "msvc-nothrow.h"' to the Windows-specific section, so that the
43404         Emacs source need not contain these include files.
43405         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
43406         Windows-specific fixes into this function rather than just the
43407         nothrow fix, as this shortens and clarifies the code.  Always
43408         define as a function, as that's a bit cleaner than having it be
43409         sometimes a function and sometimes a macro.
43410         (rpl_dup2): Move the Windows-specific stuff out of here and into
43411         ms_windows_dup2.  Don't protect the Haiku-related fix with
43412         "#if !defined __linux__", as the same code also works around
43413         a Linux kernel bug, and it doesn't add any system calls on any
43414         platform.  Add comment about FreeBSD 6.1.
43416         sigprocmask: move #include directive
43417         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
43418         Windows-specific section, so that the Emacs source need not
43419         contain msvc-inval.h.
43421 2011-09-23  Bruno Haible  <bruno@clisp.org>
43423         read: Support for MSVC 9.
43424         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43425         is not 1.
43426         * lib/read.c (read_nothrow): New function.
43427         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
43428         read_nothrow.
43429         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
43430         invalid parameter handler.
43431         (gl_PREREQ_READ): New macro.
43432         * modules/read (Depends-on): Add msvc-inval.
43433         (configure.ac): Invoke gl_PREREQ_READ.
43434         * doc/posix-functions/read.texi: Mention the problem on MSVC.
43436 2011-09-23  Bruno Haible  <bruno@clisp.org>
43438         close: Support for MSVC 9.
43439         * lib/close.c: Include <errno.h>, msvc-inval.h.
43440         (close_nothrow): New function.
43441         (rpl_close): Use it.
43442         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
43443         invalid parameter handler.
43444         * modules/close (Depends-on): Add msvc-inval.
43445         * modules/dup2-tests (Depends-on): Add close.
43446         * modules/dup3-tests (Depends-on): Likewise.
43447         * modules/fcntl-tests (Depends-on): Likewise.
43448         * modules/spawn-pipe-tests (Depends-on): Likewise.
43449         * modules/unistd-safer-tests (Depends-on): Likewise.
43450         * doc/posix-functions/close.texi: Mention the problem on MSVC.
43452 2011-09-23  Bruno Haible  <bruno@clisp.org>
43454         New module 'dup'.
43455         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
43456         Allow replacement.
43457         * lib/dup.c: New file.
43458         * lib/fchdir.c (rpl_dup): Remove function.
43459         * m4/dup.m4: New file.
43460         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
43461         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
43462         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
43463         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
43464         * modules/dup: New file.
43465         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
43466         'dup' module is in use.
43467         * modules/fdopendir (Depends-on): Add dup.
43468         * modules/fdutimensat-tests (Depends-on): Likewise.
43469         * modules/fts (Depends-on): Likewise.
43470         * modules/futimens-tests (Depends-on): Likewise.
43471         * modules/posix_spawnp-tests (Depends-on): Likewise.
43472         * modules/unistd-safer-tests (Depends-on): Likewise.
43473         * modules/utimens-tests (Depends-on): Likewise.
43474         * doc/posix-functions/dup.texi: Mention the new module and the problem
43475         on MSVC.
43477 2011-09-23  Bruno Haible  <bruno@clisp.org>
43479         getdtablesize: Support for MSVC 9.
43480         * lib/getdtablesize.c: Include msvc-inval.h.
43481         (_setmaxstdio_nothrow): New function.
43482         (_setmaxstdio): Redefine it.
43483         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
43484         * modules/getdtablesize (Depends-on): Add msvc-inval.
43485         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
43487 2011-09-23  Bruno Haible  <bruno@clisp.org>
43489         signal-h: Rename from signal.
43490         * modules/signal-h: Renamed from modules/signal.
43491         * modules/pthread_sigmask (Depends-on): Update.
43492         * modules/raise (Depends-on): Likewise.
43493         * modules/sigaction (Depends-on): Likewise.
43494         * modules/sigpipe (Depends-on): Likewise.
43495         * modules/sigprocmask (Depends-on): Likewise.
43496         * modules/sys_select (Depends-on): Likewise.
43497         * modules/signal-h-tests: Renamed from modules/signal-tests.
43498         (Files, Depends-on, Makefile.am): Update.
43499         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
43500         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
43501         (Files, Makefile.am): Update.
43502         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
43503         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
43504         * modules/signal: New placeholder file.
43505         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
43506         * doc/posix-headers/signal.texi: Update.
43507         * NEWS: Mention the change.
43509 2011-09-23  Bruno Haible  <bruno@clisp.org>
43511         sigprocmask: Avoid crashes through signal() on MSVC 9.
43512         * lib/sigprocmask.c: Include msvc-inval.h.
43513         (signal_nothrow): New function.
43514         (signal): Redefine it.
43515         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
43516         * modules/sigprocmask (Depends-on): Add msvc-inval.
43517         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
43519 2011-09-23  Bruno Haible  <bruno@clisp.org>
43521         Tests for module 'raise'.
43522         * modules/raise-tests: New file.
43523         * tests/test-raise.c: New file.
43525         raise: Support for MSVC.
43526         * lib/signal.in.h (raise): New declaration.
43527         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
43528         for native Windows platforms.
43529         * m4/raise.m4: New file.
43530         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
43531         HAVE_RAISE, REPLACE_RAISE.
43532         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
43533         REPLACE_RAISE.
43534         * modules/raise (Status, Notice): Remove fields.
43535         (Files): Add m4/raise.m4.
43536         (Depends-on): Add signal, msvc-inval.
43537         (configure.ac): Use the common idioms.
43538         (Maintainer): Add me.
43539         * tests/test-signal-c++.cc: Check the signature of raise.
43540         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
43542 2011-09-23  Bruno Haible  <bruno@clisp.org>
43544         pipe2: Fix compilation on pre-C99 compilers.
43545         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
43547 2011-09-23  Bruno Haible  <bruno@clisp.org>
43549         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
43550         * lib/msvc-nothrow.h: New file.
43551         * lib/msvc-nothrow.c: New file.
43552         * m4/msvc-nothrow.m4: New file.
43553         * modules/msvc-nothrow: New file.
43554         * lib/dup2.c: Include msvc-nothrow.h.
43555         (rpl_dup2): No need to protect _get_osfhandle call here.
43556         * lib/accept4.c: Include msvc-nothrow.h.
43557         * lib/error.c: Likewise.
43558         * lib/fcntl.c: Likewise.
43559         * lib/lseek.c: Likewise.
43560         * lib/nonblocking.c: Likewise.
43561         * lib/poll.c: Likewise.
43562         * lib/read.c: Likewise.
43563         * lib/select.c: Likewise.
43564         * lib/sockets.h: Likewise.
43565         * lib/sockets.c: Likewise.
43566         * lib/stdio-read.c: Likewise.
43567         * lib/stdio-write.c: Likewise.
43568         * lib/write.c: Likewise.
43569         * lib/w32sock.h: Likewise.
43570         * lib/w32spawn.h: Likewise.
43571         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
43572         * lib/fsync.c: Likewise.
43573         * lib/isapipe.c: Likewise.
43574         * modules/dup2 (Depends-on): Add msvc-nothrow.
43575         * modules/accept4 (Depends-on): Likewise.
43576         * modules/error (Depends-on): Likewise.
43577         * modules/fcntl (Depends-on): Likewise.
43578         * modules/lseek (Depends-on): Likewise.
43579         * modules/nonblocking (Depends-on): Likewise.
43580         * modules/poll (Depends-on): Likewise.
43581         * modules/read (Depends-on): Likewise.
43582         * modules/select (Depends-on): Likewise.
43583         * modules/sockets (Depends-on): Likewise.
43584         * modules/sigpipe (Depends-on): Likewise.
43585         * modules/write (Depends-on): Likewise.
43586         * modules/accept (Depends-on): Likewise.
43587         * modules/bind (Depends-on): Likewise.
43588         * modules/connect (Depends-on): Likewise.
43589         * modules/gethostname (Depends-on): Likewise.
43590         * modules/getpeername (Depends-on): Likewise.
43591         * modules/getsockname (Depends-on): Likewise.
43592         * modules/getsockopt (Depends-on): Likewise.
43593         * modules/ioctl (Depends-on): Likewise.
43594         * modules/listen (Depends-on): Likewise.
43595         * modules/recv (Depends-on): Likewise.
43596         * modules/recvfrom (Depends-on): Likewise.
43597         * modules/send (Depends-on): Likewise.
43598         * modules/sendto (Depends-on): Likewise.
43599         * modules/setsockopt (Depends-on): Likewise.
43600         * modules/shutdown (Depends-on): Likewise.
43601         * modules/socket (Depends-on): Likewise.
43602         * modules/execute (Depends-on): Likewise.
43603         * modules/spawn-pipe (Depends-on): Likewise.
43604         * modules/flock (Depends-on): Likewise.
43605         * modules/fsync (Depends-on): Likewise.
43606         * modules/isapipe (Depends-on): Likewise.
43607         * tests/test-cloexec.c: Include msvc-nothrow.h.
43608         * tests/test-dup-safer.c: Likewise.
43609         * tests/test-dup2.c: Likewise.
43610         * tests/test-dup3.c: Likewise.
43611         * tests/test-fcntl.c: Likewise.
43612         * tests/test-pipe.c: Likewise.
43613         * tests/test-pipe2.c: Likewise.
43614         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
43615         * modules/unistd-safer-tests (Depends-on): Likewise.
43616         * modules/dup2-tests (Depends-on): Likewise.
43617         * modules/dup3-tests (Depends-on): Likewise.
43618         * modules/fcntl-tests (Depends-on): Likewise.
43619         * modules/pipe-posix-tests (Depends-on): Likewise.
43620         * modules/pipe2-tests (Depends-on): Likewise.
43622 2011-09-23  Bruno Haible  <bruno@clisp.org>
43624         dup2: Make code more maintainable.
43625         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
43626         (rpl_dup2): Use it.
43627         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
43628         * modules/dup2 (configure.ac): Invoke it.
43629         Reported by Paul Eggert.
43631 2011-09-23  Bruno Haible  <bruno@clisp.org>
43633         msvc-inval: Fix compilation error.
43634         * lib/msvc-inval.h: Include <excpt.h>.
43636 2011-09-23  Bruno Haible  <bruno@clisp.org>
43638         mkdir: Tweak for MSVC 9.
43639         * lib/sys_stat.in.h: Update comments.
43640         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
43642         Tests for module 'chdir'.
43643         * modules/chdir-tests: New file.
43644         * tests/test-chdir.c: New file.
43646         New module 'chdir'.
43647         * modules/chdir: New file.
43648         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
43649         (chdir): New declaration.
43650         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
43651         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
43652         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
43653         * tests/test-unistd-c++.cc: Check signature of chdir.
43654         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
43655         * modules/chdir-long (Depends-on): Add chdir.
43656         * modules/fchdir (Depends-on): Likewise.
43657         * modules/rename (Depends-on): Likewise.
43658         * modules/savewd (Depends-on): Likewise.
43660         rmdir: Support for mingw, MSVC 9.
43661         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
43662         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
43664         getcwd: Tweak for MSVC 9.
43665         * lib/unistd.in.h: Update comments.
43666         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
43668 2011-09-22  Bruno Haible  <bruno@clisp.org>
43670         strerror_r-posix: Avoid a link error on MSVC.
43671         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
43672         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
43674 2011-09-22  Bruno Haible  <bruno@clisp.org>
43676         select: Avoid link errors on MSVC.
43677         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
43678         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
43679         * modules/pselect (Link): Likewise.
43680         * NEWS: Mention the change.
43681         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
43682         test-select-stdin against $(LIB_SELECT).
43683         * modules/pselect-tests (Makefile.am): Link test-pselect against
43684         $(LIB_SELECT).
43686 2011-09-22  Bruno Haible  <bruno@clisp.org>
43688         select: Avoid compilation error on MSVC.
43689         * lib/select.c: Don't include <stdbool.h>.
43691 2011-09-21  Bruno Haible  <bruno@clisp.org>
43693         Consolidate all uses of PATH_MAX in *.m4 files.
43694         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
43695         macros.
43696         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
43697         and gl_PATHMAX_SNIPPET.
43698         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
43699         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43700         * modules/chdir-long (Files): Add m4/pathmax.m4.
43701         * modules/getcwd (Files): Likewise.
43703 2011-09-21  Bruno Haible  <bruno@clisp.org>
43705         ftruncate: Un-deprecate, concentrate on Win32 support.
43706         * modules/ftruncate (Status, Notice): Remove sections.
43707         (Depends-on): Add largefile.
43708         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
43709         non-mingw platforms.
43710         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
43711         include <io.h>.
43712         * modules/perror-tests (Depends-on): Add ftruncate.
43713         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
43714         'ftruncate' module.
43716 2011-09-21  Bruno Haible  <bruno@clisp.org>
43718         Add dependencies to new dirent related modules.
43719         * modules/opendir (Depends-on): Add closedir.
43720         * modules/getcwd (Depends-on): Add opendir, closedir.
43721         * modules/dirent-safer-tests (Depends-on): Likewise.
43722         * modules/fdopendir-tests (Depends-on): Likewise.
43723         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
43724         * modules/renameat-tests (Depends-on): Likewise.
43726 2011-09-21  Bruno Haible  <bruno@clisp.org>
43728         opendir: Avoid compilation error on mingw.
43729         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
43730         * modules/opendir (Depends-on): Add unistd.
43732 2011-09-21  Bruno Haible  <bruno@clisp.org>
43734         ftruncate tests: Avoid a test failure on mingw.
43735         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
43737 2011-09-21  Bruno Haible  <bruno@clisp.org>
43739         select tests: Avoid test failures on OSF/1 5.1 and mingw.
43740         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
43741         native Windows.
43743 2011-09-21  Bruno Haible  <bruno@clisp.org>
43745         New module 'fdopen'.
43746         * lib/stdio.in.h (fdopen): New declaration.
43747         * lib/fdopen.c: New file.
43748         * m4/fdopen.m4: New file.
43749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
43750         REPLACE_FDOPEN.
43751         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
43752         REPLACE_FDOPEN.
43753         * modules/fdopen: New file.
43754         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
43755         * tests/test-stdio-c++.cc: Check signature of fdopen.
43756         * doc/posix-functions/fdopen.texi: Mention the new module.
43758 2011-09-21  Bruno Haible  <bruno@clisp.org>
43760         unlockpt tests: Avoid test failure on NetBSD 5.1.
43761         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
43762         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
43764 2011-09-21  Bruno Haible  <bruno@clisp.org>
43766         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
43767         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
43768         * tests/test-getlogin_r.c (main): Likewise.
43770 2011-09-20  Bruno Haible  <bruno@clisp.org>
43772         time tests: Don't require pid_t.
43773         * doc/posix-headers/time.texi: Revert last change.
43774         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
43775         * tests/test-time.c: Comment out the check for pid_t.
43777 2011-09-20  Bruno Haible  <bruno@clisp.org>
43779         fsync tests: Avoid a test failure on mingw.
43780         * tests/test-fsync.c (main): Allow a failure with EIO.
43782 2011-09-20  Bruno Haible  <bruno@clisp.org>
43784         euidaccess: Update comments.
43785         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
43787 2011-09-20  Bruno Haible  <bruno@clisp.org>
43789         Ensure EBADF returns for socket functions on mingw.
43790         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
43791         descriptor is invalid.
43792         * lib/bind.c (rpl_bind): Likewise.
43793         * lib/connect.c (rpl_connect): Likewise.
43794         * lib/getpeername.c (rpl_getpeername): Likewise.
43795         * lib/getsockname.c (rpl_getsockname): Likewise.
43796         * lib/getsockopt.c (rpl_getsockopt): Likewise.
43797         * lib/listen.c (rpl_listen): Likewise.
43798         * lib/recv.c (rpl_recv): Likewise.
43799         * lib/recvfrom.c (rpl_recvfrom): Likewise.
43800         * lib/send.c (rpl_send): Likewise.
43801         * lib/sendto.c (rpl_sendto): Likewise.
43802         * lib/setsockopt.c (rpl_setsockopt): Likewise.
43803         * lib/shutdown.c (rpl_shutdown): Likewise.
43805 2011-09-20  Bruno Haible  <bruno@clisp.org>
43807         select tests: EBADF tests.
43808         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
43809         test_bad_fd): New functions.
43810         (test_function): Invoke also test_bad_fd.
43812 2011-09-20  Bruno Haible  <bruno@clisp.org>
43814         Tests for module 'posix_spawn_file_actions_addopen.
43815         * modules/posix_spawn_file_actions_addopen-tests: New file.
43816         * tests/test-posix_spawn_file_actions_addopen.c: New file.
43818         Tests for module 'posix_spawn_file_actions_adddup2'.
43819         * modules/posix_spawn_file_actions_adddup2-tests: New file.
43820         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
43822         Tests for module 'posix_spawn_file_actions_addclose'.
43823         * modules/posix_spawn_file_actions_addclose-tests: New file.
43824         * tests/test-posix_spawn_file_actions_addclose.c: New file.
43826 2011-09-20  Bruno Haible  <bruno@clisp.org>
43828         Tests for module 'unlockpt'.
43829         * modules/unlockpt-tests: New file.
43830         * tests/test-unlockpt.c: New file.
43831         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
43833         Tests for module 'grantpt'.
43834         * modules/grantpt-tests: New file.
43835         * tests/test-grantpt.c: New file.
43836         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
43838 2011-09-20  Bruno Haible  <bruno@clisp.org>
43840         freopen tests: EBADF tests.
43841         * tests/test-freopen.c: Include errno.h, unistd.h.
43842         (main): Add tests for EBADF, commented out for the moment.
43844         fclose tests: EBADF tests.
43845         * tests/test-fclose.c (main): Add tests for EBADF.
43847         fflush tests: EBADF tests.
43848         * tests/test-fflush.c: Include errno.h, macros.h.
43849         (main): Add tests for EBADF.
43851         ftello tests: EBADF tests.
43852         * tests/test-ftello4.sh: New file.
43853         * tests/test-ftello4.c: New file.
43854         * modules/ftello-tests (Files): Add them.
43855         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
43857         fseeko tests: EBADF tests.
43858         * tests/test-fseeko4.sh: New file.
43859         * tests/test-fseeko4.c: New file.
43860         * modules/fseeko-tests (Files): Add them.
43861         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
43863         Tests for function fputc().
43864         * modules/fputc-tests: New file.
43865         * tests/test-fputc.c: New file.
43866         * modules/stdio-tests (Depends-on): Add fputc-tests.
43868         Tests for function fgetc().
43869         * modules/fgetc-tests: New file.
43870         * tests/test-fgetc.c: New file.
43871         * modules/stdio-tests (Depends-on): Add fgetc-tests.
43873         Tests for function fdopen().
43874         * modules/fdopen-tests: New file.
43875         * tests/test-fdopen.c: New file.
43876         * modules/stdio-tests (Depends-on): Add fdopen-tests.
43878         Tests for module 'vdprintf'.
43879         * modules/vdprintf-tests: New file.
43880         * tests/test-vdprintf.c: New file.
43882         Tests for module 'dprintf'.
43883         * modules/dprintf-tests: New file.
43884         * tests/test-dprintf.c: New file.
43886 2011-09-20  Bruno Haible  <bruno@clisp.org>
43888         Tests for module 'ioctl'.
43889         * modules/ioctl-tests: New file.
43890         * tests/test-ioctl.c: New file.
43892 2011-09-20  Bruno Haible  <bruno@clisp.org>
43894         fcntl tests: EBADF tests.
43895         * tests/test-fcntl.c (main): Add more tests for EBADF.
43897 2011-09-20  Bruno Haible  <bruno@clisp.org>
43899         utimensat tests: EBADF tests.
43900         * tests/test-utimensat.c (main): Add tests for EBADF.
43902         renameat tests: EBADF tests.
43903         * tests/test-renameat.c (main): Add tests for EBADF.
43905         mkfifoat tests: EBADF tests.
43906         * tests/test-mkfifoat.c (main): Add tests for EBADF.
43908         readlinkat tests: EBADF tests.
43909         * tests/test-readlinkat.c (main): Add tests for EBADF.
43911         symlinkat tests: EBADF tests.
43912         * tests/test-symlinkat.c (main): Add tests for EBADF.
43914         linkat tests: EBADF tests.
43915         * tests/test-linkat.c (main): Add tests for EBADF.
43917         Tests for module 'faccessat'.
43918         * modules/faccessat-tests: New file.
43919         * tests/test-faccessat.c: New file.
43921         fdopendir tests: EBADF tests.
43922         * tests/test-fdopendir.c (main): Add more tests for EBADF.
43924         openat tests: EBADF tests.
43925         * tests/test-fchownat.c (main): Add tests for EBADF.
43926         * tests/test-fstatat.c (main): Likewise.
43927         * tests/test-mkdirat.c (main): Likewise.
43928         * tests/test-openat.c (main): Likewise.
43929         * tests/test-unlinkat.c (main): Likewise.
43930         * tests/test-fchmodat.c: New file.
43931         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
43932         (Makefile.am): Also run 'test-fchmodat'.
43934 2011-09-20  Bruno Haible  <bruno@clisp.org>
43936         utimens, futimens, fdutimensat tests: EBADF tests.
43937         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
43939         Tests for function fstat().
43940         * modules/fstat-tests: New file.
43941         * tests/test-fstat.c: New file.
43942         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
43944 2011-09-20  Bruno Haible  <bruno@clisp.org>
43946         test-ttyname_r tests: EBADF tests.
43947         * tests/test-ttyname_r.c (main): Add tests for EBADF.
43949         Tests for module 'isatty'.
43950         * modules/isatty-tests: New file.
43951         * tests/test-isatty.c: New file.
43953         Tests for module 'write'.
43954         * modules/write-tests: New file.
43955         * tests/test-write.c: New file.
43957         Tests for module 'read'.
43958         * modules/read-tests: New file.
43959         * tests/test-read.c: New file.
43961         pwrite tests: EBADF tests.
43962         * tests/test-pwrite.c (main): Add tests for EBADF.
43964         pread tests: EBADF tests.
43965         * tests/test-pread.c (main): Add tests for EBADF.
43967         lseek tests: EBADF tests.
43968         * tests/test-lseek.c (main): Add more tests for EBADF.
43970         Tests for module 'ftruncate'.
43971         * modules/ftruncate-tests: New file.
43972         * tests/test-ftruncate.sh: New file.
43973         * tests/test-ftruncate.c: New file.
43975         fsync tests: EBADF tests.
43976         * tests/test-fsync.c (main): Add more tests for EBADF.
43978         fdatasync tests: EBADF tests.
43979         * tests/test-fdatasync.c (main): Add more tests for EBADF.
43981         Tests for module 'fchown'.
43982         * modules/fchown-tests: New file.
43983         * tests/test-fchown.c: New file.
43985         Tests for module 'fchmod'.
43986         * modules/fchmod-tests: New file.
43987         * tests/test-fchmod.c: New file.
43989         fchdir tests: EBADF tests.
43990         * tests/test-fchdir.c (main): Add more tests for EBADF.
43992         dup2 tests: EBADF tests.
43993         * tests/test-dup2.c (main): Add more tests for EBADF.
43995         Tests for module 'dup'.
43996         * modules/dup-tests: New file.
43997         * tests/test-dup.c: New file.
43999         Tests for module 'close'.
44000         * modules/close-tests: New file.
44001         * tests/test-close.c: New file.
44003 2011-09-20  Bruno Haible  <bruno@clisp.org>
44005         Tests for module 'shutdown'.
44006         * modules/shutdown-tests: New file.
44007         * tests/test-shutdown.c: New file.
44009         Tests for module 'setsockopt'.
44010         * modules/setsockopt-tests: New file.
44011         * tests/test-setsockopt.c: New file.
44013         Tests for module 'sendto'.
44014         * modules/sendto-tests: New file.
44015         * tests/test-sendto.c: New file.
44017         Tests for module 'send'.
44018         * modules/send-tests: New file.
44019         * tests/test-send.c: New file.
44021         Tests for module 'recvfrom'.
44022         * modules/recvfrom-tests: New file.
44023         * tests/test-recvfrom.c: New file.
44025         Tests for module 'recv'.
44026         * modules/recv-tests: New file.
44027         * tests/test-recv.c: New file.
44029         Tests for module 'listen'.
44030         * modules/listen-tests: New file.
44031         * tests/test-listen.c: New file.
44033         Tests for module 'getsockopt'.
44034         * modules/getsockopt-tests: New file.
44035         * tests/test-getsockopt.c: New file.
44037         Tests for module 'getsockname'.
44038         * modules/getsockname-tests: New file.
44039         * tests/test-getsockname.c: New file.
44041         Tests for module 'getpeername'.
44042         * modules/getpeername-tests: New file.
44043         * tests/test-getpeername.c: New file.
44045         Tests for module 'connect'.
44046         * modules/connect-tests: New file.
44047         * tests/test-connect.c: New file.
44049         Tests for module 'bind'.
44050         * modules/bind-tests: New file.
44051         * tests/test-bind.c: New file.
44053         accept4 tests: Fix for native Windows.
44054         * tests/test-accept4.c: Include sockets.h.
44055         (main): Invoke gl_sockets_startup.
44056         * modules/accept4-tests (Depends-on): Add sockets.
44058         accept tests: Fix for native Windows.
44059         * tests/test-accept.c: Include sockets.h.
44060         (main): Invoke gl_sockets_startup.
44061         * modules/accept-tests (Depends-on): Add sockets.
44063 2011-09-19  Bruno Haible  <bruno@clisp.org>
44065         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
44066         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
44067         do...while(0).
44068         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
44069         Suggested by Paul Eggert.
44071 2011-09-19  Bruno Haible  <bruno@clisp.org>
44073         sched: Ensure pid_t is defined.
44074         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
44075         not define pid_t.
44076         * lib/sched.in.h: Include <sys/types.h>.
44077         * doc/posix-headers/sched.texi: Mention the pid_t problem.
44078         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44080 2011-09-19  Bruno Haible  <bruno@clisp.org>
44082         msvc-inval: Ensure the entire expansion is a single statement.
44083         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
44084         of braces.
44086 2011-09-19  Jim Meyering  <meyering@redhat.com>
44088         tests: use printf, not echo in init.sh's warn_ function
44089         * tests/init.sh (warn_): Use printf, not echo.  The latter would
44090         misbehave when given strings containing a backslash or starting
44091         with e.g., -n.  James Youngman suggested setting IFS.
44093 2011-09-19  Eric Blake  <eblake@redhat.com>
44095         futimens: enhance test
44096         * tests/test-futimens.h (test_futimens): Also check for EBADF on
44097         closed non-negative fd.
44099         date: accept 'hence' as opposite of 'ago'
44100         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
44101         * tests/test-parse-datetime.c (main): Enhance test.
44102         Suggested by Jesse Wilson.
44104 2011-09-19  Jim Meyering  <meyering@redhat.com>
44106         getcwd: don't fail in a deep directory on a system without openat
44107         Before this change, getcwd would fail when called from a directory
44108         of depth PATH_MAX / 3 or greater.  That was due to the fact that
44109         the non-openat implementation used "..", "../..", "../../..", etc.
44110         to access ancestor directories.  With too many, that string would
44111         be longer than PATH_MAX.
44112         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
44113         using gnulib's openat replacement.
44114         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
44115         we're using the replacement function.
44117 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
44119         maint.mk: avoid warnings from perl about missing files
44120         * top/maint.mk (def_sym_regex): Ignore files listed in
44121         $(gl_other_headers_) that do not exist, say because a project
44122         does not use a corresponding module.
44124 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44126         stat: use pathmax.h only if needed
44127         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
44128         This is better for Emacs, which does not have a mingw port and
44129         therefore can avoid the pathmax module.
44131         utimens: remove dependency on dup2
44132         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
44133         to work around the Linux kernel bug.
44134         * modules/utimens (Depends-on): Remove dup2.
44136 2011-09-18  Bruno Haible  <bruno@clisp.org>
44138         inet_ntop, inet_pton: Look for it also in libresolv.
44139         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
44140         libnsl, search for it in libresolv.
44141         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44142         Needed on Solaris 7.
44144 2011-09-18  Bruno Haible  <bruno@clisp.org>
44146         accept, accept4 tests: Avoid link error on Solaris.
44147         * modules/accept-tests (Makefile.am): Link test-accept against
44148         $(LIBSOCKET).
44149         * modules/accept4-tests (Makefile.am): Link test-accept4 against
44150         $(LIBSOCKET).
44152         accept4: Avoid link error on Solaris.
44153         * modules/accept4 (Link): New section.
44155         socket functions: Avoid link errors on Solaris.
44156         * modules/accept (Depends-on): Add socketlib.
44157         (Link): New section.
44158         * modules/bind (Depends-on): Add socketlib.
44159         (Link): New section.
44160         * modules/connect (Depends-on): Add socketlib.
44161         (Link): New section.
44162         * modules/getpeername (Depends-on): Add socketlib.
44163         (Link): New section.
44164         * modules/getsockname (Depends-on): Add socketlib.
44165         (Link): New section.
44166         * modules/getsockopt (Depends-on): Add socketlib.
44167         (Link): New section.
44168         * modules/listen (Depends-on): Add socketlib.
44169         (Link): New section.
44170         * modules/recv (Depends-on): Add socketlib.
44171         (Link): New section.
44172         * modules/recvfrom (Depends-on): Add socketlib.
44173         (Link): New section.
44174         * modules/send (Depends-on): Add socketlib.
44175         (Link): New section.
44176         * modules/sendto (Depends-on): Add socketlib.
44177         (Link): New section.
44178         * modules/setsockopt (Depends-on): Add socketlib.
44179         (Link): New section.
44180         * modules/shutdown (Depends-on): Add socketlib.
44181         (Link): New section.
44182         * modules/socket (Depends-on): Add socketlib.
44183         (Link): New section.
44185 2011-09-18  Bruno Haible  <bruno@clisp.org>
44187         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
44188         * tests/test-ptsname.c (main): Terminate the test if it takes longer
44189         than 5 seconds.
44190         * modules/ptsname-tests (configure.ac): Test for alarm.
44192 2011-09-18  Bruno Haible  <bruno@clisp.org>
44194         posix_spawn_file_actions_add*: Fix module dependencies.
44195         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
44196         posix_spawn_file_actions_init.
44197         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
44198         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
44200 2011-09-18  Bruno Haible  <bruno@clisp.org>
44202         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
44203         * tests/test-rename.h (test_rename): Allow error code EEXIST.
44204         * tests/test-renameat.c (main): Likewise.
44206 2011-09-18  Bruno Haible  <bruno@clisp.org>
44208         Tests for module 'accept4'.
44209         * modules/accept4-tests: New file.
44210         * tests/test-accept4.c: New file.
44212 2011-09-18  Bruno Haible  <bruno@clisp.org>
44214         Tests for module 'accept'.
44215         * modules/accept-tests: New file.
44216         * tests/test-accept.c: New file.
44218 2011-09-18  Bruno Haible  <bruno@clisp.org>
44220         dup2: Support for MSVC.
44221         * lib/dup2.c: Include msvc-inval.h.
44222         (rpl_dup2): Handle invalid parameter notifications during dup2 and
44223         _get_osfhandle calls.
44224         * modules/dup2 (Depends-on): Add msvc-inval.
44225         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
44227         New module 'msvc-inval'.
44228         * lib/msvc-inval.h: New file.
44229         * lib/msvc-inval.c: New file.
44230         * m4/msvc-inval.m4: New file.
44231         * modules/msvc-inval: New file.
44233 2011-09-17  Bruno Haible  <bruno@clisp.org>
44235         Tests for module 'pclose'.
44236         * modules/pclose-tests: New file.
44238         New module 'pclose'.
44239         * lib/stdio.in.h (pclose): New declaration.
44240         * lib/pclose.c: New file.
44241         * m4/pclose.m4: New file.
44242         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
44243         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
44244         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
44245         * modules/pclose: New file.
44246         * modules/popen-tests (Depends-on): Add pclose.
44247         * modules/popen-safer-tests (Depends-on): Likewise.
44248         * doc/posix-functions/pclose.texi: Mention the new module.
44250 2011-09-17  Bruno Haible  <bruno@clisp.org>
44252         popen: Support for MSVC.
44253         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
44254         * lib/popen.c (popen): Provide alternate definition for native Windows.
44255         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
44256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
44257         * modules/popen (Depends-on, configure.ac): Update condition.
44258         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
44259         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
44260         fixed.
44262 2011-09-17  Bruno Haible  <bruno@clisp.org>
44264         isnanl, isnand, isnanf: Work around MSVC bug.
44265         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
44267 2011-09-17  Bruno Haible  <bruno@clisp.org>
44269         sys_socket tests: Fix recent mistake.
44270         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
44272 2011-09-17  Bruno Haible  <bruno@clisp.org>
44274         putenv: Support for MSVC.
44275         * modules/putenv (Depends-on): Add environ.
44276         * lib/putenv.c (environ): Disable declaration.
44277         * lib/unistd.in.h: Update comment.
44279 2011-09-17  Bruno Haible  <bruno@clisp.org>
44281         math: Avoid macro redefinition warnings on MSVC.
44282         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
44283         Undefine before redefining.
44285 2011-09-17  Bruno Haible  <bruno@clisp.org>
44287         doc: Mention functions which are declared as macros.
44288         * doc/posix-functions/*[fl].texi: Mention that some functions are
44289         defined as macros with arguments only.
44291 2011-09-17  Bruno Haible  <bruno@clisp.org>
44293         Add dependencies to new dirent related modules.
44294         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
44295         * modules/fts (Depends-on): Likewise.
44296         * modules/glob (Depends-on): Likewise.
44297         * modules/savedir (Depends-on): Likewise.
44298         * modules/scandir (Depends-on): Likewise.
44299         * modules/dirent-safer (Depends-on): Add opendir, closedir.
44300         * modules/fdopendir (Depends-on): Add opendir.
44302 2011-09-17  Bruno Haible  <bruno@clisp.org>
44304         inet_pton: Support for MSVC on Windows Vista or newer.
44305         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
44306         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
44307         HAVE_DECL_INET_PTON is defined.
44308         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44309         On platforms with <winsock2.h>, test whether inet_pton is declared in
44310         <ws2tcpip.h>. If so, arrange to replace it.
44311         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44312         REPLACE_INET_PTON.
44313         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
44314         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
44315         (Depends-on, configure.ac): Update condition.
44316         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
44318 2011-09-17  Bruno Haible  <bruno@clisp.org>
44320         inet_ntop: Support for MSVC on Windows Vista or newer.
44321         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
44322         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
44323         HAVE_DECL_INET_NTOP is defined.
44324         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44325         On platforms with <winsock2.h>, test whether inet_ntop is declared in
44326         <ws2tcpip.h>. If so, arrange to replace it.
44327         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44328         REPLACE_INET_NTOP.
44329         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
44330         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
44331         (Depends-on, configure.ac): Update condition.
44332         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
44334 2011-09-16  Eric Blake  <eblake@redhat.com>
44336         test-fsync: yet another enhancement
44337         * tests/test-fsync.c (main): Also test behavior on read-only text
44338         file.
44340 2011-09-16  Bruno Haible  <bruno@clisp.org>
44342         Enhance fsync, fdatasync tests.
44343         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
44344         * tests/test-fdatasync.c (main): Likewise.
44346 2011-09-16  Bruno Haible  <bruno@clisp.org>
44348         Support for MSVC compiler: Ensure mode_t gets defined.
44349         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
44350         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44351         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
44352         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
44353         * tests/test-fcntl-h.c: Check that mode_t is defined.
44354         * tests/test-sys_stat.c: Likewise.
44355         * tests/test-sys_types.c: Likewise.
44356         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
44357         * doc/posix-headers/sys_stat.texi: Likewise.
44358         * doc/posix-headers/sys_types.texi: Likewise.
44360 2011-09-16  Bruno Haible  <bruno@clisp.org>
44362         sys_stat: Support for MSVC.
44363         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
44364         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
44365         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
44366         MSVC.
44368 2011-09-16  Bruno Haible  <bruno@clisp.org>
44370         Support for MSVC compiler: Ensure off_t gets defined.
44371         * lib/unistd.in.h: Include <sys/types.h>.
44372         * tests/test-fcntl-h.c: Check that off_t is defined.
44373         * tests/test-sys_stat.c: Likewise.
44374         * tests/test-sys_types.c: Likewise.
44376 2011-09-16  Eric Blake  <eblake@redhat.com>
44378         fdatasync: port to Solaris
44379         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
44380         * modules/fdatasync (Link): Document it.
44381         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
44383         fdatasync: port to MacOS X 10.7
44384         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
44385         declared.
44386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
44387         * modules/unistd (Makefile.am): Substitute it.
44388         * lib/unistd.in.h (fdatasync): Declare on MacOS.
44389         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
44391         fdatasync: minor improvements
44392         * modules/fdatasync (Depends-on): Add condition for fsync.
44393         * lib/fdatasync.c (fdatasync): Add comment.
44394         * tests/test-unistd-c++.cc: Test fdatasync.
44396         unistd: update refs to newer POSIX
44397         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
44398         Suggested by Bruno Haible.
44400         fdatasync: new module
44401         * modules/fsync (Description): Document difference to fdatasync.
44402         * modules/fdatasync: New module.
44403         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
44404         * lib/fdatasync.c (fdatasync): Likewise.
44405         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
44406         defaults.
44407         * modules/unistd (Makefile.am): Set witnesses.
44408         * lib/unistd.in.h (fdatasync): Declare.
44409         * MODULES.html.sh: Document it.
44410         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
44411         * modules/fdatasync-tests: New test.
44412         * tests/test-fdatasync.c: Likewise.
44414 2011-09-16  Eric Blake  <eblake@redhat.com>
44416         test-fsync: enhance tests
44417         * modules/fsync-tests (Depends-on): Add errno, for mingw.
44418         * tests/test-fsync.c (main): Enhance test.
44420 2011-09-15  Bruno Haible  <bruno@clisp.org>
44422         Support for MSVC compiler: Ensure ssize_t gets defined.
44423         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
44424         * doc/posix-headers/stdio.texi: Likewise.
44425         * modules/stdio (Depends-on): Add ssize_t.
44426         * modules/sys_socket (Depends-on): Likewise.
44427         * modules/sys_types (Depends-on): Likewise.
44428         * modules/sys_uio (Depends-on): Likewise.
44429         * modules/unistd (Depends-on): Likewise.
44430         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
44431         * tests/test-sys_types.c: Check that ssize_t is defined.
44433 2011-09-14  Bruno Haible  <bruno@clisp.org>
44435         Avoid using #, the m4 comment starter character, near brackets.
44436         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
44437         delimiter character in sed expressions.
44438         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
44439         Suggested by Eric Blake.
44441         Properly quote AC_CHECK_DECLS' 4th argument.
44442         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
44443         argument.
44444         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44445         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
44446         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44447         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
44448         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44449         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
44450         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
44451         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
44452         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
44453         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44454         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
44455         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44456         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44457         * m4/isinf.m4 (gl_ISINF): Likewise.
44458         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
44459         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44460         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44461         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44462         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44463         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
44464         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
44465         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
44466         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
44467         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
44468         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
44469         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44470         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
44471         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44473         Reported by Eric Blake.
44475         Properly quote AC_CHECK_DECL's 4th argument.
44476         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
44477         argument.
44478         * m4/argp.m4 (gl_ARGP): Likewise.
44479         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
44480         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
44481         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
44482         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
44483         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
44484         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
44485         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
44486         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
44487         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44488         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
44489         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
44490         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
44491         Reported by Eric Blake.
44493 2011-09-14  Eric Blake  <eblake@redhat.com>
44495         opendir: avoid compile warning
44496         * lib/opendir.c (includes): Always include errno.h.
44497         Reported by Tatsuro MATSUOKA.
44499 2011-09-14  Jim Meyering  <meyering@redhat.com>
44501         maint.mk: sc_tight_scope: propagate failure from sub-make
44502         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
44503         Reported by Martin von Gagern.
44505 2011-09-13  Bruno Haible  <bruno@clisp.org>
44507         tempname: Support for MSVC.
44508         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
44509         MSVC.
44510         * modules/tempname (Depends-on): Add fcntl-h.
44512 2011-09-13  Bruno Haible  <bruno@clisp.org>
44514         sys_time: Support for MSVC.
44515         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
44516         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
44517         include <winsock2.h>.
44518         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
44519         function declarations that collide with POSIX.
44520         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
44521         (Makefile.am): Substitute HAVE_WINSOCK2_H.
44523 2011-09-13  Bruno Haible  <bruno@clisp.org>
44525         stat: Support for MSVC.
44526         * lib/stat.c: Include pathmax.h.
44527         * modules/stat (Depends-on): Add pathmax.
44529         pathmax: Support for native Windows.
44530         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
44532 2011-09-12  Bruno Haible  <bruno@clisp.org>
44534         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
44535         * lib/dirent.in.h (struct dirent): New type.
44536         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
44537         DT_WHT): New macros.
44538         (DIR): New type.
44539         (opendir, closedir): Declare only if the module 'opendir' is enabled.
44540         (readdir, rewinddir): New declarations.
44541         * lib/dirent-private.h: New file.
44542         * lib/opendir.c: New file.
44543         * lib/readdir.c: New file.
44544         * lib/rewinddir.c: New file.
44545         * lib/closedir.c: New file.
44546         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
44547         * m4/opendir.m4: New file.
44548         * m4/readdir.m4: New file.
44549         * m4/rewinddir.m4: New file.
44550         * m4/closedir.m4: New file.
44551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
44552         REPLACE_CLOSEDIR here.
44553         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
44554         readdir, rewinddir are declared.
44555         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
44556         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
44557         HAVE_REWINDDIR, HAVE_CLOSEDIR.
44558         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
44559         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
44560         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
44561         * modules/opendir: New file.
44562         * modules/readdir: New file.
44563         * modules/rewinddir: New file.
44564         * modules/closedir: New file.
44565         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
44566         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
44567         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
44568         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
44569         * NEWS: Mention the 'fchdir' change.
44571 2011-09-11  Bruno Haible  <bruno@clisp.org>
44573         asm-underscore.m4: Support for MSVC.
44574         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
44575         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
44577 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
44579         Doc about crypt functions.
44580         * doc/posix-functions/crypt.texi: Expand range of glibc versions
44581         needing for _GNU_SOURCE to get crypt.
44582         * doc/posix-functions/encrypt.texi: Likewise.
44583         * doc/posix-functions/setkey.texi: Likewise.
44585 2011-09-11  Bruno Haible  <bruno@clisp.org>
44587         doc: Update regarding MSVC 9.
44588         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
44589         tested".
44590         * doc/posix-functions/*.texi: Update with info about MSVC 9.
44591         * doc/posix-headers/*.texi: Likewise.
44592         * doc/pastposix-functions/*.texi: Likewise.
44593         * doc/glibc-functions/*.texi: Likewise.
44594         * doc/glibc-headers/*.texi: Likewise.
44596 2011-09-11  Bruno Haible  <bruno@clisp.org>
44598         unistd et al.: Don't assume <unistd.h> exists.
44599         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
44600         does not exist.
44601         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
44602         exist. But include <stdlib.h>.
44603         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
44604         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
44605         symlink() does not exist.
44606         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
44607         include <io.h> instead.
44608         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
44609         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
44610         include <direct.h> instead.
44611         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
44612         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44613         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
44614         <io.h> instead.
44615         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
44616         correctly if the system does not have hard links.
44617         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
44618         <direct.h> instead.
44619         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
44620         it when looking for function declarations.
44621         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
44622         <direct.h> and <io.h> instead.
44623         * doc/posix-headers/unistd.texi: More details about MSVC problem.
44625 2011-09-11  Bruno Haible  <bruno@clisp.org>
44627         strcase: Support for MSVC.
44628         * modules/strcase (Status, Notice): Remove obsoletion mark.
44629         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
44630         * doc/posix-functions/strncasecmp.texi: Likewise.
44632         strings: Don't assume <strings.h> exists.
44633         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
44634         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
44635         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
44636         * doc/posix-headers/strings.texi: Mention the MSVC problem.
44638 2011-09-11  Bruno Haible  <bruno@clisp.org>
44640         dirent: Don't assume <dirent.h> exists.
44641         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
44642         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
44643         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
44644         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
44646 2011-09-11  Bruno Haible  <bruno@clisp.org>
44648         Fix wint_t on MSVC.
44649         * lib/wchar.in.h (wint_t): On MSVC, override it.
44650         * lib/wctype.in.h (wint_t): Likewise.
44651         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
44652         MSVC.
44653         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
44654         * doc/posix-headers/wctype.texi: Likewise.
44656 2011-09-11  Bruno Haible  <bruno@clisp.org>
44658         sys_types: Fix typo.
44659         * lib/sys_types.in.h: Fix typo in comment.
44660         Reported by Paul Eggert.
44662         Support for MSVC compiler: Ensure size_t gets defined.
44663         * modules/strings (Depends-on): Add 'sys_types'.
44664         * modules/sys_uio (Depends-on): Likewise.
44665         * lib/sys_uio.in.h: Update comment.
44667         C++ tests for module 'sys_types'.
44668         * modules/sys_types-c++-tests: New file.
44669         * tests/test-sys_types-c++.cc: New file.
44671         Tests for module 'sys_types'.
44672         * modules/sys_types-tests: New file.
44673         * tests/test-sys_types.c: New file.
44675         New module 'sys_types'.
44676         * lib/sys_types.in.h: New file.
44677         * m4/sys_types_h.m4: New file.
44678         * modules/sys_types: New file.
44679         * doc/posix-headers/sys_types.texi: Mention the new module and the
44680         size_t problem on MSVC 9.
44682 2011-09-11  Bruno Haible  <bruno@clisp.org>
44684         Support for MSVC compiler: Avoid division by a literal 0.
44685         * lib/math.in.h (NAN): Define through a function call also on MSVC.
44686         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
44687         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
44688         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
44689         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
44690         * tests/infinity.h: New file.
44691         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
44692         on MSVC.
44693         * tests/test-ceilf1.c: Include infinity.h.
44694         (main): Use Infinityf.
44695         * tests/test-ceil1.c: Include infinity.h.
44696         (main): Use Infinityd.
44697         * tests/test-ceill.c: Include infinity.h.
44698         (main): Use Infinityl.
44699         * tests/test-dprintf-posix.c: Include infinity.h.
44700         (test_function): Use Infinityd.
44701         * tests/test-floorf1.c: Include infinity.h.
44702         (main): Use Infinityf.
44703         * tests/test-floor1.c: Include infinity.h.
44704         (main): Use Infinityd.
44705         * tests/test-floorl.c: Include infinity.h.
44706         (main): Use Infinityl.
44707         * tests/test-fprintf-posix.c: Include infinity.h.
44708         (test_function): Use Infinityd.
44709         * tests/test-frexp.c: Include infinity.h.
44710         (main): Use Infinityd.
44711         * tests/test-frexpl.c: Include infinity.h.
44712         (main): Use Infinityl.
44713         * tests/test-isfinite.c: Include infinity.h.
44714         (test_isfinitef): Use Infinityf.
44715         (test_isfinited): Use Infinityd.
44716         (test_isfinitel): Use Infinityl.
44717         * tests/test-isinf.c: Include infinity.h.
44718         (test_isinff): Use Infinityf.
44719         (test_isinfd): Use Infinityd.
44720         (test_isinfl): Use Infinityl.
44721         * tests/test-isnan.c: Include infinity.h.
44722         (test_float): Use Infinityf.
44723         (test_double): Use Infinityd.
44724         (test_long_double): Use Infinityl.
44725         * tests/test-isnanf.h: Include infinity.h.
44726         (main): Use Infinityf.
44727         * tests/test-isnand.h: Include infinity.h.
44728         (main): Use Infinityd.
44729         * tests/test-isnanl.h: Include infinity.h.
44730         (main): Use Infinityl.
44731         * tests/test-ldexpl.c: Include infinity.h.
44732         (main): Use Infinityl.
44733         * tests/test-printf-posix.h: Include infinity.h.
44734         (test_function): Use Infinityd.
44735         * tests/test-roundf1.c: Include infinity.h.
44736         (main): Use Infinityf.
44737         * tests/test-round1.c: Include infinity.h.
44738         (main): Use Infinityd.
44739         * tests/test-roundl.c: Include infinity.h.
44740         (main): Use Infinityl.
44741         * tests/test-signbit.c: Include infinity.h.
44742         (test_signbitf): Use Infinityf.
44743         (test_signbitd): Use Infinityd.
44744         (test_signbitl): Use Infinityl.
44745         * tests/test-snprintf-posix.h: Include infinity.h.
44746         (test_function): Use Infinityd, Infinityl.
44747         * tests/test-sprintf-posix.h: Include infinity.h.
44748         (test_function): Use Infinityd, Infinityl.
44749         * tests/test-truncf1.c: Include infinity.h.
44750         (main): Use Infinityf.
44751         * tests/test-trunc1.c: Include infinity.h.
44752         (main): Use Infinityd.
44753         * tests/test-truncl.c: Include infinity.h.
44754         (main): Use Infinityl.
44755         * tests/test-vasnprintf-posix.c: Include infinity.h.
44756         (test_function): Use Infinityd, Infinityl.
44757         * tests/test-vasprintf-posix.c: Include infinity.h.
44758         (test_function): Use Infinityd, Infinityl.
44759         * modules/ceilf-tests (Files): Add tests/infinity.h.
44760         * modules/ceil-tests (Files): Likewise.
44761         * modules/ceill-tests (Files): Likewise.
44762         * modules/dprintf-posix-tests (Files): Likewise.
44763         * modules/floorf-tests (Files): Likewise.
44764         * modules/floor-tests (Files): Likewise.
44765         * modules/floorl-tests (Files): Likewise.
44766         * modules/fprintf-posix-tests (Files): Likewise.
44767         * modules/frexp-tests (Files): Likewise.
44768         * modules/frexp-nolibm-tests (Files): Likewise.
44769         * modules/frexpl-tests (Files): Likewise.
44770         * modules/frexpl-nolibm-tests (Files): Likewise.
44771         * modules/isfinite-tests (Files): Likewise.
44772         * modules/isinf-tests (Files): Likewise.
44773         * modules/isnan-tests (Files): Likewise.
44774         * modules/isnanf-tests (Files): Likewise.
44775         * modules/isnanf-nolibm-tests (Files): Likewise.
44776         * modules/isnand-tests (Files): Likewise.
44777         * modules/isnand-nolibm-tests (Files): Likewise.
44778         * modules/isnanl-tests (Files): Likewise.
44779         * modules/isnanl-nolibm-tests (Files): Likewise.
44780         * modules/ldexpl-tests (Files): Likewise.
44781         * modules/printf-posix-tests (Files): Likewise.
44782         * modules/roundf-tests (Files): Likewise.
44783         * modules/round-tests (Files): Likewise.
44784         * modules/roundl-tests (Files): Likewise.
44785         * modules/signbit-tests (Files): Likewise.
44786         * modules/snprintf-posix-tests (Files): Likewise.
44787         * modules/sprintf-posix-tests (Files): Likewise.
44788         * modules/truncf-tests (Files): Likewise.
44789         * modules/trunc-tests (Files): Likewise.
44790         * modules/truncl-tests (Files): Likewise.
44791         * modules/vasnprintf-posix-tests (Files): Likewise.
44792         * modules/vasprintf-posix-tests (Files): Likewise.
44793         * modules/vdprintf-posix-tests (Files): Likewise.
44794         * modules/vfprintf-posix-tests (Files): Likewise.
44795         * modules/vprintf-posix-tests (Files): Likewise.
44796         * modules/vsnprintf-posix-tests (Files): Likewise.
44797         * modules/vsprintf-posix-tests (Files): Likewise.
44798         * modules/xprintf-posix-tests (Files): Likewise.
44800 2011-09-11  Bruno Haible  <bruno@clisp.org>
44802         Ensure pid_t gets defined.
44803         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
44804         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
44805         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
44806         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44807         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
44808         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
44809         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
44810         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44811         * tests/test-fcntl-h.c: Check that pid_t is defined.
44812         * tests/test-sched.c: Likewise.
44813         * tests/test-termios.c: Likewise.
44814         * tests/test-time.c: Likewise.
44815         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
44816         * doc/posix-headers/signal.texi: Likewise.
44817         * doc/posix-headers/sys_types.texi: Likewise.
44818         * doc/posix-headers/time.texi: Likewise.
44820 2011-09-11  Bruno Haible  <bruno@clisp.org>
44822         acl: Fix compilation on Solaris 10 (older version).
44823         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
44824         of ACE_EVERYONE.
44825         * lib/set-mode-acl.c (qset_acl): Likewise.
44826         Reported by Christian Jullien <eligis@orange.fr>.
44828 2011-09-10  Bruno Haible  <bruno@clisp.org>
44830         iconv, unsetenv: Add support for MSVC compiler.
44831         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
44832         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
44834 2011-09-10  Bruno Haible  <bruno@clisp.org>
44836         *printf: Add support for MSVC compiler.
44837         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
44838         handles the exception caused by the %n directive. When cross-compiling,
44839         guess no on native Windows.
44840         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
44841         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
44842         emulate it through vsnprintf.
44843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
44844         * doc/posix-functions/dprintf.texi: Update documentation regarding
44845         MSVC 9.
44846         * doc/posix-functions/fprintf.texi: Likewise.
44847         * doc/posix-functions/printf.texi: Likewise.
44848         * doc/posix-functions/snprintf.texi: Likewise.
44849         * doc/posix-functions/sprintf.texi: Likewise.
44850         * doc/posix-functions/swprintf.texi: Likewise.
44851         * doc/posix-functions/vdprintf.texi: Likewise.
44852         * doc/posix-functions/vfprintf.texi: Likewise.
44853         * doc/posix-functions/vprintf.texi: Likewise.
44854         * doc/posix-functions/vsnprintf.texi: Likewise.
44855         * doc/posix-functions/vsprintf.texi: Likewise.
44856         * doc/glibc-functions/asprintf.texi: Likewise.
44857         * doc/glibc-functions/obstack_printf.texi: Likewise.
44858         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
44859         * doc/glibc-functions/vasprintf.texi: Likewise.
44861 2011-09-10  Bruno Haible  <bruno@clisp.org>
44863         nocrash: Add support for native Windows.
44864         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
44866 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
44867             Bruno Haible  <bruno@clisp.org>
44869         absolute-header, include-next: Add support for MSVC compiler.
44870         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
44871         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
44872         directory separator in #line directives.
44873         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
44874         recognize also backslash as directory separator in #line directives.
44876 2011-09-08  Jim Meyering  <meyering@redhat.com>
44878         maint.mk: mark the post-release commit log with "maint: " prefix
44879         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
44880         one-line commit-log summary.
44882 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
44883             Bruno Haible  <bruno@clisp.org>
44885         Doc about crypt functions.
44886         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
44887         systems.
44888         * doc/posix-functions/encrypt.texi: Likewise.
44889         * doc/posix-functions/setkey.texi: Likewise.
44891 2011-09-08  Simon Josefsson  <simon@josefsson.org>
44893         * lib/gc.h: Fix copyright header.
44895 2011-09-07  Bruno Haible  <bruno@clisp.org>
44897         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
44898         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
44899         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
44901 2011-09-07  Bruno Haible  <bruno@clisp.org>
44903         openat: Work around compilation error with OSF/1 5.1 DTK cc.
44904         * lib/fopen.c: Use different syntax for include of <stdio.h>.
44905         * lib/freopen.c: Likewise.
44906         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
44907         * lib/lstat.c: Likewise.
44908         * lib/stat.c: Likewise.
44909         * lib/open.c: Use different syntax for include of <fcntl.h>.
44910         * lib/openat.c: Include fcntl.h again, explicitly.
44912 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
44914         parse-datetime: document the newly accepted format
44915         * doc/parse-datetime.texi (Combined date and time of day items):
44916         New section.
44918 2011-09-06  Bruno Haible  <bruno@clisp.org>
44920         acl: Fix a test failure on newer Solaris 10 with ZFS.
44921         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
44922         ENOSYS as no ACL.
44923         Reported by Jim Meyering.
44925 2011-09-06  Bruno Haible  <bruno@clisp.org>
44927         acl: Update for AIX >= 5.3 with NFS.
44928         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
44929         ENOSYS as no ACL.
44931         acl: Fix a test failure on AIX >= 5.3 with NFS.
44932         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
44933         as no ACL.
44935 2011-09-06  Bruno Haible  <bruno@clisp.org>
44937         acl: Fix a test failure on IRIX 6.5 with NFS.
44938         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
44939         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
44940         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
44941         * lib/copy-acl.c (qcopy_acl): Likewise.
44943 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
44945         openat: port to AIX 7.1 with large files
44946         AIX 7.1 does a "#define openat open64at" if large files are in use,
44947         so we can't simply #undef openat.  Use the orig_openat trick (similar
44948         to orig_open in lib/open.c) to work around the problem.  Problem
44949         reported by Kevin Brott for GNU tar, in the thread containing
44950         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
44951         * lib/openat.c (__need_system_fcntl_h): Define first.
44952         Include <fcntl.h> and <sys/types.h> before undefining.
44953         (orig_openat) [HAVE_OPENAT]: New inline function.
44954         (openat) [HAVE_OPENAT]: Do not undef.
44955         (rpl_openat): Use orig_openat, not openat.
44957 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
44958             Bruno Haible  <bruno@clisp.org>
44960         acl: Avoid errors on NonStop Kernel.
44961         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
44962         ENOTSUP errors.
44964 2011-09-05  Bruno Haible  <bruno@clisp.org>
44966         acl: Clean up Solaris code.
44967         * lib/acl-internal.h: Remove no-op #if.
44968         * lib/file-has-acl.c: Likewise.
44969         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
44970         * lib/copy-acl.c (qcopy_acl): Likewise.
44972 2011-09-05  Bruno Haible  <bruno@clisp.org>
44974         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
44975         binaries built on the original Solaris 10.
44976         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
44977         trivial.
44979 2011-09-05  Bruno Haible  <bruno@clisp.org>
44981         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
44982         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
44983         10.
44984         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
44985         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
44986         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
44987         instead of acl_get, facl_get, acl_set, facl_set.
44989 2011-09-05  Bruno Haible  <bruno@clisp.org>
44991         copy-file: Try unit tests on more file systems.
44992         * tests/test-copy-file-1.sh: New file.
44993         * tests/test-copy-file-2.sh: New file.
44994         * modules/copy-file-tests (Files): Add them.
44995         (Makefile.am): Add them to TESTS.
44997         acl: Try unit tests on more file systems.
44998         * tests/test-file-has-acl-1.sh: New file.
44999         * tests/test-file-has-acl-2.sh: New file.
45000         * tests/test-set-mode-acl-1.sh: New file.
45001         * tests/test-set-mode-acl-2.sh: New file.
45002         * tests/test-copy-acl-1.sh: New file.
45003         * tests/test-copy-acl-2.sh: New file.
45004         * modules/acl-tests (Files): Add them.
45005         (Makefile.am): Add them to TESTS.
45007 2011-09-04  Bruno Haible  <bruno@clisp.org>
45009         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45010         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
45011         10.
45012         (OLD_ALLOW, OLD_DENY): New macros.
45013         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
45014         ACE_ACCESS_ALLOWED_ACE_TYPE.
45015         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
45016         ACE_ACCESS_DENIED_ACE_TYPE.
45017         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
45018         (NEW_ACE_EXECUTE): Fix value.
45019         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
45020         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
45021         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
45022         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
45023         NEW_ACE_SYNCHRONIZE): New macros.
45024         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
45025         instead of acl_fromtext, acl_set, facl_set.
45026         Fixes a coreutils/tests/cp/perm failure.
45028 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
45030         openat: test for fstatat (..., 0) bug
45031         Further testing with tar suggests that fstatat (..., 0)
45032         does not work in general, on AIX 7.1; see
45033         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
45034         So, give up entirely on AIX 7.1's fstatat, and fall back on our
45035         replacement fstatat (which is what older AIX releases were using
45036         anyway).
45037         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
45038         use is now changed to orig_fstatat.  This was probably the right
45039         thing to do anyway.
45040         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
45041         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
45042         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
45043         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
45044         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
45045         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
45046         if the bug is found.
45048         openat: test for fstatat (AT_FDCWD, ..., 0) bug
45049         This tests for another fstatat bug on AIX 7.1:
45050         fstatat (AT_FDCWD, ..., 0) does not work.  See
45051         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
45052         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
45053         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
45054         (rpl_fstatat): Adjust so that it works around either (or both)
45055         bugs if present.
45056         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
45058 2011-09-03  Karl Berry  <karl@gnu.org>
45060         * doc/regex.texi (Character Class Operators): Avoid literal ":"
45061         in index entries.
45063 2011-09-02  Bruno Haible  <bruno@clisp.org>
45065         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
45066         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
45067         values of AR, ARFLAGS, RANLIB.
45068         Reported by John W. Eaton <jwe@gnu.org> for Octave.
45070 2011-09-02  Bruno Haible  <bruno@clisp.org>
45072         Find 'ar' program that fits with --host argument.
45073         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
45075 2011-09-02  Bruno Haible  <bruno@clisp.org>
45077         tests: init.sh: Support any non-GNU diff.
45078         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
45079         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
45080         Solaris 8.
45082 2011-09-02  Bruno Haible  <bruno@clisp.org>
45084         tests: init.sh: work also with any non-GNU diff that supports -u
45085         * tests/init.sh: Relax check for diff -u support.
45086         Rather than checking for GNU diff via --version, simply check
45087         for support for -u itself.  Useful at least on OpenBSD 4.9,
45088         AIX 7.1, IRIX 6.5, and Solaris 10.
45090 2011-09-01  Bruno Haible  <bruno@clisp.org>
45092         strtoimax, strtoumax: Document problem on HP-UX 11.
45093         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
45094         * doc/posix-functions/strtoumax.texi: Likewise.
45096 2011-09-01  Bruno Haible  <bruno@clisp.org>
45098         strtoumax: Avoid link error on OSF/1 with DTK cc.
45099         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
45100         defined as a function.
45101         * modules/strtoumax (Depends-on, configure.ac): Test only whether
45102         strtoumax is defined, not whether it is declared.
45104 2011-09-01  Bruno Haible  <bruno@clisp.org>
45106         strtoimax: Avoid link error on OSF/1 with DTK cc.
45107         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
45108         defined as a function.
45109         * modules/strtoimax (Depends-on, configure.ac): Test only whether
45110         strtoimax is defined, not whether it is declared.
45112 2011-09-01  Bruno Haible  <bruno@clisp.org>
45114         imaxdiv: Avoid link error on OSF/1 with DTK cc.
45115         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
45116         as a function.
45117         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
45118         whether it is declared.
45120 2011-09-01  Bruno Haible  <bruno@clisp.org>
45122         imaxabs: Avoid link error on OSF/1 with DTK cc.
45123         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
45124         as a function.
45125         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
45126         whether it is declared.
45128 2011-09-01  Bruno Haible  <bruno@clisp.org>
45130         Tests for module 'strtoumax'.
45131         * modules/strtoumax-tests: New file.
45132         * tests/test-strtoumax.c: New file.
45134         Tests for module 'strtoimax'.
45135         * modules/strtoimax-tests: New file.
45136         * tests/test-strtoimax.c: New file.
45138         Tests for module 'imaxdiv'.
45139         * modules/imaxdiv-tests: New file.
45140         * tests/test-imaxdiv.c: New file.
45142         Tests for module 'imaxabs'.
45143         * modules/imaxabs-tests: New file.
45144         * tests/test-imaxabs.c: New file.
45146 2011-09-01  Bruno Haible  <bruno@clisp.org>
45148         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
45149         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
45150         pthread_create.
45152 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45154         openat: work around AIX 7.1 fstatat issue
45155         This should fix the problem that was not properly fixed
45156         in the previous change, dated 2011-08-30.
45157         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
45158         __need_system_stat_h defined.
45159         (orig_fstatat) [HAVE_FSTATAT]: New function.
45160         (rpl_fstatat): Go back to the old way of doing things,
45161         except call orig_fstatat instead of fstatat.
45162         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
45163         Remove unnecessary check whether fstatat fills in st_size etc.
45165 2011-09-01  Bruno Haible  <bruno@clisp.org>
45167         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
45168         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
45169         just include the system's header.
45171 2011-08-31  Jim Meyering  <meyering@redhat.com>
45173         tests: avoid spurious assertion failure in test-float.c on ppc64
45174         * tests/test-float.c (test_long_double): Comment out an assertion,
45175         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
45176         with gcc-4.4.4.
45178         maint: indent with spaces, not TABs
45179         I need to get in the habit of running gnulib's "make check".
45180         Both of these would have been caught.
45181         * m4/largefile.m4: Indent with spaces, not TABs.
45182         * lib/parse-datetime.y (iso_8601_time): Likewise.
45183         Spotted by Pádraig Brady.
45185         test-parse-datetime.c: accommodate a relatively strict gcc warning
45186         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
45187         to avoid a warning from gcc's -Werror=missing-declarations.
45188         Insert a few spaces-before-funcall-parenthesis.
45190 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
45192         parse-datetime: accept ISO 8601 date and time rep with "T" separator
45193         The parser now accepts ISO 8601 date-time strings with "T" as the
45194         separator.  It has long parsed dates like "2004-02-29 16:21:42"
45195         with a space between the date and time strings.  Now it also parses
45196         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
45197         variants like "2004-02-29T16:21:42.333-07:00"
45198         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
45199         of day representation using the 'T' separator character.
45200         * doc/parse-datetime.texi (General date syntax): replace use of
45201         deprecated --iso-8601 option with --rfc-3339 in example of date
45202         command output formats that can be parsed.
45203         * tests/test-parse-datetime.c (tm_diff): New function, taken from
45204         lib/parse-datetime.y.
45205         (gmt_offset): New function.
45206         (main): Add additional test cases to validate ISO8601 extended
45207         date and time of day parsing.
45209 2011-08-31  Bruno Haible  <bruno@clisp.org>
45211         freopen: Documentation.
45212         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
45213         name.
45214         Reported by Claudio Bley <claudio.bley@gmail.com>.
45216 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
45218         freopen: Don't crash if the filename argument is NULL.
45219         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
45220         NULL.
45222 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
45224         openat: work around AIX 7.1 fstatat bug
45225         Problem reported by Kevin Brott for GNU tar, in the thread containing
45226         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
45227         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
45228         FSTATAT_ST_SIZE_ETC_BROKEN.
45229         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
45230         rpl_fstatat.
45231         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
45232         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
45233         AC_CHECK_FUNCS_ONCE for fstatat.
45234         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
45235         fchmodat, mkdirat, openat and unlinkat.
45237 2011-08-30  Bruno Haible  <bruno@clisp.org>
45239         Avoid endless recursions if config.h includes some header files.
45240         * lib/fopen.c (__need_FILE): Define already before including config.h.
45241         * lib/freopen.c (__need_FILE): Likewise.
45242         * lib/open.c (__need_system_fcntl_h): Likewise.
45243         * lib/stat.c (__need_system_sys_stat_h): Likewise.
45244         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
45245         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45247 2011-08-25  Karl Berry  <karl@gnu.org>
45249         * config/srclist.txt (ylwrap): new try.
45250         * build-aux/ylwrap: new file.
45252 2011-08-23  Bruno Haible  <bruno@clisp.org>
45254         tmpdir: Use a good default directory on native Windows.
45255         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
45256         (P_tmpdir): Default to _P_tmpdir on native Windows.
45257         (path_search): On native Windows, try the value returned by GetTempPath
45258         before trying P_tmpdir.
45259         * modules/tmpdir (Depends-on): Add pathmax.
45260         Suggested by John Darrington <john@darrington.wattle.id.au>.
45262 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
45264         doc: fix typo in README-release
45265         * top/README-release: Capitalize first word of a sentence.
45267 2011-08-19  Jim Meyering  <meyering@redhat.com>
45269         fts: do not exhaust memory when processing million-entry directories
45270         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
45271         directory would require about 256*N bytes of memory.  Thus, it was
45272         easy to construct a directory too large to be processed by any of
45273         those tools.  With this change, fts' maximum memory utilization is
45274         now limited to around 30MB.
45275         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
45276         (fts_read): When we've processed the final entry (i.e., when
45277         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
45278         using the parent entry to read any remaining entries.  Dispatch
45279         depending on what fts_build returns:
45280         - NULL+stop, aka failure: stop
45281         - NULL otherwise: move up in the dir hierarchy
45282         - non-NULL: handle this new entry
45283         (fts_build): Declare and use new local, continue_readdir.
45284         Prepare to be called from fts_read, when the entries
45285         from a partially-read directory have just been exhausted.
45286         In that case, we'll skip the opendir and instead use the parent's
45287         fts_dirp and derive dir_fd from that.
45288         Finally, in the readdir loop, if we read max_entries entries,
45289         exit the loop ensuring *not* to call closedir.  This is required
45290         so that fts_dirp can be reused on a subsequent call.
45291         Prompted by Ben England's report of memory exhaustion in find
45292         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
45294         maint: fts: move decl of `dp' down into while loop; split a long line
45295         * lib/fts.c (fts_build): No semantic change.
45297         fts: add/use new struct member, fts_dirp
45298         We are about to use this to manage any directory with
45299         too many entries to read all of them into memory at once.
45300         To do that, we'll need to save the DIR* pointer in each
45301         affected FTSENT struct.
45302         * lib/fts_.h: Include <dirent.h>.
45303         (struct FTSENT) [fts_dirp]: New member.
45304         * lib/fts.c (closedir_and_clear): Define.
45305         Use it in place of closedir so that we are sure to
45306         clear the new fts_dirp member when done with it.
45307         (fts_alloc): Initialize the new member.
45308         (fts_lfree): Free, if needed.
45310         maint: fts: give __opendir2 a new parameter and rename
45311         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
45312         than surreptitiously using sole caller's "dir_fd".
45313         (fts_opendir): Rename from __opendir2.
45315         maint: fts.c: remove __opendir2's now-unused parameter, oflag
45316         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
45318         maint: fts.c: correct off-by-one indentation
45319         * lib/fts.c (fts_build): Correct indentation, change style
45320         of a couple of block comments, and bracing style.
45322         maint: fts.c: move __opendir2 #define "up" out of function body
45323         * lib/fts.c (__opendir2): Move "up".  No semantic change.
45325         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
45326         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
45327         out for a long time and besides was useful only on BSD systems.
45329 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45331         regex: port to Stratus OpenVOS
45332         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
45333         define to empty, rather than attempting nonportable optimizations.
45334         Problem reported by Paul Green in:
45335         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
45336         and fix suggested by Eric Blake in:
45337         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
45339 2011-08-17  Eric Blake  <eblake@redhat.com>
45341         getcwd: fix test failures on mingw
45342         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
45343         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
45344         test if long directory cannot be created, and allow mingw errno.
45346         getcwd-lgpl: fix m4 to match relaxed test for BSD
45347         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
45348         (gl_FUNC_GETCWD_SIGNATURE): New macro.
45349         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
45350         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
45351         signature problem.
45353         getcwd: fix compilation on mingw64
45354         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
45355         getcwd.
45356         Reported by Marc-André Lureau.
45358         pipe2: silence compiler warning
45359         * lib/pipe2.c (pipe2): Hide label if it is not used.
45361 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
45363         relocatable-prog: fix link error
45364         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
45365         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
45366         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
45367         into modules/relocatable-lib without noticing that
45368         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
45369         also needs to build relocatable.c.
45371 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45373         getaddrinfo: fix sh typo in gai_strerrorA decl checking
45374         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
45375         shell code: it contained a 'break' that was not in a loop.
45376         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
45377         via a shell-language loop; this may have been true in old Autoconf
45378         versions, but it's not true in Autoconf 2.68.  I found this bug
45379         when testing coreutils git on Solaris 8, whose shell complains
45380         about the syntax error.
45382 2011-08-12  Simon Josefsson  <simon@josefsson.org>
45384         * lib/base64.c: Fix comment to reference RFC 4648.
45385         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
45386         <gvtulder@gmail.com>.
45388 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45390         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
45392         po/Makefile.in.in: fix make -q problem
45393         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
45394         rule, since there's no file named 'check-macro-version' and its
45395         use as a file breaks make -q.
45396         (all): Don't depend on check-macro-version.
45397         (CHECK_MACRO_VERSION): New macro.
45398         (stamp-po): Use it.
45400         configmake: fix make -q problem
45401         * modules/configmake (configmake.h): Update configmake.h's time stamp
45402         even if the file does not change.  Otherwise, 'make -q' fails.
45403         Problem reported by Simon Josefsson in
45404         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
45406 2011-08-11  Jim Meyering  <meyering@redhat.com>
45408         git-version-gen: correct the advice in a comment
45409         * build-aux/git-version-gen: Correct comment.
45410         Don't recommend to list .tarball-version in .gitignore.
45412 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45414         base64: fix off-by-one buffer size bug
45415         Problem and (trivial) fix reported by Gijs van Tulder in
45416         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
45417         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
45418         * tests/test-base64.c (main): Catch the bug.
45420 2011-08-10  Eric Blake  <eblake@redhat.com>
45422         closein: correct comments
45423         * lib/closein.c (close_stdin): Improve comments.
45425 2011-08-09  Bruno Haible  <bruno@clisp.org>
45427         More tests for 'fseeko'.
45428         * tests/test-fseeko3.c: New file, from Eric Blake.
45429         * tests/test-fseeko3.sh: New file.
45430         * modules/fseeko-tests (Files): Add them.
45431         (TESTS): Add test-fseeko3.sh.
45432         (check_PROGRAMS): Add test-fseeko3.
45434 2011-08-09  Eric Blake  <eblake@redhat.com>
45436         fseeko: remove unneeded hack
45437         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
45439         fseeko: fix bug on glibc
45440         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
45441         Reported by John W. Eaton.
45443 2011-08-08  Bruno Haible  <bruno@clisp.org>
45445         unictype/base: Fix interoperability with preinstalled libunistring.
45446         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
45447         Reported by Simon Josefsson.
45449 2011-08-08  Bruno Haible  <bruno@clisp.org>
45451         iswblank: Detect declaration correctly.
45452         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
45453         AC_CHECK_DECLS invocation.
45455 2011-08-08  Bruno Haible  <bruno@clisp.org>
45457         tcgetsid: Detect declaration correctly.
45458         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
45459         AC_CHECK_DECLS invocation.
45460         Reported by Simon Josefsson.
45462 2011-08-08  Eric Blake  <eblake@redhat.com>
45464         largefile: fix typo that regressed large file support
45465         * modules/largefile (configure.ac-early): Fix section name.
45467 2011-08-06  Karl Berry  <karl@gnu.org>
45469         * MODULES.html.sh (func_all_files): _Noreturn is no longer
45470         a separate module.
45472 2011-08-05  Simon Josefsson  <simon@josefsson.org>
45474         openat: Fix warnings and commens when building unlinkat.c on Hurd.
45475         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
45476         get prototype for free.
45478 2011-08-04  Bruno Haible  <bruno@clisp.org>
45480         Tests for module 'pathmax'.
45481         * modules/pathmax-tests: New file.
45482         * tests/test-pathmax.c: New file.
45484         canonicalize-lgpl: Support larger filenames on the Hurd.
45485         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
45486         Reported by Paul Eggert.
45488         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
45489         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
45490         * lib/chdir-long.h: Include pathmax.h.
45491         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
45492         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
45493         (PATH_MAX): Remove code that is done by pathmax.h.
45494         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
45495         * lib/tmpfile.c: Add a comment.
45496         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
45497         * modules/chdir-long (Depends-on): Add pathmax.
45498         * modules/getcwd (Depends-on): Add pathmax.
45499         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
45500         is not defined.
45501         * doc/posix-headers/limits.texi: Mention the pathmax module.
45502         * NEWS: Mention the change.
45504 2011-08-02  Bruno Haible  <bruno@clisp.org>
45506         pthread_sigmask: Actually use results of gl_THREADLIB.
45507         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
45508         gl_THREADLIB, not gl_[]THREADLIB.
45509         Reported by Eric Blake.
45511 2011-08-02  Jim Meyering  <meyering@redhat.com>
45513         maint.mk: relax the default _gl_TS_function_match regexp
45514         * top/maint.mk (_gl_TS_function_match): Don't require at least one
45515         space between function name and "(" in an "extern" declaration.
45516         That would fail to match a decl with no space there: extern void foo();
45518 2011-07-31  Iain Nicol  <iain@thenicols.net>
45520         git-version-gen: document that EXTRA_DIST must include .version
45521         * build-aux/git-version-gen: In the how-to-use comment, document
45522         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
45523         will fail when run from an unpacked distribution tarball.
45525 2011-08-01  Bruno Haible  <bruno@clisp.org>
45527         wctype-h: Fix last change.
45528         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
45529         REPLACE_TOWLOWER to 0.
45530         Reported by Sam Steingold <sds@gnu.org>.
45532 2011-07-31  Bruno Haible  <bruno@clisp.org>
45534         frexpl: Update autoconf test.
45535         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
45536         according to changes of 2011-06-20.
45538 2011-07-31  Bruno Haible  <bruno@clisp.org>
45540         sys_utsname: Add support for Minix.
45541         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
45542         <sys/utsname.h>.
45543         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
45544         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
45546 2011-07-31  Bruno Haible  <bruno@clisp.org>
45548         strings: Add support for Minix.
45549         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
45550         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
45551         * doc/posix-headers/strings.texi: Document the Minix problem.
45553 2011-07-31  Bruno Haible  <bruno@clisp.org>
45555         wctype-h: Add support for Minix.
45556         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
45557         REPLACE_TOWLOWER.
45558         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
45559         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
45560         REPLACE_ISWCNTRL.
45562 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
45564         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
45565         This is a performance improvement for 64-bit hosts: it causes the
45566         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
45568 2011-07-31  Bruno Haible  <bruno@clisp.org>
45570         stdioext: Add support for Minix.
45571         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
45572         * lib/fpurge.c (fpurge): Likewise.
45573         * lib/freadahead.c (freadahead): Likewise.
45574         * lib/freadable.c (freadable): Likewise.
45575         * lib/freading.c (freading): Likewise.
45576         * lib/freadptr.c (freadptr): Likewise.
45577         * lib/freadseek.c (freadptrinc): Likewise.
45578         * lib/fseeko.c (rpl_fseeko): Likewise.
45579         * lib/fseterr.c (fseterr): Likewise.
45580         * lib/fwritable.c (fwritable): Likewise.
45581         * lib/fwriting.c (fwriting): Likewise.
45582         * lib/fflush.c (clear_ungetc_buffer): Update comment.
45583         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
45585 2011-07-31  Bruno Haible  <bruno@clisp.org>
45587         errno: Port to Minix.
45588         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
45589         ECONNABORTED are defined.
45590         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
45591         GNULIB_defined_ECONNABORTED): New macros.
45592         * lib/strerror-override.h (strerror_override): Test also
45593         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
45594         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
45595         ECONNABORTED.
45596         * doc/posix-headers/errno.texi: Mention the Minix problem.
45598 2011-07-31  Bruno Haible  <bruno@clisp.org>
45600         Work around declaration collisions on Minix.
45601         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
45602         defined, set REPLACE_MBSINIT.
45603         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
45604         defined, set REPLACE_MBRTOWC.
45605         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
45606         set REPLACE_MBRLEN.
45607         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
45608         defined, set REPLACE_MBSRTOWCS.
45609         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
45610         defined, set REPLACE_WCRTOMB.
45611         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
45612         defined, set REPLACE_WCSRTOMBS.
45614 2011-07-31  Bruno Haible  <bruno@clisp.org>
45616         Add support for Minix with ACK compiler.
45617         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
45618         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
45619         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
45621 2011-07-31  Bruno Haible  <bruno@clisp.org>
45623         Documentation about Minix.
45624         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
45625         * doc/glibc-headers/*.texi: Likewise.
45626         * doc/posix-functions/*.texi: Likewise.
45627         * doc/glibc-functions/*.texi: Likewise.
45629 2011-07-31  Bruno Haible  <bruno@clisp.org>
45631         snippet/warn-on-use: Fix indentation.
45632         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
45634 2011-07-25  Jim Meyering  <meyering@redhat.com>
45636         tests: test-update-copyright.sh: remove unnecessary "rm" commands
45637         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
45638         commands.
45640 2011-07-27  Jim Meyering  <meyering@redhat.com>
45642         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
45643         * top/maint.mk (gl_extract_significant_defines_): Now that
45644         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
45645         gnulib/lib/signal.in.h, and now that we recommend to
45646         define-if-undefined those two symbols in application code,
45647         we must filter them out of the "significant" list.
45648         This avoids a "make syntax-check" failure in coreutils.
45650 2011-07-26  Eric Blake  <eblake@redhat.com>
45652         warnings: add comments about previous patch
45653         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
45654         * m4/include_next.m4: Likewise.
45655         * m4/warn-on-use.m4: Likewise.
45656         * m4/warnings.m4: Likewise, and simplify use.
45657         Suggested by Stefano Lattarini.
45659         include-next, warnings: support older autoconf
45660         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
45661         AS_VAR_PUSHDEF in a way that works with older autoconf.
45662         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
45663         Reported by Daniel P. Berrange.
45665 2011-07-25  Bruno Haible  <bruno@clisp.org>
45667         fseek, ftell: Fix doc.
45668         * doc/posix-functions/fseek.texi: Reword statement about
45669         AC_SYS_LARGEFILE.
45670         * doc/posix-functions/ftell.texi: Likewise.
45672 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
45673             Bruno Haible  <bruno@clisp.org>
45675         Add dependencies to the 'largefile' module.
45676         * modules/fopen (Depends-on): Add 'largefile'.
45677         * modules/freopen (Depends-on): Likewise.
45678         * modules/fseeko (Depends-on): Likewise.
45679         * modules/ftello (Depends-on): Likewise.
45680         * modules/glob (Depends-on): Likewise.
45681         * modules/lseek (Depends-on): Likewise.
45682         * modules/lstat (Depends-on): Likewise.
45683         * modules/mkostemp (Depends-on): Likewise.
45684         * modules/mkostemps (Depends-on): Likewise.
45685         * modules/mkstemp (Depends-on): Likewise.
45686         * modules/mkstemps (Depends-on): Likewise.
45687         * modules/open (Depends-on): Likewise.
45688         * modules/openat (Depends-on): Likewise.
45689         * modules/pread (Depends-on): Likewise.
45690         * modules/pwrite (Depends-on): Likewise.
45691         * modules/scandir (Depends-on): Likewise.
45692         * modules/stat (Depends-on): Likewise.
45693         * modules/tmpfile (Depends-on): Likewise.
45694         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
45695         since the containing module now depends on the largefile module.
45696         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
45697         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
45698         off_t is fixed by gnulib.
45699         * doc/posix-functions/freopen.texi: Likewise.
45700         * doc/posix-functions/fseeko.texi: Likewise.
45701         * doc/posix-functions/fstatat.texi: Likewise.
45702         * doc/posix-functions/ftello.texi: Likewise.
45703         * doc/posix-functions/glob.texi: Likewise.
45704         * doc/posix-functions/lseek.texi: Likewise.
45705         * doc/posix-functions/lstat.texi: Likewise.
45706         * doc/posix-functions/mkstemp.texi: Likewise.
45707         * doc/posix-functions/open.texi: Likewise.
45708         * doc/posix-functions/openat.texi: Likewise.
45709         * doc/posix-functions/pread.texi: Likewise.
45710         * doc/posix-functions/pwrite.texi: Likewise.
45711         * doc/posix-functions/scandir.texi: Likewise.
45712         * doc/posix-functions/stat.texi: Likewise.
45713         * doc/posix-functions/tmpfile.texi: Likewise.
45714         * doc/glibc-functions/mkostemp.texi: Likewise.
45715         * doc/glibc-functions/mkostemps.texi: Likewise.
45716         * doc/glibc-functions/mkstemps.texi: Likewise.
45718 2011-07-25  Bruno Haible  <bruno@clisp.org>
45720         fcntl: Move AC_LIBOBJ invocation to module description.
45721         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
45722         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
45724         fcntl: Remove call-in from fchdir.m4.
45725         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
45726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
45728         dup3: Remove potential call-in from fchdir.m4.
45729         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
45730         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
45732         dup2: Move AC_LIBOBJ invocation to module description.
45733         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
45734         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
45735         Don't invoke AC_LIBOBJ.
45736         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
45738         dup2: Remove call-in from fchdir.m4.
45739         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
45740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
45742         fclose: Move AC_LIBOBJ invocation to module description.
45743         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
45744         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
45745         to 1.
45746         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
45748         fclose: Remove call-in from close.m4.
45749         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
45750         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
45752         close: Move AC_LIBOBJ invocation to module description.
45753         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
45754         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
45755         1.
45756         * modules/close (configure.ac): Invoke AC_LIBOBJ.
45758         close: Remove call-in from fchdir.m4.
45759         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
45760         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
45762         open: Move AC_LIBOBJ invocation to module description.
45763         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
45764         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
45765         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
45767         open: Remove call-in from fchdir.m4.
45768         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
45769         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
45771         fchdir: Start to remove gl_REPLACE_* idiom.
45772         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
45773         (gl_FUNC_FCHDIR): Invoke it.
45775 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
45777         * lib/ftell.c (ftell): Comment out cast.
45779         close: use gl_REPLACE_FCLOSE only if defined
45780         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
45781         is defined.  The close module doesn't depend on the fclose module
45782         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
45783         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
45784         I reproduced the problem with "./gnulib-tool --test close sys_socket".
45786 2011-07-24  Jim Meyering  <meyering@redhat.com>
45788         test-select.h: avoid warning when using gcc's -Wmissing-declarations
45789         * tests/test-select.h (test_function): Declare as "static".
45791 2011-07-24  Bruno Haible  <bruno@clisp.org>
45793         doc: Mention the effects of AC_SYS_LARGEFILE.
45794         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
45795         on this function.
45796         * doc/posix-functions/aio_error.texi: Likewise.
45797         * doc/posix-functions/aio_fsync.texi: Likewise.
45798         * doc/posix-functions/aio_read.texi: Likewise.
45799         * doc/posix-functions/aio_return.texi: Likewise.
45800         * doc/posix-functions/aio_suspend.texi: Likewise.
45801         * doc/posix-functions/aio_write.texi: Likewise.
45802         * doc/posix-functions/fgetpos.texi: Likewise.
45803         * doc/posix-functions/fopen.texi: Likewise.
45804         * doc/posix-functions/freopen.texi: Likewise.
45805         * doc/posix-functions/fsetpos.texi: Likewise.
45806         * doc/posix-functions/fstatvfs.texi: Likewise.
45807         * doc/posix-functions/ftruncate.texi: Likewise.
45808         * doc/posix-functions/ftw.texi: Likewise.
45809         * doc/posix-functions/getrlimit.texi: Likewise.
45810         * doc/posix-functions/glob.texi: Likewise.
45811         * doc/posix-functions/lio_listio.texi: Likewise.
45812         * doc/posix-functions/lockf.texi: Likewise.
45813         * doc/posix-functions/mkstemp.texi: Likewise.
45814         * doc/posix-functions/mmap.texi: Likewise.
45815         * doc/posix-functions/nftw.texi: Likewise.
45816         * doc/posix-functions/openat.texi: Likewise.
45817         * doc/posix-functions/opendir.texi: Likewise.
45818         * doc/posix-functions/posix_fadvise.texi: Likewise.
45819         * doc/posix-functions/posix_fallocate.texi: Likewise.
45820         * doc/posix-functions/pread.texi: Likewise.
45821         * doc/posix-functions/pwrite.texi: Likewise.
45822         * doc/posix-functions/readdir.texi: Likewise.
45823         * doc/posix-functions/readdir_r.texi: Likewise.
45824         * doc/posix-functions/rewinddir.texi: Likewise.
45825         * doc/posix-functions/scandir.texi: Likewise.
45826         * doc/posix-functions/seekdir.texi: Likewise.
45827         * doc/posix-functions/setrlimit.texi: Likewise.
45828         * doc/posix-functions/statvfs.texi: Likewise.
45829         * doc/posix-functions/telldir.texi: Likewise.
45830         * doc/posix-functions/tmpfile.texi: Likewise.
45831         * doc/posix-functions/truncate.texi: Likewise.
45832         * doc/glibc-functions/fallocate.texi: Likewise.
45833         * doc/glibc-functions/fstatfs.texi: Likewise.
45834         * doc/glibc-functions/fts_children.texi: Likewise.
45835         * doc/glibc-functions/fts_read.texi: Likewise.
45836         * doc/glibc-functions/getdirentries.texi: Likewise.
45837         * doc/glibc-functions/mkostemp.texi: Likewise.
45838         * doc/glibc-functions/mkostemps.texi: Likewise.
45839         * doc/glibc-functions/mkstemps.texi: Likewise.
45840         * doc/glibc-functions/preadv.texi: Likewise.
45841         * doc/glibc-functions/pwritev.texi: Likewise.
45842         * doc/glibc-functions/sendfile.texi: Likewise.
45843         * doc/glibc-functions/statfs.texi: Likewise.
45845 2011-07-24  Bruno Haible  <bruno@clisp.org>
45847         doc: Fix typo.
45848         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
45850 2011-07-24  Bruno Haible  <bruno@clisp.org>
45852         doc: Mention fsusage.
45853         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
45855 2011-07-24  Bruno Haible  <bruno@clisp.org>
45857         doc: Mention new glibc headers and functions.
45858         * doc/glibc-headers/gshadow.texi: New file.
45859         * doc/glibc-functions/endsgent.texi: New file.
45860         * doc/glibc-functions/fgetsgent.texi: New file.
45861         * doc/glibc-functions/fgetsgent_r.texi: New file.
45862         * doc/glibc-functions/getsgent.texi: New file.
45863         * doc/glibc-functions/getsgent_r.texi: New file.
45864         * doc/glibc-functions/getsgnam.texi: New file.
45865         * doc/glibc-functions/getsgnam_r.texi: New file.
45866         * doc/glibc-functions/putsgent.texi: New file.
45867         * doc/glibc-functions/setsgent.texi: New file.
45868         * doc/glibc-functions/sgetsgent.texi: New file.
45869         * doc/glibc-functions/sgetsgent_r.texi: New file.
45870         * doc/glibc-functions/malloc_info.texi: New file.
45871         * doc/glibc-functions/preadv.texi: New file.
45872         * doc/glibc-functions/pwritev.texi: New file.
45873         * doc/glibc-functions/register_printf_modifier.texi: New file.
45874         * doc/glibc-functions/register_printf_specifier.texi: New file.
45875         * doc/glibc-functions/register_printf_type.texi: New file.
45876         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
45877         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
45878         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
45879         * doc/glibc-functions/pthread_getname_np.texi: New file.
45880         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
45881         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
45882         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
45883         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
45884         * doc/glibc-functions/pthread_setname_np.texi: New file.
45885         * doc/glibc-functions/pthread_sigqueue.texi: New file.
45886         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
45887         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
45888         * doc/glibc-functions/qsort_r.texi: New file.
45889         * doc/glibc-functions/quick_exit.texi: New file.
45890         * doc/glibc-functions/syncfs.texi: New file.
45891         * doc/gnulib.texi: Include them.
45892         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
45893         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
45894         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
45895         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
45896         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
45897         * doc/glibc-functions/execvpe.texi: Likewise.
45899 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45901         ftell: don't include <unistd.h>
45902         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
45903         guaranteed to define off_t, and the ftell module depends on the
45904         stdio module.
45906         ftell: do not assume wraparound signed arithmetic
45907         * lib/ftell.c: Include <limits.h>.
45908         (ftell): Don't assume wraparound signed arithmetic.
45910 2011-07-24  Bruno Haible  <bruno@clisp.org>
45912         close: No longer depend on module 'fclose'.
45913         * modules/close (Depends-on): Remove fclose.
45914         * NEWS: Mention the change.
45915         Suggested by Sam Steingold <sds@gnu.org>.
45917 2011-07-24  Bruno Haible  <bruno@clisp.org>
45919         fsusage: Enable large volume support on AIX >= 5.2.
45920         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
45921         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
45922         instead of STAT_STATVFS.
45923         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
45925         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
45926         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
45927         f_blocks field only on MacOS X.
45929         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
45930         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
45931         * modules/fsusage (Depends-on): Add largefile.
45933 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45935         * README: Modernize discussion of signed integers.
45936         Assuming overflow wraparound is no longer safe.
45937         Mention ones' complement and signed magnitude.
45939 2011-07-22  Bruno Haible  <bruno@clisp.org>
45941         select tests, pselect tests: Refactor.
45942         * tests/test-select.h: New file, extracted from tests/test-select.c.
45943         (select_fn): New type.
45944         (test, do_select, do_select_nowait, do_select_wait, test_tty,
45945         test_connect_first, test_accept_first, test_pair, test_socket_pair,
45946         test_pipe): Add my_select argument.
45947         (test_function): Renamed from main. Add my_select argument.
45948         * tests/test-select.c: Move most code to tests/test-select.h. Include
45949         test-select.h.
45950         * modules/select-tests (Files): Add tests/test-select.h.
45951         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
45952         (my_select, main): New functions.
45953         * modules/pselect-tests (Files): Add tests/test-select.h,
45954         tests/macros.h, tests/signature.h.
45955         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
45956         (configure.ac): Check for <sys/wait.h>.
45958 2011-07-22  Bruno Haible  <bruno@clisp.org>
45960         sys_select tests: Check the signature of FD_*.
45961         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
45962         signature tests from here...
45963         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
45964         here.
45965         * modules/sys_select-tests (Files): Add tests/signature.h.
45967 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45969         largefile: new module, replacing large-inode
45970         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
45971         * MODULES.html.sh: Add largefile, remove large-inode.
45972         * modules/largefile, m4/largefile.m4: New files.
45973         * modules/large-inode, m4/large-inode.m4: Remove.
45975         fsusage: port to MacOS X 10.7 with 4 TiB file systems
45976         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
45977         implementations that use only 32 bits to count blocks.
45978         On typical hosts with 1024-byte blocks, this fails with file
45979         systems as small as 4 TiB.  Problem reported by Herb Wartens
45980         <http://debbugs.gnu.org/9140> and this should also fix a similar
45981         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
45983         large-inode: New module
45984         * MODULES.html.sh: Add it.
45985         * modules/large-inode, m4/large-inode.m4: New files.
45987         extensions: Enable extensions on MacOS X 10.5 and later.
45988         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
45990 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
45992         file-has-acl: use acl_extended_file_nofollow if available
45993         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
45994         (acl_extended_file): New macro.
45995         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
45996         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
45998 2011-07-21  Bruno Haible  <bruno@clisp.org>
46000         Declare system functions in a way that works with C++.
46001         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
46002         declare fdopendir as extern "C".
46003         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
46004         declare frexpl as extern "C".
46005         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
46006         declare gai_strerror as extern "C".
46007         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
46008         programs, declare gai_strerror as extern "C".
46009         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
46010         declare getlogin_r as extern "C".
46011         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
46012         as extern "C".
46013         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
46014         declare ldexpl as extern "C".
46015         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
46016         as extern "C".
46017         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
46018         program, declare getmntinfo as extern "C".
46019         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
46020         stpncpy as extern "C".
46021         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
46022         program, declare __xpg_strerror_r as extern "C".
46023         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
46024         strndup as extern "C".
46025         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
46026         declare memset and bzero as extern "C".
46027         Reported by Sam Steingold <sds@gnu.org>.
46029 2011-07-12  Jim Meyering  <meyering@redhat.com>
46031         maint.mk: prohibit inclusion of "verify.h" without use
46032         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
46034 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46036         timer-time: A new module to check for timer_settime()
46037         * m4/timer_time.m4: Check for the posix function.
46038         * modules/timer-time: Add the new module.
46039         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
46040         Mention it.
46042 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
46043             Bruno Haible  <bruno@clisp.org>
46045         pthread_sigmask: assume POSIX threads if --avoid=threadlib
46046         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
46047         not defined, assume POSIX threads and look for pthread_sigmask in
46048         $LIBS, without changing $CPPFLAGS.
46050 2011-07-19  Bruno Haible  <bruno@clisp.org>
46052         strstr: Update cross-compilation guess.
46053         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
46054         CPUs, guess no, in view of glibc
46055         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
46056         Suggested by Eric Blake. Reported by Reuben Thomas.
46058 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46060         getopt-gnu: suppress core dumps from detection code
46061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
46062         to suppress core dumps that may well occur on glibc systems.
46063         * modules/getopt-gnu: Depend on nocrash.
46065 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46067         pthread_sigmask: ensure usleep is declared
46068         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
46069         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
46071 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
46073         doc: Document NonStop portability issues.
46074         * doc/posix-functions/sigaction.texi (sigaction):
46075         * doc/posix-headers/signal.texi (signal.h):
46076         Document NonStop.  See Joachim Schmitz in
46077         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
46079 2011-07-15  Bruno Haible  <bruno@clisp.org>
46081         ffsl, ffsll: Avoid unportable behaviour.
46082         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
46084 2011-07-15  Bruno Haible  <bruno@clisp.org>
46086         ffs: More tests.
46087         * tests/test-ffs.c (NBITS): New macro.
46088         (main): Add more tests.
46089         * tests/test-ffsl.c (NBITS): New macro.
46090         (main): Add more tests.
46091         * tests/test-ffsll.c (NBITS): New macro.
46092         (main): Add more tests.
46094 2011-07-15  Eric Blake  <eblake@redhat.com>
46096         ffsl, ffsll: new modules
46097         * modules/ffsl: New file.
46098         * modules/ffsll: Likewise.
46099         * m4/ffsl.m4: Likewise.
46100         * m4/ffsll.m4: Likewise.
46101         * lib/ffsl.c: Likewise.
46102         * lib/ffsl.h: Likewise.
46103         * lib/ffsll.c: Likewise.
46104         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
46105         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
46106         * modules/string (Makefile.am): Substitute witnesses.
46107         * lib/strings.in.h (ffsl, ffsll): Declare.
46108         * modules/ffsl-tests: New test file.
46109         * modules/ffsll-tests: Likewise.
46110         * tests/test-ffsl.c: Likewise.
46111         * tests/test-ffsll.c: Likewise.
46112         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46113         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
46114         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
46116         ffs: fix m4 prerequisite
46117         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
46119         ffs: avoid undefined behavior
46120         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
46121         * tests/test-ffs.c (naive, main): Avoid signed shifts.
46122         Reported by Bruno Haible.
46124 2011-07-12  Bruno Haible  <bruno@clisp.org>
46126         pthread_sigmask: Rely on module 'threadlib'.
46127         * modules/pthread_sigmask (Depends-on): Add threadlib.
46128         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
46129         is defined.
46131 2011-07-12  Bruno Haible  <bruno@clisp.org>
46133         regex: Depend on module 'strcase'.
46134         * modules/regex (Depends-on): Add strcase, for strcasecmp().
46136 2011-07-12  Jim Meyering  <meyering@redhat.com>
46138         warn-on-use: fix typo in file name
46139         * modules/snippet/warn-on-use (Files): Correct file name:
46140         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
46142 2011-07-12  Bruno Haible  <bruno@clisp.org>
46144         strings: Document module.
46145         * doc/posix-headers/strings.texi: Mention module 'strings'.
46147 2011-07-12  Bruno Haible  <bruno@clisp.org>
46149         Rename module '_Noreturn' to 'snippet/_Noreturn'.
46150         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
46151         (Files, Makefile.am): Update.
46152         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
46153         * modules/stdlib (Depends-on): Update.
46155 2011-07-12  Bruno Haible  <bruno@clisp.org>
46157         * NEWS: Mention the changes.
46159         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
46160         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
46161         (Files, Makefile.am): Update.
46162         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
46163         * modules/arpa_inet (Depends-on): Update.
46164         * modules/ctype (Depends-on): Update.
46165         * modules/dirent (Depends-on): Update.
46166         * modules/fcntl-h (Depends-on): Update.
46167         * modules/glob (Depends-on): Update.
46168         * modules/iconv-h (Depends-on): Update.
46169         * modules/inttypes-incomplete (Depends-on): Update.
46170         * modules/langinfo (Depends-on): Update.
46171         * modules/locale (Depends-on): Update.
46172         * modules/math (Depends-on): Update.
46173         * modules/netdb (Depends-on): Update.
46174         * modules/poll-h (Depends-on): Update.
46175         * modules/pty (Depends-on): Update.
46176         * modules/search (Depends-on): Update.
46177         * modules/signal (Depends-on): Update.
46178         * modules/spawn (Depends-on): Update.
46179         * modules/stdio (Depends-on): Update.
46180         * modules/stdlib (Depends-on): Update.
46181         * modules/string (Depends-on): Update.
46182         * modules/strings (Depends-on): Update.
46183         * modules/sys_file (Depends-on): Update.
46184         * modules/sys_ioctl (Depends-on): Update.
46185         * modules/sys_select (Depends-on): Update.
46186         * modules/sys_socket (Depends-on): Update.
46187         * modules/sys_stat (Depends-on): Update.
46188         * modules/sys_time (Depends-on): Update.
46189         * modules/sys_times (Depends-on): Update.
46190         * modules/sys_utsname (Depends-on): Update.
46191         * modules/sys_wait (Depends-on): Update.
46192         * modules/termios (Depends-on): Update.
46193         * modules/time (Depends-on): Update.
46194         * modules/unistd (Depends-on): Update.
46195         * modules/wchar (Depends-on): Update.
46196         * modules/wctype-h (Depends-on): Update.
46197         * MODULES.html.sh (Support for building libraries and executables):
46198         Update.
46200         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
46201         * modules/snippet/unused-parameter: Renamed from
46202         modules/unused-parameter.
46203         (Files, Makefile.am): Update.
46204         * build-aux/snippet/unused-parameter.h: Renamed from
46205         build-aux/unused-parameter.h.
46206         * modules/selinux-h (Depends-on): Update.
46207         * modules/unistr/base (Depends-on): Update.
46208         * MODULES.html.sh (Core language properties): Update.
46210         Rename module 'link-warning' to 'snippet/link-warning'.
46211         * modules/snippet/link-warning: Renamed from modules/link-warning.
46212         (Files, Makefile.am): Update.
46213         * build-aux/snippet/link-warning.h: Renamed from
46214         build-aux/link-warning.h.
46215         * MODULES.html.sh (Support for building libraries and executables):
46216         Update.
46218         Rename module 'c++defs' to 'snippet/c++defs'.
46219         * modules/snippet/c++defs: Renamed from modules/c++defs.
46220         (Files, Makefile.am): Update.
46221         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
46222         * modules/arpa_inet (Depends-on): Update.
46223         * modules/ctype (Depends-on): Update.
46224         * modules/dirent (Depends-on): Update.
46225         * modules/fcntl-h (Depends-on): Update.
46226         * modules/glob (Depends-on): Update.
46227         * modules/iconv-h (Depends-on): Update.
46228         * modules/langinfo (Depends-on): Update.
46229         * modules/locale (Depends-on): Update.
46230         * modules/math (Depends-on): Update.
46231         * modules/netdb (Depends-on): Update.
46232         * modules/poll-h (Depends-on): Update.
46233         * modules/pty (Depends-on): Update.
46234         * modules/search (Depends-on): Update.
46235         * modules/signal (Depends-on): Update.
46236         * modules/spawn (Depends-on): Update.
46237         * modules/stdio (Depends-on): Update.
46238         * modules/stdlib (Depends-on): Update.
46239         * modules/string (Depends-on): Update.
46240         * modules/strings (Depends-on): Update.
46241         * modules/sys_ioctl (Depends-on): Update.
46242         * modules/sys_select (Depends-on): Update.
46243         * modules/sys_socket (Depends-on): Update.
46244         * modules/sys_stat (Depends-on): Update.
46245         * modules/sys_time (Depends-on): Update.
46246         * modules/sys_wait (Depends-on): Update.
46247         * modules/termios (Depends-on): Update.
46248         * modules/time (Depends-on): Update.
46249         * modules/unistd (Depends-on): Update.
46250         * modules/wchar (Depends-on): Update.
46251         * modules/wctype-h (Depends-on): Update.
46253         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
46254         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
46255         (Files, Makefile.am): Update.
46256         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
46257         * modules/argv-iter (Depends-on): Update.
46258         * modules/arpa_inet (Depends-on): Update.
46259         * modules/dirent (Depends-on): Update.
46260         * modules/fcntl-h (Depends-on): Update.
46261         * modules/fnmatch (Depends-on): Update.
46262         * modules/getopt-posix (Depends-on): Update.
46263         * modules/glob (Depends-on): Update.
46264         * modules/iconv-h (Depends-on): Update.
46265         * modules/inttypes-incomplete (Depends-on): Update.
46266         * modules/locale (Depends-on): Update.
46267         * modules/math (Depends-on): Update.
46268         * modules/netdb (Depends-on): Update.
46269         * modules/search (Depends-on): Update.
46270         * modules/signal (Depends-on): Update.
46271         * modules/spawn (Depends-on): Update.
46272         * modules/stdio (Depends-on): Update.
46273         * modules/stdlib (Depends-on): Update.
46274         * modules/string (Depends-on): Update.
46275         * modules/strings (Depends-on): Update.
46276         * modules/sys_socket (Depends-on): Update.
46277         * modules/sys_stat (Depends-on): Update.
46278         * modules/sys_time (Depends-on): Update.
46279         * modules/sys_times (Depends-on): Update.
46280         * modules/sys_utsname (Depends-on): Update.
46281         * modules/time (Depends-on): Update.
46282         * modules/unistd (Depends-on): Update.
46283         * modules/wchar (Depends-on): Update.
46284         * MODULES.html.sh (Support for building libraries and executables):
46285         Update.
46287 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46289         Improvements on _Noreturn and related modules.
46291         modules/_Exit-tests: test _Noreturn too
46292         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
46293         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
46294         (main): Use them.
46296         stdnoreturn, stdnoreturn-tests: remove modules
46297         They're not needed here and a bit premature for use elsewhere.  See
46298         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
46299         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
46300         * tests/test-stdnoreturn.c: Remove files.
46301         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
46302         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
46303         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
46304         and using noreturn.
46305         * modules/openat, modules/sigpipe-die, modules/xalloc:
46306         * modules/xmemdup0, modules/xstrtol:
46307         Remove dependency on stdnoreturn.
46309         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
46310         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
46311         Reparenthesize to avoid GCC warning.
46312         Support Microsoft's syntax.
46313         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
46315         _Noreturn-tests: remove module
46316         * modules/_Noreturn-tests: Remove.
46317         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
46318         * tests/test-_Noreturn.c: Remove.
46319         * tests/test-stdnoreturn.c: Merge from the old
46320         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
46322 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46324         _Noreturn, stdnoreturn, and related modules.
46326         * top/maint.mk: Adjust to new noreturn support.
46327         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
46328         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
46330         xalloc: use stdnoreturn.h
46331         * lib/xalloc.h: Include <stdnoreturn.h>.
46332         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46333         * modules/xalloc (Depends-on): Add stdnoreturn.
46335         xstrtol: use stdnoreturn.h
46336         * lib/xstrtol.h: Include <stdnoreturn.h>.
46337         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46338         * modules/xstrtol (Depends-on): Add stdnoreturn.
46340         xmemdup0: use stdnoreturn.h
46341         * lib/xmemdup0.h: Include <stdnoreturn.h>.
46342         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46343         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
46345         sigpipe-die: use stdnoreturn.h
46346         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
46347         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46348         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
46350         openat: use stdnoreturn.h
46351         * lib/openat.h: Include <stdnoreturn.h>.
46352         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46353         * modules/openat (Depends-on): Add stdnoreturn.
46355         * lib/openat-die.c (openat_save_fail): Modernize comment.
46357         * lib/xalloc-die.c (xalloc_die): Modernize comment.
46359         * lib/glthread/thread.h: Modernize comment.
46361         obstack: use _Noreturn
46362         * lib/obstack.c (__attribute__): Remove macro.
46363         (print_and_abort): Use _Noreturn.
46365         c-stack: use _Noreturn
46366         * lib/c-stack.c (die, overflow_handler, segv_handler):
46367         Use _Noreturn rather than __attribute__((noreturn)).
46369         argmatch-tests, exclude_tests: use _Noreturn
46370         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
46371         Remove.
46372         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
46374         stdlib: use _Noreturn
46375         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
46376         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
46377         * modules/stdlib (Depends-on): Add _Noreturn.
46378         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
46380         stdnoreturn-tests: new module
46381         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
46383         stdnoreturn: new module
46384         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
46385         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
46387         _Noreturn-tests: new module
46388         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
46390         _Noreturn: new module
46391         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
46392         New section, mentioning it.
46393         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
46395         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
46397 2011-07-11  Eric Blake  <eblake@redhat.com>
46399         ffs: new module
46400         * modules/ffs: New file.
46401         * m4/ffs.m4: Likewise.
46402         * lib/ffs.c: Likewise.
46403         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
46404         * modules/strings (Makefile.am): Substitute witness.
46405         (Depends-on): Add c++defs.
46406         * lib/strings.in.h (ffs): Declare.
46407         * modules/ffs-tests: New test file.
46408         * tests/test-ffs.c: Test new module.
46409         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46410         * doc/posix-functions/ffs.texi (ffs): Likewise.
46412         regex: avoid compiler warning
46413         * lib/regex.c (includes): Include <strings.h>, for use of
46414         strcasecmp in regcomp.c.
46415         Reported by Joachim Schmitz.
46417 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46419         stdint: respect system's intmax_t if INTMAX_MAX
46420         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
46421         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
46422         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
46423         long but int64_t is long long, and where we will clash with the
46424         system intmax_t if we override it.  See
46425         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
46426         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
46427         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
46428         similarly for UINTMAX_C.
46430 2011-07-08  Bruno Haible  <bruno@clisp.org>
46432         pthread_sigmask tests: Avoid a compiler warning.
46433         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
46434         non-zero.
46436         sigprocmask tests: A better way to avoid a compiler warning.
46437         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
46438         (main): Complain if system() returns non-zero.
46439         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
46441 2011-07-08  Bruno Haible  <bruno@clisp.org>
46443         pthread_sigmask: Work around IRIX bug.
46444         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
46445         bug.
46446         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
46447         there may be unblocked pending signals.
46448         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
46450 2011-07-08  Bruno Haible  <bruno@clisp.org>
46452         pthread_sigmask: Work around Cygwin bug.
46453         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
46454         bug.
46455         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
46456         the system's pthread_sigmask function.
46457         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
46459 2011-07-08  Bruno Haible  <bruno@clisp.org>
46461         pthread_sigmask: Work around bug in single-threaded implementation.
46462         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
46463         FreeBSD, HP-UX, Solaris bug.
46464         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
46465         * lib/pthread_sigmask.c: Include <stddef.h>.
46466         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
46467         the system's pthread_sigmask function.
46468         * modules/pthread_sigmask (configure.ac): Invoke
46469         gl_PREREQ_PTHREAD_SIGMASK.
46470         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
46471         HP-UX, Solaris.
46473 2011-07-08  Eric Blake  <eblake@redhat.com>
46475         test-sigprocmask: avoid compiler warning
46476         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
46477         * tests/test-sigprocmask.c (main): Use it to silence warning.
46478         Reported by Jim Meyering.
46480         test-snprintf: avoid compiler warning
46481         * tests/test-snprintf.c (main): Avoid shadowed declaration.
46482         * tests/test-vsnprintf.c (main): Likewise.
46483         Reported by Jim Meyering.
46485 2011-07-08  Bruno Haible  <bruno@clisp.org>
46487         Tests for module 'pthread_sigmask'.
46488         * modules/pthread_sigmask-tests: New file.
46489         * tests/test-pthread_sigmask1.c: New file, based on
46490         tests/test-sigprocmask.c.
46491         * tests/test-pthread_sigmask2.c: New file.
46493 2011-07-08  Jim Meyering  <meyering@redhat.com>
46495         test-getopt.h: avoid warning about an unused variable
46496         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
46498 2011-07-07  Jim Meyering  <meyering@redhat.com>
46500         maint: reduce list of files exempt from sc_prohibit_leading_TABs
46501         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
46502         now that it no longer contains leading TABs.
46503         Remove unused "url=FIXME" statement.
46505 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46507         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
46508         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
46509         When gl_THREADLIB is not in use, assume that the POSIX sematics
46510         are desired.  This is better for Emacs, which uses POSIX semantics
46511         on GNUish and/or POSIXish platforms, and does not use threads at
46512         all otherwise.
46514         pthread_sigmask: fix typo when testing for libraries
46515         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
46516         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
46518 2011-07-08  Eric Blake  <eblake@redhat.com>
46520         fts: introduce FTS_NOATIME
46521         * lib/fts_.h (FTS_NOATIME): New bit flag.
46522         (FTS_OPTIONMASK): Adjust.
46523         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
46524         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
46526 2011-07-08  Bruno Haible  <bruno@clisp.org>
46528         Tests for module 'thread'.
46529         * modules/thread-tests: New file.
46530         * tests/test-thread_self.c: New file.
46531         * tests/test-thread_create.cc: New file.
46533 2011-07-08  Bruno Haible  <bruno@clisp.org>
46535         thread: Avoid gcc warnings when using gl_thread_self().
46536         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
46537         'void *'.
46538         (gl_thread_self_pointer): Update.
46540 2011-07-07  Bruno Haible  <bruno@clisp.org>
46542         signal-c++-tests: Check declaration of pthread_sigmask.
46543         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
46544         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
46545         $(LIB_PTHREAD_SIGMASK).
46547 2011-07-07  Bruno Haible  <bruno@clisp.org>
46549         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
46550         * lib/signal.in.h (pthread_sigmask): Override if
46551         REPLACE_PTHREAD_SIGMASK is 1.
46552         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46553         REPLACE_PTHREAD_SIGMASK.
46554         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
46555         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
46556         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
46557         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
46558         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
46560 2011-07-07  Bruno Haible  <bruno@clisp.org>
46562         pthread_sigmask: Ensure declaration in <signal.h>.
46563         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
46564         include <pthread.h>.
46565         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
46566         problem.
46568 2011-07-07  Bruno Haible  <bruno@clisp.org>
46570         pthread_sigmask: Document the module.
46571         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
46573 2011-07-07  Bruno Haible  <bruno@clisp.org>
46575         pthread_sigmask: Follow gnulib conventions.
46576         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
46577         gl_PTHREAD_SIGMASK.
46578         * modules/pthread_sigmask (configure.ac): Update.
46580 2011-07-07  Bruno Haible  <bruno@clisp.org>
46582         pthread_sigmask: Make declaration C++ safe.
46583         * lib/signal.in.h: In two special conditions, just do an #include_next.
46584         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
46585         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
46586         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46587         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
46588         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
46589         not REPLACE_PTHREAD_MASK.
46590         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
46591         not REPLACE_PTHREAD_MASK.
46592         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
46594 2011-07-07  Bruno Haible  <bruno@clisp.org>
46596         pthread_sigmask: Fix return value.
46597         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
46598         * lib/pthread_sigmask.c: New file.
46599         * modules/pthread_sigmask (Files): Add it.
46600         (configure.ac): Invoke AC_LIBOBJ.
46602 2011-07-07  Eric Blake  <eblake@redhat.com>
46604         getopt: more portable argv creation
46605         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
46606         const, use char arrays rather than strings.
46607         Suggested by Paul Eggert.
46609 2011-07-07  Bruno Haible  <bruno@clisp.org>
46611         Tests for module 'sigprocmask'.
46612         * modules/sigprocmask-tests: New file.
46613         * tests/test-sigprocmask.c: New file.
46615 2011-07-07  Bruno Haible  <bruno@clisp.org>
46617         float tests: Tweak.
46618         * tests/test-float.c (main): Tweak skip message.
46620 2011-07-07  Eric Blake  <eblake@redhat.com>
46622         getopt: avoid compiler warning during configure
46623         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
46624         assigning string literals to non-const pointer.
46626         getopt-gnu: avoid crash in glibc getopt
46627         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
46628         * tests/test-getopt.h (test_getopt): Enhance test.
46629         * tests/test-getopt_long.h (test_getopt_long): Likewise.
46630         * doc/posix-functions/getopt.texi (getopt): Document it.
46631         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
46632         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
46633         Likewise.
46635 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
46637         getopt: handle W; without long options in getopt [BZ #12922]
46638         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
46639         but no long options are defined, just return 'W'.
46641 2011-07-07  Bruno Haible  <bruno@clisp.org>
46643         Avoid literal tabs.
46644         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
46645         variable containing a tab instead of a literal tab.
46646         Reported by Jim Meyering.
46648 2011-07-07  Bruno Haible  <bruno@clisp.org>
46650         Comments.
46651         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
46653 2011-07-06  Bruno Haible  <bruno@clisp.org>
46655         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
46656         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
46657         <winsock2.h>.
46658         (rpl_fd_isset, FD_ISSET): New definitions, copied from
46659         lib/sys_socket.in.h.
46660         (close, gethostname): Hide declarations from <winsock2.h>.
46661         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46662         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
46663         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
46664         (select): Don't override if gnulib's <sys/select.h> was already
46665         included.
46666         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
46667         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
46668         setsockopt, shutdown, select): Tweak indentation.
46670 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46672         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
46673         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
46674         in an application that does not use the sys_select module.
46676 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
46678         poll: do not return 0 on timeout=-1
46679         * lib/poll.c: Loop with yield if no events occurred.
46681 2011-07-06  Eric Blake  <eblake@redhat.com>
46683         pthread_sigmask: always replace when not using pthread
46684         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
46685         replacement when using some threading other than pthread.  Fix
46686         logic bug.
46688 2011-07-06  Bruno Haible  <bruno@clisp.org>
46690         Comments.
46691         * m4/printf.m4: Update comments about mingw.
46693 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46695         sys_select: define sigset_t more portably
46696         * lib/sys_select.in.h: Always include <sys/types.h>, since
46697         we now need sigset_t and mingw defines it there.
46698         Include <signal.h> before split inclusion guard, to avoid
46699         mishaps on Solaris, whose <signal.h> eventually includes us.
46700         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
46701         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
46702         which come from ...
46703         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
46704         gl_CHECK_TYPE_SIGSET_T.
46705         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
46706         does the real work.
46707         * modules/sys_select (Depends-on): Add 'signal'.
46709         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
46710         Suggested by Bruno Haible.
46712         pselect: Use pthread_sigmask, not sigprocmask.
46713         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
46714         multithreaded apps better than sigprocmask does.
46715         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
46716         sigprocmask directly.
46718 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46720         * lib/pselect.c (pselect): Use plain name, without "rpl_".
46721         Don't #undef,  since we don't need any underlying pselect.
46722         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
46723         (Depends-on): Add select.
46724         (Link): Add $(LIBSOCKET).
46725         These changes suggested by Bruno Haible.
46727         pselect: document better
46728         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
46729         * doc/posix-functions/pselect.texi (pselect): Document new module.
46731         pthread_sigmask: new module
46732         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
46733         * doc/posix-functions/pthread_sigmask.texi: Document new module.
46734         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
46735         This is done only as a macro; I don't know how well that'll
46736         work for C++.  Move <sys/types.h> include before the include_next,
46737         to avoid mishap on Solaris.
46738         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
46739         * modules/signal (Makefile.am): Substitute the check's results.
46740         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
46742         test-pselect: new module
46743         * modules/pselect-tests, tests/test-pselect.c: New files.
46744         * tests/test-select.c, tests/test-sys_select-c++.cc:
46745         If TEST_PSELECT is defined, test pselect instead of testing select.
46747         * tests/test-sys_select.c (sigset_t): Test for it, too.
46748         Suggested by Bruno Haible.
46750 2011-07-05  Eric Blake  <eblake@redhat.com>
46752         snprintf: guarantee %1$d, for libintl
46753         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
46754         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46755         * doc/posix-functions/snprintf.texi (snprintf): Update.
46756         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46757         * tests/test-snprintf.c (main): Enhance test.
46758         * tests/test-vsnprintf.c (main): Likewise.
46760 2011-07-05  Jim Meyering  <meyering@redhat.com>
46762         maint: exempt stdio-read.c and stdio-write.c from the cppi check
46763         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
46764         per Bruno's request, to accommodate this idiom (no space after "#")
46765         even when the function is inside an #if block:
46766         char *
46767         gets (char *s)
46768         #undef gets
46769         {
46770           ...
46771         }
46773 2011-07-04  Jim Meyering  <meyering@redhat.com>
46775         maint: indent with spaces, not TABs, and add a rule to check this
46776         * tests/test-userspec.c: Indent with spaces, not TABs.
46777         * tests/test-argp.c: Likewise.
46778         * tests/test-c-stack2.sh: Likewise.
46779         * tests/test-parse-duration.sh: Likewise
46780         * m4/strtod.m4: Likewise.
46781         * m4/alloca.m4: Likewise.
46782         * m4/pselect.m4: Likewise.
46783         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
46785 2011-07-03  Jim Meyering  <meyering@redhat.com>
46787         maint.mk: correct omissions in prohibit_argmatch_without_use check
46788         This rule would mistakenly report that argmatch.h is included without
46789         use even when both the argmatch and invalid_arg macro were used.
46790         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
46791         of argmatch and invalid_arg.
46793 2011-07-03  Bruno Haible  <bruno@clisp.org>
46795         Comments about EINTR.
46796         * lib/safe-read.h: Explain the purpose of this module.
46797         * lib/safe-write.h: Likewise.
46798         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
46799         module.
46800         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
46801         module.
46802         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46804 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46806         xnanosleep: Rewrite to use new dtotimespec module.
46807         It has the conversion code that used to be in xnanosleep.
46808         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
46809         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
46810         (TIME_T_MAX): Remove.
46811         (xnanosleep): Rewrite in terms of dtotimespec.
46812         * modules/xnanosleep (Depends-on): Add dtotimespec.
46813         Remove intprops, stdbool.
46815         timespec-add, timespec-sub: new modules
46816         * lib/timespec.h (timespec_add, timespec_sub): New decls.
46817         * lib/timespec-add.c, lib/timespec-sub.c:
46818         * modules/timespec-add, modules/timespec-sub: New files.
46820         dtotimespec: new module
46821         * lib/timespec.h (dtotimespec): New decl.
46822         * lib/dtotimespec.c, modules/dtotimespec: New files.
46824         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
46826         pselect: new module
46827         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
46828         (pselect): New decls.
46829         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
46830         since the standard pselect decl uses 'restrict'.
46831         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
46832         HAVE_PSELECT, REPLACE_PSELECT.
46833         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
46834         HAVE_PSELECT, REPLACE_PSELECT.
46835         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
46837         sys_select: don't depend on sys_socket
46838         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
46839         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
46840         This fix works on GNU and GNU-like platforms, but has not been tested
46841         on native Windows.
46842         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
46843         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
46844         gl_HEADER_SYS_SOCKET.
46845         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
46846         gl_PREREQ_SYS_H_WINSOCK2.
46848 2011-06-29  Eric Blake  <eblake@redhat.com>
46850         pipe2: fix C89 compile problem
46851         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
46852         Reported by Bruno Haible.
46854         pipe, pipe2: don't corrupt fd on error
46855         * lib/pipe.c (pipe): Leave fd unchanged on error.
46856         * lib/pipe2.c (pipe2): Likewise.
46857         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
46858         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
46860 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
46862         mmap-anon: do not use regular expressions inadvertently
46863         * m4/mmap-anon.m4: Remove trailing period from strings sought
46864         in the output.
46866 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
46868         nanosleep: fix integer overflow problem
46869         * lib/nanosleep.c (my_usleep): Don't assume signed integer
46870         arithmetic wraps around on overflow.
46872         nanosleep: simplify carrying
46873         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
46874         first call to the underyling nanosleep, not for the last one.
46875         This doesn't fix any bugs, but it simplifies the computation of
46876         the remaining delay.  Found while auditing integer overflow issues.
46878         dup2: remove test for existence of fcntl
46879         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
46880         "#if HAVE_FCNTL", in the configure-time test program.
46881         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
46882         and therefore speeds up "configure" a bit.  Found while
46883         adding the dup2 module to Emacs.
46885 2011-06-24  Eric Blake  <eblake@redhat.com>
46887         maint.mk: enhance useless header checks
46888         * top/maint.mk (_sc_header_without_use): Check both include
46889         styles.
46890         (sc_prohibit_assert_without_use)
46891         (sc_prohibit_close_stream_without_use)
46892         (sc_prohibit_getopt_without_use)
46893         (sc_prohibit_quotearg_without_use)
46894         (sc_prohibit_quote_without_use)
46895         (sc_prohibit_long_options_without_use)
46896         (sc_prohibit_inttostr_without_use)
46897         (sc_prohibit_ignore_value_without_use)
46898         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
46899         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
46900         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
46901         (sc_prohibit_hash_pjw_without_use)
46902         (sc_prohibit_safe_read_without_use)
46903         (sc_prohibit_argmatch_without_use)
46904         (sc_prohibit_canonicalize_without_use)
46905         (sc_prohibit_root_dev_ino_without_use)
46906         (sc_prohibit_openat_without_use)
46907         (sc_prohibit_c_ctype_without_use)
46908         (sc_prohibit_signal_without_use)
46909         (sc_prohibit_stdio--_without_use)
46910         (sc_prohibit_stdio-safer_without_use)
46911         (sc_prohibit_strings_without_use)
46912         (sc_prohibit_intprops_without_use)
46913         (sc_prohibit_stddef_without_use)
46914         (sc_prohibit_xfreopen_without_use): Update clients.
46916 2011-06-24  Jim Meyering  <meyering@redhat.com>
46918         syntax-check: keep one maint.mk rule in sync with its header
46919         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
46920         of the bug Eric has just fixed, with today's commit 25e4c2ec.
46921         I prefer to avoid temporary files here, so use <(...), but that
46922         is not supported by /bin/sh, so...
46923         (SHELL): Define to /bin/bash.
46925 2011-06-24  Eric Blake  <eblake@redhat.com>
46927         maint.mk: update sc_prohibit_intprops_without_use
46928         * top/maint.mk (_intprops_names): Match recent changes.
46930 2011-06-24  Bruno Haible  <bruno@clisp.org>
46932         strerror-override: No-op tweak.
46933         * lib/strerror-override.h (strerror_override): Reorder conditions,
46934         for consistency with lib/strerror-override.c.
46936 2011-06-23  Eric Blake  <eblake@redhat.com>
46938         maint.mk: test further PATH_MAX issues
46939         * top/maint.mk (sc_prohibit_path_max_array): Rename...
46940         (sc_prohibit_path_max_allocation): ...and also test alloca.
46941         Suggested by Jim Meyering.
46943 2011-06-22  Eric Blake  <eblake@redhat.com>
46945         maint.mk: add syntax-check to avoid char[PATH_MAX]
46946         * top/maint.mk (sc_prohibit_path_max_array): New rule.
46948         stat: be robust to PATH_MAX definition
46949         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
46950         * modules/stat (Depends-on): Add verify.
46952         link: work around IRIX bug
46953         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
46954         * lib/link.c (rpl_link): Work around it.
46955         * tests/test-link.h (test_link): Enhance test.
46956         * doc/posix-functions/link.texi (link): Document the bug.
46958         getopt: silence clang warning
46959         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
46960         dereference.
46961         Reported by Gustavo Martin Domato.
46963 2011-06-22  Jim Meyering  <meyering@redhat.com>
46965         bootstrap: do not insert a blank line into each .gitignore file
46966         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
46968 2011-06-21  Eric Blake  <eblake@redhat.com>
46970         perror: test for output mismatch
46971         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
46972         perror on IRIX.
46974         strerror_r: fix OpenBSD behavior on out-of-range
46975         * lib/strerror_r.c (strerror_r): Always use maximal string.
46976         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
46978         strerror_r: fix OpenBSD behavior on 0
46979         * lib/strerror-override.c (strerror_override): Also override 0
46980         when needed.
46981         * lib/strerror-override.h (strerror_override): Likewise.
46982         * lib/strerror.c (strerror): Simplify, now that 0 override is done
46983         earlier.
46984         * lib/strerror_r.c (strerror_r): Likewise.
46985         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
46986         behavior...
46987         (gl_FUNC_STRERROR_0): ...into new macro.
46988         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
46989         is overridden.
46990         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
46991         * modules/strerror-override (Files): Add strerror.m4.
46992         (configure.ac): Also provide override for 0 when needed.
46993         * doc/posix-functions/strerror.texi (strerror): Document this.
46994         * doc/posix-functions/perror.texi (perror): Likewise.
46996         perror: adjust array size
46997         * modules/perror (Depends-on): Add strerror-override.
46998         * lib/perror.c (perror): Use it to avoid magic number.
47000         strerror-override: reduce size
47001         * lib/strerror-override.c (strerror_override): Use fewer lines.
47003 2011-06-20  Bruno Haible  <bruno@clisp.org>
47005         pathmax: Ensure correct value for PATH_MAX on HP-UX.
47006         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
47008 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47010         alloca: port to compilers that can optimize like GCC 4.6.0
47011         * lib/alloca.c (find_stack_direction): New signature, taken from
47012         Autoconf git.  This works with GCC 4.6.0.  This code should never
47013         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
47014         be used with other compilers that optimize as well as GCC 4.6.0 does.
47015         (alloca): Adjust to new signature.
47016         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
47017         New macro, which patches Autoconf in a similar way.
47019         c-stack: stop worrying about stack direction
47020         * lib/c-stack.c (find_stack_direction): Remove.
47021         (segv_handler): Don't worry about stack direction growth, as it's
47022         too much of a pain to configure this correctly, given how compilers
47023         are optimizing-away our stack-growth detection code.  Instead, assume
47024         that any access to just before or just after the stack is OK.
47025         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47026         Don't require AC_FUNC_ALLOCA; no longer needed.
47028 2011-06-20  Eric Blake  <eblake@redhat.com>
47030         test-stat: don't allocate PATH_MAX bytes
47031         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
47032         PATH_MAX-sized buffer.
47033         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
47034         * modules/stat-tests (Depends-on): Likewise.
47035         * tests/test-fstatat.c (includes): Drop pathmax.h.
47036         * tests/test-stat.c (includes): Likewise.
47037         Reported by Bruno Haible.
47039 2011-06-20  Bruno Haible  <bruno@clisp.org>
47041         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
47042         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
47043         * lib/float.c: New file.
47044         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
47045         REPLACE_FLOAT_LDBL.
47046         * modules/float (Files): Add lib/float.c.
47047         (configure.ac): Invoke AC_LIBOBJ.
47048         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
47050 2011-06-20  Bruno Haible  <bruno@clisp.org>
47052         Tests for module 'float'.
47053         * modules/float-tests: New file.
47054         * tests/test-float.c: New file.
47056 2011-06-19  Bruno Haible  <bruno@clisp.org>
47058         isinf: Coding style.
47059         * lib/isinf.c: Use GNU coding style.
47061 2011-06-19  Bruno Haible  <bruno@clisp.org>
47063         linkat test: Avoid test failure on AIX 7.1.
47064         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
47065         * tests/test-link.h (test_link): Likewise.
47067 2011-06-19  Bruno Haible  <bruno@clisp.org>
47069         pread test: Avoid test failure on OpenBSD 4.9.
47070         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
47072 2011-06-19  Bruno Haible  <bruno@clisp.org>
47074         sprintf-posix: Fix test failure on AIX 7.1.
47075         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
47076         * doc/posix-functions/dprintf.texi: Mention limited precision problem
47077         on AIX.
47078         * doc/posix-functions/fprintf.texi: Likewise.
47079         * doc/posix-functions/printf.texi: Likewise.
47080         * doc/posix-functions/snprintf.texi: Likewise.
47081         * doc/posix-functions/sprintf.texi: Likewise.
47082         * doc/posix-functions/vdprintf.texi: Likewise.
47083         * doc/posix-functions/vfprintf.texi: Likewise.
47084         * doc/posix-functions/vprintf.texi: Likewise.
47085         * doc/posix-functions/vsnprintf.texi: Likewise.
47086         * doc/posix-functions/vsprintf.texi: Likewise.
47088 2011-06-19  Bruno Haible  <bruno@clisp.org>
47090         roundl-ieee: Fix test failure on AIX 7.1.
47091         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
47092         * doc/posix-functions/roundl.texi: Mention problem with negative
47093         arguments.
47095 2011-06-19  Bruno Haible  <bruno@clisp.org>
47097         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47098         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
47099         * doc/posix-functions/round.texi: Mention problem with negative
47100         arguments.
47101         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
47103 2011-06-19  Bruno Haible  <bruno@clisp.org>
47105         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47106         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
47107         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
47108         * doc/posix-functions/roundf.texi: Mention problem with negative
47109         arguments.
47110         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
47112 2011-06-19  Bruno Haible  <bruno@clisp.org>
47114         ceilf-ieee: Work around bug on MacOS X 10.5.
47115         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
47117         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
47118         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
47119         IEEE compliant, avoid compiler optimizations.
47120         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
47121         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47122         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
47123         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47124         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47125         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47126         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47127         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
47128         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
47129         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
47131 2011-06-19  Bruno Haible  <bruno@clisp.org>
47133         ceilf-ieee: Work around bug on AIX 7.1.
47134         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
47135         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
47137 2011-06-19  Bruno Haible  <bruno@clisp.org>
47139         ceil-ieee: Work around bug on AIX 7.1.
47140         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
47141         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
47143 2011-06-18  Bruno Haible  <bruno@clisp.org>
47145         fsync test: Avoid test failure on MacOS X and AIX.
47146         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
47147         EINVAL.
47149 2011-06-18  Bruno Haible  <bruno@clisp.org>
47151         openat, fdopendir tests: Fix link errors.
47152         * modules/openat-tests (Depends-on): Add progname.
47153         * modules/fdopendir-tests (Depends-on): Likewise.
47154         * tests/test-fchownat.c: Include progname.h.
47155         (main): Call set_program_name.
47156         * tests/test-fstatat.c: Include progname.h.
47157         (main): Call set_program_name.
47158         * tests/test-mkdirat.c: Include progname.h.
47159         (main): Call set_program_name.
47160         * tests/test-openat.c: Include progname.h.
47161         (main): Call set_program_name.
47162         * tests/test-unlinkat.c: Include progname.h.
47163         (main): Call set_program_name.
47164         * tests/test-fdopendir.c: Include progname.h.
47165         (main): Call set_program_name.
47167 2011-06-18  Bruno Haible  <bruno@clisp.org>
47169         Doc update.
47170         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
47171         HP-UX.
47172         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
47174 2011-06-18  Bruno Haible  <bruno@clisp.org>
47176         getcwd tests: Avoid compilation error on HP-UX 11.31.
47177         * modules/getcwd-tests (Depends-on): Add pathmax.
47178         * tests/test-getcwd.c: Include pathmax.h.
47180 2011-06-18  Bruno Haible  <bruno@clisp.org>
47182         isfinite, isinf: Fix link error on AIX 6 and 7.
47183         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
47184         needed, also test the macro with a 'float' argument.
47185         * m4/isinf.m4 (gl_ISINF): Likewise.
47187 2011-06-18  Bruno Haible  <bruno@clisp.org>
47189         getloadavg: Don't clobber LIBS. Regression from previous commit.
47190         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
47191         AC_CHECK_LIB from here...
47192         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
47193         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
47194         gl_func_getloadavg_done.
47195         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47197 2011-06-18  Bruno Haible  <bruno@clisp.org>
47199         clean-temp: Improve documentation.
47200         * lib/clean-temp.h: Explain better how to use this module.
47201         Reported by John Darrington <john@darrington.wattle.id.au>.
47203 2011-06-17  Bruno Haible  <bruno@clisp.org>
47205         pread, pwrite: Avoid cc warning on AIX.
47206         * lib/unistd.in.h (pread): Undefine before defining as a macro.
47207         (pwrite): Likewise.
47209 2011-06-17  Bruno Haible  <bruno@clisp.org>
47211         spawn-pipe tests: Fix link error.
47212         * tests/test-spawn-pipe-child.c: Undefine fprintf.
47213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47215 2011-06-17  Bruno Haible  <bruno@clisp.org>
47217         Tests: Remove unnecessary dependency.
47218         * modules/canonicalize-tests (Depends-on): Remove progname.
47219         * modules/chown-tests (Depends-on): Likewise.
47220         * modules/dirname-tests (Depends-on): Likewise.
47221         * modules/fdopendir-tests (Depends-on): Likewise.
47222         * modules/fdutimensat-tests (Depends-on): Likewise.
47223         * modules/hash-tests (Depends-on): Likewise.
47224         * modules/lchown-tests (Depends-on): Likewise.
47225         * modules/linkat-tests (Depends-on): Likewise.
47226         * modules/renameat-tests (Depends-on): Likewise.
47227         * modules/spawn-pipe-tests (Depends-on): Likewise.
47228         * modules/utimensat-tests (Depends-on): Likewise.
47230 2011-06-17  Bruno Haible  <bruno@clisp.org>
47232         spawn-pipe tests: Fix link error.
47233         * tests/test-spawn-pipe-child.c: Undefine fflush.
47235 2011-06-17  Bruno Haible  <bruno@clisp.org>
47237         Fix tests link errors.
47238         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
47239         * modules/chown-tests (Makefile.am): Don't link test-chown with
47240         LIBINTL.
47241         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
47242         LIBINTL.
47243         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
47244         LIBINTL.
47245         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
47246         LIBINTL.
47248 2011-06-16  Bruno Haible  <bruno@clisp.org>
47250         crypto/gc-sha1: Fix recent regression.
47251         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
47252         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
47254         crypto/gc-md5: Fix recent regression.
47255         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
47257         crypto/gc-md4: Fix recent regression.
47258         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
47259         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
47261         crypto/gc-arctwo: Fix recent regression.
47262         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
47263         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
47265         crypto/gc-rijndael: Fix recent regression.
47266         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
47267         (configure.ac): Invoke AC_LIBOBJ here.
47268         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
47269         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47271         crypto/gc-hmac-sha1: Fix recent regression.
47272         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
47273         (configure.ac): Invoke AC_LIBOBJ here.
47274         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
47275         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47277         crypto/gc-hmac-md5: Fix recent regression.
47278         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
47279         (configure.ac): Invoke AC_LIBOBJ here.
47280         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
47281         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47283         crypto/gc-des: Fix recent regression.
47284         * modules/crypto/gc-des (Files): Remove m4/des.m4.
47285         (configure.ac): Invoke AC_LIBOBJ here.
47286         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
47287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47289         crypto/gc-arcfour: Fix recent regression.
47290         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
47291         (configure.ac): Invoke AC_LIBOBJ here.
47292         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
47293         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47295 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
47297         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
47298         After the 2011-05-21 change, this macro requires
47299         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
47300         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47302 2011-06-16  Bruno Haible  <bruno@clisp.org>
47304         fprintftime: Move AC_LIBOBJ invocations to module description.
47305         * m4/fprintftime.m4: Remove file.
47306         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
47307         (configure.ac): Remove gl_FPRINTFTIME call.
47308         (Makefile.am): Augment lib_SOURCES.
47309         Reported by Jim Meyering.
47311 2011-06-16  Bruno Haible  <bruno@clisp.org>
47313         tmpfile-safer: Finish 2011-05-23 commit.
47314         * m4/stdio-safer.m4: Really remove file.
47315         Reported by Jim Meyering.
47317 2011-06-16  Bruno Haible  <bruno@clisp.org>
47319         syntax-check: Fix typo.
47320         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
47321         printf-posix.m4.
47322         Reported by Jim Meyering.
47324 2011-06-13  Jim Meyering  <meyering@redhat.com>
47326         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
47327         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
47329 2011-05-23  Bruno Haible  <bruno@clisp.org>
47331         yesno: Move AC_LIBOBJ invocations to module description.
47332         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
47333         * modules/yesno (Makefile.am): Augment lib_SOURCES.
47335 2011-05-23  Bruno Haible  <bruno@clisp.org>
47337         xstrtol: Move AC_LIBOBJ invocations to module description.
47338         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
47339         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
47341 2011-05-23  Bruno Haible  <bruno@clisp.org>
47343         xstrtold: Move AC_LIBOBJ invocations to module description.
47344         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
47345         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
47347 2011-05-23  Bruno Haible  <bruno@clisp.org>
47349         xstrtod: Move AC_LIBOBJ invocations to module description.
47350         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
47351         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
47353 2011-05-23  Bruno Haible  <bruno@clisp.org>
47355         xnanosleep: Move AC_LIBOBJ invocations to module description.
47356         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
47357         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
47359 2011-05-23  Bruno Haible  <bruno@clisp.org>
47361         xgetcwd: Move AC_LIBOBJ invocations to module description.
47362         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
47363         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
47365 2011-05-23  Bruno Haible  <bruno@clisp.org>
47367         xalloc: Move AC_LIBOBJ invocations to module description.
47368         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
47369         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
47371 2011-05-23  Bruno Haible  <bruno@clisp.org>
47373         write-any-file: Move AC_LIBOBJ invocations to module description.
47374         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
47375         invocation.
47376         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
47378 2011-05-23  Bruno Haible  <bruno@clisp.org>
47380         utimens: Move AC_LIBOBJ invocations to module description.
47381         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
47382         * modules/utimens (Makefile.am): Augment lib_SOURCES.
47384 2011-05-23  Bruno Haible  <bruno@clisp.org>
47386         utimecmp: Move AC_LIBOBJ invocations to module description.
47387         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
47388         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
47390 2011-05-23  Bruno Haible  <bruno@clisp.org>
47392         userspec: Move AC_LIBOBJ invocations to module description.
47393         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
47394         * modules/userspec (Makefile.am): Augment lib_SOURCES.
47396 2011-05-23  Bruno Haible  <bruno@clisp.org>
47398         unlinkdir: Move AC_LIBOBJ invocations to module description.
47399         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
47400         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
47402 2011-05-23  Bruno Haible  <bruno@clisp.org>
47404         unistd-safer: Move AC_LIBOBJ invocations to module description.
47405         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
47406         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
47408 2011-05-23  Bruno Haible  <bruno@clisp.org>
47410         tempname: Move AC_LIBOBJ invocations to module description.
47411         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
47412         * modules/tempname (Makefile.am): Augment lib_SOURCES.
47414 2011-05-23  Bruno Haible  <bruno@clisp.org>
47416         strftime: Move AC_LIBOBJ invocations to module description.
47417         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
47418         * modules/strftime (Makefile.am): Augment lib_SOURCES.
47420 2011-05-23  Bruno Haible  <bruno@clisp.org>
47422         stdlib-safer: Move AC_LIBOBJ invocations to module description.
47423         * m4/stdlib-safer.m4: Remove file.
47424         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
47425         (configure.ac): Remove gl_STDLIB_SAFER call.
47426         (Makefile.am): Augment lib_SOURCES.
47428 2011-05-23  Bruno Haible  <bruno@clisp.org>
47430         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
47431         * m4/stdio-safer.m4: Remove file.
47432         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
47433         (configure.ac): Remove gl_TMPFILE_SAFER call.
47434         (Makefile.am): Augment lib_SOURCES.
47436 2011-05-23  Bruno Haible  <bruno@clisp.org>
47438         popen-safer: Move AC_LIBOBJ invocations to module description.
47439         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
47440         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
47441         (configure.ac): Remove gl_POPEN_SAFER call.
47442         (Makefile.am): Augment lib_SOURCES.
47444 2011-05-23  Bruno Haible  <bruno@clisp.org>
47446         freopen-safer: Move AC_LIBOBJ invocations to module description.
47447         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
47448         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
47449         (configure.ac): Remove gl_FREOPEN_SAFER call.
47450         (Makefile.am): Augment lib_SOURCES.
47452 2011-05-23  Bruno Haible  <bruno@clisp.org>
47454         fopen-safer: Move AC_LIBOBJ invocations to module description.
47455         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
47456         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
47457         (configure.ac): Remove gl_FOPEN_SAFER call.
47458         (Makefile.am): Augment lib_SOURCES.
47460 2011-05-23  Bruno Haible  <bruno@clisp.org>
47462         crypto/sha512: Move AC_LIBOBJ invocations to module description.
47463         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
47464         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
47466 2011-05-23  Bruno Haible  <bruno@clisp.org>
47468         crypto/sha256: Move AC_LIBOBJ invocations to module description.
47469         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
47470         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
47472 2011-05-23  Bruno Haible  <bruno@clisp.org>
47474         crypto/sha1: Move AC_LIBOBJ invocations to module description.
47475         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
47476         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
47478 2011-05-23  Bruno Haible  <bruno@clisp.org>
47480         settime: Move AC_LIBOBJ invocations to module description.
47481         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
47482         * modules/settime (Makefile.am): Augment lib_SOURCES.
47484 2011-05-23  Bruno Haible  <bruno@clisp.org>
47486         savedir: Move AC_LIBOBJ invocations to module description.
47487         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
47488         * modules/savedir (Makefile.am): Augment lib_SOURCES.
47490 2011-05-23  Bruno Haible  <bruno@clisp.org>
47492         save-cwd: Move AC_LIBOBJ invocations to module description.
47493         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
47494         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
47496 2011-05-23  Bruno Haible  <bruno@clisp.org>
47498         same: Move AC_LIBOBJ invocations to module description.
47499         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
47500         * modules/same (Makefile.am): Augment lib_SOURCES.
47502 2011-05-23  Bruno Haible  <bruno@clisp.org>
47504         safe-write: Move AC_LIBOBJ invocations to module description.
47505         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
47506         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
47507         instead of gl_SAFE_WRITE.
47508         (Makefile.am): Augment lib_SOURCES.
47510 2011-05-23  Bruno Haible  <bruno@clisp.org>
47512         safe-read: Move AC_LIBOBJ invocations to module description.
47513         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
47514         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
47515         of gl_SAFE_READ.
47516         (Makefile.am): Augment lib_SOURCES.
47518 2011-05-23  Bruno Haible  <bruno@clisp.org>
47520         safe-alloc: Move AC_LIBOBJ invocations to module description.
47521         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
47522         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
47524 2011-05-23  Bruno Haible  <bruno@clisp.org>
47526         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
47527         * m4/rijndael.m4: Remove file.
47528         * modules/crypto/rijndael (Files): Remove it.
47529         (configure.ac): Remove gl_RIJNDAEL call.
47530         (Makefile.am): Augment lib_SOURCES.
47532 2011-05-23  Bruno Haible  <bruno@clisp.org>
47534         readtokens: Move AC_LIBOBJ invocations to module description.
47535         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
47536         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
47538 2011-05-23  Bruno Haible  <bruno@clisp.org>
47540         read-file: Move AC_LIBOBJ invocations to module description.
47541         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
47542         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
47543         of gl_FUNC_READ_FILE.
47544         (Makefile.am): Augment lib_SOURCES.
47546 2011-05-23  Bruno Haible  <bruno@clisp.org>
47548         quotearg: Move AC_LIBOBJ invocations to module description.
47549         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
47550         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
47552 2011-05-23  Bruno Haible  <bruno@clisp.org>
47554         quote: Move AC_LIBOBJ invocations to module description.
47555         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
47556         * modules/quote (Makefile.am): Augment lib_SOURCES.
47558 2011-05-23  Bruno Haible  <bruno@clisp.org>
47560         posixver: Move AC_LIBOBJ invocations to module description.
47561         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
47562         * modules/posixver (Makefile.am): Augment lib_SOURCES.
47564 2011-05-23  Bruno Haible  <bruno@clisp.org>
47566         posixtm: Move AC_LIBOBJ invocations to module description.
47567         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
47568         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
47570 2011-05-23  Bruno Haible  <bruno@clisp.org>
47572         physmem: Move AC_LIBOBJ invocations to module description.
47573         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
47574         * modules/physmem (Makefile.am): Augment lib_SOURCES.
47576 2011-05-23  Bruno Haible  <bruno@clisp.org>
47578         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
47579         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
47580         invocation.
47581         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
47583 2011-05-23  Bruno Haible  <bruno@clisp.org>
47585         mpsort: Move AC_LIBOBJ invocations to module description.
47586         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
47587         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
47589 2011-05-23  Bruno Haible  <bruno@clisp.org>
47591         modechange: Move AC_LIBOBJ invocations to module description.
47592         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
47593         * modules/modechange (Makefile.am): Augment lib_SOURCES.
47595 2011-05-23  Bruno Haible  <bruno@clisp.org>
47597         mkdir-p: Move AC_LIBOBJ invocations to module description.
47598         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
47599         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
47601 2011-05-23  Bruno Haible  <bruno@clisp.org>
47603         mkancesdirs: Move AC_LIBOBJ invocations to module description.
47604         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
47605         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
47607 2011-05-23  Bruno Haible  <bruno@clisp.org>
47609         mgetgroups: Move AC_LIBOBJ invocations to module description.
47610         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
47611         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
47613 2011-05-23  Bruno Haible  <bruno@clisp.org>
47615         memxor: Move AC_LIBOBJ invocations to module description.
47616         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
47617         * modules/memxor (Makefile.am): Augment lib_SOURCES.
47619 2011-05-23  Bruno Haible  <bruno@clisp.org>
47621         memcoll: Move AC_LIBOBJ invocations to module description.
47622         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
47623         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
47625 2011-05-23  Bruno Haible  <bruno@clisp.org>
47627         memcasecmp: Move AC_LIBOBJ invocations to module description.
47628         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
47629         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
47631 2011-05-23  Bruno Haible  <bruno@clisp.org>
47633         crypto/md5: Move AC_LIBOBJ invocations to module description.
47634         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
47635         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
47637 2011-05-23  Bruno Haible  <bruno@clisp.org>
47639         crypto/md4: Move AC_LIBOBJ invocations to module description.
47640         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
47641         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
47643 2011-05-23  Bruno Haible  <bruno@clisp.org>
47645         crypto/md2: Move AC_LIBOBJ invocations to module description.
47646         * m4/md2.m4: Remove file.
47647         * modules/crypto/md2 (Files): Remove it.
47648         (configure.ac): Remove gl_MD2 call.
47649         (Makefile.am): Augment lib_SOURCES.
47651 2011-05-23  Bruno Haible  <bruno@clisp.org>
47653         long-options: Move AC_LIBOBJ invocations to module description.
47654         * m4/long-options.m4: Remove file.
47655         * modules/long-options (Files): Remove it.
47656         (configure.ac): Remove gl_LONG_OPTIONS call.
47657         (Makefile.am): Augment lib_SOURCES.
47659 2011-05-23  Bruno Haible  <bruno@clisp.org>
47661         i-ring: Move AC_LIBOBJ invocations to module description.
47662         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
47663         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
47665 2011-05-23  Bruno Haible  <bruno@clisp.org>
47667         idcache: Move AC_LIBOBJ invocations to module description.
47668         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
47669         * modules/idcache (Makefile.am): Augment lib_SOURCES.
47671 2011-05-23  Bruno Haible  <bruno@clisp.org>
47673         human: Move AC_LIBOBJ invocations to module description.
47674         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
47675         * modules/human (Makefile.am): Augment lib_SOURCES.
47677 2011-05-23  Bruno Haible  <bruno@clisp.org>
47679         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
47680         * m4/hmac-sha1.m4: Remove file.
47681         * modules/crypto/hmac-sha1 (Files): Remove it.
47682         (configure.ac): Remove gl_HMAC_SHA1 call.
47683         (Makefile.am): Augment lib_SOURCES.
47685 2011-05-23  Bruno Haible  <bruno@clisp.org>
47687         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
47688         * m4/hmac-md5.m4: Remove file.
47689         * modules/crypto/hmac-md5 (Files): Remove it.
47690         (configure.ac): Remove gl_HMAC_MD5 call.
47691         (Makefile.am): Augment lib_SOURCES.
47693 2011-05-23  Bruno Haible  <bruno@clisp.org>
47695         hash: Move AC_LIBOBJ invocations to module description.
47696         * m4/hash.m4: Remove file.
47697         * modules/hash (Files): Remove it.
47698         (configure.ac): Remove gl_HASH call.
47699         (Makefile.am): Augment lib_SOURCES.
47701 2011-05-23  Bruno Haible  <bruno@clisp.org>
47703         hard-locale: Move AC_LIBOBJ invocations to module description.
47704         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
47705         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
47707 2011-05-23  Bruno Haible  <bruno@clisp.org>
47709         getugroups: Move AC_LIBOBJ invocations to module description.
47710         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
47711         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
47713 2011-05-23  Bruno Haible  <bruno@clisp.org>
47715         gettime: Move AC_LIBOBJ invocations to module description.
47716         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
47717         * modules/gettime (Makefile.am): Augment lib_SOURCES.
47719 2011-05-23  Bruno Haible  <bruno@clisp.org>
47721         getndelim2: Move AC_LIBOBJ invocations to module description.
47722         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
47723         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
47725 2011-05-23  Bruno Haible  <bruno@clisp.org>
47727         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
47728         * m4/gc-pbkdf2-sha1.m4: Remove file.
47729         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
47730         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
47731         (Makefile.am): Augment lib_SOURCES.
47733 2011-05-23  Bruno Haible  <bruno@clisp.org>
47735         fts: Move AC_LIBOBJ invocations to module description.
47736         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
47737         * modules/fts (configure.ac): ... to here.
47739 2011-05-23  Bruno Haible  <bruno@clisp.org>
47741         file-type: Move AC_LIBOBJ invocations to module description.
47742         * m4/file-type.m4: Remove file.
47743         * modules/file-type (Files): Remove it.
47744         (configure.ac): Remove gl_FILE_TYPE call.
47745         (Makefile.am): Augment lib_SOURCES.
47747 2011-05-23  Bruno Haible  <bruno@clisp.org>
47749         filenamecat*: Respect rules for use of AC_LIBOBJ.
47750         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
47751         Remove AC_LIBOBJ invocation.
47752         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
47753         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
47755 2011-05-23  Bruno Haible  <bruno@clisp.org>
47757         filemode: Move AC_LIBOBJ invocations to module description.
47758         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
47759         * modules/filemode (Makefile.am): Augment lib_SOURCES.
47761 2011-05-23  Bruno Haible  <bruno@clisp.org>
47763         openat-safer: Move AC_LIBOBJ invocations to module description.
47764         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
47765         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
47767 2011-05-23  Bruno Haible  <bruno@clisp.org>
47769         fcntl-safer: Move AC_LIBOBJ invocations to module description.
47770         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
47771         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
47773 2011-05-23  Bruno Haible  <bruno@clisp.org>
47775         exclude: Move AC_LIBOBJ invocations to module description.
47776         * m4/exclude.m4: Remove file.
47777         * modules/exclude (Files): Remove it.
47778         (configure.ac): Remove gl_EXCLUDE call.
47779         (Makefile.am): Augment lib_SOURCES.
47781 2011-05-23  Bruno Haible  <bruno@clisp.org>
47783         dirname*: Respect rules for use of AC_LIBOBJ.
47784         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
47785         invocations.
47786         * modules/dirname (Makefile.am): Augment lib_SOURCES.
47787         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
47789 2011-05-23  Bruno Haible  <bruno@clisp.org>
47791         dirent-safer: Move AC_LIBOBJ invocations to module description.
47792         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
47793         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
47795 2011-05-23  Bruno Haible  <bruno@clisp.org>
47797         crypto/des: Move AC_LIBOBJ invocations to module description.
47798         * m4/des.m4: Remove file.
47799         * modules/crypto/des (Files): Remove it.
47800         (configure.ac): Remove gl_DES call.
47801         (Makefile.am): Augment lib_SOURCES.
47803 2011-05-23  Bruno Haible  <bruno@clisp.org>
47805         cycle-check: Move AC_LIBOBJ invocations to module description.
47806         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
47807         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
47809 2011-05-23  Bruno Haible  <bruno@clisp.org>
47811         c-strtold: Move AC_LIBOBJ invocations to module description.
47812         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
47813         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
47815 2011-05-23  Bruno Haible  <bruno@clisp.org>
47817         c-strtod: Move AC_LIBOBJ invocations to module description.
47818         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
47819         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
47821 2011-05-23  Bruno Haible  <bruno@clisp.org>
47823         crc: Move AC_LIBOBJ invocations to module description.
47824         * m4/crc.m4: Remove file.
47825         * modules/crc (Files): Remove it.
47826         (configure.ac): Remove gl_CRC call.
47827         (Makefile.am): Augment lib_SOURCES.
47829 2011-05-23  Bruno Haible  <bruno@clisp.org>
47831         close-stream: Move AC_LIBOBJ invocations to module description.
47832         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
47833         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
47835 2011-05-23  Bruno Haible  <bruno@clisp.org>
47837         closeout: Move AC_LIBOBJ invocations to module description.
47838         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
47839         * modules/closeout (Makefile.am): Augment lib_SOURCES.
47841 2011-05-23  Bruno Haible  <bruno@clisp.org>
47843         closein: Move AC_LIBOBJ invocations to module description.
47844         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
47845         * modules/closein (Makefile.am): Augment lib_SOURCES.
47847 2011-05-23  Bruno Haible  <bruno@clisp.org>
47849         cloexec: Move AC_LIBOBJ invocations to module description.
47850         * m4/cloexec.m4: Remove file.
47851         * modules/cloexec (Files): Remove it.
47852         (configure.ac): Remove gl_CLOEXEC call.
47853         (Makefile.am): Augment lib_SOURCES.
47855 2011-05-23  Bruno Haible  <bruno@clisp.org>
47857         check-version: Move AC_LIBOBJ invocations to module description.
47858         * m4/check-version.m4: Remove file.
47859         * modules/check-version (Files): Remove it.
47860         (configure.ac): Remove gl_CHECK_VERSION call.
47861         (Makefile.am): Augment lib_SOURCES.
47863 2011-05-23  Bruno Haible  <bruno@clisp.org>
47865         chdir-safer: Move AC_LIBOBJ invocations to module description.
47866         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
47867         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
47869 2011-05-23  Bruno Haible  <bruno@clisp.org>
47871         canonicalize: Move AC_LIBOBJ invocations to module description.
47872         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
47873         AC_LIBOBJ invocation.
47874         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
47876 2011-05-23  Bruno Haible  <bruno@clisp.org>
47878         canon-host: Move AC_LIBOBJ invocations to module description.
47879         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
47880         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
47881         instead of gl_CANON_HOST.
47882         (Makefile.am): Augment lib_SOURCES.
47884 2011-05-23  Bruno Haible  <bruno@clisp.org>
47886         backupfile: Move AC_LIBOBJ invocations to module description.
47887         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
47888         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
47890 2011-05-23  Bruno Haible  <bruno@clisp.org>
47892         argmatch: Move AC_LIBOBJ invocations to module description.
47893         * m4/argmatch.m4: Remove file.
47894         * modules/argmatch (Files): Remove it.
47895         (configure.ac): Remove gl_ARGMATCH call.
47896         (Makefile.am): Augment lib_SOURCES.
47898 2011-05-23  Bruno Haible  <bruno@clisp.org>
47900         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
47901         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
47902         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
47904 2011-05-23  Bruno Haible  <bruno@clisp.org>
47906         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
47907         * m4/arcfour.m4: Remove file.
47908         * modules/crypto/arcfour (Files): Remove it.
47909         (configure.ac): Remove gl_ARCFOUR call.
47910         (Makefile.am): Augment lib_SOURCES.
47912 2011-05-22  Bruno Haible  <bruno@clisp.org>
47914         write: Move AC_LIBOBJ invocations to module description.
47915         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
47916         * modules/write (configure.ac): ... to here.
47918 2011-05-22  Bruno Haible  <bruno@clisp.org>
47920         wmemset: Move AC_LIBOBJ invocations to module description.
47921         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
47922         here...
47923         * modules/wmemset (configure.ac): ... to here.
47925 2011-05-22  Bruno Haible  <bruno@clisp.org>
47927         wmemmove: Move AC_LIBOBJ invocations to module description.
47928         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
47929         here...
47930         * modules/wmemmove (configure.ac): ... to here.
47932 2011-05-22  Bruno Haible  <bruno@clisp.org>
47934         wmemcpy: Move AC_LIBOBJ invocations to module description.
47935         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
47936         here...
47937         * modules/wmemcpy (configure.ac): ... to here.
47939 2011-05-22  Bruno Haible  <bruno@clisp.org>
47941         wmemcmp: Move AC_LIBOBJ invocations to module description.
47942         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
47943         here...
47944         * modules/wmemcmp (configure.ac): ... to here.
47946 2011-05-22  Bruno Haible  <bruno@clisp.org>
47948         wmemchr: Move AC_LIBOBJ invocations to module description.
47949         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
47950         here...
47951         * modules/wmemchr (configure.ac): ... to here.
47953 2011-05-22  Bruno Haible  <bruno@clisp.org>
47955         wcswidth: Move AC_LIBOBJ invocations to module description.
47956         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
47957         here...
47958         * modules/wcswidth (configure.ac): ... to here.
47960 2011-05-22  Bruno Haible  <bruno@clisp.org>
47962         wcwidth: Respect rules for use of AC_LIBOBJ.
47963         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
47964         invocation from here...
47965         * modules/wcwidth (configure.ac): ... to here.
47966         (Depends-on): Update conditions.
47968 2011-05-22  Bruno Haible  <bruno@clisp.org>
47970         wctype: Move AC_LIBOBJ invocations to module description.
47971         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
47972         invocation from here...
47973         * modules/wctype (configure.ac): ... to here.
47974         (Depends-on): Update conditions.
47976 2011-05-22  Bruno Haible  <bruno@clisp.org>
47978         wctrans: Move AC_LIBOBJ invocations to module description.
47979         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
47980         invocation from here...
47981         * modules/wctrans (configure.ac): ... to here.
47983 2011-05-22  Bruno Haible  <bruno@clisp.org>
47985         wctomb: Move AC_LIBOBJ invocations to module description.
47986         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
47987         invocations from here...
47988         * modules/wctomb (configure.ac): ... to here.
47990 2011-05-22  Bruno Haible  <bruno@clisp.org>
47992         wctob: Move AC_LIBOBJ invocations to module description.
47993         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
47994         gl_PREREQ_WCTOB invocations from here...
47995         * modules/wctob (configure.ac): ... to here.
47996         (Depends-on): Update conditions.
47998 2011-05-22  Bruno Haible  <bruno@clisp.org>
48000         wcsxfrm: Move AC_LIBOBJ invocations to module description.
48001         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
48002         here...
48003         * modules/wcsxfrm (configure.ac): ... to here.
48005 2011-05-22  Bruno Haible  <bruno@clisp.org>
48007         wcstok: Move AC_LIBOBJ invocations to module description.
48008         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
48009         * modules/wcstok (configure.ac): ... to here.
48011 2011-05-22  Bruno Haible  <bruno@clisp.org>
48013         wcsstr: Move AC_LIBOBJ invocations to module description.
48014         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
48015         * modules/wcsstr (configure.ac): ... to here.
48017 2011-05-22  Bruno Haible  <bruno@clisp.org>
48019         wcsspn: Move AC_LIBOBJ invocations to module description.
48020         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
48021         * modules/wcsspn (configure.ac): ... to here.
48023 2011-05-22  Bruno Haible  <bruno@clisp.org>
48025         wcsrtombs: Move AC_LIBOBJ invocations to module description.
48026         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
48027         gl_PREREQ_WCSRTOMBS invocations from here...
48028         * modules/wcsrtombs (configure.ac): ... to here.
48030 2011-05-22  Bruno Haible  <bruno@clisp.org>
48032         wcsrchr: Move AC_LIBOBJ invocations to module description.
48033         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
48034         here...
48035         * modules/wcsrchr (configure.ac): ... to here.
48037 2011-05-22  Bruno Haible  <bruno@clisp.org>
48039         wcspbrk: Move AC_LIBOBJ invocations to module description.
48040         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
48041         here...
48042         * modules/wcspbrk (configure.ac): ... to here.
48044 2011-05-22  Bruno Haible  <bruno@clisp.org>
48046         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
48047         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
48048         gl_PREREQ_WCSNRTOMBS invocations from here...
48049         * modules/wcsnrtombs (configure.ac): ... to here.
48051 2011-05-22  Bruno Haible  <bruno@clisp.org>
48053         wcsnlen: Move AC_LIBOBJ invocations to module description.
48054         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
48055         here...
48056         * modules/wcsnlen (configure.ac): ... to here.
48058 2011-05-22  Bruno Haible  <bruno@clisp.org>
48060         wcsncpy: Move AC_LIBOBJ invocations to module description.
48061         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
48062         here...
48063         * modules/wcsncpy (configure.ac): ... to here.
48065 2011-05-22  Bruno Haible  <bruno@clisp.org>
48067         wcsncmp: Move AC_LIBOBJ invocations to module description.
48068         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
48069         here...
48070         * modules/wcsncmp (configure.ac): ... to here.
48072 2011-05-22  Bruno Haible  <bruno@clisp.org>
48074         wcsncat: Move AC_LIBOBJ invocations to module description.
48075         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
48076         here...
48077         * modules/wcsncat (configure.ac): ... to here.
48079 2011-05-22  Bruno Haible  <bruno@clisp.org>
48081         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
48082         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
48083         from here...
48084         * modules/wcsncasecmp (configure.ac): ... to here.
48086 2011-05-22  Bruno Haible  <bruno@clisp.org>
48088         wcslen: Move AC_LIBOBJ invocations to module description.
48089         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
48090         * modules/wcslen (configure.ac): ... to here.
48092 2011-05-22  Bruno Haible  <bruno@clisp.org>
48094         wcsdup: Move AC_LIBOBJ invocations to module description.
48095         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
48096         * modules/wcsdup (configure.ac): ... to here.
48098 2011-05-22  Bruno Haible  <bruno@clisp.org>
48100         wcscspn: Move AC_LIBOBJ invocations to module description.
48101         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
48102         here...
48103         * modules/wcscspn (configure.ac): ... to here.
48105 2011-05-22  Bruno Haible  <bruno@clisp.org>
48107         wcscpy: Move AC_LIBOBJ invocations to module description.
48108         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
48109         * modules/wcscpy (configure.ac): ... to here.
48111 2011-05-22  Bruno Haible  <bruno@clisp.org>
48113         wcscoll: Move AC_LIBOBJ invocations to module description.
48114         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
48115         here...
48116         * modules/wcscoll (configure.ac): ... to here.
48118 2011-05-22  Bruno Haible  <bruno@clisp.org>
48120         wcscmp: Move AC_LIBOBJ invocations to module description.
48121         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
48122         * modules/wcscmp (configure.ac): ... to here.
48124 2011-05-22  Bruno Haible  <bruno@clisp.org>
48126         wcschr: Move AC_LIBOBJ invocations to module description.
48127         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
48128         * modules/wcschr (configure.ac): ... to here.
48130 2011-05-22  Bruno Haible  <bruno@clisp.org>
48132         wcscat: Move AC_LIBOBJ invocations to module description.
48133         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
48134         * modules/wcscat (configure.ac): ... to here.
48136 2011-05-22  Bruno Haible  <bruno@clisp.org>
48138         wcscasecmp: Move AC_LIBOBJ invocations to module description.
48139         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
48140         here...
48141         * modules/wcscasecmp (configure.ac): ... to here.
48143 2011-05-22  Bruno Haible  <bruno@clisp.org>
48145         wcrtomb: Move AC_LIBOBJ invocations to module description.
48146         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
48147         invocations from here...
48148         * modules/wcrtomb (configure.ac): ... to here.
48150 2011-05-22  Bruno Haible  <bruno@clisp.org>
48152         wcpncpy: Move AC_LIBOBJ invocations to module description.
48153         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
48154         here...
48155         * modules/wcpncpy (configure.ac): ... to here.
48157 2011-05-22  Bruno Haible  <bruno@clisp.org>
48159         wcpcpy: Move AC_LIBOBJ invocations to module description.
48160         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
48161         * modules/wcpcpy (configure.ac): ... to here.
48163 2011-05-22  Bruno Haible  <bruno@clisp.org>
48165         waitpid: Move AC_LIBOBJ invocations to module description.
48166         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
48167         invocation from here...
48168         * modules/waitpid (configure.ac): ... to here.
48170 2011-05-22  Bruno Haible  <bruno@clisp.org>
48172         utimensat: Move AC_LIBOBJ invocations to module description.
48173         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
48174         here...
48175         * modules/utimensat (configure.ac): ... to here.
48177 2011-05-22  Bruno Haible  <bruno@clisp.org>
48179         usleep: Move AC_LIBOBJ invocations to module description.
48180         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
48181         here...
48182         * modules/usleep (configure.ac): ... to here.
48184 2011-05-22  Bruno Haible  <bruno@clisp.org>
48186         unlockpt: Move AC_LIBOBJ invocations to module description.
48187         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
48188         gl_PREREQ_UNLOCKPT invocations from here...
48189         * modules/unlockpt (configure.ac): ... to here.
48191 2011-05-22  Bruno Haible  <bruno@clisp.org>
48193         unlink: Respect rules for use of AC_LIBOBJ.
48194         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
48195         * modules/unlink (configure.ac): ... to here.
48197 2011-05-22  Bruno Haible  <bruno@clisp.org>
48199         uname: Move AC_LIBOBJ invocations to module description.
48200         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
48201         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
48202         here...
48203         * modules/uname (configure.ac): ... to here.
48205 2011-05-22  Bruno Haible  <bruno@clisp.org>
48207         ttyname_r: Move AC_LIBOBJ invocations to module description.
48208         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
48209         gl_PREREQ_TTYNAME_R invocations from here...
48210         * modules/ttyname_r (configure.ac): ... to here.
48212 2011-05-22  Bruno Haible  <bruno@clisp.org>
48214         tsearch: Move AC_LIBOBJ invocations to module description.
48215         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
48216         invocations from here...
48217         * modules/tsearch (configure.ac): ... to here.
48219 2011-05-22  Bruno Haible  <bruno@clisp.org>
48221         towctrans: Move AC_LIBOBJ invocations to module description.
48222         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
48223         AC_LIBOBJ invocation from here...
48224         * modules/towctrans (configure.ac): ... to here.
48226 2011-05-22  Bruno Haible  <bruno@clisp.org>
48228         tmpfile: Move AC_LIBOBJ invocations to module description.
48229         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
48230         invocations from here...
48231         * modules/tmpfile (configure.ac): ... to here.
48233 2011-05-22  Bruno Haible  <bruno@clisp.org>
48235         times: Move AC_LIBOBJ invocations to module description.
48236         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
48237         * modules/times (configure.ac): ... to here.
48239 2011-05-22  Bruno Haible  <bruno@clisp.org>
48241         time_r: Move AC_LIBOBJ invocations to module description.
48242         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
48243         invocations from here...
48244         * modules/time_r (configure.ac): ... to here.
48246 2011-05-22  Bruno Haible  <bruno@clisp.org>
48248         timegm: Move AC_LIBOBJ invocations to module description.
48249         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
48250         invocations from here...
48251         * modules/timegm (configure.ac): ... to here.
48253 2011-05-22  Bruno Haible  <bruno@clisp.org>
48255         tcgetsid: Move AC_LIBOBJ invocations to module description.
48256         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
48257         and gl_PREREQ_TCGETSID invocations from here...
48258         * modules/tcgetsid (configure.ac): ... to here.
48259         (Depends-on): Update conditions.
48261 2011-05-22  Bruno Haible  <bruno@clisp.org>
48263         symlinkat: Move AC_LIBOBJ invocations to module description.
48264         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
48265         here...
48266         * modules/symlinkat (configure.ac): ... to here.
48268 2011-05-22  Bruno Haible  <bruno@clisp.org>
48270         symlink: Move AC_LIBOBJ invocations to module description.
48271         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
48272         here...
48273         * modules/symlink (configure.ac): ... to here.
48275 2011-05-22  Bruno Haible  <bruno@clisp.org>
48277         strverscmp: Move AC_LIBOBJ invocations to module description.
48278         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
48279         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
48280         from here...
48281         * modules/strverscmp (configure.ac): ... to here.
48283 2011-05-22  Bruno Haible  <bruno@clisp.org>
48285         strtok_r: Move AC_LIBOBJ invocations to module description.
48286         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
48287         and gl_PREREQ_STRTOK_R invocations from here...
48288         * modules/strtok_r (configure.ac): ... to here.
48289         (Depends-on): Update conditions.
48291 2011-05-22  Bruno Haible  <bruno@clisp.org>
48293         strtoumax: Move AC_LIBOBJ invocations to module description.
48294         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
48295         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
48296         from here...
48297         * modules/strtoumax (configure.ac): ... to here.
48299 2011-05-22  Bruno Haible  <bruno@clisp.org>
48301         strtoimax: Move AC_LIBOBJ invocations to module description.
48302         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
48303         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
48304         from here...
48305         * modules/strtoimax (configure.ac): ... to here.
48307 2011-05-22  Bruno Haible  <bruno@clisp.org>
48309         strtoull: Move AC_LIBOBJ invocations to module description.
48310         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
48311         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
48312         from here...
48313         * modules/strtoull (configure.ac): ... to here.
48315 2011-05-22  Bruno Haible  <bruno@clisp.org>
48317         strtoll: Move AC_LIBOBJ invocations to module description.
48318         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
48319         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
48320         here...
48321         * modules/strtoll (configure.ac): ... to here.
48323 2011-05-22  Bruno Haible  <bruno@clisp.org>
48325         strtoul: Move AC_LIBOBJ invocations to module description.
48326         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
48327         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48328         * modules/strtoul (configure.ac): ... to here.
48330 2011-05-22  Bruno Haible  <bruno@clisp.org>
48332         strtol: Move AC_LIBOBJ invocations to module description.
48333         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
48334         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48335         * modules/strtol (configure.ac): ... to here.
48337 2011-05-22  Bruno Haible  <bruno@clisp.org>
48339         strtod: Move AC_LIBOBJ invocations to module description.
48340         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
48341         invocations from here...
48342         * modules/strtod (configure.ac): ... to here.
48344 2011-05-22  Bruno Haible  <bruno@clisp.org>
48346         strstr*: Move AC_LIBOBJ invocations to module description.
48347         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
48348         invocations from here...
48349         * modules/strstr-simple (configure.ac): ... to here.
48350         * modules/strstr (configure.ac): ... and here.
48352 2011-05-22  Bruno Haible  <bruno@clisp.org>
48354         strsignal: Move AC_LIBOBJ invocations to module description.
48355         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
48356         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
48357         * modules/strsignal (configure.ac): ... to here.
48358         (Depends-on): Update conditions.
48360 2011-05-22  Bruno Haible  <bruno@clisp.org>
48362         strsep: Move AC_LIBOBJ invocations to module description.
48363         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
48364         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
48365         here...
48366         * modules/strsep (configure.ac): ... to here.
48368 2011-05-22  Bruno Haible  <bruno@clisp.org>
48370         strptime: Move AC_LIBOBJ invocations to module description.
48371         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
48372         gl_PREREQ_STRPTIME invocations from here...
48373         * modules/strptime (configure.ac): ... to here.
48375 2011-05-22  Bruno Haible  <bruno@clisp.org>
48377         strpbrk: Move AC_LIBOBJ invocations to module description.
48378         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
48379         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
48380         here...
48381         * modules/strpbrk (configure.ac): ... to here.
48383 2011-05-22  Bruno Haible  <bruno@clisp.org>
48385         strnlen: Move AC_LIBOBJ invocations to module description.
48386         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
48387         invocations from here...
48388         * modules/strnlen (configure.ac): ... to here.
48390 2011-05-22  Bruno Haible  <bruno@clisp.org>
48392         strndup: Move AC_LIBOBJ invocations to module description.
48393         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
48394         invocations from here...
48395         * modules/strndup (configure.ac): ... to here.
48396         (Depends-on): Update conditions.
48398 2011-05-22  Bruno Haible  <bruno@clisp.org>
48400         strncat: Move AC_LIBOBJ invocations to module description.
48401         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
48402         invocations from here...
48403         * modules/strncat (configure.ac): ... to here.
48405 2011-05-22  Bruno Haible  <bruno@clisp.org>
48407         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
48408         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
48409         invocations from here...
48410         * modules/strdup (configure.ac): ... to here.
48411         * modules/strdup-posix (configure.ac): ... and here.
48413 2011-05-22  Bruno Haible  <bruno@clisp.org>
48415         strcspn: Move AC_LIBOBJ invocations to module description.
48416         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
48417         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
48418         here...
48419         * modules/strcspn (configure.ac): ... to here.
48421 2011-05-22  Bruno Haible  <bruno@clisp.org>
48423         strchrnul: Move AC_LIBOBJ invocations to module description.
48424         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
48425         gl_PREREQ_STRCHRNUL invocations from here...
48426         * modules/strchrnul (configure.ac): ... to here.
48428 2011-05-22  Bruno Haible  <bruno@clisp.org>
48430         strcasestr*: Move AC_LIBOBJ invocations to module description.
48431         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
48432         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
48433         * modules/strcasestr-simple (configure.ac): ... to here.
48434         * modules/strcasestr (configure.ac): ... and here.
48436 2011-05-22  Bruno Haible  <bruno@clisp.org>
48438         strcase: Move AC_LIBOBJ invocations to module description.
48439         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
48440         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
48441         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
48442         gl_PREREQ_STRNCASECMP invocations from here...
48443         * modules/strcase (configure.ac): ... to here.
48445 2011-05-22  Bruno Haible  <bruno@clisp.org>
48447         stpncpy: Move AC_LIBOBJ invocations to module description.
48448         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
48449         here...
48450         * modules/stpncpy (configure.ac): ... to here.
48452 2011-05-22  Bruno Haible  <bruno@clisp.org>
48454         stpcpy: Move AC_LIBOBJ invocations to module description.
48455         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
48456         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
48457         here...
48458         * modules/stpcpy (configure.ac): ... to here.
48460 2011-05-21  Bruno Haible  <bruno@clisp.org>
48462         stat: Move AC_LIBOBJ invocations to module description.
48463         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
48464         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
48465         here...
48466         * modules/stat (configure.ac): ... to here.
48468 2011-05-21  Bruno Haible  <bruno@clisp.org>
48470         sleep: Move AC_LIBOBJ invocations to module description.
48471         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
48472         * modules/sleep (configure.ac): ... to here.
48474 2011-05-21  Bruno Haible  <bruno@clisp.org>
48476         signbit: Move AC_LIBOBJ invocations to module description.
48477         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
48478         * modules/signbit (configure.ac): ... to here.
48480 2011-05-21  Bruno Haible  <bruno@clisp.org>
48482         sigprocmask: Move AC_LIBOBJ invocations to module description.
48483         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
48484         gl_PREREQ_SIGPROMASK invocations from here...
48485         * modules/sigprocmask (configure.ac): ... to here.
48487 2011-05-21  Bruno Haible  <bruno@clisp.org>
48489         sigaction: Move AC_LIBOBJ invocations to module description.
48490         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
48491         gl_PREREQ_SIGACTION invocations from here...
48492         * modules/sigaction (configure.ac): ... to here.
48494 2011-05-21  Bruno Haible  <bruno@clisp.org>
48496         sig2str: Move AC_LIBOBJ invocations to module description.
48497         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
48498         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
48499         here...
48500         * modules/sig2str (configure.ac): ... to here.
48502 2011-05-21  Bruno Haible  <bruno@clisp.org>
48504         setlocale: Move AC_LIBOBJ invocations to module description.
48505         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
48506         gl_PREREQ_SETLOCALE invocations from here...
48507         * modules/setlocale (configure.ac): ... to here.
48509 2011-05-21  Bruno Haible  <bruno@clisp.org>
48511         unsetenv: Move AC_LIBOBJ invocations to module description.
48512         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
48513         and gl_PREREQ_UNSETENV invocations from here...
48514         * modules/unsetenv (configure.ac): ... to here.
48515         (Depends-on): Update.
48517 2011-05-21  Bruno Haible  <bruno@clisp.org>
48519         setenv: Move AC_LIBOBJ invocations to module description.
48520         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
48521         here...
48522         * modules/setenv (configure.ac): ... to here.
48524 2011-05-21  Bruno Haible  <bruno@clisp.org>
48526         selinux-h: Move AC_LIBOBJ invocations to module description.
48527         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
48528         AC_LIBOBJ invocation from here...
48529         * modules/selinux-h (configure.ac): ... to here.
48531 2011-05-21  Bruno Haible  <bruno@clisp.org>
48533         select: Respect rules for use of AC_LIBOBJ.
48534         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
48535         here...
48536         * modules/select (configure.ac): ... to here.
48538 2011-05-21  Bruno Haible  <bruno@clisp.org>
48540         scandir: Move AC_LIBOBJ invocations to module description.
48541         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
48542         invocations from here...
48543         * modules/scandir (configure.ac): ... to here.
48545 2011-05-21  Bruno Haible  <bruno@clisp.org>
48547         rpmatch: Move AC_LIBOBJ invocations to module description.
48548         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
48549         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
48550         here...
48551         * modules/rpmatch (configure.ac): ... to here.
48553 2011-05-21  Bruno Haible  <bruno@clisp.org>
48555         rmdir: Respect rules for use of AC_LIBOBJ.
48556         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
48557         * modules/rmdir (configure.ac): ... to here.
48559 2011-05-21  Bruno Haible  <bruno@clisp.org>
48561         renameat: Move AC_LIBOBJ invocations to module description.
48562         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
48563         here...
48564         * modules/renameat (configure.ac): ... to here.
48566 2011-05-21  Bruno Haible  <bruno@clisp.org>
48568         rename: Respect rules for use of AC_LIBOBJ.
48569         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
48570         here...
48571         * modules/rename (configure.ac): ... to here.
48573 2011-05-21  Bruno Haible  <bruno@clisp.org>
48575         remove: Move AC_LIBOBJ invocations to module description.
48576         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
48577         here...
48578         * modules/remove (configure.ac): ... to here.
48580 2011-05-21  Bruno Haible  <bruno@clisp.org>
48582         relocatable-lib: Move AC_LIBOBJ invocations to module description.
48583         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
48584         macro.
48585         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
48586         * modules/relocatable-lib (configure.ac): ... to here.
48587         * modules/relocatable-prog-wrapper (configure.ac): Invoke
48588         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
48590 2011-05-21  Bruno Haible  <bruno@clisp.org>
48592         relocatable-prog: Move AC_LIBOBJ invocations to module description.
48593         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
48594         here...
48595         * modules/relocatable-prog (configure.ac): ... to here.
48597 2011-05-21  Bruno Haible  <bruno@clisp.org>
48599         regex: Move AC_LIBOBJ invocations to module description.
48600         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
48601         invocations from here...
48602         * modules/regex (configure.ac): ... to here.
48604 2011-05-21  Bruno Haible  <bruno@clisp.org>
48606         realloc-*: Move AC_LIBOBJ invocations to module description.
48607         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
48608         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
48609         AC_LIBOBJ invocations from here...
48610         * modules/realloc-gnu (configure.ac): ... to here.
48611         * modules/realloc-posix (configure.ac): ... and here.
48613 2011-05-21  Bruno Haible  <bruno@clisp.org>
48615         readutmp: Move AC_LIBOBJ invocations to module description.
48616         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
48617         * modules/readutmp (configure.ac): ... to here.
48619 2011-05-21  Bruno Haible  <bruno@clisp.org>
48621         readlinkat: Move AC_LIBOBJ invocations to module description.
48622         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
48623         here...
48624         * modules/readlinkat (configure.ac): ... to here.
48626 2011-05-21  Bruno Haible  <bruno@clisp.org>
48628         readlink: Move AC_LIBOBJ invocations to module description.
48629         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
48630         gl_PREREQ_READLINK invocations from here...
48631         * modules/readlink (configure.ac): ... to here.
48633 2011-05-21  Bruno Haible  <bruno@clisp.org>
48635         readline: Move AC_LIBOBJ invocations to module description.
48636         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
48637         gl_PREREQ_READLINE invocations from here...
48638         * modules/readline (configure.ac): ... to here.
48640 2011-05-21  Bruno Haible  <bruno@clisp.org>
48642         read: Move AC_LIBOBJ invocations to module description.
48643         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
48644         * modules/read (configure.ac): ... to here.
48646 2011-05-21  Bruno Haible  <bruno@clisp.org>
48648         rawmemchr: Move AC_LIBOBJ invocations to module description.
48649         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
48650         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
48651         from here...
48652         * modules/rawmemchr (configure.ac): ... to here.
48654 2011-05-21  Bruno Haible  <bruno@clisp.org>
48656         random_r: Move AC_LIBOBJ invocations to module description.
48657         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
48658         gl_PREREQ_RANDOM_R invocations from here...
48659         * modules/random_r (configure.ac): ... to here.
48661 2011-05-21  Bruno Haible  <bruno@clisp.org>
48663         pwrite: Move AC_LIBOBJ invocations to module description.
48664         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
48665         * modules/pwrite (configure.ac): ... to here.
48667 2011-05-21  Bruno Haible  <bruno@clisp.org>
48669         putenv: Move AC_LIBOBJ invocations to module description.
48670         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
48671         * modules/putenv (configure.ac): ... to here.
48673 2011-05-21  Bruno Haible  <bruno@clisp.org>
48675         login_tty: Move AC_LIBOBJ invocations to module description.
48676         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
48677         * modules/login_tty (configure.ac): ... to here.
48679 2011-05-21  Bruno Haible  <bruno@clisp.org>
48681         openpty: Move AC_LIBOBJ invocations to module description.
48682         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
48683         * modules/openpty (configure.ac): ... to here.
48685 2011-05-21  Bruno Haible  <bruno@clisp.org>
48687         forkpty: Move AC_LIBOBJ invocations to module description.
48688         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
48689         * modules/forkpty (configure.ac): ... to here.
48691 2011-05-21  Bruno Haible  <bruno@clisp.org>
48693         ptsname: Move AC_LIBOBJ invocations to module description.
48694         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
48695         invocations from here...
48696         * modules/ptsname (configure.ac): ... to here.
48698 2011-05-21  Bruno Haible  <bruno@clisp.org>
48700         pread: Move AC_LIBOBJ invocations to module description.
48701         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
48702         * modules/pread (configure.ac): ... to here.
48704 2011-05-21  Bruno Haible  <bruno@clisp.org>
48706         posix_spawn*: Move AC_LIBOBJ invocations to module description.
48707         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
48708         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
48709         * modules/posix_spawn (configure.ac): ... to here.
48710         * modules/posix_spawnp (configure.ac): ... and here.
48712 2011-05-21  Bruno Haible  <bruno@clisp.org>
48714         popen: Move AC_LIBOBJ invocations to module description.
48715         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
48716         invocations from here...
48717         * modules/popen (configure.ac): ... to here.
48719 2011-05-21  Bruno Haible  <bruno@clisp.org>
48721         poll: Move AC_LIBOBJ invocations to module description.
48722         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
48723         invocations from here...
48724         * modules/poll (configure.ac): ... to here.
48726 2011-05-21  Bruno Haible  <bruno@clisp.org>
48728         pipe-posix: Move AC_LIBOBJ invocations to module description.
48729         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
48730         * modules/pipe-posix (configure.ac): ... to here.
48732 2011-05-21  Bruno Haible  <bruno@clisp.org>
48734         openat: Respect rules for use of AC_LIBOBJ.
48735         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
48736         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
48737         * modules/openat (configure.ac): ... to here.
48739 2011-05-21  Bruno Haible  <bruno@clisp.org>
48741         obstack-printf*: Move AC_LIBOBJ invocations to module description.
48742         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
48743         invocation from here...
48744         * modules/obstack-printf (configure.ac): ... to here.
48745         * modules/obstack-printf-posix (configure.ac): ... and here.
48747 2011-05-21  Bruno Haible  <bruno@clisp.org>
48749         nl_langinfo: Move AC_LIBOBJ invocations to module description.
48750         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
48751         from here...
48752         * modules/nl_langinfo (configure.ac): ... to here.
48754 2011-05-21  Bruno Haible  <bruno@clisp.org>
48756         nanosleep: Move AC_LIBOBJ invocations to module description.
48757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
48758         gl_PREREQ_NANOSLEEP invocations from here...
48759         * modules/nanosleep (configure.ac): ... to here.
48761 2011-05-21  Bruno Haible  <bruno@clisp.org>
48763         mountlist: Move AC_LIBOBJ invocations to module description.
48764         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
48765         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
48766         * modules/mountlist (configure.ac): ... to here.
48768 2011-05-21  Bruno Haible  <bruno@clisp.org>
48770         mktime: Respect rules for use of AC_LIBOBJ.
48771         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
48772         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
48773         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
48774         (gl_FUNC_MKTIME_INTERNAL): ... and here...
48775         * modules/mktime (configure.ac): ... to here.
48776         * modules/mktime-internal (configure.ac): ... and here.
48777         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
48779 2011-05-21  Bruno Haible  <bruno@clisp.org>
48781         mkstemps: Move AC_LIBOBJ invocations to module description.
48782         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
48783         here...
48784         * modules/mkstemps (configure.ac): ... to here.
48786 2011-05-21  Bruno Haible  <bruno@clisp.org>
48788         mkstemp: Move AC_LIBOBJ invocations to module description.
48789         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
48790         gl_PREREQ_MKSTEMP invocations from here...
48791         * modules/mkstemp (configure.ac): ... to here.
48793 2011-05-21  Bruno Haible  <bruno@clisp.org>
48795         mkostemps: Move AC_LIBOBJ invocations to module description.
48796         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
48797         here...
48798         * modules/mkostemps (configure.ac): ... to here.
48800 2011-05-21  Bruno Haible  <bruno@clisp.org>
48802         mkostemp: Move AC_LIBOBJ invocations to module description.
48803         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
48804         gl_PREREQ_MKOSTEMP invocations from here...
48805         * modules/mkostemp (configure.ac): ... to here.
48807 2011-05-21  Bruno Haible  <bruno@clisp.org>
48809         mknod: Move AC_LIBOBJ invocations to module description.
48810         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
48811         * modules/mknod (configure.ac): ... to here.
48813 2011-05-21  Bruno Haible  <bruno@clisp.org>
48815         mkfifoat: Move AC_LIBOBJ invocations to module description.
48816         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
48817         here...
48818         * modules/mkfifoat (configure.ac): ... to here.
48820 2011-05-21  Bruno Haible  <bruno@clisp.org>
48822         mkfifo: Respect rules for use of AC_LIBOBJ.
48823         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
48824         here...
48825         * modules/mkfifo (configure.ac): ... to here.
48827 2011-05-21  Bruno Haible  <bruno@clisp.org>
48829         mkdtemp: Move AC_LIBOBJ invocations to module description.
48830         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
48831         invocations from here...
48832         * modules/mkdtemp (configure.ac): ... to here.
48834 2011-05-21  Bruno Haible  <bruno@clisp.org>
48836         mkdir: Move AC_LIBOBJ invocations to module description.
48837         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
48838         * modules/mkdir (configure.ac): ... to here.
48840 2011-05-21  Bruno Haible  <bruno@clisp.org>
48842         memset: Move AC_LIBOBJ invocations to module description.
48843         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
48844         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
48845         here...
48846         * modules/memset (configure.ac): ... to here.
48848 2011-05-21  Bruno Haible  <bruno@clisp.org>
48850         memrchr: Move AC_LIBOBJ invocations to module description.
48851         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
48852         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
48853         here...
48854         * modules/memrchr (configure.ac): ... to here.
48856 2011-05-21  Bruno Haible  <bruno@clisp.org>
48858         mempcpy: Move AC_LIBOBJ invocations to module description.
48859         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
48860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
48861         here...
48862         * modules/mempcpy (configure.ac): ... to here.
48864 2011-05-21  Bruno Haible  <bruno@clisp.org>
48866         memmove: Move AC_LIBOBJ invocations to module description.
48867         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
48868         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
48869         here...
48870         * modules/memmove (configure.ac): ... to here.
48872 2011-05-21  Bruno Haible  <bruno@clisp.org>
48874         memmem*: Move AC_LIBOBJ invocations to module description.
48875         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
48876         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
48877         here...
48878         (gl_FUNC_MEMMEM): ... and here...
48879         * modules/memmem-simple (configure.ac): ... to here.
48880         * modules/memmem (configure.ac): ... and here.
48882 2011-05-21  Bruno Haible  <bruno@clisp.org>
48884         memcpy: Move AC_LIBOBJ invocations to module description.
48885         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
48886         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
48887         here...
48888         * modules/memcpy (configure.ac): ... to here.
48890 2011-05-21  Bruno Haible  <bruno@clisp.org>
48892         memcmp: Simplify autoconf macro.
48893         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
48894         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
48895         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
48897 2011-05-21  Bruno Haible  <bruno@clisp.org>
48899         memcmp: Move AC_LIBOBJ invocations to module description.
48900         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
48901         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
48902         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
48903         * modules/memcmp (configure.ac): ... to here.
48904         (Depends-on): Update conditions.
48906 2011-05-21  Bruno Haible  <bruno@clisp.org>
48908         memchr: Respect rules for use of AC_LIBOBJ.
48909         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
48910         invocations from here...
48911         * modules/memchr (configure.ac): ... to here.
48913 2011-05-21  Bruno Haible  <bruno@clisp.org>
48915         mbtowc: Move AC_LIBOBJ invocations to module description.
48916         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
48917         invocations from here...
48918         * modules/mbtowc (configure.ac): ... to here.
48920 2011-05-21  Bruno Haible  <bruno@clisp.org>
48922         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
48923         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
48924         gl_PREREQ_MBSRTOWCS invocations from here...
48925         * modules/mbsrtowcs (configure.ac): ... to here.
48927 2011-05-21  Bruno Haible  <bruno@clisp.org>
48929         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
48930         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
48931         gl_PREREQ_MBSNRTOWCS invocations from here...
48932         * modules/mbsnrtowcs (configure.ac): ... to here.
48934 2011-05-21  Bruno Haible  <bruno@clisp.org>
48936         mbsinit: Move AC_LIBOBJ invocations to module description.
48937         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
48938         invocations from here...
48939         * modules/mbsinit (configure.ac): ... to here.
48941 2011-05-21  Bruno Haible  <bruno@clisp.org>
48943         mbrlen: Move AC_LIBOBJ invocations to module description.
48944         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
48945         invocations from here...
48946         * modules/mbrlen (configure.ac): ... to here.
48948 2011-05-21  Bruno Haible  <bruno@clisp.org>
48950         mbrtowc: Respect rules for use of AC_LIBOBJ.
48951         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
48952         invocations from here...
48953         * modules/mbrtowc (configure.ac): ... to here.
48955 2011-05-21  Bruno Haible  <bruno@clisp.org>
48957         malloc-*: Move AC_LIBOBJ invocations to module description.
48958         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
48959         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
48960         AC_LIBOBJ invocations from here...
48961         * modules/malloc-gnu (configure.ac): ... to here.
48962         * modules/malloc-posix (configure.ac): ... and here.
48964 2011-05-21  Bruno Haible  <bruno@clisp.org>
48966         lstat, openat: Respect rules for use of AC_LIBOBJ.
48967         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
48968         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
48969         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
48970         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
48971         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
48972         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
48973         here.
48974         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
48976 2011-05-21  Bruno Haible  <bruno@clisp.org>
48978         lseek: Move AC_LIBOBJ invocations to module description.
48979         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
48980         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
48981         * modules/lseek (configure.ac): ... to here.
48983 2011-05-21  Bruno Haible  <bruno@clisp.org>
48985         linkat: Move AC_LIBOBJ invocations to module description.
48986         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
48987         here...
48988         * modules/linkat (configure.ac): ... to here.
48990 2011-05-21  Bruno Haible  <bruno@clisp.org>
48992         link: Respect rules for use of AC_LIBOBJ.
48993         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
48994         * modules/link (configure.ac): ... to here.
48996 2011-05-21  Bruno Haible  <bruno@clisp.org>
48998         lchown: Move AC_LIBOBJ invocations to module description.
48999         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
49000         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49001         * modules/lchown (configure.ac): ... to here.
49003 2011-05-21  Bruno Haible  <bruno@clisp.org>
49005         iswctype: Move AC_LIBOBJ invocations to module description.
49006         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
49007         here...
49008         * modules/iswctype (configure.ac): ... to here.
49010 2011-05-21  Bruno Haible  <bruno@clisp.org>
49012         iswblank: Move AC_LIBOBJ invocations to module description.
49013         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
49014         here...
49015         * modules/iswblank (configure.ac): ... to here.
49017 2011-05-21  Bruno Haible  <bruno@clisp.org>
49019         atanl: Move AC_LIBOBJ invocations to module description.
49020         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
49021         * modules/atanl (configure.ac): ... to here.
49023 2011-05-21  Bruno Haible  <bruno@clisp.org>
49025         acosl: Move AC_LIBOBJ invocations to module description.
49026         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
49027         * modules/acosl (configure.ac): ... to here.
49029 2011-05-21  Bruno Haible  <bruno@clisp.org>
49031         asinl: Respect rules for use of AC_LIBOBJ.
49032         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
49033         * modules/asinl (configure.ac): ... to here.
49035 2011-05-21  Bruno Haible  <bruno@clisp.org>
49037         tanl: Move AC_LIBOBJ invocations to module description.
49038         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
49039         * modules/tanl (configure.ac): ... to here.
49041 2011-05-21  Bruno Haible  <bruno@clisp.org>
49043         cosl: Move AC_LIBOBJ invocations to module description.
49044         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
49045         * modules/cosl (configure.ac): ... to here.
49047 2011-05-21  Bruno Haible  <bruno@clisp.org>
49049         sinl: Move AC_LIBOBJ invocations to module description.
49050         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
49051         * modules/sinl (configure.ac): ... to here.
49053 2011-05-21  Bruno Haible  <bruno@clisp.org>
49055         logl: Move AC_LIBOBJ invocations to module description.
49056         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
49057         * modules/logl (configure.ac): ... to here.
49059 2011-05-21  Bruno Haible  <bruno@clisp.org>
49061         expl: Move AC_LIBOBJ invocations to module description.
49062         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
49063         * modules/expl (configure.ac): ... to here.
49065 2011-05-21  Bruno Haible  <bruno@clisp.org>
49067         roundl: Move AC_LIBOBJ invocations to module description.
49068         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
49069         * modules/roundl (configure.ac): ... to here.
49071 2011-05-21  Bruno Haible  <bruno@clisp.org>
49073         round: Move AC_LIBOBJ invocations to module description.
49074         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
49075         * modules/round (configure.ac): ... to here.
49077 2011-05-21  Bruno Haible  <bruno@clisp.org>
49079         roundf: Move AC_LIBOBJ invocations to module description.
49080         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
49081         * modules/roundf (configure.ac): ... to here.
49083 2011-05-21  Bruno Haible  <bruno@clisp.org>
49085         truncl: Move AC_LIBOBJ invocations to module description.
49086         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
49087         * modules/truncl (configure.ac): ... to here.
49089 2011-05-21  Bruno Haible  <bruno@clisp.org>
49091         trunc: Move AC_LIBOBJ invocations to module description.
49092         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
49093         * modules/trunc (configure.ac): ... to here.
49095 2011-05-21  Bruno Haible  <bruno@clisp.org>
49097         truncf: Move AC_LIBOBJ invocations to module description.
49098         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
49099         * modules/truncf (configure.ac): ... to here.
49101 2011-05-21  Bruno Haible  <bruno@clisp.org>
49103         ceill: Move AC_LIBOBJ invocations to module description.
49104         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
49105         * modules/ceill (configure.ac): ... to here.
49107 2011-05-21  Bruno Haible  <bruno@clisp.org>
49109         ceil: Move AC_LIBOBJ invocations to module description.
49110         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
49111         * modules/ceil (configure.ac): ... to here.
49113 2011-05-21  Bruno Haible  <bruno@clisp.org>
49115         ceilf: Move AC_LIBOBJ invocations to module description.
49116         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
49117         * modules/ceilf (configure.ac): ... to here.
49119 2011-05-21  Bruno Haible  <bruno@clisp.org>
49121         floorl: Respect rules for use of AC_LIBOBJ.
49122         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
49123         * modules/floorl (configure.ac): ... to here.
49125 2011-05-21  Bruno Haible  <bruno@clisp.org>
49127         floor: Respect rules for use of AC_LIBOBJ.
49128         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
49129         * modules/floor (configure.ac): ... to here.
49131 2011-05-21  Bruno Haible  <bruno@clisp.org>
49133         floorf: Move AC_LIBOBJ invocations to module description.
49134         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
49135         * modules/floorf (configure.ac): ... to here.
49137 2011-05-20  Bruno Haible  <bruno@clisp.org>
49139         sqrtl: Respect rules for use of AC_LIBOBJ.
49140         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
49141         * modules/sqrtl (configure.ac): ... to here.
49143 2011-05-20  Bruno Haible  <bruno@clisp.org>
49145         ldexpl: Respect rules for use of AC_LIBOBJ.
49146         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
49147         * modules/ldexpl (configure.ac): ... to here.
49149 2011-05-20  Bruno Haible  <bruno@clisp.org>
49151         frexpl*: Respect rules for use of AC_LIBOBJ.
49152         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
49153         invocation from here...
49154         * modules/frexpl (configure.ac): ... to here.
49155         * modules/frexpl-nolibm (configure.ac): ... and here.
49157 2011-05-20  Bruno Haible  <bruno@clisp.org>
49159         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
49160         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
49161         invocation from here...
49162         * modules/frexp (configure.ac): ... to here.
49163         * modules/frexp-nolibm (configure.ac): ... and here.
49165 2011-05-20  Bruno Haible  <bruno@clisp.org>
49167         isnan: Respect rules for use of AC_LIBOBJ.
49168         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
49169         invocations here.
49170         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
49171         REPLACE_ISNAN.
49172         * modules/isnand (configure.ac): Likewise.
49173         * modules/isnanl (configure.ac): Likewise.
49175 2011-05-20  Bruno Haible  <bruno@clisp.org>
49177         isnanl*: Respect rules for use of AC_LIBOBJ.
49178         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
49179         invocation from here...
49180         * modules/isnanl (configure.ac): ... to here.
49181         * modules/isnanl-nolibm (configure.ac): ... and here.
49183 2011-05-20  Bruno Haible  <bruno@clisp.org>
49185         isnand*: Move AC_LIBOBJ invocations to module description.
49186         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
49187         invocation from here...
49188         * modules/isnand (configure.ac): ... to here.
49189         * modules/isnand-nolibm (configure.ac): ... and here.
49191 2011-05-20  Bruno Haible  <bruno@clisp.org>
49193         isnanf*: Move AC_LIBOBJ invocations to module description.
49194         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
49195         invocation from here...
49196         * modules/isnanf (configure.ac): ... to here.
49197         * modules/isnanf-nolibm (configure.ac): ... and here.
49199 2011-05-20  Bruno Haible  <bruno@clisp.org>
49201         isnan*: Separate the AC_LIBOBJ invocations.
49202         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
49203         AC_LIBOBJ invocation.
49204         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
49205         here.
49206         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
49207         AC_LIBOBJ invocation.
49208         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
49209         here.
49210         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
49211         AC_LIBOBJ invocation.
49212         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
49213         here.
49214         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
49216 2011-05-08  Bruno Haible  <bruno@clisp.org>
49218         isinf: Move AC_LIBOBJ invocations to module description.
49219         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
49220         * modules/isinf (configure.ac): ... to here.
49222 2011-05-08  Bruno Haible  <bruno@clisp.org>
49224         isfinite: Move AC_LIBOBJ invocations to module description.
49225         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
49226         * modules/isfinite (configure.ac): ... to here.
49228 2011-05-08  Bruno Haible  <bruno@clisp.org>
49230         isblank: Move AC_LIBOBJ invocations to module description.
49231         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
49232         here...
49233         * modules/isblank (configure.ac): ... to here.
49235 2011-05-08  Bruno Haible  <bruno@clisp.org>
49237         isapipe: Move AC_LIBOBJ invocations to module description.
49238         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
49239         gl_PREREQ_ISAPIPE invocations from here...
49240         * modules/isapipe (configure.ac): ... to here.
49241         (Depends-on): Update condition.
49243 2011-05-08  Bruno Haible  <bruno@clisp.org>
49245         ioctl: Move AC_LIBOBJ invocations to module description.
49246         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
49247         invocations from here...
49248         * modules/ioctl (configure.ac): ... to here.
49249         (Depends-on): Update condition.
49251 2011-05-08  Bruno Haible  <bruno@clisp.org>
49253         imaxdiv: Move AC_LIBOBJ invocations to module description.
49254         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
49255         invocations from here...
49256         * modules/imaxdiv (configure.ac): ... to here.
49258 2011-05-08  Bruno Haible  <bruno@clisp.org>
49260         imaxabs: Move AC_LIBOBJ invocations to module description.
49261         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
49262         invocations from here...
49263         * modules/imaxabs (configure.ac): ... to here.
49265 2011-05-08  Bruno Haible  <bruno@clisp.org>
49267         getaddrinfo: Move AC_LIBOBJ invocations to module description.
49268         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
49269         AC_LIBOBJ invocations from here...
49270         * modules/getaddrinfo (configure.ac): ... to here.
49271         (Depends-on): Add conditions.
49273 2011-05-08  Bruno Haible  <bruno@clisp.org>
49275         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49276         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
49277         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49278         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
49279         (gl_PREREQ_INET_PTON): ... from here.
49280         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
49281         gl_PREREQ_INET_PTON here.
49282         (Depends-on): Update condition.
49284 2011-05-08  Bruno Haible  <bruno@clisp.org>
49286         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49287         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
49288         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49289         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
49290         (gl_PREREQ_INET_NTOP): ... from here.
49291         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
49292         gl_PREREQ_INET_NTOP here.
49293         (Depends-on): Update condition.
49295 2011-05-08  Bruno Haible  <bruno@clisp.org>
49297         iconv_open: Move AC_LIBOBJ invocations to module description.
49298         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
49299         AC_LIBOBJ invocations from here...
49300         * modules/iconv_open (configure.ac): ... to here.
49302 2011-05-08  Bruno Haible  <bruno@clisp.org>
49304         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
49305         If module 'iconv_open' is among the main modules and module
49306         'iconv_open-utf' is among the tests dependencies, then
49307         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
49308         return the special iconv_t values. Therefore iconv() and iconv_close()
49309         must support these special iconv_t values, already in lib, not only in
49310         tests.
49311         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
49312         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
49313         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
49314         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
49315         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
49316         (Depends-on): Add the dependencies of iconv_open-utf.
49317         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
49318         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
49319         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
49321 2011-05-08  Bruno Haible  <bruno@clisp.org>
49323         group-member: Move AC_LIBOBJ invocations to module description.
49324         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
49325         gl_PREREQ_GROUP_MEMBER invocations from here...
49326         * modules/group-member (configure.ac): ... to here.
49328 2011-05-08  Bruno Haible  <bruno@clisp.org>
49330         grantpt: Move AC_LIBOBJ invocations to module description.
49331         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
49332         invocations from here...
49333         * modules/grantpt (configure.ac): ... to here.
49335 2011-05-08  Bruno Haible  <bruno@clisp.org>
49337         glob: Move AC_LIBOBJ invocations to module description.
49338         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
49339         from here...
49340         * modules/glob (configure.ac): ... to here.
49342 2011-05-08  Bruno Haible  <bruno@clisp.org>
49344         getusershell: Move AC_LIBOBJ invocations to module description.
49345         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
49346         Move AC_LIBOBJ invocation from here...
49347         * modules/getusershell (configure.ac): ... to here.
49348         (Depends-on): Update condition.
49350 2011-05-08  Bruno Haible  <bruno@clisp.org>
49352         gettimeofday: Move AC_LIBOBJ invocations to module description.
49353         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49354         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
49355         gl_PREREQ_GETTIMEOFDAY invocations from here...
49356         * modules/gettimeofday (configure.ac): ... to here.
49358 2011-05-08  Bruno Haible  <bruno@clisp.org>
49360         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
49361         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
49362         just gl_FUNC_TZSET.
49363         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
49364         (gl_FUNC_TZSET_CLOBBER): Remove actions.
49365         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
49366         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
49368 2011-05-08  Bruno Haible  <bruno@clisp.org>
49370         getsubopt: Move AC_LIBOBJ invocations to module description.
49371         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
49372         gl_PREREQ_GETSUBOPT invocations from here...
49373         * modules/getsubopt (configure.ac): ... to here.
49375 2011-05-08  Bruno Haible  <bruno@clisp.org>
49377         getpass-gnu: Move AC_LIBOBJ invocations to module description.
49378         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
49379         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
49380         * modules/getpass-gnu (configure.ac): ... to here.
49382 2011-05-08  Bruno Haible  <bruno@clisp.org>
49384         getpass: Move AC_LIBOBJ invocations to module description.
49385         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
49386         gl_PREREQ_GETPASS invocations from here...
49387         * modules/getpass (configure.ac): ... to here.
49389 2011-05-08  Bruno Haible  <bruno@clisp.org>
49391         getpagesize: Move AC_LIBOBJ invocations to module description.
49392         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
49393         from here...
49394         * modules/getpagesize (configure.ac): ... to here.
49396 2011-05-08  Bruno Haible  <bruno@clisp.org>
49398         getopt: Move AC_LIBOBJ invocations to module description.
49399         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
49400         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
49401         invocations from here...
49402         * modules/getopt-gnu (configure.ac): ... to here.
49403         * modules/getopt-posix (configure.ac): ... and here.
49404         (Depends-on): Update condition.
49406 2011-05-08  Bruno Haible  <bruno@clisp.org>
49408         getopt, argp: Respect rules for use of AC_LIBOBJ.
49409         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
49410         (gl_REPLACE_GETOPT_ALWAYS): New macro.
49411         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
49412         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
49414 2011-05-08  Bruno Haible  <bruno@clisp.org>
49416         getlogin_r: Move AC_LIBOBJ invocations to module description.
49417         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
49418         gl_PREREQ_GETLOGIN_R invocations from here...
49419         * modules/getlogin_r (configure.ac): ... to here.
49421 2011-05-08  Bruno Haible  <bruno@clisp.org>
49423         getlogin: Move AC_LIBOBJ invocations to module description.
49424         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
49425         here...
49426         * modules/getlogin (configure.ac): ... to here.
49428 2011-05-08  Bruno Haible  <bruno@clisp.org>
49430         getloadavg: Move AC_LIBOBJ invocations to module description.
49431         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
49432         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
49433         * modules/getloadavg (configure.ac): ... to here.
49435 2011-05-08  Bruno Haible  <bruno@clisp.org>
49437         gethrxtime: Move AC_LIBOBJ invocations to module description.
49438         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
49439         LIB_GETHRXTIME from here...
49440         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
49441         invocations from here...
49442         * modules/gethrxtime (configure.ac): ... to here.
49444 2011-05-08  Bruno Haible  <bruno@clisp.org>
49446         gethostname: Move AC_LIBOBJ invocations to module description.
49447         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
49448         gl_PREREQ_GETHOSTNAME invocations from here...
49449         * modules/gethostname (configure.ac): ... to here.
49451 2011-05-08  Bruno Haible  <bruno@clisp.org>
49453         getgroups: Move AC_LIBOBJ invocations to module description.
49454         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
49455         here...
49456         * modules/getgroups (configure.ac): ... to here.
49458 2011-05-08  Bruno Haible  <bruno@clisp.org>
49460         getdtablesize: Move AC_LIBOBJ invocations to module description.
49461         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
49462         invocation from here...
49463         * modules/getdtablesize (configure.ac): ... to here.
49465 2011-05-08  Bruno Haible  <bruno@clisp.org>
49467         getdomainname: Move AC_LIBOBJ invocations to module description.
49468         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
49469         gl_PREREQ_GETDOMAINNAME invocations from here...
49470         * modules/getdomainname (configure.ac): ... to here.
49472 2011-05-08  Bruno Haible  <bruno@clisp.org>
49474         getline: Move AC_LIBOBJ invocations to module description.
49475         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
49476         invocations from here...
49477         * modules/getline (configure.ac): ... to here.
49479 2011-05-08  Bruno Haible  <bruno@clisp.org>
49481         getline: Simplify.
49482         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
49483         It's already handled through the module dependency.
49485 2011-05-08  Bruno Haible  <bruno@clisp.org>
49487         getdelim: Move AC_LIBOBJ invocations to module description.
49488         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
49489         and gl_PREREQ_GETDELIM invocations from here...
49490         * modules/getdelim (configure.ac): ... to here.
49491         (Depends-on): Fix condition.
49493 2011-05-08  Bruno Haible  <bruno@clisp.org>
49495         getcwd: Move AC_LIBOBJ invocations to module description.
49496         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
49497         invocations from here...
49498         * modules/getcwd (configure.ac): ... to here.
49500 2011-05-08  Bruno Haible  <bruno@clisp.org>
49502         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
49503         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
49504         here...
49505         * modules/getcwd-lgpl (configure.ac): ... to here.
49507 2011-05-07  Bruno Haible  <bruno@clisp.org>
49509         crypto/gc: Move AC_LIBOBJ invocations to module description.
49510         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
49511         * modules/crypto/gc (configure.ac): ... to here.
49513 2011-05-07  Bruno Haible  <bruno@clisp.org>
49515         fwriting: Move AC_LIBOBJ invocations to module description.
49516         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
49517         here...
49518         * modules/fwriting (configure.ac): ... to here.
49520 2011-05-07  Bruno Haible  <bruno@clisp.org>
49522         fwritable: Move AC_LIBOBJ invocations to module description.
49523         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
49524         here...
49525         * modules/fwritable (configure.ac): ... to here.
49527 2011-05-07  Bruno Haible  <bruno@clisp.org>
49529         futimens: Move AC_LIBOBJ invocations to module description.
49530         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
49531         here...
49532         * modules/futimens (configure.ac): ... to here.
49534 2011-05-07  Bruno Haible  <bruno@clisp.org>
49536         ftruncate: Move AC_LIBOBJ invocations to module description.
49537         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
49538         gl_PREREQ_FTRUNCATE invocations from here...
49539         * modules/ftruncate (configure.ac): ... to here.
49541 2011-05-07  Bruno Haible  <bruno@clisp.org>
49543         fsync: Move AC_LIBOBJ invocations to module description.
49544         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
49545         invocations from here...
49546         * modules/fsync (configure.ac): ... to here.
49548 2011-05-07  Bruno Haible  <bruno@clisp.org>
49550         fsusage: Move AC_LIBOBJ invocations to module description.
49551         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
49552         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
49553         * modules/fsusage (configure.ac): ... to here.
49555 2011-05-07  Bruno Haible  <bruno@clisp.org>
49557         freopen: Move AC_LIBOBJ invocations to module description.
49558         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
49559         invocations from here...
49560         * modules/freopen (configure.ac): ... to here.
49562 2011-05-07  Bruno Haible  <bruno@clisp.org>
49564         free: Move AC_LIBOBJ invocations to module description.
49565         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
49566         invocations from here...
49567         * modules/free (configure.ac): ... to here.
49569 2011-05-07  Bruno Haible  <bruno@clisp.org>
49571         freadable: Move AC_LIBOBJ invocations to module description.
49572         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
49573         here...
49574         * modules/freadable (configure.ac): ... to here.
49576 2011-05-07  Bruno Haible  <bruno@clisp.org>
49578         fpurge: Move AC_LIBOBJ invocations to module description.
49579         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
49580         invocations from here...
49581         * modules/fpurge (configure.ac): ... to here.
49583 2011-05-07  Bruno Haible  <bruno@clisp.org>
49585         fpending: Move AC_LIBOBJ invocations to module description.
49586         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
49587         gl_FUNC_FPENDING.
49588         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
49589         invocations from here...
49590         * modules/fpending (configure.ac): ... to here.
49592 2011-05-07  Bruno Haible  <bruno@clisp.org>
49594         fopen: Move AC_LIBOBJ invocations to module description.
49595         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
49596         invocations from here...
49597         * modules/fopen (configure.ac): ... to here.
49599 2011-05-07  Bruno Haible  <bruno@clisp.org>
49601         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
49602         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
49603         gl_FUNC_FNMATCH_POSIX.
49604         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
49605         invocations from here...
49606         * modules/fnmatch (configure.ac): ... to here.
49607         * modules/fnmatch-gnu (configure.ac): ... and here.
49609 2011-05-07  Bruno Haible  <bruno@clisp.org>
49611         flock: Move AC_LIBOBJ invocations to module description.
49612         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
49613         invocations from here...
49614         * modules/flock (configure.ac): ... to here.
49616 2011-05-07  Bruno Haible  <bruno@clisp.org>
49618         fileblocks: Move AC_LIBOBJ invocations to module description.
49619         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
49620         gl_PREREQ_FILEBLOCKS invocations from here...
49621         * modules/fileblocks (configure.ac): ... to here.
49623 2011-05-06  Bruno Haible  <bruno@clisp.org>
49625         fflush: Move AC_LIBOBJ invocations to module description.
49626         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
49627         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
49628         invocations from here...
49629         * modules/fflush (configure.ac): ... to here.
49631 2011-05-06  Bruno Haible  <bruno@clisp.org>
49633         fdopendir: Move AC_LIBOBJ invocations to module description.
49634         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
49635         here...
49636         * modules/fdopendir (configure.ac): ... to here.
49637         (Depends-on): Improve conditions.
49639 2011-05-06  Bruno Haible  <bruno@clisp.org>
49641         _Exit: Move AC_LIBOBJ invocations to module description.
49642         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
49643         invocations from here...
49644         * modules/_Exit (configure.ac): ... to here.
49646 2011-05-21  Bruno Haible  <bruno@clisp.org>
49648         euidaccess: Respect rules for use of AC_LIBOBJ.
49649         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
49650         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
49651         from here...
49652         * modules/euidaccess (configure.ac): ... to here.
49654 2011-05-06  Bruno Haible  <bruno@clisp.org>
49656         error: Move AC_LIBOBJ invocations to module description.
49657         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
49658         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
49659         invocations from here...
49660         * modules/error (configure.ac): ... to here.
49662 2011-05-06  Bruno Haible  <bruno@clisp.org>
49664         duplocale: Move AC_LIBOBJ invocations to module description.
49665         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
49666         gl_PREREQ_DUPLOCALE invocations from here...
49667         * modules/duplocale (configure.ac): ... to here.
49669 2011-05-05  Bruno Haible  <bruno@clisp.org>
49671         dirfd: Move AC_LIBOBJ invocations to module description.
49672         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
49673         gl_FUNC_DIRFD.
49674         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
49675         here...
49676         * modules/dirfd (configure.ac): ... to here.
49677         (Depends-on): Fix condition.
49679 2011-05-05  Bruno Haible  <bruno@clisp.org>
49681         chown: Respect rules for use of AC_LIBOBJ.
49682         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
49683         * modules/chown (configure.ac): ... to here.
49685 2011-05-05  Bruno Haible  <bruno@clisp.org>
49687         chdir-long: Move AC_LIBOBJ invocations to module description.
49688         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
49689         gl_PREREQ_CHDIR_LONG invocations from here...
49690         * modules/chdir-long (configure.ac): ... to here.
49692 2011-05-05  Bruno Haible  <bruno@clisp.org>
49694         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
49695         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
49696         from here...
49697         * modules/canonicalize-lgpl (configure.ac): ... to here.
49699 2011-05-05  Bruno Haible  <bruno@clisp.org>
49701         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
49702         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
49703         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
49704         REPLACE_CALLOC.
49705         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
49706         * modules/calloc-gnu (configure.ac): Likewise.
49708 2011-05-05  Bruno Haible  <bruno@clisp.org>
49710         btowc: Move AC_LIBOBJ invocations to module description.
49711         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
49712         invocations from here...
49713         * modules/btowc (configure.ac): ... to here.
49715 2011-05-21  Bruno Haible  <bruno@clisp.org>
49717         atexit: Move AC_LIBOBJ invocations to module description.
49718         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
49719         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
49720         here...
49721         * modules/atexit (configure.ac): ... to here.
49723 2011-05-05  Bruno Haible  <bruno@clisp.org>
49725         atoll: Move AC_LIBOBJ invocations to module description.
49726         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
49727         invocations from here...
49728         * modules/atoll (configure.ac): ... to here.
49730 2011-05-05  Bruno Haible  <bruno@clisp.org>
49732         argz: Move AC_LIBOBJ invocations to module description.
49733         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
49734         * modules/argz (configure.ac): ... to here.
49736 2011-05-05  Bruno Haible  <bruno@clisp.org>
49738         alphasort: Move AC_LIBOBJ invocations to module description.
49739         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
49740         gl_PREREQ_ALPHASORT invocations from here...
49741         * modules/alphasort (configure.ac): ... to here.
49743 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49745         verify: new macro verify_expr; verify_true deprecated
49746         * NEWS: Mention this.
49747         * doc/verify.texi (Compile-time Assertions): Document this.
49748         * lib/verify.h (verify_true): Deprecate.
49749         (verify_expr): New macro.
49750         * tests/test-verify.c (function): Test verify_expr.
49752 2011-06-14  Jim Meyering  <meyering@redhat.com>
49754         init.sh: give more portable redirection-related advice in a comment
49755         * tests/init.sh (stderr_fileno_): Update the advice in comments.
49756         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
49757         for lots of discussion.  Stefano Lattarini suggested the solution
49758         of putting "9>&2" after the command.  Reported by Bruno Haible.
49760 2011-06-13  Bruno Haible  <bruno@clisp.org>
49762         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
49763         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
49764         'none'.
49766 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
49768         ftoastr: use strtof only if HAVE_STRTOF
49769         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
49770         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
49771         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
49772         * modules/ftoastr (configure.ac): Check for strtof.
49774 2011-06-13  Bruno Haible  <bruno@clisp.org>
49776         gnulib-tool: Addendum to 2011-06-08 commit.
49777         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
49778         and --witness-c-macro have been given, augment AM_CPPFLAGS.
49780 2011-06-13  Bruno Haible  <bruno@clisp.org>
49782         fseeko: Provide a non-inline replacement of fseek().
49783         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
49784         * modules/fseeko (Depends-on): Add fseek.
49785         * modules/fseek (License): Change to LGPLv2+.
49787 2011-06-13  Bruno Haible  <bruno@clisp.org>
49789         ftello: Provide a non-inline replacement of ftell().
49790         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
49791         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
49792         not have ftello() (such as on mingw).
49793         * modules/ftello (Depends-on): Add ftell.
49794         * modules/ftell (License): Change to LGPLv2+.
49796 2011-05-07  Bruno Haible  <bruno@clisp.org>
49798         ftell: Move AC_LIBOBJ invocations to module description.
49799         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
49800         * modules/ftell (configure.ac): ... to here.
49802 2011-05-07  Bruno Haible  <bruno@clisp.org>
49804         ftello: Respect rules for use of AC_LIBOBJ.
49805         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
49806         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
49807         here...
49808         * modules/ftello (configure.ac): ... to here.
49810 2011-05-07  Bruno Haible  <bruno@clisp.org>
49812         fseeko: Simplify.
49813         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
49814         (gl_FUNC_FSEEKO): Inline it here.
49816 2011-05-07  Bruno Haible  <bruno@clisp.org>
49818         fseek: Move AC_LIBOBJ invocations to module description.
49819         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
49820         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
49821         * modules/fseek (configure.ac): ... to here.
49823 2011-05-07  Bruno Haible  <bruno@clisp.org>
49825         fseek: Respect rules for use of AC_LIBOBJ.
49826         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
49827         here...
49828         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
49830 2011-05-07  Bruno Haible  <bruno@clisp.org>
49832         fseeko: Respect rules for use of AC_LIBOBJ.
49833         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
49834         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
49835         here...
49836         * modules/fseeko (configure.ac): ... to here.
49838 2011-06-13  Bruno Haible  <bruno@clisp.org>
49840         gnulib-tool: Allow comments in the 'Depends-on' section.
49841         * doc/gnulib.texi (Module description): Mention comment syntax in the
49842         Depends-on section.
49843         * gnulib-tool (func_get_dependencies): Filter out comment lines.
49845 2011-06-13  Bruno Haible  <bruno@clisp.org>
49847         file-set.h: guard __attibute__ use, now that it's not always defined
49848         * lib/file-set.h (record_file): Use __attribute__ only with compiler
49849         versions that support it.  This fixes a coreutils build failure with
49850         the vendor cc on HP-UX 11.31.
49852 2011-06-12  Bruno Haible  <bruno@clisp.org>
49854         acl: Add support for HP-UX >= 11.11 JFS ACLs.
49855         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
49856         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
49857         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
49858         (acl, aclsort): New declarations.
49859         (aclv_nontrivial): New declaration.
49860         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
49861         (file_has_acl): Read also the second kind of HP-UX ACLs.
49862         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
49863         kind of HP-UX ACLs if the first kind fails.
49864         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
49865         second kind of HP-UX ACLs.
49866         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
49867         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
49868         agree.
49869         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
49870         hpuxjfs.
49871         Handle hpuxjfs.
49872         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
49873         hpuxjfs.
49874         Handle hpuxjfs.
49875         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
49876         (func_test_same_acls): Use both lsacl and getacl.
49877         Handle hpuxjfs.
49878         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
49879         (func_test_same_acls): Use both lsacl and getacl.
49880         Handle hpuxjfs.
49882 2011-06-12  Bruno Haible  <bruno@clisp.org>
49884         acl: Complete the 2010-08-10 fix.
49885         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
49886         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
49887         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
49888         explicitly.
49889         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
49890         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
49892 2011-06-12  Bruno Haible  <bruno@clisp.org>
49894         spawn-pipe tests: Comments.
49895         * tests/test-spawn-pipe-child.c (main): Update comment.
49896         Reported by James Youngman <jay@gnu.org>.
49898 2011-06-11  James Youngman  <jay@gnu.org>
49900         New module 'stat-size'.
49901         * modules/stat-size: New module.  Provides macros for accessing
49902         file size information in instances of struct stat.  Depends on the
49903         fileblocks module because it calls st_blocks.
49904         * lib/stat-size.h: New file, adapted from coreutils' system.h.
49905         * doc/gnulib.texi: Include stat-size.texi.
49906         * doc/stat-size.texi: Documentation for this module.
49907         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
49908         * m4/fileblocks.m4: Mention that stat-size depends on the call to
49909         AC_STRUCT_ST_BLOCKS.
49911 2011-06-09  Bruno Haible  <bruno@clisp.org>
49913         thread: Support pthreads-win32.
49914         * lib/glthread/thread.h (gl_thread_self): Define differently on
49915         pthreads-win32.
49916         (gl_null_thread): New declaration.
49917         (gl_thread_self_pointer): New macro.
49918         * lib/glthread/thread.c (gl_null_thread): New constant.
49919         * tests/test-lock.c: Use gl_thread_self_pointer instead of
49920         gl_thread_self.
49921         * tests/test-tls.c: Likewise.
49922         Suggested by Paul Eggert. Reported by Eric Blake.
49924 2011-06-09  Bruno Haible  <bruno@clisp.org>
49926         thread: Fix confusion between NULL and 0.
49927         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
49928         Reported by Paul Eggert.
49930 2011-06-09  Bruno Haible  <bruno@clisp.org>
49932         spawn-pipe tests: Avoid test failure on HP-UX 11.
49933         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
49934         is closed.
49936 2011-06-09  Bruno Haible  <bruno@clisp.org>
49938         acl tests: Fix compilation error on HP-UX 11.
49939         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
49941 2011-06-09  Bruno Haible  <bruno@clisp.org>
49943         rmdir: Avoid test failure on HP-UX 10.20.
49944         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
49945         EEXIST.
49947 2011-06-08  Eric Blake  <eblake@redhat.com>
49949         perror: fix test on mingw
49950         * modules/perror-tests (Depends-on): Add dup2.
49952         strerror_r-posix: fix on MacOS
49953         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
49954         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
49955         logic bug.
49956         * lib/strerror_r.c (strerror_r): Fix the bug.
49957         * lib/strerror.c (strerror): Likewise.
49958         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
49959         problem.
49960         * doc/posix-functions/strerror.texi (strerror): Likewise.
49961         * doc/posix-functions/perror.texi (perror): Likewise.
49962         * tests/test-strerror.c (main): Enhance test.
49963         * tests/test-strerror_r.c (main): Likewise.
49965 2011-06-08  Bruno Haible  <bruno@clisp.org>
49967         gnulib-tool: Better isolation between different gnulib-tool invocations.
49968         * gnulib-tool: New option --witness-c-macro.
49969         (witness_c_macro): New variable.
49970         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
49971         AM_CPPFLAGS define it as a C macro.
49972         (func_emit_tests_Makefile_am): Likewise.
49973         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
49974         read it from there.
49975         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
49976         m4_define, not AC_DEFUN.
49977         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
49978         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
49979         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
49980         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
49981         s|...|...|, to substitute the values of the GNULIB_* module indicator
49982         variables.
49983         * modules/dirent (Makefile.am): Likewise.
49984         * modules/fcntl-h (Makefile.am): Likewise.
49985         * modules/iconv-h (Makefile.am): Likewise.
49986         * modules/langinfo (Makefile.am): Likewise.
49987         * modules/locale (Makefile.am): Likewise.
49988         * modules/math (Makefile.am): Likewise.
49989         * modules/netdb (Makefile.am): Likewise.
49990         * modules/poll-h (Makefile.am): Likewise.
49991         * modules/pty (Makefile.am): Likewise.
49992         * modules/search (Makefile.am): Likewise.
49993         * modules/signal (Makefile.am): Likewise.
49994         * modules/spawn (Makefile.am): Likewise.
49995         * modules/stdio (Makefile.am): Likewise.
49996         * modules/stdlib (Makefile.am): Likewise.
49997         * modules/string (Makefile.am): Likewise.
49998         * modules/sys_ioctl (Makefile.am): Likewise.
49999         * modules/sys_select (Makefile.am): Likewise.
50000         * modules/sys_socket (Makefile.am): Likewise.
50001         * modules/sys_stat (Makefile.am): Likewise.
50002         * modules/sys_times (Makefile.am): Likewise.
50003         * modules/sys_utsname (Makefile.am): Likewise.
50004         * modules/sys_wait (Makefile.am): Likewise.
50005         * modules/termios (Makefile.am): Likewise.
50006         * modules/time (Makefile.am): Likewise.
50007         * modules/unistd (Makefile.am): Likewise.
50008         * modules/wchar (Makefile.am): Likewise.
50010 2011-06-08  Eric Blake  <eblake@redhat.com>
50012         strerror: simplify replacement
50013         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
50014         * modules/strerror (configure.ac): No prereqs needed here...
50015         * modules/strerror-override (configure.ac): ...but this needs it.
50016         (Files): Add file for needed prereq macro.
50018 2011-06-08  Bruno Haible  <bruno@clisp.org>
50020         strerror_r-posix: Tweaks.
50021         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
50022         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
50023         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
50024         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
50025         (gl_FUNC_STRERROR_R): ... to here.
50026         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
50028 2011-06-07  Eric Blake  <eblake@redhat.com>
50030         perror: document fixed bugs
50031         * doc/posix-functions/perror.texi (perror): Document recent
50032         patches.
50034 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
50036         stat-time: get_stat_birthtime failure is better-defined
50037         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
50038         return a timestamp whose tv_sec and tv_nsec values are both -1.
50039         Previously, the spec said only that the tv_nsec value was negative.
50040         This upward-compatible change simplifies GNU tar a bit.
50042 2011-06-07  Eric Blake  <eblake@redhat.com>
50044         strerror_r-posix: work around cygwin 1.7.9
50045         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
50046         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
50047         bug without replacing strerror_r.
50048         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
50049         strerror_r is buggy, but without requiring strerror_r compilation.
50050         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
50052         test-perror: relax test to ignore cygwin bug
50053         * tests/test-perror2.c (main): Relax test on requiring detection
50054         of stream errors, and use unbuffered stream.
50055         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
50056         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
50057         * doc/posix-functions/fputc.texi (fputc): Likewise.
50058         * doc/posix-functions/fputs.texi (fputs): Likewise.
50059         * doc/posix-functions/fputws.texi (fputws): Likewise.
50060         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
50061         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
50062         * doc/posix-functions/getopt.texi (getopt): Likewise.
50063         * doc/posix-functions/perror.texi (perror): Likewise.
50064         * doc/posix-functions/printf.texi (printf): Likewise.
50065         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
50066         * doc/posix-functions/psignal.texi (psignal): Likewise.
50067         * doc/posix-functions/putc.texi (putc): Likewise.
50068         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
50069         Likewise.
50070         * doc/posix-functions/putchar.texi (putchar): Likewise.
50071         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
50072         Likewise.
50073         * doc/posix-functions/puts.texi (puts): Likewise.
50074         * doc/posix-functions/putwc.texi (putwc): Likewise.
50075         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50076         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50077         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50078         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
50079         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50080         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50081         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
50082         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
50084 2011-05-22  Bruno Haible  <bruno@clisp.org>
50086         strerror: Move AC_LIBOBJ invocations to module description.
50087         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
50088         gl_PREREQ_STRERROR invocations from here...
50089         * modules/strerror (configure.ac): ... to here.
50091 2011-05-21  Bruno Haible  <bruno@clisp.org>
50093         perror: Use common idiom.
50094         * modules/perror (configure.ac): Reorder statements.
50096 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50098         tests: fix usage message in 'mktempd_'
50099         * tests/init.sh (mktempd_): In the usage message, use literal
50100         'mktempd_', not '$ME' (which is even undefined), as the name of
50101         the subroutine.
50103 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50105         tests init: new function 'fatal_', for hard errors
50106         Before this patch, the only way offered by tests/init.sh to
50107         properly signal a hard error was the `framework_failure_'
50108         function.  But the error message issued by that function,
50109         as its name would suggest, refers to a set-up failure in the
50110         testsuite, while hard errors can obviously also be due to
50111         other reasons.  The best way to fix this inconsistency is to
50112         introduce a new function with a more general error message.
50113         * tests/init.sh (fatal_): New function.
50115 2011-06-06  Eric Blake  <eblake@redhat.com>
50117         canonicalize-lgpl: use common idiom
50118         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
50119         over newer POSIX -Rf.
50120         Reported by Bruno Haible.
50122         canonicalize-lgpl: work around AIX realpath bug
50123         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
50124         * doc/posix-functions/realpath.texi (realpath): Document it.
50125         Reported by Bruno Haible.
50127         strerror: work around FreeBSD bug
50128         * lib/strerror.c (strerror): Special case 0.
50129         Reported by Bruno Haible.
50131         strerror-override: avoid bloating errno module
50132         * modules/errno (Files, configure.ac): Move replacement strings...
50133         * modules/strerror-override: ...to new module.
50134         * modules/strerror (Depends-on): Add strerror-override.
50135         * modules/strerror_r-posix (Depends-on): Likewise.
50136         * MODULES.html.sh: Document new module.
50137         Reported by Bruno Haible.
50139 2011-06-06  Bruno Haible  <bruno@clisp.org>
50141         spawn-pipe tests: Rename program.
50142         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
50143         * tests/test-spawn-pipe-child.c: Update comment.
50144         * tests/test-spawn-pipe.sh: Update.
50145         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
50147         spawn-pipe tests: Link the child program only against libc.
50148         * tests/test-spawn-pipe-child.c: New file, extracted from
50149         tests/test-spawn-pipe.c.
50150         (main): Expect only one argument.
50151         (is_open): New function, copied from tests/test-pipe.c.
50152         * tests/test-spawn-pipe.c: Don't include <errno.h>.
50153         (child_main): Remove function.
50154         (test_pipe): Pass only one argument to the child program.
50155         (main): Remove child process code. Expect the child program's name as
50156         first argument.
50157         * tests/test-spawn-pipe.sh: Pass the child program's name as first
50158         argument.
50159         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
50160         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
50161         test-spawn-pipe-child against no libraries.
50163 2011-06-06  Bruno Haible  <bruno@clisp.org>
50165         careadlinkat: Avoid mismatch between ssize_t and int.
50166         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
50167         * lib/careadlinkat.c (careadlinkatcwd): Define always.
50169 2011-06-06  Jim Meyering  <meyering@redhat.com>
50171         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
50172         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
50173         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
50175 2011-06-05  Bruno Haible  <bruno@clisp.org>
50177         ansi-c++-opt: Interoperability with libtool.
50178         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
50179         set the variable to "no", not to ":".
50180         * NEWS: Mention the change.
50182 2011-06-05  Bruno Haible  <bruno@clisp.org>
50184         acl: Fix test failure on AIX 7.
50185         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
50186         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
50188 2011-06-05  Bruno Haible  <bruno@clisp.org>
50190         pipe-filter-ii: Fix test failure on AIX and IRIX.
50191         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
50192         with EAGAIN, retry with a smaller buffer size.
50194 2011-06-05  Bruno Haible  <bruno@clisp.org>
50196         localename: Fix link dependencies.
50197         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
50198         * modules/localename-tests (Makefile.am): Link test-localename with
50199         $(LIBTHREAD).
50201 2011-06-05  Bruno Haible  <bruno@clisp.org>
50203         error: Avoid gcc warning.
50204         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
50206 2011-06-05  Bruno Haible  <bruno@clisp.org>
50208         unsetenv: Avoid gcc warning.
50209         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
50211 2011-06-05  Bruno Haible  <bruno@clisp.org>
50213         setenv: Avoid gcc warning.
50214         * lib/setenv.c (setenv): Provide declaration if system lacks it.
50216 2011-06-05  Bruno Haible  <bruno@clisp.org>
50218         sys_select: Ensure memset is declared also on AIX 7.
50219         * lib/sys_select.in.h: Include <string.h> also on AIX.
50220         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
50221         self-contained also on AIX 7.1.
50223 2011-06-04  Jim Meyering  <meyering@redhat.com>
50225         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
50226         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
50227         function name, "error".
50228         (_gl_translatable_diag_func_re): New configurable variable.
50230 2011-06-04  Bruno Haible  <bruno@clisp.org>
50232         getopt: Avoid gcc warning.
50233         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
50235 2011-06-04  Bruno Haible  <bruno@clisp.org>
50237         strerror_r: Fix comments.
50238         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
50239         commit.
50241 2011-06-04  Bruno Haible  <bruno@clisp.org>
50243         perror: Fix compilation error.
50244         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
50245         Undefine fprintf, not sprintf.
50246         * modules/perror (Depends-on): Remove intprops, verify.
50248 2011-06-04  Bruno Haible  <bruno@clisp.org>
50250         setlocale: Enable replacement on Cygwin 1.5.
50251         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
50252         Cygwin 1.5.x.
50253         * doc/posix-functions/setlocale.texi: Mention that the problem with the
50254         LC_CTYPE category also exists on Cygwin 1.5.x.
50256 2011-06-04  Bruno Haible  <bruno@clisp.org>
50258         strerror-override: Don't disable symbol renamings.
50259         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
50260         * lib/strerror-override.c: Include config.h.
50261         (strerror_override): Don't undefine.
50263 2011-06-03  Bruno Haible  <bruno@clisp.org>
50265         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
50266         * lib/localename.h: Update copyright header.
50267         * lib/localename.c: Likewise.
50268         * lib/relocatable.h: Likewise.
50269         * lib/relocatable.c: Likewise.
50271 2011-06-02  Bruno Haible  <bruno@clisp.org>
50273         doc: Fix a module name.
50274         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
50276 2011-06-02  Bruno Haible  <bruno@clisp.org>
50278         pipe2: Remove dependency on 'nonblocking' module.
50279         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
50280         O_NONBLOCK is defined by gnulib.
50281         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
50282         is zero.
50283         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
50284         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
50285         defined by gnulib.
50286         (get_nonblocking_flag): New function.
50287         (main): Test O_NONBLOCK flag only if it is nonzero.
50288         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
50290 2011-06-03  Jim Meyering  <meyering@redhat.com>
50292         maint: three new prohibit-header-without-use rules
50293         Prohibit use of cloexec.h, posixver.h, same.h without use.
50294         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
50295         (sc_prohibit_posixver_without_use): Likewise.
50296         (sc_prohibit_same_without_use): Likewise.
50298 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50300         allocator: 'die' routine is now given requested size
50301         * lib/allocator.h (struct allocator.die): New size arg.
50302         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
50303         If the actual problem is an ssize_t limitation, not a size_t or
50304         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
50306 2011-06-01  Eric Blake  <eblake@redhat.com>
50308         strerror: drop strerror_r dependency
50309         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
50310         * lib/strerror-override.c (strerror_override): ...to new file.
50311         * lib/strerror-override.h: Add prototype.
50312         * lib/strerror-impl.h: Delete.
50313         * lib/strerror.c (strerror): New implementation.
50314         * modules/errno (Files): Add new files.
50315         (configure.ac): Compile new file as appropriate.
50316         * modules/strerror (Files): Drop unused file.
50317         (Depends-on): Drop strerror_r-posix.
50318         * MODULES.html.sh: Document strerror_r-posix.
50319         Requested by Sam Steingold.
50321         perror: call strerror_r directly
50322         * modules/perror (Files): Drop strerror-impl.h.
50323         * lib/perror.c (perror): Use our own stack buffer, rather than
50324         calling a wrapper that uses static storage.
50325         * doc/posix-functions/perror.texi (perror): Document a limitation
50326         of our replacement.
50328         strerror_r: fix includes for FreeBSD
50329         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
50330         since we use abort on some platforms.
50331         Reported by Matthias Bolte.
50333 2011-05-31  Bruno Haible  <bruno@clisp.org>
50335         Fix link errors in tests: openat-die uses gettext-h.
50336         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
50337         against $(LIBINTL).
50338         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
50339         against $(LIBINTL).
50340         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
50341         $(LIBINTL).
50342         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
50343         against $(LIBINTL).
50344         * modules/linkat-tests (Makefile.am): Link test-linkat against
50345         $(LIBINTL).
50346         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
50347         $(LIBINTL).
50348         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
50349         against $(LIBINTL).
50350         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
50351         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
50352         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
50353         $(LIBINTL).
50354         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
50355         $(LIBINTL).
50356         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
50357         $(LIBINTL).
50358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50360 2011-05-31  Bruno Haible  <bruno@clisp.org>
50362         Fix link errors in tests: wait-process uses gettext-h.
50363         * modules/nonblocking-pipe-tests (Makefile.am): Set
50364         test_nonblocking_pipe_main_LDADD.
50365         * modules/nonblocking-socket-tests (Makefile.am): Link
50366         test-nonblocking-socket-main against $(LIBINTL).
50367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50369 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
50371         assert-h: work around 'verify' incompatibility
50372         * lib/verify.h: Use @...@ directives, not ifdef.
50373         * modules/assert-h (assert.h): Implement the directives.
50374         (assert.h): Substitute the symbol-prefix more consistently.
50376 2011-05-29  Jim Meyering  <meyering@redhat.com>
50378         trim: remove three superfluous assignments
50379         * lib/trim.c (trim2): Remove three superfluous assignments
50380         and correct brace positioning.
50382 2011-05-29  Bruno Haible  <bruno@clisp.org>
50384         wctype-h: Avoid namespace pollution on Solaris 2.6.
50385         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
50386         identifiers.
50387         * doc/posix-headers/wctype.texi: Mention the problem.
50388         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50390 2011-05-28  Jim Meyering  <meyering@redhat.com>
50392         parse-datetime.y: accommodate -Wstrict-overflow
50393         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
50394         placate -Wstrict-overflow.
50396         trim: avoid a warning from -O2 -Wstrict-overflow
50397         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
50399 2011-05-29  Bruno Haible  <bruno@clisp.org>
50401         gnulib-tool: Fix bug in yesterday's commit.
50402         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
50403         twice.
50405 2011-05-29  Bruno Haible  <bruno@clisp.org>
50407         Allow multiple gnulib generated include files to be combined.
50408         * gnulib-tool (func_compute_include_guard_prefix): New function.
50409         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
50410         ${gl_include_guard_prefix} references.
50411         (func_import, func_create_testdir): Invoke
50412         func_compute_include_guard_prefix.
50413         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
50414         * lib/ctype.in.h: Likewise.
50415         * lib/dirent.in.h: Likewise.
50416         * lib/errno.in.h: Likewise.
50417         * lib/fcntl.in.h: Likewise.
50418         * lib/float.in.h: Likewise.
50419         * lib/getopt.in.h: Likewise.
50420         * lib/iconv.in.h: Likewise.
50421         * lib/langinfo.in.h: Likewise.
50422         * lib/locale.in.h: Likewise.
50423         * lib/math.in.h: Likewise.
50424         * lib/netdb.in.h: Likewise.
50425         * lib/netinet_in.in.h: Likewise.
50426         * lib/poll.in.h: Likewise.
50427         * lib/pthread.in.h: Likewise.
50428         * lib/pty.in.h: Likewise.
50429         * lib/sched.in.h: Likewise.
50430         * lib/se-selinux.in.h: Likewise.
50431         * lib/search.in.h: Likewise.
50432         * lib/signal.in.h: Likewise.
50433         * lib/spawn.in.h: Likewise.
50434         * lib/stdarg.in.h: Likewise.
50435         * lib/stddef.in.h: Likewise.
50436         * lib/stdint.in.h: Likewise.
50437         * lib/stdio.in.h: Likewise.
50438         * lib/stdlib.in.h: Likewise.
50439         * lib/string.in.h: Likewise.
50440         * lib/strings.in.h: Likewise.
50441         * lib/sys_file.in.h: Likewise.
50442         * lib/sys_ioctl.in.h: Likewise.
50443         * lib/sys_select.in.h: Likewise.
50444         * lib/sys_socket.in.h: Likewise.
50445         * lib/sys_stat.in.h: Likewise.
50446         * lib/sys_time.in.h: Likewise.
50447         * lib/sys_times.in.h: Likewise.
50448         * lib/sys_uio.in.h: Likewise.
50449         * lib/sys_utsname.in.h: Likewise.
50450         * lib/sys_wait.in.h: Likewise.
50451         * lib/sysexits.in.h: Likewise.
50452         * lib/termios.in.h: Likewise.
50453         * lib/time.in.h: Likewise.
50454         * lib/unistd.in.h: Likewise.
50455         * lib/wchar.in.h: Likewise.
50456         * lib/wctype.in.h: Likewise.
50457         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
50458         * modules/ctype (Makefile.am): Likewise.
50459         * modules/dirent (Makefile.am): Likewise.
50460         * modules/errno (Makefile.am): Likewise.
50461         * modules/fcntl-h (Makefile.am): Likewise.
50462         * modules/float (Makefile.am): Likewise.
50463         * modules/getopt-posix (Makefile.am): Likewise.
50464         * modules/iconv-h (Makefile.am): Likewise.
50465         * modules/langinfo (Makefile.am): Likewise.
50466         * modules/locale (Makefile.am): Likewise.
50467         * modules/math (Makefile.am): Likewise.
50468         * modules/netdb (Makefile.am): Likewise.
50469         * modules/netinet_in (Makefile.am): Likewise.
50470         * modules/poll-h (Makefile.am): Likewise.
50471         * modules/pthread (Makefile.am): Likewise.
50472         * modules/pty (Makefile.am): Likewise.
50473         * modules/sched (Makefile.am): Likewise.
50474         * modules/search (Makefile.am): Likewise.
50475         * modules/selinux-h (Makefile.am): Likewise.
50476         * modules/signal (Makefile.am): Likewise.
50477         * modules/spawn (Makefile.am): Likewise.
50478         * modules/stdarg (Makefile.am): Likewise.
50479         * modules/stddef (Makefile.am): Likewise.
50480         * modules/stdint (Makefile.am): Likewise.
50481         * modules/stdio (Makefile.am): Likewise.
50482         * modules/stdlib (Makefile.am): Likewise.
50483         * modules/string (Makefile.am): Likewise.
50484         * modules/strings (Makefile.am): Likewise.
50485         * modules/sys_file (Makefile.am): Likewise.
50486         * modules/sys_ioctl (Makefile.am): Likewise.
50487         * modules/sys_select (Makefile.am): Likewise.
50488         * modules/sys_socket (Makefile.am): Likewise.
50489         * modules/sys_stat (Makefile.am): Likewise.
50490         * modules/sys_time (Makefile.am): Likewise.
50491         * modules/sys_times (Makefile.am): Likewise.
50492         * modules/sys_uio (Makefile.am): Likewise.
50493         * modules/sys_utsname (Makefile.am): Likewise.
50494         * modules/sys_wait (Makefile.am): Likewise.
50495         * modules/sysexits (Makefile.am): Likewise.
50496         * modules/termios (Makefile.am): Likewise.
50497         * modules/time (Makefile.am): Likewise.
50498         * modules/unistd (Makefile.am): Likewise.
50499         * modules/wchar (Makefile.am): Likewise.
50500         * modules/wctype-h (Makefile.am): Likewise.
50501         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
50503 2011-05-29  Bruno Haible  <bruno@clisp.org>
50505         assert-h: Allow multiple gnulib generated replacements to coexist.
50506         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
50508 2011-05-29  Bruno Haible  <bruno@clisp.org>
50510         argp: Allow coexistence with strerror_r-posix module.
50511         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
50512         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
50513         by gnulib's <string.h> replacement), assume it has the POSIX signature,
50514         not the glibc signature.
50516 2011-05-28  Bruno Haible  <bruno@clisp.org>
50518         gnulib-tool: Alternative structure of testdirs, similar to --import.
50519         * gnulib-tool: New option --single-configure.
50520         (func_usage): Document it.
50521         (single_configure): New variable.
50522         (func_modules_transitive_closure_separately,
50523         func_modules_transitive_closure_separately,
50524         func_determine_use_libtests, func_modules_add_dummy_separately,
50525         func_modules_to_filelist_separately): New functions, extracted from
50526         func_import.
50527         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
50528         (func_import): Use the new functions.
50529         (func_create_testdir): Set final_modules. Handle $single_configure =
50530         true case.
50532 2011-05-28  Bruno Haible  <bruno@clisp.org>
50534         getloadavg: Remove an unreliable safety check.
50535         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
50536         getloadavg.c is in place.
50537         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
50538         Reported by Sam Steingold <sds@gnu.org>.
50540 2011-05-28  Bruno Haible  <bruno@clisp.org>
50542         doc: Cleanup yet another file produced by texinfo.tex.
50543         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
50545 2011-05-28  Bruno Haible  <bruno@clisp.org>
50547         Finish the conditional dependencies mechanism.
50548         * gnulib-tool: New option --no-conditional-dependencies.
50549         (func_usage): Document it. Don't mark --conditional-dependencies as
50550         experimental.
50551         (cond_dependencies): The possible values can now be true, false, empty.
50552         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
50553         (func_import): Store setting in gnulib-cache.m4 and read it from there.
50554         * doc/gnulib-tool.texi (Conditional dependencies): New section.
50556 2011-05-28  Bruno Haible  <bruno@clisp.org>
50558         doc: Use a recent texinfo.tex.
50559         * doc/Makefile (tex_opts): New variable.
50560         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
50562 2011-05-28  Jim Meyering  <meyering@redhat.com>
50564         intprops.h: adjust comment to match code change
50565         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
50566         only once, it *may* have side effects.  Also fix an unrelated typo.
50567         (_GL_INT_SIGNED): Likewise.
50569 2011-05-26  Simon Josefsson  <simon@josefsson.org>
50571         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
50573 2011-05-26  Bruno Haible  <bruno@clisp.org>
50575         mbsrchr: Avoid collision with system function on Interix.
50576         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
50577         Reported by Markus Duft <mduft@gentoo.org>.
50579 2011-05-15  James Youngman  <jay@gnu.org>
50581         getopt: for ambiguous options, enumerate the possibilities.
50582         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
50583         the ambiguous options when an ambiguous prefix is given. This was
50584         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
50585         glibc change was
50586         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
50588 2011-05-25  Eric Blake  <eblake@redhat.com>
50590         getcwd: work around mingw bug
50591         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
50592         * doc/posix-functions/getcwd.texi (getcwd): Document it.
50593         Reported by Matthias Bolte.
50595 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
50597         test-intprops: disable -Wtype-limits diagnostics
50598         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
50599         diagnostics.  Otherwise, the integer overflow macros generate many
50600         diagnostics.  Reported by Jim Meyering in
50601         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
50603         intprops: shorten, to pacify gcc -Woverlength-strings
50604         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
50605         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
50606         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
50607         likely to run afoul of C compiler limits for string constant lengths.
50608         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
50610 2011-05-24  Eric Blake  <eblake@redhat.com>
50612         docs: document recently fixed glibc printf bug
50613         * doc/posix-functions/fprintf.texi (fprintf): Document it.
50614         * doc/posix-functions/printf.texi (printf): Likewise.
50615         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50616         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50618         closein-tests: convert to init.sh
50619         * modules/closein-tests (Files): Add init.sh
50620         * tests/test-closein.sh Use it.
50622         yesno-tests: convert to init.sh
50623         * modules/yesno-tests (Files): Add init.sh.
50624         * tests/test-yesno.sh: Use it.
50626         atexit-tests: ensure reliable exit status
50627         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
50628         Reported by Bruno Haible.
50630 2011-05-24  Bruno Haible  <bruno@clisp.org>
50632         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
50633         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
50634         gl_PREREQ_STRERROR_R invocations from here...
50635         * modules/strerror_r-posix (configure.ac): ... to here.
50637 2011-05-24  Eric Blake  <eblake@redhat.com>
50639         strerror_r: fix missing header
50640         * lib/strerror_r.c: Avoid compiler warning about snprintf.
50642         strerror_r: fix AIX test failures
50643         * lib/strerror_r.c (strerror_r): Convert silent truncation to
50644         ERANGE failure.
50646         strerror_r: fix Solaris test failures
50647         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
50648         failures.
50649         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
50651         strerror_r: enforce POSIX recommendations
50652         * lib/strerror_r.c (safe_copy): New helper method.
50653         (strerror_r): Guarantee a non-empty string.
50654         * tests/test-strerror_r.c (main): Enhance tests to incorporate
50655         recent POSIX rulings and to match our strerror guarantees.
50656         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
50658 2011-05-24  Jim Meyering  <meyering@redhat.com>
50660         test-perror2.c: avoid warning about unused variable
50661         * tests/test-perror2.c (main): Remove declaration of unused "fp".
50663 2011-05-24  Eric Blake  <eblake@redhat.com>
50665         perror: avoid spurious test failure on HP-UX
50666         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
50668         tests: fix logic bug in init.sh
50669         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
50670         shell.
50672 2011-05-24  Jim Meyering  <meyering@redhat.com>
50674         utimensat: do not reference an out-of-scope buffer
50675         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
50676         declared in an inner scope, yet "times" would be dereferenced outside
50677         the scope in which "ts" was valid.
50678         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
50679         of ts[2] "out/up", so that the use of aliased "times" (via
50680         "times = ts;") does not end up referencing an out-of-scope "ts"
50682         opendir-safer.c: don't clobber errno; don't close negative FD
50683         * lib/opendir-safer.c (opendir_safer):
50684         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
50685         file descriptor, and more importantly, don't clobber the
50686         offending errno value with EINVAL.  Before, upon failure
50687         of dup_safer, we would pass the negative file descriptor to
50688         fdopendir, which would clobber errno.
50690 2011-05-23  Bruno Haible  <bruno@clisp.org>
50692         idcache: Fix module description.
50693         * modules/idcache (Include): Set to "idcache.h".
50695 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
50697         gnulib-tool: fix portability problem with MacOS sed
50698         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
50699         before the "}".  Problem reported by Leo in
50700         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
50701         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
50702         sed_extract_condition1, sed_extract_condition2.
50704 2011-05-23  Bruno Haible  <bruno@clisp.org>
50706         hash: Simplify autoconf macro.
50707         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
50709 2011-05-23  Bruno Haible  <bruno@clisp.org>
50711         getugroups: Fix module description.
50712         * modules/getugroups (Include): Set to "getugroups.h".
50714 2011-05-23  Bruno Haible  <bruno@clisp.org>
50716         linkat: Simplify autoconf macro.
50717         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
50719 2011-05-23  Bruno Haible  <bruno@clisp.org>
50720             Eric Blake  <eblake@redhat.com>
50722         linkat, renameat: Update dependencies.
50723         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
50724         * modules/linkat (Depends-on): Likewise. Remove also readlink,
50725         symlinkat.
50727 2011-05-23  Jim Meyering  <meyering@redhat.com>
50729         maint.mk: more tight_scope improvements
50730         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
50731         (_gl_TS_headers): Define only in if-0'd block.
50732         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
50733         sometimes we must *not* use it.  Adjust uses accordingly.
50734         (sc_tight_scope): Use much simpler grep-based test to determine
50735         whether we skip this rule.
50737         maint.mk: generalize/improve the tight-scope rule
50738         * top/maint.mk: Emit a warning when the test is skipped.
50739         (_gl_TS_dir): Add $(srcdir)/ prefix.
50740         (_gl_TS_function_match): Simplify, rather than trying
50741         to enumerate common types.  Otherwise, it would fail to match an
50742         "extern unsigned char const *" declaration in idutils.
50743         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
50744         a way to support use of that type of macro.
50745         (_gl_TS_var_match): Simplify regexp.
50746         (_gl_TS_obj_files): New configurable variable.
50747         (_gl_TS_headers): Likewise.
50749 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50751         verify: fix bug when gnulib <assert.h> is also included
50752         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
50753         is defined, not if _GL_STATIC_ASSERT_H is not defined.
50754         Perhaps there's a better way, but this fixes the immediate problem.
50755         Problem reported by Bruno Haible in
50756         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
50758 2011-05-22  Bruno Haible  <bruno@clisp.org>
50760         xgetcwd: Simplify autoconf macro.
50761         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
50763 2011-05-22  Bruno Haible  <bruno@clisp.org>
50765         New module 'mktime-internal'.
50766         * modules/mktime-internal: New file.
50767         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
50768         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
50769         mktime_internal as a C macro if libc has __mktime_internal.
50770         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
50771         conditions.
50772         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
50774 2011-05-22  Bruno Haible  <bruno@clisp.org>
50776         timegm: Correct mktime replacement statements.
50777         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
50778         defining mktime as a C macro. This completes a 2009-07-28 commit.
50780 2011-05-22  Bruno Haible  <bruno@clisp.org>
50782         timegm: Simplify autoconf macro.
50783         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
50785 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
50787         clock-time: change to LGPLv2+.
50788         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
50789         BSD-like but we have no mark for that; this is good enough for now.
50791 2011-05-21  Bruno Haible  <bruno@clisp.org>
50793         strerror_r: Fix comments.
50794         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
50796 2011-05-21  Bruno Haible  <bruno@clisp.org>
50798         relocatable-prog-wrapper: Fix possible link error.
50799         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
50800         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
50801         (gl_FUNC_SETENV): ... to here.
50802         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
50803         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
50805 2011-05-21  Bruno Haible  <bruno@clisp.org>
50807         relocatable-prog-wrapper: Assume strerror() exists.
50808         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
50809         m4/strerror.m4.
50810         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
50811         * lib/relocwrapper.c: Remove mention of strerror module.
50812         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
50813         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
50814         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
50815         C macro.
50817 2011-05-21  Bruno Haible  <bruno@clisp.org>
50819         select: Simplify replacement idiom.
50820         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
50821         Win32 platforms.
50822         * lib/sys_select.in.h (select): Simplify accordingly.
50823         * modules/select (Depends-on): Likewise.
50825 2011-05-21  Bruno Haible  <bruno@clisp.org>
50827         mkdir-p: Simplify autoconf macro.
50828         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
50829         gl_FUNC_LCHOWN.
50831 2011-05-21  Eric Blake  <eblake@redhat.com>
50833         strerror_r: avoid clobbering strerror on cygwin
50834         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
50835         fall back instead to sys_errlist.
50836         * modules/strerror (configure.ac): Add witness.
50837         * tests/test-strerror_r.c (main): Enhance test.
50838         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
50839         * tests/test-perror2.c (main): Free memory before exit.
50841 2011-05-21  Bruno Haible  <bruno@clisp.org>
50843         mkdtemp: Use gnulib naming conventions.
50844         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
50845         * modules/mkdtemp (configure.ac): Update.
50847 2011-05-20  Eric Blake  <eblake@redhat.com>
50849         strerror_r: avoid corrupting errno on Solaris
50850         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
50851         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
50853         strerror_r: avoid compiler warning
50854         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
50856         strerror_r: simplify AIX code
50857         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
50859         test-perror: avoid spurious failure on FreeBSD
50860         * modules/perror-tests (Depends-on): Add strerror, now that
50861         strerror_r no longer pulls it in.
50863 2011-05-20  Bruno Haible  <bruno@clisp.org>
50865         strerror_r-posix: Remove unused dependencies.
50866         * modules/strerror_r-posix (Depends-on): Remove strerror.
50867         Reported by Eric Blake.
50869 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50871         intprops: remove assumption about A|B representation
50872         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
50873         is a valid integer if both A and B are.  Although this is true for
50874         all known practical hosts, the C standard doesn't guarantee it,
50875         and the code need not assume it.  Also, this change may work around
50876         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
50877         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
50879 2011-05-20  Eric Blake  <eblake@redhat.com>
50881         perror: work around FreeBSD bug
50882         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
50883         is broken.  Move AC_LIBOBJ...
50884         * modules/perror (configure.ac): Here.
50885         * doc/posix-functions/perror.texi (perror): Document this.
50886         * tests/test-perror2.c (main): Enhance test.
50888         test-perror: check for strerror interactions
50889         * tests/macros.h (STREQ): Add macro.
50890         * modules/perror-tests (Files): Add second test.
50891         * tests/test-perror2.c (main): New file.
50892         * doc/posix-functions/perror.texi (perror): Document glibc bug.
50894         test-perror: rewrite to use init script
50895         * modules/perror-tests (Files): Add init.sh.
50896         * tests/test-perror.sh: Use temporary directory.
50898 2011-05-20  Jim Meyering  <meyering@redhat.com>
50900         maint: replace misused "a" with "an"
50901         * doc/intprops.texi: "a integer"
50902         * doc/regex.texi: "a explanation"
50903         * lib/alignof.h: "a object"
50904         * lib/argmatch.h: "a explanation"
50905         * lib/argp-help.c: "a option" and "a OPTION_DOC"
50906         * lib/stdint.in.h: "a integer"
50907         * lib/userspec.c: "a owner"
50908         * doc/gnulib.texi: Fix "a idea", and reword.
50910 2011-05-19  Jim Meyering  <meyering@redhat.com>
50912         maint: correct misuse of "a" and "an"
50913         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
50914         * lib/argp-help.c: "an docum...": s/an/a/
50915         * lib/argp-parse.c: "An vector": s/An/A/
50916         * lib/execute.c: "an native": s/an/a/
50917         * lib/spawn-pipe.c: Likewise.
50918         * lib/gc.h: "an Gc_rc": s/an/a/
50919         * lib/unigbrk.in.h: "an grapheme": s/an/a/
50920         * lib/fts.c: "an stat.st_dev": s/an/a/
50922 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50924         intprops-tests: work around HP-UX 11.23 cc bug with constants
50925         * tests/test-intprops.c (VERIFY): New macro.
50926         (main): Use it, instead of verify, to work around the compiler bug; see
50927         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
50929         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
50930         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
50931         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
50932         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
50933         (_GL_REMAINDER_OVERFLOW): Use it.
50935         intprops-tests: revert unsigned part of previous change
50936         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
50937         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
50938         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
50939         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
50941 2011-05-19  Bruno Haible  <bruno@clisp.org>
50943         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
50944         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
50945         strerror_r() returned without filling the buffer.
50946         Reported by Eric Blake.
50948 2011-05-19  Eric Blake  <eblake@redhat.com>
50950         strerror_r: guarantee unchanged errno
50951         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
50952         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
50953         failure.
50954         * tests/test-strerror_r.c (main): Enhance test.
50956 2011-05-19  Bruno Haible  <bruno@clisp.org>
50958         strerror_r: Reorder #if blocks.
50959         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
50960         for consistency with the previous commit.
50962 2011-05-19  Bruno Haible  <bruno@clisp.org>
50964         perror: Avoid clobbering the strerror buffer when possible.
50965         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
50966         * lib/strerror.c: Include it.
50967         * modules/strerror (Files): Add lib/strerror-impl.h.
50968         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
50969         (my_strerror): New function, defined through lib/strerror-impl.h.
50970         (perror): Use it instead of strerror.
50971         * modules/perror (Files): Add lib/strerror-impl.h.
50972         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
50974 2011-05-19  Eric Blake  <eblake@redhat.com>
50976         strerror_r: fix on newer cygwin
50977         * lib/strerror_r.c (strerror_r): Cygwin now has
50978         __xpg_strerror_r, use it.
50980 2011-05-19  Bruno Haible  <bruno@clisp.org>
50982         strerror_r: Avoid clobbering the strerror buffer when possible.
50983         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
50984         (sys_nerr, sys_errlist): New declarations.
50985         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
50986         HP-UX, native Win32, IRIX, and 32-bit Solaris.
50987         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
50989 2011-05-19  Bruno Haible  <bruno@clisp.org>
50991         strerror_r: Fix test failure on mingw.
50992         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
50993         EXTEND_STRERROR_R.
50994         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
50995         macros from errno.in.h instead.
50997 2011-05-19  Eric Blake  <eblake@redhat.com>
50999         strerror: relax test for Solaris
51000         * tests/test-strerror.c (main): Permit Solaris behavior.
51001         * tests/test-strerror_r.c (main): Likewise.
51003         strerror: enforce POSIX ruling on strerror(0)
51004         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
51005         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
51006         * lib/strerror_r.c (rpl_strerror_r): Work around it.
51007         * doc/posix-functions/strerror.texi (strerror): Document it.
51008         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
51009         * tests/test-strerror.c (main): Strengthen test.
51010         * tests/test-strerror_r.c (main): Likewise.
51012 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51014         intprop-tests: port to older and more-pedantic compilers
51015         * modules/intprops-tests (Files): Add tests/macros.h.
51016         * tests/test-intprops.c: Include macros.h.
51017         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
51018         it's no longer documented to expand to an integer constant expression.
51019         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
51020         argument is floating point, as it's no longer documented to expand
51021         to an integer constant expression in that case.
51022         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
51023         compiler bugs reported by Bruno Haible.  See
51024         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51025         (U0, U1): New constants, to work around the same bugs.  Also,
51026         in tests, use e.g., "(unsigned int) 39" rather than "39u".
51028         intprops: work around C compiler bugs
51029         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
51030         bug in Sun C 5.11 2010/08/13 and other compilers; see
51031         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51033         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
51034         * doc/intprops.texi (Integer Type Determination): Fix
51035         documentation for TYPE_IS_INTEGER: it returns an constant
51036         expression, not an integer constant expression.  Fix doc for
51037         TYPE_SIGNED: it returns an integer constant expression only if its
51038         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
51039         hardly worth documented that way....)
51041 2011-05-18  Bruno Haible  <bruno@clisp.org>
51043         strerror_r: Avoid clobbering the strerror buffer when possible.
51044         * lib/strerror_r.c (strerror_r): Merge the three implementations.
51045         Handle gnulib defined errno values here. When strerror() returns NULL
51046         or an empty string, return EINVAL.
51047         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
51048         gnulib defined errno values here.
51049         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
51051 2011-05-18  Eric Blake  <eblake@redhat.com>
51053         fnmatch: avoid compiler warning
51054         * lib/fnmatch_loop.c (FCT): Use correct type.
51055         Reported by Matthias Bolte.
51057 2011-05-13  Jim Meyering  <meyering@redhat.com>
51059         maint.mk: three new prohibit_<HDR>_without_use rules
51060         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
51061         (sc_prohibit_stdio-safer_without_use): Likewise.
51062         (sc_prohibit_xfreopen_without_use): Likewise.
51064 2011-05-17  Jim Meyering  <meyering@redhat.com>
51066         announce-gen: fail if the NEWS delta is empty
51067         If there's nothing noteworthy in NEWS, then either you forgot
51068         or you shouldn't be releasing.
51069         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
51071 2011-05-17  Pádraig Brady  <P@draigBrady.com>
51073         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
51074         reserved symbols starting with double underscore from the check.
51076 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51078         intprops: add doc
51079         * doc/intprops.texi: New file, documenting intprops.
51080         * doc/gnulib.texi (Particular Modules): Include it.
51082         verify: add doc to gnulib manual and fix example
51083         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
51084         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
51085         (Compile-time Assertions): Fix example so it can't overflow.
51087 2011-05-17  Jim Meyering  <meyering@redhat.com>
51089         warnings.m4: don't usurp save_CPPFLAGS variable name
51090         * m4/warnings.m4: Prefix local temporary variable name with gl_.
51092         doc: fix typo
51093         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
51095 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51096             Bruno Haible  <bruno@clisp.org>
51098         doc: Tweak recent change.
51099         * README (Portability guidelines): Tweak new text.
51100         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
51101         Interix 6.1.
51103 2011-05-16  Eric Blake  <eblake@redhat.com>
51105         inttypes: avoid autoconf warning
51106         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
51107         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51109 2011-05-16  Sam Steingold  <sds@gnu.org>
51110         and Eric Blake  <eblake@redhat.com>
51112         vc-list-files: accept multiple directory operands
51113         * build-aux/vc-list-files: Iterate over all remaining operands.
51115 2011-05-16  Bruno Haible  <bruno@clisp.org>
51117         Fix confusion regarding deprecated modules.
51118         * modules/calloc (Status, Notice): Mark module as deprecated, not
51119         obsolete.
51120         * modules/fnmatch-posix (Status, Notice): Likewise.
51121         * modules/getdate (Status, Notice): Likewise.
51122         * modules/getopt (Status, Notice): Likewise.
51123         * modules/malloc (Status, Notice): Likewise.
51124         * modules/pipe (Status, Notice): Likewise.
51125         * modules/realloc (Status, Notice): Likewise.
51126         * modules/rename-dest-slash (Status, Notice): Likewise.
51127         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
51128         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
51129         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
51130         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
51131         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
51133 2011-05-16  Bruno Haible  <bruno@clisp.org>
51135         doc: List the target platforms.
51136         * doc/gnulib-intro.texi (Target Platforms): New section.
51137         * doc/gnulib.texi (Introduction): Update menu.
51138         * README (Portability guidelines): Refer to the new section. Update
51139         statement about oldest supported environment. Remove rationale why
51140         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
51141         unportable C89 function.
51142         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
51143         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
51145 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51147         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
51149 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51151         intprops-tests: new module
51152         * modules/intprops-tests, tests/test-intprops.c: New files.
51154         intprops: add safe, portable integer overflow checking
51155         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
51156         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
51157         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
51158         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
51159         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
51160         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
51161         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
51162         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
51163         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
51164         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
51165         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
51167 2011-05-12  James Youngman  <jay@gnu.org>
51169         Add a test for glibc's Bugzilla bug #12378.
51170         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
51171         doesn't allow the literal matching of a lone "[" (which is
51172         required by POSIX).
51173         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
51175 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
51177         Sync glibc change fixing Bugzilla bug #12378.
51178         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
51179         beginning and fall back to matching as normal character if the
51180         string ends before the matching ']' is found.  This is what POSIX
51181         requires.
51183 2011-05-13  Eric Blake  <eblake@redhat.com>
51185         getcwd-lgpl: relax test for FreeBSD
51186         * doc/posix-functions/getcwd.texi (getcwd): Document portability
51187         issue.
51188         * tests/test-getcwd-lgpl.c (main): Relax test.
51189         Reported by Matthias Bolte.
51191 2011-05-11  Eric Blake  <eblake@redhat.com>
51193         test-fflush: silence compiler warning
51194         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
51196 2011-05-11  Bruno Haible  <bruno@clisp.org>
51198         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
51199         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
51200         * modules/canonicalize (Depends-on): Add 'nocrash'.
51201         * modules/canonicalize-lgpl (Depends-on): Likewise.
51202         * doc/posix-functions/realpath.texi: Update platforms list.
51203         Reported by Ryan Schmidt <ryandesign@macports.org>.
51205 2011-05-11  Bruno Haible  <bruno@clisp.org>
51207         group-member: Declare function in <unistd.h>.
51208         * lib/unistd.in.h (group_member): New declaration.
51209         * lib/group-member.h: Remove file.
51210         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
51211         * tests/test-unistd-c++.cc: Check signature of group_member.
51212         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
51213         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
51214         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
51215         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
51216         HAVE_GROUP_MEMBER.
51217         * modules/group-member (Files): Remove lib/group-member.h.
51218         (Depends-on): Add unistd. Specify conditions.
51219         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51220         (Include): Change to <unistd.h>.
51221         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
51222         HAVE_GROUP_MEMBER.
51223         * NEWS: Mention the change.
51224         * lib/euidaccess.c: Don't include group-member.h.
51226 2011-05-11  Bruno Haible  <bruno@clisp.org>
51228         group-member: Document module.
51229         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
51230         module.
51232 2011-05-11  Bruno Haible  <bruno@clisp.org>
51234         fclose: Fix mistake earlier today.
51235         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
51237 2011-05-11  Eric Blake  <eblake@redhat.com>
51239         fclose: preserve fflush errors
51240         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
51241         Reported by Jim Meyering.
51243         bootstrap: support a prereq of 'rpcgen -' on RHEL5
51244         * build-aux/bootstrap (check_versions): When no specific version
51245         is required, merely check that the app produces an exit status
51246         that indicates its existence.
51248         maint.mk: drop redundant check
51249         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
51250         the same but better.
51252 2011-05-11  Bruno Haible  <bruno@clisp.org>
51254         fclose: Fix possible link error.
51255         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
51256         unregister_shadow_fd. Improve comments.
51257         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
51258         Eric Blake.
51260 2011-05-11  Jim Meyering  <meyering@redhat.com>
51262         maint.mk: improve "can not" detection and generalize rule name
51263         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
51264         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
51265         Use the same technique as in sc_prohibit_doubled_word, so that
51266         we recognize "can not" also when the words are separated by a newline.
51267         Suggested by Eric Blake.
51268         (perl_filename_lineno_text_): Define.  Factored out of...
51269         (prohibit_doubled_word_): ...here.  Use the new definition.
51270         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
51271         (prohibit_undesirable_word_seq_RE_): New overridable variable.
51272         (ignore_undesirable_word_sequence_RE_): New overridable variable.
51274 2011-05-10  Eric Blake  <eblake@redhat.com>
51276         fclose: avoid double close race when possible
51277         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
51278         all but WINDOWS_SOCKETS.
51280 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
51282         openat: correct new comment
51283         * lib/openat-proc.c (openat_proc_name): Correct the comment.
51285 2011-05-10  Jim Meyering  <meyering@redhat.com>
51287         openat: add comments
51288         * lib/openat-proc.c (openat_proc_name): Add comments,
51289         mostly from Eric Blake.
51291 2011-05-09  Eric Blake  <eblake@redhat.com>
51293         openat: reduce syscalls in first probe of /proc
51294         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
51295         be a directory.  Simplify the probe for .. bugs.
51296         * modules/openat (Depends-on): Drop same-inode.
51297         Reported by Bastien ROUCARIES.
51299 2011-05-09  Jim Meyering  <meyering@redhat.com>
51301         maint.mk: change semantics/name of tight_scope variables
51302         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
51303         Rename variables to align with semantics that make them more useful.
51305         maint.mk: tweak new rule's name not to impinge
51306         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
51307         (sc_tight_scope): Use new rule name rather than $@-0.
51309         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
51310         * top/maint.mk (sc_tight_scope): New rule.
51311         (sc_tight_scope-0): New rule, ifdef'd out.
51312         (_gl_TS_dir): Default.
51313         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
51314         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
51316 2011-05-09  Simon Josefsson  <simon@josefsson.org>
51318         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
51319         Haible <bruno@clisp.org>.
51321 2011-05-08  Bruno Haible  <bruno@clisp.org>
51323         Comments.
51324         * m4/isnanf.m4: Add comment.
51325         * m4/isnanl.m4: Likewise.
51327 2011-05-08  Bruno Haible  <bruno@clisp.org>
51329         glob: Remove obsolete macro.
51330         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
51332 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
51334         intprops: Sun C 5.11 supports __typeof__
51335         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
51336         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
51337         which is new.
51338         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
51340         intprops: switch to usual gnulib indenting and naming
51341         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
51342         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
51344         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
51346 2011-05-08  Jim Meyering  <meyering@redhat.com>
51348         maint.mk: suppress "Entering/Leaving directory" diag in announcement
51349         * top/maint.mk (release-prep): Use make's --no-print-directory
51350         option when generating the announcement.  This eliminates the
51351         pesky "make[2]: Entering/Leaving directory" diagnostics in the
51352         generated announcement template.
51354 2011-05-08  Bruno Haible  <bruno@clisp.org>
51356         tzset: Fix gettimeofday wrapper on Solaris 2.6.
51357         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
51358         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
51360 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
51362         ignore-value, verify: Omit include files from lib_SOURCES.
51363         * modules/ignore-value, modules/verify (Makefile.am):
51364         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
51365         that leads Automake to duplicate use of am__objects_... variables
51366         in Makefile.in.  See
51367         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
51369 2011-05-07  Bruno Haible  <bruno@clisp.org>
51371         fclose: Simplify autoconf macro.
51372         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
51373         defined.
51375 2011-05-07  Bruno Haible  <bruno@clisp.org>
51377         canonicalize-lgpl: Fix autoconf macro ordering bug.
51378         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
51379         gl_STDLIB_H_DEFAULTS.
51381 2011-05-06  Eric Blake  <eblake@redhat.com>
51383         maintainer-makefile: make sc_po_check easier to tune
51384         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
51385         to probe for strings, such as an alternate location for gnulib.
51387         fclose: guarantee behavior on seekable stdin
51388         * modules/fclose (Depends-on): Add fflush.
51389         * doc/posix-functions/fclose.texi (fclose): Document this.
51390         * tests/test-fclose.c (main): Make test for this unconditional.
51392 2011-05-06  Bruno Haible  <bruno@clisp.org>
51394         fflush, fpurge: Relicense under LGPLv2+.
51395         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
51396         * modules/fpurge (License): Likewise.
51397         With permission from Eric Blake and Jim Meyering.
51398         Suggested by Eric Blake.
51400 2011-05-06  Karl Berry  <karl@gnu.org>
51402         * MODULES.html.sh (func_all_modules): remove exit.
51404 2011-05-06  Jim Meyering  <meyering@redhat.com>
51406         maint.mk: use info-gnu@ as the default only for a stable release
51407         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
51408         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
51409         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
51410         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
51412 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51414         assert-h: new module, which supports C1X-style static_assert
51415         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
51416         * lib/verify.h: Revamp so that this can be copied into assert.h,
51417         while retaining the ability to use it standalone as before.
51418         Rename private identifiers so as not to encroach on the
51419         standard C namespace, since this is now used by assert.h.
51420         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
51421         the old verify_true.
51422         (_GL_VERIFY_TRUE): New macro, with much of the contents of
51423         the old verify_true.  Use _GL_VERIFY_TYPE.
51424         (_GL_VERIFY): New macro, with much of the contents of the old verify.
51425         (static_assert): New macro, if _GL_STATIC_ASSERT_H
51426         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
51427         defined when this file is copied into the replacement assert.h.
51428         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
51429         and _Static_assert is not built in.
51430         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
51431         defined, and use the new macros mentioned above.
51432         * doc/posix-headers/assert.texi: Document this.
51434 2011-05-05  Bruno Haible  <bruno@clisp.org>
51436         fclose, fflush: Respect rules for use of AC_LIBOBJ.
51437         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
51438         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
51439         gl_REPLACE_FCLOSE here.
51440         * modules/fflush (Depends-on): Remove fclose.
51441         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
51442         combination with module 'fclose'.
51444 2011-05-05  Bruno Haible  <bruno@clisp.org>
51446         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
51447         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
51448         gl_FUNC_FFLUSH.
51449         (gl_FUNC_FFLUSH): Use it.
51450         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
51451         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
51452         gl_REPLACE_FSEEKO here.
51454 2011-05-05  Bruno Haible  <bruno@clisp.org>
51456         tzset: Relicense under LGPL.
51457         * modules/tzset (License): Change to LGPL.
51458         No agreement needed; it's a no-op.
51460         strtoimax, strtoumax: Relicense under LGPL.
51461         * modules/strtoimax (License): Change to LGPL.
51462         * modules/strtoumax (License): Likewise.
51463         With permission from Jim Meyering, Paul Eggert:
51464         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
51465         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
51467         getgroups: Relicense under LGPL.
51468         * modules/getgroups (License): Change to LGPL.
51469         With permission from Jim Meyering, Paul Eggert, Eric Blake:
51470         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51471         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51472         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51474         nanosleep: Relicense under LGPL.
51475         * modules/nanosleep (License): Change to LGPL.
51476         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
51477         Haible:
51478         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51479         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51480         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51481         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
51483         futimens: Relicense under LGPL.
51484         * modules/futimens (License): Change to LGPL.
51485         With permission from Eric Blake:
51486         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51488         fflush: Relicense under LGPL.
51489         * modules/fflush (License): Change to LGPL.
51490         With permission from Eric Blake, Bruno Haible, Jim Meyering:
51491         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51492         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
51493         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
51495         tmpfile: Relicense under LGPL.
51496         * modules/tmpfile (License): Change to LGPL.
51497         With permission from Ben Pfaff:
51498         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
51500         isfinite: Relicense under LGPL.
51501         * modules/isfinite (License): Change to LGPL.
51502         With permission from Ben Pfaff, Bruno Haible:
51503         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
51504         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
51506         acosl..tanl: Relicense under LGPL.
51507         * modules/acosl (License): Change to LGPL.
51508         * modules/asinl (License): Likewise.
51509         * modules/atanl (License): Likewise.
51510         * modules/cosl (License): Likewise.
51511         * modules/expl (License): Likewise.
51512         * modules/logl (License): Likewise.
51513         * modules/sinl (License): Likewise.
51514         * modules/sqrtl (License): Likewise.
51515         * modules/tanl (License): Likewise.
51516         Source code originally from glibc and Paolo Bonzini. Agreements:
51517         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
51518         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
51520 2011-05-05  Bruno Haible  <bruno@clisp.org>
51522         signal: Define sighandler_t.
51523         * lib/signal.in.h (sighandler_t): New type.
51524         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
51525         whether sighandler_t is defined.
51526         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
51527         * modules/signal (Depends-on): Add extensions.
51528         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
51529         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
51530         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
51532 2011-05-05  Eric Blake  <eblake@redhat.com>
51534         maint: remove useless REPLACE_*_H macros
51535         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
51536         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
51537         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
51538         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
51539         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
51540         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
51541         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
51542         * m4/btowc.m4: Update callers.
51543         * m4/dirfd.m4: Likewise.
51544         * m4/duplocale.m4: Likewise.
51545         * m4/fchdir.m4: Likewise.
51546         * m4/fdopendir.m4: Likewise.
51547         * m4/inet_ntop.m4: Likewise.
51548         * m4/inet_pton.m4: Likewise.
51549         * m4/ioctl.m4: Likewise.
51550         * m4/mbrlen.m4: Likewise.
51551         * m4/mbrtowc.m4: Likewise.
51552         * m4/mbsinit.m4: Likewise.
51553         * m4/mbsnrtowcs.m4: Likewise.
51554         * m4/mbsrtowcs.m4: Likewise.
51555         * m4/poll.m4: Likewise.
51556         * m4/setlocale.m4: Likewise.
51557         * m4/wcrtomb.m4: Likewise.
51558         * m4/wcsnrtombs.m4: Likewise.
51559         * m4/wcsrtombs.m4: Likewise.
51560         * m4/wctob.m4: Likewise.
51561         * m4/wcwidth.m4: Likewise.
51562         * modules/posix_spawn: Likewise.
51563         * modules/posix_spawn_file_actions_addclose: Likewise.
51564         * modules/posix_spawn_file_actions_adddup2: Likewise.
51565         * modules/posix_spawn_file_actions_addopen: Likewise.
51566         * modules/posix_spawn_file_actions_destroy: Likewise.
51567         * modules/posix_spawn_file_actions_init: Likewise.
51568         * modules/posix_spawnattr_destroy: Likewise.
51569         * modules/posix_spawnattr_getflags: Likewise.
51570         * modules/posix_spawnattr_getpgroup: Likewise.
51571         * modules/posix_spawnattr_getschedparam: Likewise.
51572         * modules/posix_spawnattr_getschedpolicy: Likewise.
51573         * modules/posix_spawnattr_getsigdefault: Likewise.
51574         * modules/posix_spawnattr_getsigmask: Likewise.
51575         * modules/posix_spawnattr_init: Likewise.
51576         * modules/posix_spawnattr_setflags: Likewise.
51577         * modules/posix_spawnattr_setpgroup: Likewise.
51578         * modules/posix_spawnattr_setschedparam: Likewise.
51579         * modules/posix_spawnattr_setschedpolicy: Likewise.
51580         * modules/posix_spawnattr_setsigdefault: Likewise.
51581         * modules/posix_spawnattr_setsigmask: Likewise.
51582         * modules/posix_spawnp: Likewise.
51584 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
51586         Add option to do-release-commit-and-tag to specify branch.
51587         * build-aux/do-release-commit-and-tag: Add --branch.
51589 2011-05-03  Bruno Haible  <bruno@clisp.org>
51591         Avoid unnecessary compilation units, through conditional dependencies.
51592         * modules/accept (Depends-on): Add conditions to the dependencies.
51593         * modules/acosl (Depends-on): Likewise.
51594         * modules/argz (Depends-on): Likewise.
51595         * modules/asinl (Depends-on): Likewise.
51596         * modules/atanl (Depends-on): Likewise.
51597         * modules/atoll (Depends-on): Likewise.
51598         * modules/bind (Depends-on): Likewise.
51599         * modules/btowc (Depends-on): Likewise.
51600         * modules/canonicalize-lgpl (Depends-on): Likewise.
51601         * modules/ceil (Depends-on): Likewise.
51602         * modules/ceilf (Depends-on): Likewise.
51603         * modules/ceill (Depends-on): Likewise.
51604         * modules/chdir-long (Depends-on): Likewise.
51605         * modules/chown (Depends-on): Likewise.
51606         * modules/close (Depends-on): Likewise.
51607         * modules/connect (Depends-on): Likewise.
51608         * modules/cosl (Depends-on): Likewise.
51609         * modules/dirfd (Depends-on): Likewise.
51610         * modules/dprintf (Depends-on): Likewise.
51611         * modules/dprintf-posix (Depends-on): Likewise.
51612         * modules/error (Depends-on): Likewise.
51613         * modules/euidaccess (Depends-on): Likewise.
51614         * modules/expl (Depends-on): Likewise.
51615         * modules/faccessat (Depends-on): Likewise.
51616         * modules/fchdir (Depends-on): Likewise.
51617         * modules/fclose (Depends-on): Likewise.
51618         * modules/fcntl (Depends-on): Likewise.
51619         * modules/fdopendir (Depends-on): Likewise.
51620         * modules/fflush (Depends-on): Likewise.
51621         * modules/floor (Depends-on): Likewise.
51622         * modules/floorf (Depends-on): Likewise.
51623         * modules/floorl (Depends-on): Likewise.
51624         * modules/fnmatch (Depends-on): Likewise.
51625         * modules/fopen (Depends-on): Likewise.
51626         * modules/fprintf-posix (Depends-on): Likewise.
51627         * modules/frexp (Depends-on): Likewise.
51628         * modules/frexp-nolibm (Depends-on): Likewise.
51629         * modules/frexpl (Depends-on): Likewise.
51630         * modules/frexpl-nolibm (Depends-on): Likewise.
51631         * modules/fseek (Depends-on): Likewise.
51632         * modules/fsusage (Depends-on): Likewise.
51633         * modules/ftell (Depends-on): Likewise.
51634         * modules/ftello (Depends-on): Likewise.
51635         * modules/futimens (Depends-on): Likewise.
51636         * modules/getcwd (Depends-on): Likewise.
51637         * modules/getcwd-lgpl (Depends-on): Likewise.
51638         * modules/getdelim (Depends-on): Likewise.
51639         * modules/getdomainname (Depends-on): Likewise.
51640         * modules/getgroups (Depends-on): Likewise.
51641         * modules/gethostname (Depends-on): Likewise.
51642         * modules/getline (Depends-on): Likewise.
51643         * modules/getlogin_r (Depends-on): Likewise.
51644         * modules/getopt-posix (Depends-on): Likewise.
51645         * modules/getpeername (Depends-on): Likewise.
51646         * modules/getsockname (Depends-on): Likewise.
51647         * modules/getsockopt (Depends-on): Likewise.
51648         * modules/getsubopt (Depends-on): Likewise.
51649         * modules/getusershell (Depends-on): Likewise.
51650         * modules/glob (Depends-on): Likewise.
51651         * modules/grantpt (Depends-on): Likewise.
51652         * modules/iconv_open (Depends-on): Likewise.
51653         * modules/iconv_open-utf (Depends-on): Likewise.
51654         * modules/inet_ntop (Depends-on): Likewise.
51655         * modules/inet_pton (Depends-on): Likewise.
51656         * modules/ioctl (Depends-on): Likewise.
51657         * modules/isapipe (Depends-on): Likewise.
51658         * modules/isfinite (Depends-on): Likewise.
51659         * modules/isinf (Depends-on): Likewise.
51660         * modules/lchown (Depends-on): Likewise.
51661         * modules/ldexpl (Depends-on): Likewise.
51662         * modules/link (Depends-on): Likewise.
51663         * modules/linkat (Depends-on): Likewise.
51664         * modules/listen (Depends-on): Likewise.
51665         * modules/logl (Depends-on): Likewise.
51666         * modules/lstat (Depends-on): Likewise.
51667         * modules/mbrlen (Depends-on): Likewise.
51668         * modules/mbrtowc (Depends-on): Likewise.
51669         * modules/mbsinit (Depends-on): Likewise.
51670         * modules/mbsnrtowcs (Depends-on): Likewise.
51671         * modules/mbsrtowcs (Depends-on): Likewise.
51672         * modules/mbtowc (Depends-on): Likewise.
51673         * modules/memcmp (Depends-on): Likewise.
51674         * modules/mkdir (Depends-on): Likewise.
51675         * modules/mkdtemp (Depends-on): Likewise.
51676         * modules/mkfifo (Depends-on): Likewise.
51677         * modules/mkfifoat (Depends-on): Likewise.
51678         * modules/mknod (Depends-on): Likewise.
51679         * modules/mkostemp (Depends-on): Likewise.
51680         * modules/mkostemps (Depends-on): Likewise.
51681         * modules/mkstemp (Depends-on): Likewise.
51682         * modules/mkstemps (Depends-on): Likewise.
51683         * modules/mktime (Depends-on): Likewise.
51684         * modules/nanosleep (Depends-on): Likewise.
51685         * modules/open (Depends-on): Likewise.
51686         * modules/openat (Depends-on): Likewise.
51687         * modules/perror (Depends-on): Likewise.
51688         * modules/poll (Depends-on): Likewise.
51689         * modules/popen (Depends-on): Likewise.
51690         * modules/posix_spawn (Depends-on): Likewise.
51691         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
51692         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51693         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51694         * modules/posix_spawnp (Depends-on): Likewise.
51695         * modules/pread (Depends-on): Likewise.
51696         * modules/printf-posix (Depends-on): Likewise.
51697         * modules/ptsname (Depends-on): Likewise.
51698         * modules/putenv (Depends-on): Likewise.
51699         * modules/pwrite (Depends-on): Likewise.
51700         * modules/readline (Depends-on): Likewise.
51701         * modules/readlink (Depends-on): Likewise.
51702         * modules/readlinkat (Depends-on): Likewise.
51703         * modules/recv (Depends-on): Likewise.
51704         * modules/recvfrom (Depends-on): Likewise.
51705         * modules/regex (Depends-on): Likewise.
51706         * modules/remove (Depends-on): Likewise.
51707         * modules/rename (Depends-on): Likewise.
51708         * modules/renameat (Depends-on): Likewise.
51709         * modules/rmdir (Depends-on): Likewise.
51710         * modules/round (Depends-on): Likewise.
51711         * modules/roundf (Depends-on): Likewise.
51712         * modules/roundl (Depends-on): Likewise.
51713         * modules/rpmatch (Depends-on): Likewise.
51714         * modules/select (Depends-on): Likewise.
51715         * modules/send (Depends-on): Likewise.
51716         * modules/sendto (Depends-on): Likewise.
51717         * modules/setenv (Depends-on): Likewise.
51718         * modules/setlocale (Depends-on): Likewise.
51719         * modules/setsockopt (Depends-on): Likewise.
51720         * modules/shutdown (Depends-on): Likewise.
51721         * modules/sigaction (Depends-on): Likewise.
51722         * modules/signbit (Depends-on): Likewise.
51723         * modules/sigprocmask (Depends-on): Likewise.
51724         * modules/sinl (Depends-on): Likewise.
51725         * modules/sleep (Depends-on): Likewise.
51726         * modules/snprintf (Depends-on): Likewise.
51727         * modules/snprintf-posix (Depends-on): Likewise.
51728         * modules/socket (Depends-on): Likewise.
51729         * modules/sprintf-posix (Depends-on): Likewise.
51730         * modules/sqrtl (Depends-on): Likewise.
51731         * modules/stat (Depends-on): Likewise.
51732         * modules/strchrnul (Depends-on): Likewise.
51733         * modules/strdup-posix (Depends-on): Likewise.
51734         * modules/strerror (Depends-on): Likewise.
51735         * modules/strerror_r-posix (Depends-on): Likewise.
51736         * modules/strndup (Depends-on): Likewise.
51737         * modules/strnlen (Depends-on): Likewise.
51738         * modules/strptime (Depends-on): Likewise.
51739         * modules/strsep (Depends-on): Likewise.
51740         * modules/strsignal (Depends-on): Likewise.
51741         * modules/strstr-simple (Depends-on): Likewise.
51742         * modules/strtod (Depends-on): Likewise.
51743         * modules/strtoimax (Depends-on): Likewise.
51744         * modules/strtok_r (Depends-on): Likewise.
51745         * modules/strtoumax (Depends-on): Likewise.
51746         * modules/symlink (Depends-on): Likewise.
51747         * modules/symlinkat (Depends-on): Likewise.
51748         * modules/tanl (Depends-on): Likewise.
51749         * modules/tcgetsid (Depends-on): Likewise.
51750         * modules/tmpfile (Depends-on): Likewise.
51751         * modules/trunc (Depends-on): Likewise.
51752         * modules/truncf (Depends-on): Likewise.
51753         * modules/truncl (Depends-on): Likewise.
51754         * modules/uname (Depends-on): Likewise.
51755         * modules/unlink (Depends-on): Likewise.
51756         * modules/unlockpt (Depends-on): Likewise.
51757         * modules/unsetenv (Depends-on): Likewise.
51758         * modules/usleep (Depends-on): Likewise.
51759         * modules/utimensat (Depends-on): Likewise.
51760         * modules/vasprintf (Depends-on): Likewise.
51761         * modules/vdprintf (Depends-on): Likewise.
51762         * modules/vdprintf-posix (Depends-on): Likewise.
51763         * modules/vfprintf-posix (Depends-on): Likewise.
51764         * modules/vprintf-posix (Depends-on): Likewise.
51765         * modules/vsnprintf (Depends-on): Likewise.
51766         * modules/vsnprintf-posix (Depends-on): Likewise.
51767         * modules/vsprintf-posix (Depends-on): Likewise.
51768         * modules/wcrtomb (Depends-on): Likewise.
51769         * modules/wcscasecmp (Depends-on): Likewise.
51770         * modules/wcscspn (Depends-on): Likewise.
51771         * modules/wcsdup (Depends-on): Likewise.
51772         * modules/wcsncasecmp (Depends-on): Likewise.
51773         * modules/wcsnrtombs (Depends-on): Likewise.
51774         * modules/wcspbrk (Depends-on): Likewise.
51775         * modules/wcsrtombs (Depends-on): Likewise.
51776         * modules/wcsspn (Depends-on): Likewise.
51777         * modules/wcsstr (Depends-on): Likewise.
51778         * modules/wcstok (Depends-on): Likewise.
51779         * modules/wcswidth (Depends-on): Likewise.
51780         * modules/wctob (Depends-on): Likewise.
51781         * modules/wctomb (Depends-on): Likewise.
51782         * modules/wctype (Depends-on): Likewise.
51783         * modules/wcwidth (Depends-on): Likewise.
51784         * modules/write (Depends-on): Likewise.
51786 2011-05-03  Bruno Haible  <bruno@clisp.org>
51788         Support for conditional dependencies.
51789         * doc/gnulib.texi (Module description): Document the syntax of
51790         conditional dependencies.
51791         * gnulib-tool: New option --conditional-dependencies.
51792         (func_usage): Document it.
51793         (cond_dependencies): New variable.
51794         (func_get_automake_snippet_conditional,
51795         func_get_automake_snippet_unconditional): New functions, extracted from
51796         func_get_automake_snippet.
51797         (func_get_automake_snippet): Use them.
51798         (sed_first_32_chars): New variable.
51799         (func_module_shellfunc_name): New function.
51800         (func_module_shellvar_name): New function.
51801         (func_module_conditional_name): New function.
51802         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
51803         func_cond_module_condition): New functions.
51804         (func_modules_transitive_closure): Add support for conditional
51805         dependencies.
51806         (func_emit_lib_Makefile_am): For a conditional module, enclose the
51807         conditional automake snippet in an automake conditional.
51808         (func_emit_autoconf_snippets): Emit shell functions that contain the
51809         code for conditional modules.
51810         (func_import, func_create_testdir): Update specification.
51812 2011-05-03  Eric Blake  <eblake@redhat.com>
51814         test-getaddrinfo: report error information
51815         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
51817 2011-05-03  Jim Meyering  <meyering@redhat.com>
51819         bootstrap: avoid build failure when $GZIP is set
51820         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
51821         program name.  If defined at all, it is supposed to list gzip options.
51822         Reported by Alan Curry in http://debbugs.gnu.org/8609
51824 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
51826         readme-release: new module with release instructions
51827         * modules/readme-release: New module.
51828         * top/README-release: New file, from coreutils, grep, diffutils.
51829         * MODULES.html.sh (Support for maintaining and releasing): Add it.
51831 2011-05-02  Eric Blake  <eblake@redhat.com>
51833         fflush: also replace fclose when fixing fflush
51834         * modules/fflush (Depends-on): Add fclose.
51835         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
51836         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
51837         memstreams with no backing fd.
51838         * doc/posix-functions/fclose.texi (fclose): Document the use of
51839         fflush module to fix the bug.
51840         * tests/test-fclose.c (main): Relax test when fclose is used in
51841         isolation.
51843         fclose: add some tests
51844         * modules/fclose-tests: New test module.
51845         * tests/test-fclose.c: New file.
51846         * doc/posix-functions/fclose.texi (fclose): Document the bug.
51848         fclose: reduced dependencies
51849         * modules/fclose (Depends-on): Switch from fflush/fseeko to
51850         simpler lseek.
51851         * lib/fclose.c (rpl_fclose): Likewise.
51852         Reported by Simon Josefsson.
51854         exit: drop remaining clients
51855         * modules/argmatch (Depends-on): Replace exit with stdlib.
51856         * modules/copy-file (Depends-on): Likewise.
51857         * modules/execute (Depends-on): Likewise.
51858         * modules/exitfail (Depends-on): Likewise.
51859         * modules/obstack (Depends-on): Likewise.
51860         * modules/pagealign_alloc (Depends-on): Likewise.
51861         * modules/pipe-filter-gi (Depends-on): Likewise.
51862         * modules/pipe-filter-ii (Depends-on): Likewise.
51863         * modules/savewd (Depends-on): Likewise.
51864         * modules/spawn-pipe (Depends-on): Likewise.
51865         * modules/wait-process (Depends-on): Likewise.
51866         * modules/xsetenv (Depends-on): Likewise.
51867         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
51868         * modules/git-merge-changelog (Depends-on): Likewise.
51869         * modules/long-options (Depends-on): Likewise.
51870         * modules/pt_chown (Depends-on): Likewise.
51871         * modules/sysexits (Depends-on): Likewise.
51873         freading: relax license from LGPLv3+ to LGPLv2+
51874         * modules/freading (License): Relax LGPL version.
51876 2011-05-02  Bruno Haible  <bruno@clisp.org>
51878         fchdir: Remove unused dependencies.
51879         * modules/fchdir (Depends-on): Remove include_next.
51881 2011-05-02  Bruno Haible  <bruno@clisp.org>
51883         gnulib-tool: Refactor.
51884         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
51885         from func_emit_autoconf_snippets.
51886         (func_emit_autoconf_snippets): Use it.
51888 2011-05-02  Simon Josefsson  <simon@josefsson.org>
51890         * NEWS: Document removal of 'exit'.
51891         * modules/exit: Remove file.
51893 2011-05-01  Bruno Haible  <bruno@clisp.org>
51895         Update DEPENDENCIES.
51896         * DEPENDENCIES (gettext): Recommend the newest release.
51897         Reported by Simon Josefsson.
51899 2011-05-01  Bruno Haible  <bruno@clisp.org>
51901         gnulib-tool: Reduce code duplication.
51902         * gnulib-tool (func_emit_autoconf_snippets): New function.
51903         (func_import, func_create_testdir): Use it.
51905 2011-04-30  Eric Blake  <eblake@redhat.com>
51907         fclose: don't fail on non-seekable input stream
51908         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
51909         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
51910         since fflush is allowed to fail in that case.
51912 2011-04-30  Bruno Haible  <bruno@clisp.org>
51914         dup3: cleanup
51915         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
51917 2011-04-30  Bruno Haible  <bruno@clisp.org>
51919         netdb: Make it work in C++ mode.
51920         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
51921         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
51922         module.
51923         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
51924         gl_MODULE_INDICATOR_FOR_TESTS.
51925         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
51926         * modules/netdb-c++-tests: New file.
51927         * tests/test-netdb-c++.cc: New file.
51929 2011-04-30  Bruno Haible  <bruno@clisp.org>
51931         New modules 'vfscanf', 'vscanf'.
51932         * modules/vfscanf: New file.
51933         * modules/vscanf: New file.
51934         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
51935         here.
51936         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
51937         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
51939 2011-04-30  Bruno Haible  <bruno@clisp.org>
51941         passfd: Add comments.
51942         * lib/passfd.c: Add comments about platforms.
51944 2011-04-30  Bruno Haible  <bruno@clisp.org>
51946         sys_uio: Make <sys/uio.h> self-contained.
51947         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
51948         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
51950 2011-04-30  Bruno Haible  <bruno@clisp.org>
51952         sys_socket: Ensure 'struct iovec' definition.
51953         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
51954         <sys/socket.h>.
51955         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
51957 2011-04-30  Bruno Haible  <bruno@clisp.org>
51959         sys_uio: Protect definition of 'struct iovec'.
51960         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
51961         it as a C struct.
51963 2011-04-30  Bruno Haible  <bruno@clisp.org>
51965         manywarnings: fix indentation
51966         * m4/manywarnings.m4: Indent by 2 spaces consistently.
51968 2011-04-30  Pádraig Brady  <P@draigBrady.com>
51970         manywarnings: add -Wno-missing-field-initializers if needed.
51971         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
51972         option if it's needed to allow initialization with { 0, }
51974 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
51976         announce-gen: cosmetic improvement
51977         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
51979 2011-04-29  Jim Meyering  <meyering@redhat.com>
51981         vc-list-files: indent with spaces, not TABs
51982         * build-aux/vc-list-files: Convert leading TABs to spaces,
51983         to match the style of most other files in gnulib.
51985         announce-gen: indent with spaces, not TABs
51986         * build-aux/announce-gen: Convert all TABs to spaces, to match
51987         the style of most other files in gnulib.
51989 2011-04-29  Eric Blake  <eblake@redhat.com>
51991         quotearg: avoid uninitialized variable use
51992         * lib/quotearg.c (quoting_options_from_style): Initialize
51993         remaining fields, and ensure that custom styles are only used via
51994         quoting_options rather than quoting_style.
51996 2011-04-29  Jim Meyering  <meyering@redhat.com>
51998         maint.mk: remove unused VC-tag variable
51999         * top/maint.mk (VC-tag): Remove unused variable.
52001 2011-04-29  Bruno Haible  <bruno@clisp.org>
52003         netdb: fix gai_strerror replacements
52004         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
52005         * modules/netdb: Substitute it.
52007 2011-04-29  Jim Meyering  <meyering@redhat.com>
52009         test-getcwd.c: avoid new set-but-not-used warning
52010         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
52011         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
52012         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
52013         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
52015         test-hash.c: avoid a new shadowing warning
52016         * tests/test-hash.c (main): Don't shadow "dup".
52018 2011-04-28  Eric Blake  <eblake@redhat.com>
52020         getaddrinfo: fix gai_strerror signature
52021         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
52022         and work around mingw with UNICODE defined.
52023         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
52024         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
52025         * modules/netdb (Makefile.am): Substitute it.
52026         * lib/netdb.in.h (gai_strerror): Declare replacement.
52027         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
52028         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
52029         the fix.
52031         getsockopt: avoid compiler warning
52032         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
52033         Reported by Matthias Bolte.
52035         tests: drop unused link dependency
52036         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
52037         * modules/dirent-safer-tests (Makefile.am): Likewise.
52038         * modules/fdopendir-tests (Makefile.am): Likewise.
52039         * modules/mkfifoat-tests (Makefile.am): Likewise.
52040         * modules/openat-safer-tests (Makefile.am): Likewise.
52041         * modules/openat-tests (Makefile.am): Likewise.
52042         * modules/readlinkat-tests (Makefile.am): Likewise.
52043         * modules/symlinkat-tests (Makefile.am): Likewise.
52044         * modules/linkat-tests (Makefile.am): Likewise.
52045         (Depends-on): Switch to filenamecat-lgpl.
52046         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
52047         LIBINTL.
52048         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
52049         * tests/test-linkat.c (main): Don't require xalloc.
52051         hash, mgetgroups: drop xalloc dependency
52052         * lib/hash.c (includes): Adjust includes.
52053         * lib/mgetgroups.c (includes): Likewise.
52054         (xgetgroups): Move...
52055         * lib/xgetgroups.c: ...to new file.
52056         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
52057         * modules/xgetgroups: New file, split from...
52058         * modules/mgetgroups: ...here.
52059         (Depends-on): Add xalloc-oversized.
52060         * modules/hash (Depends-on): Likewise.
52061         * modules/hash-tests (Depends-on): Drop xalloc.
52062         (test_hash_LDADD): Drop unused library.
52063         * tests/test-hash.c (main): Break xalloc dependency.
52064         (includes): Drop unused include.
52066         xalloc-oversized: new module
52067         * modules/xalloc-oversized: New module.
52068         * modules/xalloc (Depends-on): Add it.
52069         * lib/xalloc.h (xalloc_oversized): Move...
52070         * lib/xalloc-oversized.h: ...into new file.
52072         utimecmp: drop dependency on xmalloc
52073         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
52074         due to memory pressure.
52075         * modules/utimecmp (Depends-on): Drop xalloc.
52077 2011-04-27  Eric Blake  <eblake@redhat.com>
52079         getcwd: fix mingw bugs
52080         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
52081         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
52082         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
52084 2011-04-27  Bruno Haible  <bruno@clisp.org>
52086         mkstemps: Ensure declaration on MacOS X 10.5.
52087         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
52088         * doc/glibc-functions/mkstemps.texi: Document header file problem on
52089         MacOS X.
52091 2011-04-27  Bruno Haible  <bruno@clisp.org>
52093         mkstemp: More documentation.
52094         * doc/posix-functions/mkstemp.texi: Document header file problem on
52095         MacOS X.
52097 2011-04-27  Bruno Haible  <bruno@clisp.org>
52099         mkstemp: Tweak configure message when cross-compiling.
52100         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
52101         result as a guess.
52103 2011-04-27  Bruno Haible  <bruno@clisp.org>
52105         clean-temp: Clarify what it does.
52106         * lib/clean-temp.h: Add more comments.
52107         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
52108         module.
52109         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
52110         * doc/glibc-functions/mkstemps.texi: Likewise.
52111         * doc/glibc-functions/mkostemps.texi: Likewise.
52113 2011-04-27  Eric Blake  <eblake@redhat.com>
52115         fchdir: avoid extra chdir and fix test
52116         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
52117         getcwd-lgpl.
52118         * lib/fchdir.c (get_name): Any absolute name will do; it does not
52119         have to be canonical.
52120         (canonicalize_file_name): Drop unused macro.
52121         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
52123         filenamecat-lgpl: fix licence
52124         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
52125         when it was first created.
52127         linkat, renameat: add missing dependency
52128         * modules/linkat (Depends-on): Require getcwd-lgpl.
52129         * modules/renameat (Depends-on): Likewise.
52131         tests: reduce dependencies
52132         * tests/test-linkat.c (main): Use lighter-weight getcwd.
52133         * tests/test-renameat.c (main): Likewise.
52134         * modules/linkat-tests (Depends-on): Relax dependency.
52135         * modules/renameat-tests (Depends-on): Likewise.
52136         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
52137         dependency explicit.
52139         save-cwd: reduce default dependency
52140         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
52141         * lib/save-cwd.c: Update comments.
52142         * NEWS: Document the semantic change.
52144         getcwd: enhance tests
52145         * tests/test-getcwd-lgpl.c: New file, taken from...
52146         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
52147         repeat long path stress tests from m4 probe.
52148         * modules/getcwd-lgpl-tests: New module.
52149         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
52150         * m4/getcwd-abort-bug.m4: Update comment.
52151         * m4/getcwd-path-max.m4: Likewise.
52153         getcwd-lgpl: new module
52154         * modules/getcwd-lgpl: New module.
52155         * lib/getcwd-lgpl.c: New file.
52156         * doc/posix-functions/getcwd.texi (getcwd): Document it.
52157         * MODULES.html.sh (lacking POSIX:2008): Likewise.
52158         * modules/getcwd (configure.ac): Set C witness.
52159         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
52161         getcwd: tweak comments
52162         * m4/getcwd-abort-bug.m4: Fix comments.
52163         * m4/getcwd-path-max.m4: Likewise.
52164         * m4/getcwd.m4: Likewise.
52166 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52167         and Eric Blake  <eblake@redhat.com>
52169         mkstemp: replace if system version uses wrong permissions
52170         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
52171         read/write mode bits set in file created by mkstemp.
52172         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
52174 2011-04-27  Eric Blake  <eblake@redhat.com>
52176         passfd: avoid compiler warning
52177         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
52178         Reported by Laine Stump.
52180 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
52182         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
52183         required by the NetBSD (and perhaps other 4.4BSD derived) join.
52185 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52186         and Eric Blake  <eblake@redhat.com>
52188         mkstemp: mention clean-temp module
52189         * lib/mkstemp.c: Add comment.
52190         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
52192 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
52194         inttypes: also provide default values for 32-bit tests
52195         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
52196         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
52198 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52200         strtoumax: remove dependency on strtoimax
52201         This is like the strtoull change of yesterday.
52202         * modules/strtoumax (Files): Add lib/strtoimax.c.
52203         (Depends-on): Remove strtoimax and add verify.
52205         inttypes-incomplete: new module
52206         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
52207         all but the PRI* and SCN* parts of gl_INTTYPES_H.
52208         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
52209         of gl_INTTYPES_H.
52210         (gl_INTTYPES_H): Rewrite in terms of these new macros.
52211         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
52212         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
52213         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
52214         * modules/strtoumax, modules/xstrtol (Depends-on):
52215         Depend on inttypes-incomplete, not inttypes.
52216         * modules/inttypes-incomplete: New module, containing the contents
52217         of the old modules/inttypes module, except that the Files: section
52218         omits m4/inttypes-pri.m4, and the configure.ac section invokes
52219         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
52220         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
52221         (Depends-on): Depend only on inttypes-incomplete.
52222         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
52224         inttypes: omit now-redundant strtoimax and strtoumax work
52225         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
52226         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
52228         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
52229         This supports apps that need pointers to strtoimax and strtoumax,
52230         and ports to HP-UX 11.00 64.bit, which has macros that expand to
52231         nonexistent functions.  See
52232         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
52233         et seq.
52234         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
52235         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
52236         a macro.
52237         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
52239 2011-04-25  Simon Josefsson  <simon@josefsson.org>
52241         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
52243 2011-04-25  Bruno Haible  <bruno@clisp.org>
52245         strtol, strtoul: Mark modules as obsolete.
52246         * modules/strtol (Status, Notice): New sections.
52247         * modules/strtoul (Status, Notice): New sections.
52249 2011-04-25  Bruno Haible  <bruno@clisp.org>
52251         strtod: Remove check for strtod, unless supporting old platforms.
52252         * modules/strtod-obsolete: New file.
52253         * m4/strtod-obsolete.m4: New file.
52254         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
52255         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
52256         * modules/strtod (Depends-on): Add strtod-obsolete.
52257         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
52259 2011-04-25  Bruno Haible  <bruno@clisp.org>
52261         strcase: Make module obsolete.
52262         * modules/strcase (Status, Notice): New sections.
52264 2011-04-25  Bruno Haible  <bruno@clisp.org>
52266         dup2: Remove check for dup2, unless supporting old obsolete platforms.
52267         * modules/dup2-obsolete: New file.
52268         * m4/dup2-obsolete.m4: New file.
52269         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
52270         gl_FUNC_DUP2_OBSOLETE is not also defined.
52271         * modules/dup2 (Depends-on): Add dup2-obsolete.
52272         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
52274 2011-04-25  Bruno Haible  <bruno@clisp.org>
52276         strnlen: Avoid memchr related link error on old obsolete platforms.
52277         * modules/memchr-obsolete: New file.
52278         * m4/memchr-obsolete.m4: New file.
52279         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
52280         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
52281         * modules/memchr (Depends-on): Add memchr-obsolete.
52282         * modules/strnlen (Depends-on): Likewise.
52283         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
52285 2011-04-25  Jim Meyering  <meyering@redhat.com>
52287         maint.mk: makefile_at_at_check extend and clean up
52288         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
52289         in addition to */Makefile.am.
52290         Exempt legitimate uses of @VAR@ notation, e.g.,
52291         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
52292         Remove obsolete coreutils-specific comment.
52293         Prompted by discussion here:
52294         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
52296 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52298         strtoul: remove dependency on strtol
52299         This is so that 'configure' need not check for strtol merely because
52300         the application needs strtoul.
52301         * modules/strtoul (Files): Add lib/strtol.c.
52302         (Depends-on): Remove strtol.
52304         strtoull: remove dependency on strtoul
52305         This is like the strtoll change.
52306         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
52307         (Depends-on): Remove strtoul.
52309         strtoll: remove dependency on strtol
52310         This is so that 'configure' need not check for strtol merely because
52311         the application needs strtoll.
52312         * modules/strtoll (Files): Add lib/strtol.c.
52313         (Depends-on): Remove strtol.
52315 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52317         inttypes: Move some configure check to module 'imaxdiv'.
52318         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
52319         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
52320         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
52322 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52324         inttypes: Move some configure check to module 'imaxabs'.
52325         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
52326         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
52327         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
52329 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52331         inttypes: Remove configure tests that are not needed since 2009-12-31.
52332         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
52333         gl_cv_header_working_inttypes_h.
52335 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52337         * modules/strnlen (Depends-on): Remove memchr.
52338         The strnlen implementation doesn't need the memchr module's fixes; see
52339         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
52341         strtol: remove dependency on wchar
52342         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
52343         * modules/strtol (Depends-on): Remove wchar.
52345 2011-04-21  Eric Blake  <eblake@redhat.com>
52347         passfd: fix test regression on Linux
52348         * modules/passfd-tests (configure.ac): Correct socketpair check.
52350         passfd: speed up configure and drop unused code
52351         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
52352         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
52353         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
52354         Instead of probing at configure for unix_scm_rights_bsd44_way,
52355         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
52356         check to a struct member probe.
52357         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
52358         (sendfd, recvfd): Update preprocessor checks.
52359         * modules/passfd (Files): Reflect rename, and drop unused file.
52360         (Depends-on): Drop unused dependency.
52362         passfd: allow compilation on mingw
52363         * modules/sys_socket (Depends-on): Add sys_uio.
52364         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
52365         iovec and a minimal struct msghdr.
52366         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
52367         * tests/test-sys_socket.c (main): Enhance test.
52368         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
52369         guaranteed to provide what we need.
52370         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
52371         * modules/passfd-tests (Depends-on): Add sys_wait.
52372         * tests/test-passfd.c (main): Skip test on mingw, for now.
52373         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
52374         partial 'struct msghdr' implementation.
52376         sys_uio: new module
52377         * modules/sys_uio: New module.
52378         * modules/sys_uio-tests: Likewise.
52379         * lib/sys_uio.in.h: New file.
52380         * m4/sys_uio_h.m4: Likewise.
52381         * tests/test-sys_uio.c: Likewise.
52382         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
52383         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
52385 2011-04-20  Jim Meyering  <meyering@redhat.com>
52387         useless-if-before-free: avoid false-positive
52388         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
52389         disjunct so that it too requires a terminating ";".  Without that,
52390         this script would identify as useless one statement from gcc that
52391         was not:
52392           if (aligned_ptr)
52393             free (((void **) aligned_ptr) [-1]);
52395 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
52397         doc: update users.txt.
52398         * users.txt: Add barcode.
52400 2011-04-19  Bruno Haible  <bruno@clisp.org>
52402         ioctl: Remove link dependency on native Windows.
52403         * lib/fd-hook.h: Renamed from lib/close-hook.h.
52404         (gl_close_fn, gl_ioctl_fn): New types.
52405         (struct fd_hook): Renamed from struct close_hook. Change type of
52406         private_close_fn field. Add private_ioctl_fn field.
52407         (close_hook_fn): Add parameter for primary close method.
52408         (execute_close_hooks, execute_all_close_hooks): Likewise.
52409         (ioctl_hook_fn): New type.
52410         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
52411         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52412         argument.
52413         (unregister_fd_hook): Renamed from unregister_close_hook.
52414         * lib/fd-hook.c: Renamed from lib/close-hook.c.
52415         Don't include <unistd.h>.
52416         (close): Remove undef.
52417         (anchor): Update.
52418         (execute_close_hooks): Add argument for primary close method.
52419         (execute_all_close_hooks): Likewise.
52420         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
52421         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52422         argument. Allow each argument to be NULL.
52423         (unregister_fd_hook): Renamed from unregister_close_hook.
52424         * lib/close.c (rpl_close): Pass 'close' function pointer to
52425         execute_all_close_hooks.
52426         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
52427         (primary_ioctl): New function.
52428         (ioctl): Don't call ioctlsocket here. Instead, call
52429         execute_all_ioctl_hooks.
52430         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
52431         close method.
52432         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
52433         (fd_sockets_hook): Renamed from close_sockets_hook.
52434         (gl_sockets_startup, gl_sockets_cleanup): Update.
52435         * modules/fd-hook: Renamed from modules/close-hook. Update.
52436         * modules/close (Depends-on): Add fd-hook, remove close-hook.
52437         * modules/sockets (Depends-on): Likewise.
52438         * modules/ioctl (Depends-on): Add fd-hook.
52439         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
52440         GNULIB_SOCKET.
52442 2011-04-19  Bruno Haible  <bruno@clisp.org>
52444         Move the support of O_NONBLOCK in open() to the 'open' module.
52445         * modules/nonblocking (Depends-on): Remove 'open'.
52446         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
52447         gl_cv_have_open_O_NONBLOCK.
52448         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
52449         O_NONBLOCK support.
52450         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
52452 2011-04-17  Bruno Haible  <bruno@clisp.org>
52454         pipe2: Simplify code.
52455         * lib/pipe2.c (pipe2): Reduce code duplication.
52457 2011-04-17  Bruno Haible  <bruno@clisp.org>
52459         nonblocking: Add comment.
52460         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
52462 2011-04-17  Bruno Haible  <bruno@clisp.org>
52464         nonblocking: Add tests for sockets.
52465         * tests/test-nonblocking-socket.sh: New file.
52466         * tests/test-nonblocking-socket-main.c: New file.
52467         * tests/test-nonblocking-socket-child.c: New file.
52468         * tests/test-nonblocking-socket.h: New file.
52469         * tests/socket-server.h: New file.
52470         * tests/socket-client.h: New file.
52471         * modules/nonblocking-socket-tests: New file.
52472         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
52474 2011-04-17  Bruno Haible  <bruno@clisp.org>
52476         nonblocking: Add tests for pipes.
52477         * tests/test-nonblocking-pipe.sh: New file.
52478         * tests/test-nonblocking-pipe-main.c: New file.
52479         * tests/test-nonblocking-pipe-child.c: New file.
52480         * tests/test-nonblocking-pipe.h: New file.
52481         * tests/test-nonblocking-writer.h: New file.
52482         * tests/test-nonblocking-reader.h: New file.
52483         * tests/test-nonblocking-misc.h: New file.
52484         * modules/nonblocking-pipe-tests: New file.
52485         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
52487 2011-04-16  Bruno Haible  <bruno@clisp.org>
52489         gettext: Clarify the needed programmer actions.
52490         * modules/gettext (Notice): New field.
52491         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52493 2011-04-16  Bruno Haible  <bruno@clisp.org>
52495         strchrnul: Tweak last commit.
52496         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
52497         bug.
52498         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
52499         as in _GL_FUNCDECL_SYS.
52500         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
52501         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
52503 2011-04-15  Eric Blake  <eblake@redhat.com>
52505         strchrnul: work around cygwin bug
52506         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
52507         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
52508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
52509         * modules/string (Makefile.am): Substitute it.
52510         * lib/string.in.h (strchrnul): Use it.
52512 2011-04-15  Bruno Haible  <bruno@clisp.org>
52514         Don't require lib/stdio-write.c when only module 'stdio' is used.
52515         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
52516         invocation.
52517         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
52519 2011-04-14  Bruno Haible  <bruno@clisp.org>
52521         Support non-blocking pipe I/O in read() on native Windows.
52522         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
52523         (read): New declaration.
52524         * lib/read.c: New file.
52525         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
52526         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
52527         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
52528         vscanf): New declarations.
52529         * lib/stdio-read.c: New file.
52530         * m4/read.m4: New file.
52531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
52532         REPLACE_READ.
52533         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
52534         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52535         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
52536         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
52537         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
52538         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52539         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
52540         * modules/read: New file.
52541         * modules/nonblocking (Files): Add lib/stdio-read.c.
52542         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
52543         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
52544         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52545         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
52546         * modules/pread (Depends-on): Add read.
52547         * modules/safe-read (Depends-on): Likewise.
52548         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
52549         gets, scanf, vfscanf, vscanf): Verify signatures.
52550         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
52551         problem with non-blocking pipes.
52552         * doc/posix-functions/fgetc.texi: Likewise.
52553         * doc/posix-functions/fgets.texi: Likewise.
52554         * doc/posix-functions/fread.texi: Likewise.
52555         * doc/posix-functions/fscanf.texi: Likewise.
52556         * doc/posix-functions/getc.texi: Likewise.
52557         * doc/posix-functions/getchar.texi: Likewise.
52558         * doc/posix-functions/gets.texi: Likewise.
52559         * doc/posix-functions/scanf.texi: Likewise.
52560         * doc/posix-functions/vfscanf.texi: Likewise.
52561         * doc/posix-functions/vscanf.texi: Likewise.
52563 2011-04-14  Bruno Haible  <bruno@clisp.org>
52565         Support non-blocking pipe I/O in write() on native Windows.
52566         * lib/write.c (rpl_write): Split a write request that failed merely
52567         because the byte count was larger than the pipe buffer's size.
52568         * doc/posix-functions/write.texi: Mention the problem with large byte
52569         counts.
52571 2011-04-14  Bruno Haible  <bruno@clisp.org>
52573         wchar: Ensure that wchar_t gets defined on uClibc.
52574         * lib/wchar.in.h: On uClibc, include <stddef.h>.
52575         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
52577 2011-04-13  Bruno Haible  <bruno@clisp.org>
52579         safe-write, full-read: Avoid unnecessary compilation units.
52580         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
52581         (Depends-on): Remove safe-read. Add ssize_t.
52582         * modules/full-read (Files): Add lib/full-write.c.
52583         (Depends-on): Add full-write.
52585 2011-04-13  Bruno Haible  <bruno@clisp.org>
52587         Support non-blocking pipe I/O and SIGPIPE in pwrite().
52588         * modules/pwrite (Depends-on): Add 'write'.
52590 2011-04-13  Bruno Haible  <bruno@clisp.org>
52592         Support non-blocking pipe I/O in write() on native Windows.
52593         * lib/unistd.in.h (write): Enable replacement also if
52594         GNULIB_UNISTD_H_NONBLOCKING is 1.
52595         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
52596         (rpl_write): When failing to write on a non-blocking pipe, change
52597         errno from ENOSPC to EAGAIN.
52598         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
52599         putchar, puts, vfprintf, vprintf): Enable replacement also if
52600         GNULIB_STDIO_H_NONBLOCKING is 1.
52601         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
52602         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
52603         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
52604         CALL_WITH_SIGPIPE_EMULATION.
52605         (CALL_WITH_SIGPIPE_EMULATION): Use them.
52606         * m4/nonblocking.m4: New file.
52607         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
52608         for non-blocking I/O support.
52609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52610         GNULIB_UNISTD_H_NONBLOCKING.
52611         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
52612         required for non-blocking I/O support.
52613         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
52614         * modules/nonblocking (Files): Add m4/nonblocking.m4,
52615         lib/stdio-write.c, m4/asm-underscore.m4.
52616         (Depends-on): Add stdio, unistd.
52617         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
52618         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
52619         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
52620         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
52621         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
52622         problem with non-blocking pipes.
52623         * doc/posix-functions/fputc.texi: Likewise.
52624         * doc/posix-functions/fputs.texi: Likewise.
52625         * doc/posix-functions/fwrite.texi: Likewise.
52626         * doc/posix-functions/printf.texi: Likewise.
52627         * doc/posix-functions/putc.texi: Likewise.
52628         * doc/posix-functions/putchar.texi: Likewise.
52629         * doc/posix-functions/puts.texi: Likewise.
52630         * doc/posix-functions/vfprintf.texi: Likewise.
52631         * doc/posix-functions/vprintf.texi: Likewise.
52632         * doc/posix-functions/write.texi: Likewise.
52634 2011-04-10  Jim Meyering  <meyering@redhat.com>
52636         maint.mk: prohibit doubled words
52637         Detect them also when they're separated by a newline.
52638         There are 3 ways to customize it:
52639           - disable the test on a per file basis, as usual with rules using
52640             $(VC_LIST_EXCEPT)
52641           - replace the default doubled-word-selecting regexp (affects all files)
52642           - ignore a particular file-vs-doubled-word match
52643         I nearly used that last one to ignore the "is is" match in
52644         coreutils' NEWS file, since the text was "ls -is is ..."
52645         To do that, I would have added this line to cfg.mk:
52646           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
52647         but it would have ignored any "is is" match in NEWS.
52648         Low probability, but still...
52649         Instead, I changed the text, slightly:
52650           -  ls -is is now consistent with ls -lis in ignoring values returned
52651           +  "ls -is" is now consistent with ls -lis in ignoring values returned
52652         * top/maint.mk (prohibit_double_word_RE_): Provide default.
52653         (prohibit_doubled_word_): Define.
52654         (sc_prohibit_doubled_word): New rule.
52655         (sc_prohibit_the_the): Remove.  Subsumed by the above.
52657 2011-04-10  Jim Meyering  <meyering@redhat.com>
52659         maint: fix doubled-word typo in comment
52660         * m4/gethostname.m4: s/is is/it is/
52661         * m4/getdomainname.m4: Likewise.
52663 2011-04-10  Jim Meyering  <meyering@redhat.com>
52665         maint: remove doubled word: s/it it/it/
52666         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
52668 2011-04-10  Jim Meyering  <meyering@redhat.com>
52670         maint.mk: remove useless semicolon and backslash
52671         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
52672         semicolon and backslash.
52674 2011-04-10  Bruno Haible  <bruno@clisp.org>
52676         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
52677         * modules/stdint-tests (Depends-on): Add wchar.
52679 2011-04-10  Jim Meyering  <meyering@redhat.com>
52681         maint: remove doubled words in comments, e.g., s/a a/a/
52682         * lib/strptime.c (day_of_the_week): s/the the/the/
52683         * tests/test-chown.h (test_chown): s/a a/a/
52685         test-chown.h: correct a cast
52686         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
52687         when the destination is a stat.st_gid.
52689 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
52691         getaddrinfo: Fix test for sa_len member.
52692         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
52693         include <sys/types.h> before <sys/socket.h>.
52695 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52697         maint: change "can not" to "cannot"
52698         * doc/posix-functions/iconv.texi (iconv): This one crossed line
52699         boundaries.
52701 2011-04-09  Jim Meyering  <meyering@redhat.com>
52703         maint: change "a a" to "a"
52704         * tests/test-lchown.h (test_lchown): s/a a/a/
52706         maint.mk: prohibit \<the the\>
52707         * top/maint.mk (sc_prohibit_the_the): New rule.
52709         maint: fix "the the" in comment
52710         * lib/count-one-bits.h: s/the the/the/
52712         maint: change "can not" to "cannot"
52713         But do not change the occurrences in maintain.texi or in
52714         build-aux/po/Makefile.in.in, which I presume comes from gettext.
52715         * doc/gnulib-tool.texi: s/can not/cannot/
52716         * doc/posix-functions/accept.texi (accept): Likewise.
52717         * doc/posix-functions/socket.texi (socket): Likewise.
52718         * lib/mbrtowc.c: Likewise.
52720         maint.mk: prohibit use of "can not"
52721         * top/maint.mk (sc_prohibit_can_not): New rule.
52722         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
52724 2011-04-09  Bruno Haible  <bruno@clisp.org>
52726         careadlinkat: Guard against misuse of careadlinkatcwd.
52727         * lib/careadlinkat.c: Include <stdlib.h>.
52728         (careadlinkatcwd): Check that the fd argument is as expected.
52730 2011-04-09  Bruno Haible  <bruno@clisp.org>
52732         careadlinkat: Use common coding style.
52733         * lib/careadlinkat.c: Move gnulib includes after system includes.
52735 2011-04-09  Bruno Haible  <bruno@clisp.org>
52737         careadlinkat: Clarify specification.
52738         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
52739         (careadlinkatcwd): Add comment.
52740         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
52742 2011-04-09  Bruno Haible  <bruno@clisp.org>
52744         areadlinkat: Avoid link error on many platforms.
52745         * modules/areadlinkat (Depends-on): Add areadlink.
52747 2011-04-09  Bruno Haible  <bruno@clisp.org>
52749         allocator, careadlinkat: Fix double-inclusion guard.
52750         * lib/allocator.h: Fix double-inclusion guard.
52751         * lib/careadlinkat.h: Likewise.
52753 2011-04-09  Bruno Haible  <bruno@clisp.org>
52755         relocatable-prog-wrapper: Update after module 'areadlink' changed.
52756         * lib/relocwrapper.c: Update dependencies hierarchy.
52757         * build-aux/install-reloc: Update list of files to be compiled.
52758         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
52759         lib/allocator.[hc].
52761 2011-04-08  Eric Blake  <eblake@redhat.com>
52763         strftime: silence gnulib-tool warning
52764         * modules/strftime-tests (Depends-on): Drop automatic dependency.
52766 2011-04-08  Bruno Haible  <bruno@clisp.org>
52768         verify: Fix syntax error with GCC 4.6 in C++ mode.
52769         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
52770         (HAVE_STATIC_ASSERT): New macro.
52771         (verify_true, verify): Use 'static_assert' if it is supported and
52772         '_Static_assert' is not supported.
52774 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
52776         allocator: New module.
52777         * modules/allocator, lib/allocator.c: New files.
52778         * lib/allocator.h (stdlib_allocator): New decl.
52779         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
52780         Remove.  Do not include <stdlib.h>.
52781         (careadlinkat): Use stdlib_allocator instead of rolling our own.
52782         * modules/careadlinkat (Files): Remove lib/allocator.h.
52783         (Depends-on): Add allocator.
52785         stdlib: let modules use system malloc, realloc
52786         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
52787         if !_GL_USE_STDLIB_ALLOC.
52788         (malloc, realloc): Limit this change to a smaller scope.
52790         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
52791         (malloc, realloc): Don't #undef; no longer needed.
52792         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
52793         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
52794         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
52795         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
52796         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
52797         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
52798         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
52799         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
52801         careadlinkat: rename members to avoid problem
52802         * lib/allocator.h (struct allocator): Rename members from
52803         malloc/realloc to allocate/reallocate, to avoid problems if malloc
52804         and realloc are #define'd.  Reported by Eric Blake in
52805         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
52806         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
52808 2011-04-08  Eric Blake  <eblake@redhat.com>
52810         nonblocking: reduce dependency
52811         * tests/test-nonblocking.c: Only test sockets when in use.
52812         * modules/nonblocking-tests (Depends-on): Drop socket.
52813         (Makefile.am): Link even if sockets are not present.
52814         * modules/pipe2-tests (Makefile.am): Likewise.
52815         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
52817         pipe2: fix O_NONBLOCK support on mingw
52818         * modules/pipe2 (Depends-on): Add nonblocking.
52819         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
52820         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
52821         * tests/test-nonblocking.c (main): Likewise.
52822         * modules/pipe2-tests (Makefile.am): Avoid link failure.
52824         fcntl-h: fix O_ACCMODE on cygwin
52825         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
52826         * lib/fcntl.in.h (O_ACCMODE): Fix it.
52828         pipe-filter: drop O_NONBLOCK workarounds
52829         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
52830         * modules/pipe-filter-ii (Depends-on): Likewise.
52831         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
52833         nonblocking: provide O_NONBLOCK for mingw
52834         * modules/nonblocking (Depends-on): Add open.
52835         (configure.ac): Set new witness macro.
52836         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
52837         * modules/fcntl-h (Makefile.am): Substitute it.
52838         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
52839         nonblocking module is in use.
52840         * lib/nonblocking.c: Adjust portability test.
52841         * lib/open.c (open): Don't let native open see gnulib flag.
52842         * tests/test-fcntl-h.c (main): Enhance test.
52843         * tests/test-open.h (test_open): Likewise.
52844         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
52846         careadlinkat: fix compilation error on mingw
52847         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
52848         within struct allocator.
52850 2011-04-06  Eric Blake  <eblake@redhat.com>
52852         binary-io: relicense under LGPLv2+
52853         * modules/binary-io (License): Relax to LGPLv2+.
52854         Requested for libvirt, and required by pipe2.
52856 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
52858         verify: use _Static_assert if available
52859         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
52860         (verify_true, verify): Use it if available.  This generates better
52861         diagnostics with GCC 4.6.0 and later.
52863 2011-04-05  Bruno Haible  <bruno@clisp.org>
52865         Remove leftover generated .h files after config.status changed.
52867         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
52868         GL_GENERATE_ALLOCA_H.
52869         * modules/alloca-opt (Makefile.am): Remove alloca.h if
52870         GL_GENERATE_ALLOCA_H evaluates to false.
52872         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
52873         GL_GENERATE_ARGZ_H.
52874         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
52875         evaluates to false.
52877         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
52878         GL_GENERATE_BYTESWAP_H.
52879         * modules/byteswap (Makefile.am): Remove byteswap.h if
52880         GL_GENERATE_BYTESWAP_H evaluates to false.
52882         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
52883         GL_GENERATE_ERRNO_H.
52884         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
52885         evaluates to false.
52887         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
52888         GL_GENERATE_FLOAT_H.
52889         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
52890         evaluates to false.
52892         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
52893         GL_GENERATE_FNMATCH_H.
52894         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
52895         GL_GENERATE_FNMATCH_H evaluates to false.
52897         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
52898         GL_GENERATE_GLOB_H.
52899         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
52900         evaluates to false.
52902         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
52903         automake conditional GL_GENERATE_ICONV_H.
52904         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
52905         evaluates to false.
52907         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
52908         GL_GENERATE_NETINET_IN_H.
52909         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
52910         GL_GENERATE_NETINET_IN_H evaluates to false.
52912         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
52913         conditional GL_GENERATE_PTHREAD_H.
52914         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
52915         * modules/pthread (Makefile.am): Remove pthread.h if
52916         GL_GENERATE_PTHREAD_H evaluates to false.
52918         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
52919         GL_GENERATE_SCHED_H.
52920         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
52921         evaluates to false.
52923         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
52924         conditional GL_GENERATE_SELINUX_CONTEXT_H.
52925         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
52926         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
52928         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
52929         GL_GENERATE_STDARG_H.
52930         * modules/stdarg (Makefile.am): Remove stdarg.h if
52931         GL_GENERATE_STDARG_H evaluates to false.
52933         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
52934         GL_GENERATE_STDBOOL_H.
52935         * modules/stdbool (Makefile.am): Remove stdbool.h if
52936         GL_GENERATE_STDBOOL_H evaluates to false.
52938         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
52939         conditional GL_GENERATE_STDDEF_H.
52940         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
52941         * modules/stddef (Makefile.am): Remove stddef.h if
52942         GL_GENERATE_STDDEF_H evaluates to false.
52944         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
52945         GL_GENERATE_STDINT_H.
52946         * modules/stdint (Makefile.am): Remove stdint.h if
52947         GL_GENERATE_STDINT_H evaluates to false.
52949         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
52950         GL_GENERATE_SYSEXITS_H.
52951         * modules/sysexits (Makefile.am): Remove sysexits.h if
52952         GL_GENERATE_SYSEXITS_H evaluates to false.
52954         Reported by Karl Berry and Ralf Wildenhues.
52956 2011-04-05  Bruno Haible  <bruno@clisp.org>
52958         Ensure to rebuild generated .h files when config.status has changed.
52959         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
52960         config.status.
52961         * modules/ctype (Makefile.am): Likewise.
52962         * modules/dirent (Makefile.am): Likewise.
52963         * modules/errno (Makefile.am): Likewise.
52964         * modules/fcntl-h (Makefile.am): Likewise.
52965         * modules/float (Makefile.am): Likewise.
52966         * modules/getopt-posix (Makefile.am): Likewise.
52967         * modules/glob (Makefile.am): Likewise.
52968         * modules/iconv-h (Makefile.am): Likewise.
52969         * modules/inttypes (Makefile.am): Likewise.
52970         * modules/langinfo (Makefile.am): Likewise.
52971         * modules/locale (Makefile.am): Likewise.
52972         * modules/math (Makefile.am): Likewise.
52973         * modules/netdb (Makefile.am): Likewise.
52974         * modules/netinet_in (Makefile.am): Likewise.
52975         * modules/poll-h (Makefile.am): Likewise.
52976         * modules/pthread (Makefile.am): Likewise.
52977         * modules/pty (Makefile.am): Likewise.
52978         * modules/sched (Makefile.am): Likewise.
52979         * modules/search (Makefile.am): Likewise.
52980         * modules/selinux-h (Makefile.am): Likewise.
52981         * modules/signal (Makefile.am): Likewise.
52982         * modules/spawn (Makefile.am): Likewise.
52983         * modules/stdarg (Makefile.am): Likewise.
52984         * modules/stdbool (Makefile.am): Likewise.
52985         * modules/stddef (Makefile.am): Likewise.
52986         * modules/stdint (Makefile.am): Likewise.
52987         * modules/stdio (Makefile.am): Likewise.
52988         * modules/stdlib (Makefile.am): Likewise.
52989         * modules/string (Makefile.am): Likewise.
52990         * modules/strings (Makefile.am): Likewise.
52991         * modules/sys_file (Makefile.am): Likewise.
52992         * modules/sys_ioctl (Makefile.am): Likewise.
52993         * modules/sys_select (Makefile.am): Likewise.
52994         * modules/sys_socket (Makefile.am): Likewise.
52995         * modules/sys_stat (Makefile.am): Likewise.
52996         * modules/sys_time (Makefile.am): Likewise.
52997         * modules/sys_times (Makefile.am): Likewise.
52998         * modules/sys_utsname (Makefile.am): Likewise.
52999         * modules/sys_wait (Makefile.am): Likewise.
53000         * modules/sysexits (Makefile.am): Likewise.
53001         * modules/termios (Makefile.am): Likewise.
53002         * modules/time (Makefile.am): Likewise.
53003         * modules/unistd (Makefile.am): Likewise.
53004         * modules/wchar (Makefile.am): Likewise.
53005         * modules/wctype-h (Makefile.am): Likewise.
53006         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
53008 2011-04-05  Bruno Haible  <bruno@clisp.org>
53010         pipe2: Relicense under LGPLv2+.
53011         * modules/pipe2 (License): Change to LGPLv2+.
53012         Requested by Eric Blake, for libvirt.
53014 2011-04-05  Bruce Korb  <bkorb@gnu.org>
53016         bootstrap: compute gnulib_extra_files after updating build_aux
53017         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
53018         change build_aux or also supply gnulib_extra_files.  Handle correctly.
53020 2011-04-05  Eric Blake  <eblake@redhat.com>
53022         bootstrap: preserve git whitelist item sorting
53023         * build-aux/bootstrap (sort_patterns): New function.
53024         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
53026 2011-04-05  Simon Josefsson  <simon@josefsson.org>
53028         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
53029         sc_space_tab check.
53031 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
53033         areadlink, areadlinkat: rewrite in terms of careadlinkat
53034         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
53035         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
53036         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
53037         (malloc, realloc): Remove #undefs.
53038         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
53039         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
53040         readlink, ssize_t, stdint, unistd.
53041         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
53042         areadlink, stdint.
53044         careadlinkat: new module
53045         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
53046         * modules/careadlinkat: New files, written by me with
53047         a review and feedback from Ben Pfaff in
53048         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
53050 2011-04-01  Bruno Haible  <bruno@clisp.org>
53052         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
53053         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
53054         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
53055         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
53056         Reported by Bruce Korb <bruce.korb@gmail.com>.
53058 2011-04-01  Bruno Haible  <bruno@clisp.org>
53060         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
53061         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
53062         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
53063         * modules/wcpcpy (Depends-on): Add extensions.
53064         * modules/wcpncpy (Depends-on): Likewise.
53065         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
53066         systems.
53067         * doc/posix-functions/wcpncpy.texi: Likewise.
53068         * doc/posix-functions/wcwidth.texi: Likewise.
53070 2011-03-31  Eric Blake  <eblake@redhat.com>
53072         nonblocking: fix mingw test failures
53073         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
53074         non-blocking flag on regular file.
53075         (get_nonblocking_flag): Set errno on invalid fd.
53076         * tests/test-nonblocking.c (main): Avoid test failure on
53077         directories if fchdir is not active.
53078         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
53080 2011-03-31  Bruno Haible  <bruno@clisp.org>
53082         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
53083         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
53084         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
53085         Reported by Simon Josefsson <simon@josefsson.org>.
53087 2011-03-31  Bruno Haible  <bruno@clisp.org>
53088         and Eric Blake  <eblake@redhat.com>
53090         nonblocking: new module
53091         * modules/nonblocking: New module.
53092         * modules/nonblocking-tests: Likewise.
53093         * lib/nonblocking.h: New file.
53094         * lib/nonblocking.c: Likewise.
53095         * tests/test-nonblocking.c: New test.
53096         * lib/ioctl.c (ioctl) [mingw]: Update comment.
53098 2011-03-30  Bruno Haible  <bruno@clisp.org>
53100         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
53101         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
53102         instead of 'printf' format for GCC >= 4.4.
53103         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
53104         (fprintf, printf, vfprintf, vprintf): Declare with
53105         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
53106         the system's vfprintf() function.
53107         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
53109 2011-03-30  Eric Blake  <eblake@redhat.com>
53111         passfd: fix scoping bug
53112         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
53113         before sendmsg/recvmsg.
53115         passfd: standardize coding conventions
53116         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
53117         can be learned at compile time.
53118         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
53119         ifdefs.
53120         (sendfd, recvfd): Follow gnulib code conventions.
53122         passfd: fix incorrect sendmsg arguments
53123         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
53124         incorrect msg_controllen value.
53125         * modules/passfd-tests (Depends-on): Check for alarm.
53126         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
53127         Reported by Bastien ROUCARIES.
53129 2011-03-30  Bruno Haible  <bruno@clisp.org>
53131         c-strcasestr: Relicense under LGPLv2+.
53132         * modules/c-strcasestr (License): Change to LGPLv2+.
53133         Requested by Eric Blake, for libvirt.
53135 2011-03-30  Simon Josefsson  <simon@josefsson.org>
53137         * users.txt: Add libidn2.  Fix libtasn1 link.
53139 2011-03-30  Jim Meyering  <meyering@redhat.com>
53141         tests: readlink* ("",... fails with EINVAL on newer kernels
53142         readlink and readlinkat have typically failed with ENOENT for
53143         the invalid, empty file name,  "".  However, with the advent
53144         of linux-2.6.39, they fail with EINVAL.
53145         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
53146         when operating on the empty file name.
53147         * tests/test-readlink.h (test_readlink): Likewise.
53149 2011-03-29  Bruno Haible  <bruno@clisp.org>
53151         Relicense some modules under LGPLv2+, for libidn2.
53152         * modules/array-mergesort (License): Change to LGPLv2+.
53153         * modules/c-strcaseeq (License): Likewise.
53154         * modules/striconveh (License): Likewise.
53155         * modules/striconveha (License): Likewise.
53156         * modules/uniconv/base (License): Likewise.
53157         * modules/uniconv/u8-conv-from-enc (License): Likewise.
53158         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
53159         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
53160         * modules/unictype/base (License): Likewise.
53161         * modules/unictype/bidiclass-of (License): Likewise.
53162         * modules/unictype/category-M (License): Likewise.
53163         * modules/unictype/category-none (License): Likewise.
53164         * modules/unictype/category-of (License): Likewise.
53165         * modules/unictype/category-test (License): Likewise.
53166         * modules/unictype/category-test-withtable (License): Likewise.
53167         * modules/unictype/combining-class (License): Likewise.
53168         * modules/unictype/joiningtype-of (License): Likewise.
53169         * modules/unictype/scripts (License): Likewise.
53170         * modules/uninorm/base (License): Likewise.
53171         * modules/uninorm/canonical-decomposition (License): Likewise.
53172         * modules/uninorm/composition (License): Likewise.
53173         * modules/uninorm/decompose-internal (License): Likewise.
53174         * modules/uninorm/decomposition-table (License): Likewise.
53175         * modules/uninorm/nfc (License): Likewise.
53176         * modules/uninorm/nfd (License): Likewise.
53177         * modules/uninorm/u32-normalize (License): Likewise.
53178         * modules/unistr/base (License): Likewise.
53179         * modules/unistr/u32-cpy (License): Likewise.
53180         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
53181         * modules/unistr/u32-to-u8 (License): Likewise.
53182         * modules/unistr/u32-uctomb (License): Likewise.
53183         * modules/unistr/u8-check (License): Likewise.
53184         * modules/unistr/u8-mblen (License): Likewise.
53185         * modules/unistr/u8-mbtouc (License): Likewise.
53186         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
53187         * modules/unistr/u8-mbtoucr (License): Likewise.
53188         * modules/unistr/u8-prev (License): Likewise.
53189         * modules/unistr/u8-strlen (License): Likewise.
53190         * modules/unistr/u8-to-u32 (License): Likewise.
53191         * modules/unistr/u8-uctomb (License): Likewise.
53192         * modules/unitypes (License): Likewise.
53193         Requested by Simon Josefsson.
53195 2011-03-29  Simon Josefsson  <simon@josefsson.org>
53197         lib-symbol-visibility: Add a notice.
53198         * modules/lib-symbol-visibility (Notice): New field.
53200 2011-03-29  Bruno Haible  <bruno@clisp.org>
53202         getaddrinfo: Doc fix.
53203         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
53204         section "fixed in Gnulib".
53206 2011-03-28  Simon Josefsson  <simon@josefsson.org>
53208         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
53209         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
53211 2011-03-26  Bruno Haible  <bruno@clisp.org>
53213         unictype/property-byname: Reduce the number of load-time relocations.
53214         * lib/unictype/pr_byname.c: Include <stdlib.h>.
53215         (UC_PROPERTY_INDEX_*): New enumeration values.
53216         (uc_property_byname): Convert an index from the lookup table to an
53217         uc_property_t.
53218         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
53219         values.
53221 2011-03-26  Bruno Haible  <bruno@clisp.org>
53223         unictype/property-byname: Allow omitted word separators and aliases.
53224         * lib/unictype/pr_byname.gperf: Add property names without word
53225         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
53226         for 'space'.
53228 2011-03-26  Bruno Haible  <bruno@clisp.org>
53230         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
53231         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
53232         also hyphens to space.
53233         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
53234         without spaces.
53235         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
53237 2011-03-26  Bruno Haible  <bruno@clisp.org>
53239         unictype/joiningtype-byname: Recognize long names as well.
53240         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
53241         a long name.
53242         * lib/unictype/joiningtype_byname.c: Include <string.h>,
53243         unictype/joiningtype_byname.h.
53244         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
53245         * lib/unictype/joiningtype_byname.gperf: New file.
53246         * modules/unictype/joiningtype-byname (Files): Add
53247         lib/unictype/joiningtype_byname.gperf.
53248         (Depends-on): Add gperf.
53249         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
53250         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
53251         long names.
53253         Tests for module 'unictype/joiningtype-longname'.
53254         * modules/unictype/joiningtype-longname-tests: New file.
53255         * tests/unictype/test-joiningtype_longname.c: New file.
53257         New module 'unictype/joiningtype-longname'.
53258         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
53259         * lib/unictype/joiningtype_longname.c: New file.
53260         * modules/unictype/joiningtype-longname: New file.
53261         * modules/unictype/joiningtype-all (Depends-on): Add
53262         unictype/joiningtype-longname.
53264 2011-03-26  Bruno Haible  <bruno@clisp.org>
53266         unictype/bidiclass-byname: Recognize long names as well.
53267         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
53268         name.
53269         * lib/unictype/bidi_byname.c: Include <string.h>,
53270         unictype/bidi_byname.h.
53271         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
53272         * lib/unictype/bidi_byname.gperf: New file.
53273         * modules/unictype/bidiclass-byname (Files): Add
53274         lib/unictype/bidi_byname.gperf.
53275         (Depends-on): Add gperf.
53276         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
53277         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
53278         long names.
53280         Tests for module 'unictype/bidiclass-longname'.
53281         * modules/unictype/bidiclass-longname-tests: New file.
53282         * tests/unictype/test-bidi_longname.c: New file.
53284         New module 'unictype/bidiclass-longname'.
53285         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
53286         * lib/unictype/bidi_longname.c: New file.
53287         * modules/unictype/bidiclass-longname: New file.
53288         * modules/unictype/bidiclass-all (Depends-on): Add
53289         unictype/bidiclass-longname.
53291 2011-03-26  Bruno Haible  <bruno@clisp.org>
53293         unictype/bidi*: Rename modules.
53294         * modules/unictype/bidiclass-all: Renamed from
53295         modules/unictype/bidicategory-all.
53296         * modules/unictype/bidiclass-name: Renamed from
53297         modules/unictype/bidiclass-name.
53298         (Description): Update.
53299         * modules/unictype/bidiclass-name-tests: Renamed from
53300         modules/unictype/bidicategory-name-tests.
53301         * modules/unictype/bidiclass-byname: Renamed from
53302         modules/unictype/bidicategory-byname.
53303         (Description): Update.
53304         * modules/unictype/bidiclass-byname-tests: Renamed from
53305         modules/unictype/bidicategory-byname-tests.
53306         * modules/unictype/bidiclass-of: Renamed from
53307         modules/unictype/bidicategory-of.
53308         (Description): Update.
53309         * modules/unictype/bidiclass-of-tests: Renamed from
53310         modules/unictype/bidicategory-of-tests.
53311         * modules/unictype/bidiclass-test: Renamed from
53312         modules/unictype/bidicategory-test.
53313         (Description): Update.
53314         * modules/unictype/bidiclass-test-tests: Renamed from
53315         modules/unictype/bidicategory-test-tests.
53316         * modules/unictype/bidicategory-all: New file, a simple redirection.
53317         * modules/unictype/bidicategory-name: Likewise.
53318         * modules/unictype/bidicategory-byname: Likewise.
53319         * modules/unictype/bidicategory-of: Likewise.
53320         * modules/unictype/bidicategory-test: Likewise.
53321         * modules/unictype/property-bidi-* (Dependencies): Update.
53322         * lib/unictype/bidi_*.c: Update comment.
53324 2011-03-26  Bruno Haible  <bruno@clisp.org>
53326         unictype/bidi*: Rename functions, part 2.
53327         * modules/unictype/bidicategory-name (configure.ac): Update required
53328         libunistring version.
53329         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
53331 2011-03-25  Bruno Haible  <bruno@clisp.org>
53333         New module 'unictype/combining-class-all'.
53334         * modules/unictype/combining-class-all: New file.
53336         Tests for module 'unictype/combining-class-byname'.
53337         * modules/unictype/combining-class-byname-tests: New file.
53338         * tests/unictype/test-combiningclass_byname.c: New file.
53340         New module 'unictype/combining-class-byname'.
53341         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
53342         * lib/unictype/combiningclass_byname.c: New file.
53343         * lib/unictype/combiningclass_byname.gperf: New file.
53344         * modules/unictype/combining-class-byname: New file.
53346         Tests for module 'unictype/combining-class-longname'.
53347         * modules/unictype/combining-class-longname-tests: New file.
53348         * tests/unictype/test-combiningclass_longname.c: New file.
53350         New module 'unictype/combining-class-longname'.
53351         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
53352         * lib/unictype/combiningclass_longname.c: New file.
53353         * modules/unictype/combining-class-longname: New file.
53355         Tests for module 'unictype/combining-class-name'.
53356         * modules/unictype/combining-class-name-tests: New file.
53357         * tests/unictype/test-combiningclass_name.c: New file.
53359         New module 'unictype/combining-class-name'.
53360         * lib/unictype.in.h (uc_combining_class_name): New declaration.
53361         * lib/unictype/combiningclass_name.c: New file.
53362         * modules/unictype/combining-class-name: New file.
53364 2011-03-25  Bruno Haible  <bruno@clisp.org>
53366         unictype/combining-class: Rename source files.
53367         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
53368         of unictype/combining.h.
53369         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
53370         Update.
53371         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
53372         * modules/unictype/combining-class (Description): Fix.
53373         (Files, Makefile.am): Update.
53374         * tests/unictype/test-combiningclass.c: Renamed from
53375         tests/unictype/test-combining.c.
53376         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
53378 2011-03-25  Bruno Haible  <bruno@clisp.org>
53380         unictype: Update list of canonical combining classes.
53381         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
53383 2011-03-25  Bruno Haible  <bruno@clisp.org>
53385         unictype/category-byname: Recognize long names as well.
53386         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
53387         a long name.
53388         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
53389         unictype/categ_byname.h.
53390         (UC_CATEGORY_INDEX_*): New enumeration values.
53391         (uc_general_category_byname): Use uc_general_category_lookup and
53392         convert from index to value.
53393         * lib/unictype/categ_byname.gperf: New file.
53394         * modules/unictype/category-byname (Files): Add
53395         lib/unictype/categ_byname.gperf.
53396         (Depends-on): Add gperf.
53397         (Makefile.am): Add rule for generating unictype/categ_byname.h.
53398         * tests/unictype/test-categ_byname.c (main): Test the recognition of
53399         long names.
53401         Tests for module 'unictype/category-longname'.
53402         * modules/unictype/category-longname-tests: New file.
53403         * tests/unictype/test-categ_longname.c: New file.
53405         New module 'unictype/category-longname'.
53406         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
53407         * lib/unictype/categ_longname.c: New file.
53408         * modules/unictype/category-longname: New file.
53409         * modules/unictype/category-all (Depends-on): Add it.
53411 2011-03-25  Bruno Haible  <bruno@clisp.org>
53413         Tests for module 'unictype/category-LC'.
53414         * modules/unictype/category-LC-tests: New file.
53415         * tests/unictype/test-categ_LC.c: New file, automatically generated.
53417         New module 'unictype/category-LC'.
53418         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
53419         (UC_CATEGORY_LC): New declaration.
53420         (UC_CASED_LETTER): New macro.
53421         * lib/gen-uni-tables.c (is_category_LC): New function.
53422         (output_categories): Also handle category LC.
53423         (UC_CATEGORY_MASK_LC): New enumeration value.
53424         (general_category_byname): Also handle category LC.
53425         * lib/unictype/categ_LC.c: New file.
53426         * lib/unictype/categ_LC.h: New file, automatically generated.
53427         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
53428         category LC.
53429         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
53430         * modules/unictype/category-LC: New file.
53431         * modules/unictype/category-byname (Depends-on): Add
53432         unictype/category-LC.
53433         * modules/unictype/category-all (Depends-on): Likewise.
53435 2011-03-25  Eric Blake  <eblake@redhat.com>
53437         xmalloc: revert yesterday's regression
53438         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
53439         realloc's underlying behavior (allowing allocation of zero-size
53440         objects, especially if malloc-gnu is also in use).
53442 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
53444         maint.mk: add missing version to VC-tag
53445         * top/maint.mk: git tag was missing actual tag name; add it.
53447         valgrind: do leak checking, and exit with code 1 on error (not 0)
53448         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
53449         to VALGRIND.
53451 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
53453         posix-modules: say what it does.
53454         * posix-modules: Add a line to the --help output saying what it does.
53456 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
53458         xmalloc: Do not leak if underlying realloc is C99 compatible.
53459         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
53460         This avoids a leak on C99-based systems.  See
53461         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
53463 2011-03-24  Eric Blake  <eblake@redhat.com>
53465         realloc: document portability problem
53466         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
53467         passing 0 size to realloc.
53469 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
53471         doc: update users.txt
53472         * users.txt: Add cvsps, tmpwatch
53474 2011-03-23  Matt Rice  <ratmice@gmail.com>
53476         doc: update users.txt
53477         * users.txt: Add gdb.
53479 2011-03-23  Jim Meyering  <meyering@redhat.com>
53481         doc: update users.txt
53482         Looking through matches up to the following URL (there are still
53483         several more pages), I found several projects that use gnulib:
53484         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
53485         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
53486         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
53488 2011-03-22  Bruno Haible  <bruno@clisp.org>
53490         unictype/bidi*: Rename functions.
53491         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
53492         uc_bidi_class, uc_is_bidi_class): New declarations.
53493         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
53494         uc_bidi_category_byname.
53495         (uc_bidi_category_byname): New function.
53496         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
53497         u_bidi_category_name.
53498         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
53499         (uc_bidi_category_name): New function.
53500         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
53501         uc_bidi_category.
53502         (uc_bidi_category): New function.
53503         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
53504         uc_is_bidi_category. Invoke uc_bidi_class.
53505         (uc_is_bidi_category): New function.
53506         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
53507         instead of uc_bidi_category_byname.
53508         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
53509         instead of uc_bidi_category_name.
53510         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
53511         uc_bidi_category.
53512         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
53513         instead of uc_is_bidi_category.
53515 2011-03-21  Bruno Haible  <bruno@clisp.org>
53517         New module 'unictype/joininggroup-all'.
53518         * modules/unictype/joininggroup-all: New file.
53520         Tests for module 'unictype/joininggroup-of'.
53521         * modules/unictype/joininggroup-of-tests: New file.
53522         * tests/unictype/test-joininggroup_of.c: New file.
53523         * tests/unictype/test-joininggroup_of.h: New file, automatically
53524         generated by gen-uni-tables.
53526         New module 'unictype/joininggroup-of'.
53527         * modules/unictype/joininggroup-of: New file.
53528         * lib/unictype/joininggroup_of.c: New file.
53529         * lib/unictype/joininggroup_of.h: New file, automatically generated by
53530         gen-uni-tables.
53532         Tests for module 'unictype/joininggroup-byname'.
53533         * modules/unictype/joininggroup-byname-tests: New file.
53534         * tests/unictype/test-joininggroup_byname.c: New file.
53536         New module 'unictype/joininggroup-byname'.
53537         * modules/unictype/joininggroup-byname: New file.
53538         * lib/unictype/joininggroup_byname.c: New file.
53539         * lib/unictype/joininggroup_byname.gperf: New file.
53541         Tests for module 'unictype/joininggroup-name'.
53542         * modules/unictype/joininggroup-name-tests: New file.
53543         * tests/unictype/test-joininggroup_name.c: New file.
53545         New module 'unictype/joininggroup-name'.
53546         * modules/unictype/joininggroup-name: New file.
53547         * lib/unictype/joininggroup_name.c: New file.
53548         * lib/unictype/joininggroup_name.h: New file.
53550         New module 'unictype/joiningtype-all'.
53551         * modules/unictype/joiningtype-all: New file.
53553         Tests for module 'unictype/joiningtype-of'.
53554         * modules/unictype/joiningtype-of-tests: New file.
53555         * tests/unictype/test-joiningtype_of.c: New file.
53556         * tests/unictype/test-joiningtype_of.h: New file, automatically
53557         generated by gen-uni-tables.
53559         New module 'unictype/joiningtype-of'.
53560         * modules/unictype/joiningtype-of: New file.
53561         * lib/unictype/joiningtype_of.c: New file.
53562         * lib/unictype/joiningtype_of.h: New file, automatically generated by
53563         gen-uni-tables.
53565         Tests for module 'unictype/joiningtype-byname'.
53566         * modules/unictype/joiningtype-byname-tests: New file.
53567         * tests/unictype/test-joiningtype_byname.c: New file.
53569         New module 'unictype/joiningtype-byname'.
53570         * modules/unictype/joiningtype-byname: New file.
53571         * lib/unictype/joiningtype_byname.c: New file.
53573         Tests for module 'unictype/joiningtype-name'.
53574         * modules/unictype/joiningtype-name-tests: New file.
53575         * tests/unictype/test-joiningtype_name.c: New file.
53577         New module 'unictype/joiningtype-name'.
53578         * modules/unictype/joiningtype-name: New file.
53579         * lib/unictype/joiningtype_name.c: New file.
53581         unictype: Add support for Arabic shaping properties.
53582         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
53583         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
53584         declarations.
53585         (UC_JOINING_GROUP_*): New enumeration values.
53586         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
53587         declarations.
53588         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
53589         (unicode_joining_type): New variable.
53590         (UC_JOINING_GROUP_*): New enumeration values.
53591         (unicode_joining_group): New variable.
53592         (fill_arabicshaping, joining_type_as_c_identifier,
53593         output_joining_type_test, output_joining_type,
53594         joining_group_as_c_identifier, output_joining_group_test,
53595         output_joining_group): New functions.
53596         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
53597         fill_arabicshaping and output_joining_type_test, output_joining_type,
53598         output_joining_group_test, output_joining_group.
53599         Reported by Simon Josefsson.
53601 2011-03-21  Jim Meyering  <meyering@redhat.com>
53603         strftime: fix a bug in yesterday's change
53604         * lib/strftime.c (add): Accommodate width's initial value of -1.
53605         Otherwise, nstrftime would copy uninitialized data into
53606         the result buffer.
53608 2011-03-21  Jim Meyering  <meyering@redhat.com>
53610         tests: add strftime-tests module
53611         * tests/test-strftime.c: New file.
53612         * modules/strftime-tests: New module.
53614 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
53616         strftime: don't assume a byte count fits in 'int'
53617         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
53618         found this problem by static analysis, using gcc -Wstrict-overflow
53619         (GCC 4.5.2, x86-64).  This reported an optimization that depended
53620         on an integer overflow having undefined behavior, but it turns out
53621         that the argument is a size, which might not fit in 'int' anyway,
53623 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
53625         stdio: don't require ignore_value around fwrite
53627         This patch works around libc bug 11959
53628         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
53629         Without this patch, applications must often write
53630         ignore_value (fwrite (...)) even though the ignore_value is
53631         not helpful here.  It's common to write many objects, using
53632         fwrite/printf/etc., and then use ferror to detect output error.
53634         I considered making this patch optional, but decided against it,
53635         because libc is obviously being inconsistent here: there is no
53636         reason libc should insist that user code must inspect fwrite
53637         return's value without also insisting that it inspect printf's,
53638         putchar's, etc.  If user code wants to have a strict style where
53639         all these functions' values are checked (so that ferror need not
53640         be checked), we could add support for that style in a new gnulib
53641         module, but in the meantime it's better to be consistent and to
53642         support common usage.
53644         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
53645         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
53646         that we are compiling in checking mode, and if not C++, and
53647         if not already wrapping fwrite for some other reason.
53648         (fwrite): #define to rpl_fwrite if the latter is defined.
53650 2011-03-20  Bruno Haible  <bruno@clisp.org>
53652         verror: Fix compilation error introduced on 2011-02-13.
53653         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
53654         instead of __attribute__.
53655         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53657 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
53658             Bruno Haible  <bruno@clisp.org>
53660         socklen: do not depend on sys_socket
53661         While trying to modify Emacs to use gnulib's socklen module,
53662         I discovered a circular dependency: socklen depends on sys_socket
53663         and vice versa.  Emacs can use socklen, but it does not need
53664         sys_socket because it has its own substitute for sys/socket.h.
53665         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
53666         gl_TYPE_SOCKLEN_T.
53667         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
53668         gl_PREREQ_SYS_H_SOCKET.
53669         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
53670         gl_PREREQ_SYS_H_SOCKET.
53671         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
53672         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
53673         * modules/socklen (Depends-on): Do not depend on sys_socket.
53674         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
53676 2011-03-20  Jim Meyering  <meyering@redhat.com>
53678         maint.mk: sort file names *after* new transformation
53679         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
53680         prefix would have led to an unwarranted failure in GNU parted.
53681         Sort after that transformation.
53683 2011-03-19  Jim Meyering  <meyering@redhat.com>
53685         maint.mk: fix po-file syntax-check rule
53686         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
53687         Patch by Bruno Haible.
53689 2011-03-19  Bruno Haible  <bruno@clisp.org>
53691         socklen: Update comment.
53692         * m4/socklen.m4: Update comment about platforms.
53694 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53695             Bruno Haible  <bruno@clisp.org>
53697         inet_ntop, inet_pton: Simplify.
53698         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
53699         documented to provide socklen_t and we already depend on sys_socket.
53700         * modules/inet_pton (Depends-on): Likewise.
53701         * lib/arpa_inet.in.h: Adjust comment.
53703 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53704             Bruno Haible  <bruno@clisp.org>
53706         netdb: Simplify.
53707         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
53708         documented to provide socklen_t and we already depend on sys_socket.
53709         * lib/netdb.in.h: Adjust comment.
53711 2011-03-19  Bruno Haible  <bruno@clisp.org>
53713         sys_socket, netdb: Document problem with socklen_t.
53714         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
53715         platforms.
53716         * doc/posix-headers/netdb.texi: Likewise.
53718 2011-03-18  Eric Blake  <eblake@redhat.com>
53720         maint.mk: let po check work in VPATH build
53721         * top/maint.mk (po_file): Allow cfg.mk override.
53722         (sc_po_check): Allow VPATH use.
53723         Reported by Jiri Denemark.
53725 2011-03-16  Jim Meyering  <meyering@redhat.com>
53727         maint.mk: allow fine-grained syntax-check exclusion via Make variables
53728         Before, you would have had to create one .x-sc_ file per rule in order
53729         to exempt offending files.  Now, you may instead use a Make variable --
53730         usually defined in cfg.mk -- whose name identifies the affected rule.
53731         * top/maint.mk (_sc_excl): Define.
53732         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
53733         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
53735 2011-03-13  Bruno Haible  <bruno@clisp.org>
53737         ignore-value tests: Avoid warnings.
53738         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
53739         empty for gcc < 3.4.
53741 2011-03-13  Bruno Haible  <bruno@clisp.org>
53743         passfd: Fix link error on Solaris.
53744         * modules/passfd (Description): Correct.
53745         (Depends-on): Add socketlib.
53746         (Link): New section.
53747         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
53749 2011-03-13  Bruno Haible  <bruno@clisp.org>
53751         passfd: Fix link error on AIX 5.2.
53752         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
53754 2011-03-13  Bruno Haible  <bruno@clisp.org>
53756         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
53757         * lib/sys_socket.in.h: Include <stddef.h>.
53758         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
53759         CMSG_FIRSTHDR. Remove unused variable.
53761 2011-03-13  Bruno Haible  <bruno@clisp.org>
53763         passfd: Fix compilation error on OpenBSD.
53764         * lib/passfd.c: Include <sys/uio.h>.
53766 2011-03-13  Bruno Haible  <bruno@clisp.org>
53768         passfd test: Fix warnings.
53769         * tests/test-passfd.c: Include <sys/wait.h>.
53770         (main): Fix typo.
53772 2011-03-13  Bruno Haible  <bruno@clisp.org>
53774         passfd module, part 4, tweaks.
53775         * tests/test-passfd.c: Reorder includes.
53776         (main): Fix perror and printf calls.
53778 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
53780         passfd module, part 4.
53781         * modules/passfd-tests: New file.
53782         * tests/test-passfd.c: New file.
53784 2011-03-13  Jim Meyering  <meyering@redhat.com>
53786         Makefile: rely on GNU make; derive syntax-check rule names
53787         Rather than requiring that each sc_ rule be listed as a dependent
53788         of "check", use features of GNU make to derive the list.
53789         * Makefile (syntax-check-rules): Define.
53790         (check): Depend on the new variable, not the hard-coded list.
53792 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
53793             Bruno Haible  <bruno@clisp.org>
53795         passfd module, part 3.
53796         * lib/passfd.h (recvfd): Add a flags argument.
53797         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
53798         (recvfd): Add a flags argument.
53799         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
53800         exists.
53801         * modules/passfd (Depends-on): Add cloexec.
53802         Suggested by Eric Blake.
53804 2011-03-13  Bruno Haible  <bruno@clisp.org>
53806         passfd module, part 2, tweaks.
53807         * modules/passfd (Files): Reorder.
53808         (Depends-on): Remove errno.
53809         (Include): Remove <sys/socket.h>, <sys/un.h>.
53810         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
53811         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
53812         specification header. Include <sys/socket.h> always. Don't include
53813         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
53814         (sendfd): Clarify that it sets errno when it fails.
53815         (recvfd): Fix specification.
53817 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
53819         passfd module, part 2.
53820         * modules/passfd: New file.
53821         * lib/passfd.h: New file.
53822         * lib/passfd.c: New file.
53824 2011-03-12  Bruno Haible  <bruno@clisp.org>
53826         wcswidth, mbswidth: Avoid integer overflow.
53827         * lib/wcswidth.c: Include <limits.h>.
53828         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
53829         * lib/mbswidth.c: Include <limits.h>.
53830         (mbsnwidth): Avoid 'int' overflow.
53831         Reported by Jim Meyering.
53833 2011-03-12  Bruno Haible  <bruno@clisp.org>
53835         futimens, utimensat: Avoid endless recursion on Solaris 10.
53836         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
53837         Solaris.
53838         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
53839         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
53841 2011-03-11  Jim Meyering  <meyering@redhat.com>
53843         maint.mk: relax a regexp to accommodate other formatting styles
53844         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
53845         between "ngettext" and the following "(".
53847 2011-03-11  Pádraig Brady  <P@draigBrady.com>
53849         maint.mk: suppress a false positive warning
53850         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
53851         diagnostics are marked with ngettext.
53853 2011-03-10  Eric Blake  <eblake@redhat.com>
53855         wchar: add explicit dependencies, for Tru64
53856         * modules/mbmemcasecoll (Depends-on): Add wchar.
53857         * modules/mbtowc (Depends-on): Likewise.
53858         * modules/vasnprintf (Depends-on): Likewise.
53859         * modules/unistdio/u-printf-args (Depends-on): Likewise.
53860         * modules/wctomb (Depends-on): Likewise.
53861         Reported by Peter O'Gorman.
53863 2011-03-08  Bruno Haible  <bruno@clisp.org>
53865         passfd module, part 1, tweaks.
53866         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
53867         Improve indentation. Improve AC_MSG_CHECKING messages.
53868         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
53869         gl_SOCKET_FAMILIES.
53871 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
53873         passfd module, part 1.
53874         * m4/afunix.m4: New file.
53875         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
53876         sockets.
53878 2011-03-08  Bruno Haible  <bruno@clisp.org>
53880         regex-quote: New API.
53881         * lib/regex-quote.h: Include <stdbool.h>.
53882         (struct regex_quote_spec): New type.
53883         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
53884         New declarations.
53885         (regex_quote_length, regex_quote_copy, regex_quote): Take a
53886         'const struct regex_quote_spec *' argument.
53887         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
53888         (pcre_special): New constant.
53889         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
53890         New functions.
53891         (regex_quote_length, regex_quote_copy, regex_quote): Take a
53892         'const struct regex_quote_spec *' argument.
53893         * modules/regex-quote (Depends-on): Add stdbool.
53894         * tests/test-regex-quote.c (check): Update for new API. Add test for
53895         anchored results.
53896         * NEWS: Mention the API change.
53897         Reported by Reuben Thomas and Eric Blake.
53899 2011-03-06  Bruno Haible  <bruno@clisp.org>
53901         regex-quote: Fix creation of POSIX extended regular expressions.
53902         * lib/regex-quote.c (ere_special): Add grouping and alternation
53903         operators.
53905 2011-03-05  Bruno Haible  <bruno@clisp.org>
53907         doc: Improve doc regarding autopoint vs. gnulib.
53908         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
53909         disable autopoint while running autoreconf.
53910         Suggested by Ralf Wildenhues.
53912 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53914         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
53915         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
53917 2011-03-03  Bruce Korb  <bkorb@gnu.org>
53919         parse-duration: remove xalloc.h dependency
53920         * lib/parse-duration.c (parse_period): handle NULL return from
53921         strdup instead of calling xstrdup().
53922         * modules/parse-duration: remove "xalloc" dependency
53924 2011-03-03  Matthew Booth  <mbooth@redhat.com>
53926         bootstrap: honor m4_base when running aclocal
53927         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
53929 2011-03-02  Jim Meyering  <meyering@redhat.com>
53931         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
53932         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
53933         on request from Matt Booth.
53935 2011-03-01  Eric Blake  <eblake@redhat.com>
53937         test-link: work on Hurd
53938         * tests/test-link.h (test_link): Hurd rejects linking directories
53939         with EISDIR instead of the POSIX-mandated EPERM.
53941 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
53943         stdio: simplify by moving files to printf-posix, sigpipe
53944         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
53945         since this symbol is needed only if printf is replaced.
53946         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
53947         Require gl_ASM_SYMBOL_PREFIX.
53948         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
53949         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
53950         (Depends-on): Add 'raise'.
53951         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
53952         * modules/stdio (Files): Remove lib/stdio-write.c,
53953         m4/asm-underscore.m4.
53954         (Depends-on): Remove 'raise'.
53956         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
53957         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
53958         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
53959         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
53961 2011-02-28  Bruno Haible  <bruno@clisp.org>
53963         localcharset: Assume ANSI C behaviour of free().
53964         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
53965         calling free().
53966         Suggested by Simon Josefsson <simon@josefsson.org>.
53968 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
53969             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
53970             Bruno Haible  <bruno@clisp.org>  (tiny change)
53972         On Cygwin, use /proc file system instead of win32 API.
53973         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
53974         Win32 file names.
53975         (DllMain): Simplify by removing Cygwin specific code.
53976         (find_shared_library_fullname): Use Linux specific implementation also
53977         for Cygwin.
53978         (get_shared_library_fullname): Update accordingly.
53979         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
53980         Win32 file names.
53981         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
53982         Cygwin specific code.
53984 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
53985             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
53987         Fix OpenMP flag detection for various Fortran compilers.
53988         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
53989         OpenMP-conditional compilation construct, to force compile
53990         failure with missing OpenMP flag.
53991         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
53993 2011-02-25  Eric Blake  <eblake@redhat.com>
53995         strstr: expand test coverage
53996         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
53997         compilation.
53998         * tests/test-memmem.c (main): Duplicate tests.
53999         * tests/test-strcasestr.c (main): Likewise.
54000         * tests/test-c-strcasestr.c (main): Likewise.
54002 2011-02-25  Jim Meyering  <meyering@redhat.com>
54004         maint.mk: detect missing-NL-at-EOF, too
54005         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
54006         it also detects when a file lacks a newline at EOF.
54007         (require_exactly_one_NL_at_EOF_): Renamed from
54008         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
54009         since people may well have .x-sc_... file names tied to the
54010         existing name.  Suggested by Eric Blake.
54012 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54014         dirname: move m4/dos.m4 functionality into lib/dosname.h
54016         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
54017         extracts symbols from it, puts them into config.h; but it's much
54018         easier to use the symbols directly.  filename.h already does this,
54019         but it disagrees with dos.m4 in some respects.  This patch
54020         introduces a different include file dosname.h that packages up
54021         dos.m4, and then later we can work on merging filename.h and
54022         dosname.h.  Applications that need only the easy-to-configure
54023         symbols should consider including dosname.h rather than dirname.h.
54024         * NEWS: Mention incompatible changes.
54025         * m4/dos.m4: Remove.
54026         * lib/dosname.h, modules/dosname: New files.
54027         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
54028         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
54029         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
54030         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
54031         Include dosname.h, not dirname.h.
54032         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
54033         Include dosname.h, for definitions of symbols like ISSLASH
54034         that used to be in config.h.
54035         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
54036         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
54037         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54038         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
54039         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
54040         * modules/rmdir (Files): Likewise.
54041         * modules/stat (Files): Likewise.
54042         * modules/unlink (Files): Likewise.
54043         * modules/dirname-lgpl (Depends-on): Add dosname.
54044         * modules/lstat (Depends-on): Likewise.
54045         * modules/openat (Depends-on): Likewise.
54046         * modules/rmdir (Depends-on): Likewise.
54047         * modules/savewd (Depends-on): Likewise.
54048         * modules/stat (Depends-on): Likewise.
54049         * modules/unlink (Depends-on): Likewise.
54050         * modules/openat (Depends-on): Remove dirname-lgpl.
54051         * modules/savewd (Depends-on): Likewise.
54052         * tests/test-dirname.c: Do not use removed symbols like
54053         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
54054         the remaining symbols, e.g., ISSLASH ('\\').
54056 2011-02-25  Eric Blake  <eblake@redhat.com>
54058         strstr: revert patches that introduced bug and pessimization
54059         * lib/str-two-way.h: Add another reference.
54060         (two_way_short_needle, two_way_long_needle): Revert changes from
54061         2011-02-24; they pessimize search speed.
54062         (critical_factorization): Partially revert changes from
54063         2010-06-22; they violate the requirement that the left half of the
54064         needle be smaller than the period of the needle.
54066 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54068         filenamecat: remove unnecessary dependency on dirname-lgpl
54069         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
54070         is no direct dependency, just an indirect one via filenamecat-lgpl.
54072         remove: remove unnecessary use of m4/dos.m4
54073         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
54074         * modules/remove (FILES): Remove m4/dos.m4.
54076         * lib/openat-proc.c: Don't include dirname.h; not needed.
54078         backupfile: remove unnecessary use of m4/dos.m4
54079         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
54080         of its symbols are used by the backupfile code.  backupfile.c does
54081         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
54082         for the rare case of programs that want all their backup file
54083         names to live within 8+3 limits, and dos.m4 doesn't address that.
54084         * modules/backupfile (Files): Remove m4/dos.m4.
54086 2011-02-24  Jim Meyering  <meyering@redhat.com>
54088         strstr: fix a bug whereby strstr would mistakenly return NULL
54089         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
54090         in period calculation.
54091         (two_way_long_needle): Likewise.
54092         The original problem was reported by Mike Stump in
54093         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
54094         Ralf Wildenhues provided the short needle and haystack.
54095         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
54096         Add a more involved test to trigger the bug in two_way_long_needle.
54098 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
54100         gnulib-tool: remove use of bold display in help screen
54101         * gnulib-tool (func_usage): Do not use bold display anymore in the
54102         help screen.  That was just meant to be a temporary emphasis for a
54103         backward-incompatible change.
54105 2011-02-23  Bruno Haible  <bruno@clisp.org>
54107         Fix misindentation of preprocessor directives.
54108         * lib/argp-namefrob.h: Reindent preprocessor directives.
54109         * lib/getopt_int.h (struct _getopt_data): Likewise.
54110         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
54111         * lib/vasnprintf.c (decode_long_double): Likewise.
54112         * tests/test-argmatch.c: Insert blank lines, for clarity.
54113         * tests/test-exclude.c: Likewise.
54115 2011-02-22  Bruno Haible  <bruno@clisp.org>
54117         ioctl: Fix for MacOS X in 64-bit mode.
54118         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
54119         value.
54120         Suggested by Eric Blake.
54121         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
54123 2011-02-22  Jim Meyering  <meyering@redhat.com>
54125         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
54126         * Makefile (sc_cpp_indent_check): Don't limit the check to files
54127         in lib/.
54129 2011-02-22  Eric Blake  <eblake@redhat.com>
54131         maint: avoid any CDPATH issue
54132         * Makefile (sc_cpp_indent_check): Anchor cd argument.
54134         maint: adjust cpp indentation for my modules, as well
54135         * Makefile (sc_cpp_indent_check): Add my name.
54136         * lib/fbufmode.c: Filter through cppi.
54137         * lib/fpurge.c: Likewise.
54138         * lib/freadable.c: Likewise.
54139         * lib/freading.c: Likewise.
54140         * lib/fwritable.c: Likewise.
54141         * lib/fwriting.c: Likewise.
54142         * lib/sigaction.c: Likewise.
54144 2011-02-22  Jim Meyering  <meyering@redhat.com>
54146         maint: adjust cpp indentation to reflect nesting depth
54147         I.e., in a block of code that begins with an unnested "#if",
54148         put one space between the "#" in column 1 and following token.
54149         For example,
54150         -#include <sys/vfs.h>
54151         +# include <sys/vfs.h>
54152         Do this only in .c files that are part of a module I maintain.
54153         * lib/linkat.c: Filter through cppi.
54154         * lib/nanosleep.c: Likewise.
54155         * lib/openat.c: Likewise.
54156         * lib/openat-die.c: Likewise.
54157         * lib/dup3.c: Likewise.
54158         * lib/fchownat.c: Likewise.
54159         * lib/flock.c: Likewise.
54160         * lib/fsync.c: Likewise.
54161         * lib/fts.c: Likewise.
54162         * lib/getpass.c: Likewise.
54163         * lib/gettimeofday.c: Likewise.
54164         * lib/userspec.c: Likewise.
54165         * Makefile (sc_cpp_indent_check): New rule, to check this.
54167 2011-02-22  Bruno Haible  <bruno@clisp.org>
54169         New module 'wctomb'.
54170         * lib/stdlib.in.h (wctomb): New declaration.
54171         * lib/wctomb.c: New file.
54172         * lib/wctomb-impl.h: New file.
54173         * m4/wctomb.m4: New file.
54174         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
54175         REPLACE_WCTOMB.
54176         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
54177         REPLACE_WCTOMB.
54178         * modules/wctomb: New file.
54179         * tests/test-stdlib-c++.cc: Test signature of wctomb.
54180         * doc/posix-functions/wctomb.texi: Mention the new module.
54181         * modules/wctob (Depends-on): Add wctomb.
54183 2011-02-22  Bruno Haible  <bruno@clisp.org>
54185         New module 'mbtowc'.
54186         * lib/stdlib.in.h (mbtowc): New declaration.
54187         * lib/mbtowc.c: New file.
54188         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
54189         * m4/mbtowc.m4: New file.
54190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
54191         REPLACE_MBTOWC.
54192         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
54193         REPLACE_MBTOWC.
54194         * modules/mbtowc: New file.
54195         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
54196         * doc/posix-functions/mbtowc.texi: Mention the new module.
54197         * modules/btowc (Depends-on): Add mbtowc.
54199 2011-02-22  Bruno Haible  <bruno@clisp.org>
54201         wcrtomb: Add more tests for native Windows platforms.
54202         * tests/test-wcrtomb-w32-1.sh: New file.
54203         * tests/test-wcrtomb-w32-2.sh: New file.
54204         * tests/test-wcrtomb-w32-3.sh: New file.
54205         * tests/test-wcrtomb-w32-4.sh: New file.
54206         * tests/test-wcrtomb-w32-5.sh: New file.
54207         * tests/test-wcrtomb-w32.c: New file.
54208         * modules/wcrtomb-tests (Files): Add them.
54209         (Makefile.am): Arrange to run these tests.
54210         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
54211         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
54213 2011-02-20  Bruno Haible  <bruno@clisp.org>
54215         wcrtomb: Enhance test.
54216         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
54218 2011-02-20  Bruno Haible  <bruno@clisp.org>
54220         mbrtowc: Tiny optimization.
54221         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
54223 2011-02-20  Jim Meyering  <meyering@redhat.com>
54225         test-exclude.c: remove unmatched #endif
54226         * tests/test-exclude.c: Remove stray #endif, left over from
54227         the change of a week ago.
54229 2011-02-19  Jim Meyering  <meyering@redhat.com>
54231         git-version-gen: skip "-dirty" check when appropriate
54232         * build-aux/git-version-gen: Don't run any git commands when the
54233         version string comes from .tarball-version.  Prior to this, we
54234         would run git update-index --refresh even from a just-unpacked
54235         tarball directory, and that could affect a .git/ directory in a
54236         parent of the build directory.  Reported by Mike Frysinger.
54238 2011-02-19  Bruno Haible  <bruno@clisp.org>
54240         unictype/property-byname: Reduce the size of the 'data' segment.
54241         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
54243 2011-02-19  Bruno Haible  <bruno@clisp.org>
54245         unictype/scripts: Reduce the size of the 'data' segment.
54246         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
54247         '%pic'.
54248         * lib/unictype/scripts_byname.gperf: Regenerated.
54250 2011-02-19  Bruno Haible  <bruno@clisp.org>
54252         stdint: Update documentation.
54253         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
54255 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
54257         stdint: omit redundant check for wchar.h
54258         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
54259         always tests whether wchar.h exists, so remove the now-redundant test.
54261 2011-02-18  Bruno Haible  <bruno@clisp.org>
54263         stdint: Cut dependency to module 'wchar'.
54264         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
54265         include the necessary prerequisites.
54266         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
54267         * modules/stdint (Depends-on): Remove wchar.
54268         (Makefile.am): Substitute HAVE_WCHAR_H.
54269         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
54271 2011-02-18  Eric Blake  <eblake@redhat.com>
54273         longlong: skip, rather than fail, on cross-compilation
54274         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
54275         when cross-compiling; regression from 2011-02-16.
54277 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54279         * NEWS: Mention 2011-02-08 change to stdlib.
54281 2011-02-17  Bruno Haible  <bruno@clisp.org>
54283         getloadavg: Add comments about platforms.
54284         * m4/getloadavg.m4: Add comment.
54285         * lib/getloadavg.c: Likewise.
54287 2011-02-17  Bruno Haible  <bruno@clisp.org>
54289         getloadavg: Fix link error on Solaris 2.6.
54290         * modules/getloadavg (Link): New section.
54291         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
54292         linking test-getloadavg.
54293         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
54294         getloadavg.
54296 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54298         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
54299         It was 'int', but this doesn't match the IRIX 6.5 manual.
54300         Suggested by Bruno Haible in
54301         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
54303 2011-02-17  Bruno Haible  <bruno@clisp.org>
54305         havelib: Fix comments.
54306         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
54307         change.
54309 2011-02-17  Bruno Haible  <bruno@clisp.org>
54311         havelib: Update config.rpath.
54312         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
54314 2011-02-17  Bruno Haible  <bruno@clisp.org>
54316         getloadavg test: Add some plausibility checks.
54317         * tests/test-getloadavg.c (check_avg): Print a warning when the value
54318         is improbable.
54320 2011-02-16  Eric Blake  <eblake@redhat.com>
54322         maintainer-makefile: make syntax-check a no-op from tarballs
54323         * top/maint.mk (no-vc-detected): New rule.
54324         (local-checks-available): Use it to avoid hanging if someone tries
54325         'make syntax-check' from a tarball.  Also append to any non-syntax
54326         checks already defined in cfg.mk.
54328 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
54330         longlong: tune, particularly for common case of c99
54332         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
54333         or running anything if c99, or if unsigned long long int does not
54334         work.  In either case, we know the answer without further tests.
54335         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
54336         it at most once, and use its results for both long long int and
54337         unsigned long long int.  This is more likely to be efficient in
54338         the common case where the program wants to check for both long
54339         long int and unsigned long long int.
54340         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
54341         since the answer is already known.
54343 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
54345         getloadavg: set errno
54346         * lib/getloadavg.c: Set errno when returning -1.  If no other
54347         error number looks appropriate, set it to ENOSYS if the getloadavg
54348         looks like it can't possibly ever work, ENOTSUP otherwise.
54349         Suggested by Bruno Haible in
54350         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
54352         getloadavg: trim unused parts and speed up 'configure'
54353         * NEWS: Document this.
54354         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
54355         always compiled if getloadavg is absent.
54356         Move test code to ...
54357         * tests/test-getloadavg.c: New file, containing previous
54358         contents of test from lib/getloadavg.c.  It also contains
54359         suggestions by Bruno Haible in
54360         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
54361         * modules/getloadavg-tests: New file.
54362         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
54363         Do tests in the same order as they're needed for getloadavg.c.
54364         Omit setgid-related tests that generate symbols KMEM_GROUP,
54365         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
54366         Do only the tests that are needed to see whether the system has
54367         getloadavg, moving the other tests into ...
54368         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
54369         NLIST_NAME_UNION; nobody should be using it.  Do not define
54370         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
54371         relevant, as the user of this module shouldn't care how getloadavg
54372         is implemented.
54374         getloadavg: omit unused var
54375         * lib/getloadavg.c (getloadavg): Omit unused local variable.
54377 2011-02-15  Jim Meyering  <meyering@redhat.com>
54379         doc: update users.txt
54380         * users.txt: Update iwhd's URL.
54382 2011-02-13  Bruno Haible  <bruno@clisp.org>
54384         Consistent macro naming for macros that use GCC __attribute__.
54385         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
54386         _ATTRIBUTE_NONNULL_.
54387         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
54388         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
54389         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
54390         ATTRIBUTE_DEPRECATED.
54391         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
54392         ATTRIBUTE_NORETURN.
54393         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54394         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54395         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54396         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54397         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
54398         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
54399         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
54400         ATTRIBUTE_SENTINEL.
54401         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
54402         ATTRIBUTE_RETURN_CHECK.
54403         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
54404         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
54405         ATTRIBUTE_NORETURN.
54406         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
54407         Reported by Paul Eggert.
54409 2011-02-13  Bruno Haible  <bruno@clisp.org>
54411         Don't interfere with a program's definition of __attribute__.
54412         * lib/argp.h (__attribute__): Remove definition.
54413         (_GL_ATTRIBUTE_FORMAT): New macro.
54414         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
54415         * lib/argp-fmtstream.h (__attribute__): Remove definition.
54416         (_GL_ATTRIBUTE_FORMAT): New macro.
54417         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
54418         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
54419         GCC 3 or newer.
54420         * lib/error.h (__attribute__): Remove definition.
54421         (_GL_ATTRIBUTE_FORMAT): New macro.
54422         (error, error_at_line): Use it.
54423         * lib/hash.h (__attribute__): Remove definition.
54424         (ATTRIBUTE_WUR): Update definition. Define always.
54425         * lib/openat.h (__attribute__): Remove definition.
54426         (ATTRIBUTE_NORETURN): Update definition. Define always.
54427         * lib/sigpipe-die.h (__attribute__): Remove definition.
54428         (ATTRIBUTE_NORETURN): Update definition. Define always.
54429         * lib/vasnprintf.h (__attribute__): Remove definition.
54430         (_GL_ATTRIBUTE_FORMAT): New macro.
54431         (asnprintf, vasnprintf): Use it.
54432         * lib/xalloc.h (__attribute__): Remove definition.
54433         (ATTRIBUTE_NORETURN): Update definition. Define always.
54434         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
54435         * lib/xmemdup0.h (__attribute__): Remove definition.
54436         (ATTRIBUTE_NORETURN): Update definition. Define always.
54437         * lib/xprintf.h (__attribute__): Remove definition.
54438         (_GL_ATTRIBUTE_FORMAT): New macro.
54439         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
54440         * lib/xstrtol.h (__attribute__): Remove definition.
54441         (ATTRIBUTE_NORETURN): Update definition. Define always.
54442         * lib/xvasprintf.h (__attribute__): Remove definition.
54443         (_GL_ATTRIBUTE_FORMAT): New macro.
54444         (xasprintf, xvasprintf): Use it.
54445         * tests/test-argmatch.c (__attribute__): Remove definition.
54446         (ATTRIBUTE_NORETURN): Update definition. Define always.
54447         * tests/test-exclude.c (__attribute__): Remove definition.
54448         (ATTRIBUTE_NORETURN): Update definition. Define always.
54449         Reported by Paul Eggert.
54451 2011-02-13  Bruno Haible  <bruno@clisp.org>
54453         mbrtowc: Add more tests for native Windows platforms.
54454         * tests/test-mbrtowc-w32-1.sh: New file.
54455         * tests/test-mbrtowc-w32-2.sh: New file.
54456         * tests/test-mbrtowc-w32-3.sh: New file.
54457         * tests/test-mbrtowc-w32-4.sh: New file.
54458         * tests/test-mbrtowc-w32-5.sh: New file.
54459         * tests/test-mbrtowc-w32.c: New file.
54460         * modules/mbrtowc-tests (Files): Add them.
54461         (Makefile.am): Arrange to run these tests.
54462         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
54463         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
54465 2011-02-13  Bruno Haible  <bruno@clisp.org>
54467         mbrtowc: Work around native Windows bug.
54468         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
54469         guess when no suitable locale for testing was found.
54470         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
54472 2011-02-13  Bruno Haible  <bruno@clisp.org>
54474         mbsinit: Work around mingw bug.
54475         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
54476         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
54477         Windows.
54478         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
54480 2011-02-13  Bruno Haible  <bruno@clisp.org>
54482         mbsinit: Don't crash for a NULL argument.
54483         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
54484         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
54486 2011-02-13  Bruno Haible  <bruno@clisp.org>
54488         Don't interfere with a program's definition of __attribute__.
54489         * lib/stdio.in.h (__attribute__): Remove definition.
54490         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
54491         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
54492         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
54493         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
54494         * lib/string.in.h (__attribute__): Remove definition.
54495         Reported by Paul Eggert.
54497 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54499         stdlib: don't get in the way of non-GCC __attribute__
54500         See thread starting at
54501         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
54502         Revert previous stdlib change, installing the following instead:
54503         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
54504         to get in the way of a non-GCC compiler that supports __attribute__.
54505         (_GL_ATTRIBUTE_RETURN): New macro.
54506         (_Exit): Use it instead of __attribute__.
54508 2011-02-12  Bruno Haible  <bruno@clisp.org>
54510         quotearg test: Avoid test failure on mingw.
54511         * tests/test-quotearg.sh: Convert the locale identifier from native
54512         Windows syntax to Unix syntax.
54514 2011-02-12  Bruno Haible  <bruno@clisp.org>
54516         setlocale: Prefer gnulib's override over libintl's override.
54517         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
54518         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
54519         GNULIB_defined_setlocale is set.
54521 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54523         stdlib: support non-GCC __attribute__
54525         Fix a serious and tricky problem encountered when attempting to
54526         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
54527         5.5, but it crashed due to memory corruption on Solaris 10 with
54528         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
54529         bits that are otherwise zero.  This tagging is optional inside
54530         Emacs but is preferred and is used when __attribute__ ((__aligned
54531         (8))) works, as it does with both recent-enough GCC and with Sun C
54532         5.11.  However, Sun C 5.11 is not GCC and does not #define
54533         __GNUC__ and __GNUC_MINOR__.
54535         When I added the getloadavg module to Emacs, it brought in
54536         stdlib.in.h, which contained this fragment:
54538            #ifndef __attribute__
54539            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
54540            #  define __attribute__(Spec)   /* empty */
54541            # endif
54542            #endif
54544         When files that include <stdlib.h> were compiled with Sun C 5.11,
54545         the above code disabled __attribute__ ((__aligned (8))), which
54546         caused variables to not be properly aligned, which eventually led
54547         to the pointer corruption mentioned above.  (This was a bit hard
54548         to diagnose, unfortunately.)
54550         Several "#define __attribute__(X) /* empty */" code snippets need
54551         to be eradicated from Gnulib to work with non-GCC compilers that
54552         support __attribute__.  The Autoconf way to do this is to test for
54553         each kind of attribute that we want support for, and selectively
54554         enable that in source code.
54556         Fix this problem just for stdlib.h, by adding a test for the
54557         __noreturn__ attribute, and change stdlib.in.h to use that test
54558         when needed.  This technique can be easily generalized to the
54559         other *.in.h files and attributes, and a similar technique can be
54560         used for *.h and *.c files.  This patch is enough to solve the
54561         problem for Emacs + getloadavg, and I thought I'd publish it for
54562         feedback before undertaking further, similar fixes in other
54563         modules.
54565         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
54566         because it's not needed for stdlib.h.  It merely substitutes the
54567         value directly into stdlib.h.  We may well need to #define it, or
54568         similar symbols, for other modules, but it's nice to also have an
54569         option to not #define it for applications like Emacs that do not
54570         need it.
54572         * lib/stdlib.in.h (__attribute__): Do not #define.
54573         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
54574         be defined only if the _Exit module is also used.
54575         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
54576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
54577         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
54578         platforms.
54579         * modules/_Exit (Files): Add m4/attribute.m4.
54580         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
54581         * m4/attribute.m4: New file.
54583 2011-02-12  Bruno Haible  <bruno@clisp.org>
54585         wcsrtombs: Work around bug on native Windows.
54586         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
54587         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
54588         instead of len.
54589         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
54591 2011-02-12  Bruno Haible  <bruno@clisp.org>
54593         mbsrtowcs: Work around bug on native Windows.
54594         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
54595         against mingw bug.
54596         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
54598 2011-02-12  Bruno Haible  <bruno@clisp.org>
54600         Avoid setlocale bugs in tests.
54601         * modules/btowc (Dependencies): Add setlocale.
54602         * modules/c-strcase (Dependencies): Likewise.
54603         * modules/mbmemcasecmp (Dependencies): Likewise.
54604         * modules/mbmemcasecoll (Dependencies): Likewise.
54605         * modules/mbrtowc (Dependencies): Likewise.
54606         * modules/mbscasecmp (Dependencies): Likewise.
54607         * modules/mbscasestr (Dependencies): Likewise.
54608         * modules/mbschr (Dependencies): Likewise.
54609         * modules/mbscspn (Dependencies): Likewise.
54610         * modules/mbsinit (Dependencies): Likewise.
54611         * modules/mbsncasecmp (Dependencies): Likewise.
54612         * modules/mbsnrtowcs (Dependencies): Likewise.
54613         * modules/mbspbrk (Dependencies): Likewise.
54614         * modules/mbspcasecmp (Dependencies): Likewise.
54615         * modules/mbsrchr (Dependencies): Likewise.
54616         * modules/mbsrtowcs (Dependencies): Likewise.
54617         * modules/mbsspn (Dependencies): Likewise.
54618         * modules/mbsstr (Dependencies): Likewise.
54619         * modules/nl_langinfo (Dependencies): Likewise.
54620         * modules/quotearg (Dependencies): Likewise.
54621         * modules/unicase/locale-language (Dependencies): Likewise.
54622         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
54623         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
54624         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
54625         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
54626         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
54627         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
54628         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
54629         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
54630         * modules/vasnprintf-posix (Dependencies): Likewise.
54631         * modules/wcrtomb (Dependencies): Likewise.
54632         * modules/wcsnrtombs (Dependencies): Likewise.
54633         * modules/wcsrtombs (Dependencies): Likewise.
54635 2011-02-12  Bruno Haible  <bruno@clisp.org>
54637         setlocale: Workaround native Windows bug.
54638         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
54639         succeeds but sets LC_CTYPE to "C", report a failure.
54640         * tests/test-setlocale2.sh: New file.
54641         * tests/test-setlocale2.c: New file.
54642         * modules/setlocale-tests (Files): Add the new files.
54643         (Makefile.am): Enable test-setlocale2.sh test.
54644         * doc/posix-functions/setlocale.texi: Mention workaround.
54646 2011-02-11  Bruno Haible  <bruno@clisp.org>
54648         Tests for module 'setlocale'.
54649         * modules/setlocale-tests: New file.
54650         * tests/test-setlocale1.sh: New file.
54651         * tests/test-setlocale1.c: New file.
54653         New module 'setlocale'.
54654         * lib/locale.in.h (setlocale): New declaration.
54655         * lib/setlocale.c: New file, based on
54656         gettext/gettext-runtime/intl/setlocale.c.
54657         * m4/setlocale.m4: New file.
54658         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
54659         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
54660         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
54661         REPLACE_SETLOCALE.
54662         * modules/setlocale: New file.
54663         * tests/test-locale-c++.cc: Test the declaration of setlocale.
54664         * doc/posix-functions/setlocale.texi: Mention the new module.
54666 2011-02-11  Bruno Haible  <bruno@clisp.org>
54668         Prepare for locale dependent tests on mingw.
54669         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
54670         because it has the wrong locale encoding.
54671         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
54672         French_France.1252 instead of "fr".
54673         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
54674         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
54675         because it has the wrong locale encoding.
54676         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
54677         native Windows, try Turkish_Turkey.65001.
54678         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
54679         Chinese_China.54936.
54681         Prepare for locale dependent tests on mingw.
54682         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
54683         differently.
54684         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
54685         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
54686         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54687         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54689 2011-02-11  Eric Blake  <eblake@redhat.com>
54691         strptime: avoid compiler warnings
54692         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
54693         compiler warnings about dead code.
54694         Reported by Daniel P. Berrange.
54696 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
54698         doc: update users.txt
54699         * users.txt: Add rcs.
54701 2011-02-10  John W. Eaton  <jwe@gnu.org>
54703         doc: update users.txt
54704         * users.txt: Add octave.
54706 2011-02-10  Jim Meyering  <meyering@redhat.com>
54708         doc: update users.txt
54709         * users.txt: Add iwhd.
54711 2011-02-09  Bruno Haible  <bruno@clisp.org>
54713         gnulib-tool: Make copyright notice adjustment more robust.
54714         * gnulib-tool (func_import): In sed_transform_main_lib_file,
54715         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
54716         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
54717         License".
54718         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
54720 2011-02-06  Bruno Haible  <bruno@clisp.org>
54722         New module 'towctrans'.
54723         * modules/towctrans: New file.
54724         * lib/wctype.in.h (towctrans): New declaration.
54725         * lib/towctrans.c: New file.
54726         * lib/towctrans-impl.h: New file.
54727         * m4/towctrans.m4: New file.
54728         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
54729         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
54730         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
54731         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
54732         * doc/posix-functions/towctrans.texi: Mention the new module.
54734 2011-02-06  Bruno Haible  <bruno@clisp.org>
54736         New module 'wctrans'.
54737         * modules/wctrans: New file.
54738         * lib/wctype.in.h (wctrans): New declaration.
54739         * lib/wctrans.c: New file.
54740         * lib/wctrans-impl.h: New file.
54741         * m4/wctrans.m4: New file.
54742         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
54743         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
54744         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
54745         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
54746         * doc/posix-functions/wctrans.texi: Mention the new module.
54748 2011-02-06  Bruno Haible  <bruno@clisp.org>
54750         New module 'iswctype'.
54751         * modules/iswctype: New file.
54752         * lib/wctype.in.h (iswctype): New declaration.
54753         * lib/iswctype.c: New file.
54754         * lib/iswctype-impl.h: New file.
54755         * m4/iswctype.m4: New file.
54756         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
54757         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
54758         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
54759         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
54760         * doc/posix-functions/iswctype.texi: Mention the new module and the
54761         HP-UX 11.00 problem.
54763 2011-02-06  Bruno Haible  <bruno@clisp.org>
54765         New module 'wctype'.
54766         * modules/wctype: Change to represent the wctype() substitute.
54767         * lib/wctype.in.h (wctype): New declaration.
54768         * lib/wctype.c: New file.
54769         * lib/wctype-impl.h: New file.
54770         * m4/wctype.m4: New file.
54771         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
54772         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
54773         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
54774         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
54775         * doc/posix-functions/wctype.texi: Mention the new module and the
54776         HP-UX 11.00 problem.
54778 2011-02-06  Bruno Haible  <bruno@clisp.org>
54780         wctype-h: Ensure wctype_t and wctrans_t are defined.
54781         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
54782         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
54783         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
54784         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
54785         HAVE_WCTRANS_T.
54786         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
54788 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
54790         flock: fix license typo
54792         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
54793         omitted.
54795 2011-02-08  Bruno Haible  <bruno@clisp.org>
54797         Split large sed scripts, for HP-UX sed.
54798         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
54799         to avoid HP-UX limit of 99 commands, in the near future.
54800         * modules/stdlib (Makefile.am): Likewise.
54801         * modules/unistd (Makefile.am): Likewise.
54802         * modules/wchar (Makefile.am): Likewise.
54803         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54804         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
54805         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
54807 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
54808             Bruno Haible  <bruno@clisp.org>
54810         stdlib: improve random_r modularization
54811         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
54812         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
54813         you also need the random_r module to get this material right.
54814         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
54815         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
54816         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
54818 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
54820         stdlib: don't depend on stdint
54821         * lib/stdlib.in.h: Don't include <stdint.h> merely because
54822         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
54823         be independent of whether stdint.h is needed.
54824         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
54825         here, instead of ...
54826         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
54827         struct random_data should be using the random_r module, not just
54828         the stdlib module (which wouldn't make sense: what package needs
54829         just struct random_data without also needing random_r?).
54830         * modules/stdlib (Depends-on): Remove stdint.
54832         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
54833         See the thread rooted at
54834         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
54835         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
54836         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
54837         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
54838         __VMS)); previously it was always included (via fcntl--.h).
54839         (getloadavg): Do not use c_strtod.  Instead, approximate it by
54840         hand; this is good enough for load averages.  Also, do not use
54841         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
54842         flags directly if available and don't bother otherwise.  (Packages
54843         that need the extra reliability should use the modules that define
54844         these flags on older platforms that lack them.)
54845         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
54846         fcntl-safer.
54848 2011-02-08  Jim Meyering  <meyering@redhat.com>
54850         di-set.h, ino-map.h: add multiple-inclusion guard
54851         Technically, the guard is required only for ino-map.h, due to its
54852         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
54853         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
54854         * lib/ino-map.h: Likewise.
54856 2011-02-06  Bruno Haible  <bruno@clisp.org>
54858         iswblank: Ensure declaration on glibc systems.
54859         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
54860         * modules/iswblank (Dependencies): Add 'extensions'.
54861         * doc/posix-functions/iswblank.texi: Document the glibc problem.
54863 2011-02-06  Bruno Haible  <bruno@clisp.org>
54865         New module 'iswblank'.
54866         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
54867         * modules/iswblank: New file.
54868         * modules/wctype-h (Files): Remove lib/iswblank.c.
54869         (Makefile.am): Substitute GNULIB_ISWBLANK.
54870         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
54871         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
54872         (gl_WCTYPE_H_DEFAULTS): New macro.
54873         (gl_WCTYPE_H): Require it. Remove iswblank related code.
54874         * modules/iswblank-tests: New file.
54875         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
54876         * tests/test-wctype-h.c (main): Remove iswblank tests.
54877         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
54878         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
54879         of 'wctype-h'.
54880         * NEWS: Mention the change.
54881         * modules/mbchar (Depends-on): Add iswblank.
54883 2011-02-08  Bruno Haible  <bruno@clisp.org>
54885         di-set tests: Refactor.
54886         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
54887         unnecessary includes.
54888         (ASSERT): Remove macro.
54889         (main): Make C90 compliant by avoiding variable declaration after
54890         statement.
54891         * modules/di-set-tests (Files): Add tests/macros.h.
54893 2011-02-08  Bruno Haible  <bruno@clisp.org>
54895         ino-map tests: Refactor.
54896         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
54897         unnecessary includes.
54898         (ASSERT): Remove macro.
54899         (main): Make C90 compliant by avoiding variable declaration after
54900         statement.
54901         * modules/ino-map-tests (Files): Add tests/macros.h.
54903 2011-02-08  Jim Meyering  <meyering@redhat.com>
54905         di-set: add "const" to a cast
54906         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
54907         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
54909 2011-02-06  Bruno Haible  <bruno@clisp.org>
54911         Rename module 'wctype' to 'wctype-h'.
54912         * modules/wctype-h: Renamed from modules/wctype.
54913         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
54914         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
54915         (Files, Depends-on, Makefile.am): Update.
54916         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
54917         (Files, Makefile.am): Update.
54918         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
54919         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
54920         * doc/posix-headers/wctype.texi: Update.
54921         * doc/posix-functions/iswalnum.texi: Update.
54922         * doc/posix-functions/iswalpha.texi: Update.
54923         * doc/posix-functions/iswblank.texi: Update.
54924         * doc/posix-functions/iswcntrl.texi: Update.
54925         * doc/posix-functions/iswdigit.texi: Update.
54926         * doc/posix-functions/iswgraph.texi: Update.
54927         * doc/posix-functions/iswlower.texi: Update.
54928         * doc/posix-functions/iswprint.texi: Update.
54929         * doc/posix-functions/iswpunct.texi: Update.
54930         * doc/posix-functions/iswspace.texi: Update.
54931         * doc/posix-functions/iswupper.texi: Update.
54932         * doc/posix-functions/iswxdigit.texi: Update.
54933         * doc/posix-functions/towlower.texi: Update.
54934         * doc/posix-functions/towupper.texi: Update.
54935         * NEWS: Mention the change.
54936         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
54937         * modules/mbchar (Dependencies): Likewise.
54938         * modules/mbswidth (Dependencies): Likewise.
54939         * modules/quotearg (Dependencies): Likewise.
54940         * modules/regex (Dependencies): Likewise.
54941         * modules/wcscasecmp (Dependencies): Likewise.
54942         * modules/wcsncasecmp (Dependencies): Likewise.
54943         * modules/wcwidth (Dependencies): Likewise.
54945 2011-02-06  Bruno Haible  <bruno@clisp.org>
54947         New module 'wcswidth'.
54948         * modules/wcswidth: New file.
54949         * lib/wchar.in.h (wcswidth): New declaration.
54950         * lib/wcswidth.c: New file.
54951         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
54952         * m4/wcswidth.m4: New file.
54953         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
54954         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
54955         REPLACE_WCSWIDTH.
54956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
54957         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
54958         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
54959         * doc/posix-functions/wcswidth.texi: Mention the new module.
54961 2011-02-06  Bruno Haible  <bruno@clisp.org>
54963         New module 'wcstok'.
54964         * modules/wcstok: New file.
54965         * lib/wchar.in.h (wcstok): New declaration.
54966         * lib/wcstok.c: New file.
54967         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
54968         * m4/wcstok.m4: New file.
54969         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
54970         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
54971         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
54972         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
54973         * doc/posix-functions/wcstok.texi: Mention the new module.
54975 2011-02-06  Bruno Haible  <bruno@clisp.org>
54977         New module 'wcsstr'.
54978         * modules/wcsstr: New file.
54979         * lib/wchar.in.h (wcsstr): New declaration.
54980         * lib/wcsstr.c: New file.
54981         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
54982         * m4/wcsstr.m4: New file.
54983         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
54984         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
54985         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
54986         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
54987         * doc/posix-functions/wcsstr.texi: Mention the new module.
54989 2011-02-06  Bruno Haible  <bruno@clisp.org>
54991         New module 'wcspbrk'.
54992         * modules/wcspbrk: New file.
54993         * lib/wchar.in.h (wcspbrk): New declaration.
54994         * lib/wcspbrk.c: New file.
54995         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
54996         * m4/wcspbrk.m4: New file.
54997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
54998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
54999         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
55000         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
55001         * doc/posix-functions/wcspbrk.texi: Mention the new module.
55003 2011-02-06  Bruno Haible  <bruno@clisp.org>
55005         New module 'wcsspn'.
55006         * modules/wcsspn: New file.
55007         * lib/wchar.in.h (wcsspn): New declaration.
55008         * lib/wcsspn.c: New file.
55009         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
55010         * m4/wcsspn.m4: New file.
55011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
55012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
55013         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
55014         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
55015         * doc/posix-functions/wcsspn.texi: Mention the new module.
55017 2011-02-06  Bruno Haible  <bruno@clisp.org>
55019         New module 'wcscspn'.
55020         * modules/wcscspn: New file.
55021         * lib/wchar.in.h (wcscspn): New declaration.
55022         * lib/wcscspn.c: New file.
55023         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
55024         * m4/wcscspn.m4: New file.
55025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
55026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
55027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
55028         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
55029         * doc/posix-functions/wcscspn.texi: Mention the new module.
55031 2011-02-06  Bruno Haible  <bruno@clisp.org>
55033         New module 'wcsrchr'.
55034         * modules/wcsrchr: New file.
55035         * lib/wchar.in.h (wcsrchr): New declaration.
55036         * lib/wcsrchr.c: New file.
55037         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
55038         * m4/wcsrchr.m4: New file.
55039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
55040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
55041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
55042         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
55043         * doc/posix-functions/wcsrchr.texi: Mention the new module.
55045 2011-02-06  Bruno Haible  <bruno@clisp.org>
55047         New module 'wcschr'.
55048         * modules/wcschr: New file.
55049         * lib/wchar.in.h (wcschr): New declaration.
55050         * lib/wcschr.c: New file.
55051         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
55052         * m4/wcschr.m4: New file.
55053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
55054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
55055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
55056         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
55057         * doc/posix-functions/wcschr.texi: Mention the new module.
55059 2011-02-06  Bruno Haible  <bruno@clisp.org>
55061         New module 'wcsdup'.
55062         * modules/wcsdup: New file.
55063         * lib/wchar.in.h (wcsdup): New declaration.
55064         * lib/wcsdup.c: New file.
55065         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
55066         * m4/wcsdup.m4: New file.
55067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
55068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
55069         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
55070         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
55071         * doc/posix-functions/wcsdup.texi: Mention the new module.
55073 2011-02-06  Bruno Haible  <bruno@clisp.org>
55075         New module 'wcsxfrm'.
55076         * modules/wcsxfrm: New file.
55077         * lib/wchar.in.h (wcsxfrm): New declaration.
55078         * lib/wcsxfrm.c: New file.
55079         * lib/wcsxfrm-impl.h: New file.
55080         * m4/wcsxfrm.m4: New file.
55081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
55082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
55083         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
55084         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
55085         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
55087 2011-02-06  Bruno Haible  <bruno@clisp.org>
55089         New module 'wcscoll'.
55090         * modules/wcscoll: New file.
55091         * lib/wchar.in.h (wcscoll): New declaration.
55092         * lib/wcscoll.c: New file.
55093         * lib/wcscoll-impl.h: New file.
55094         * m4/wcscoll.m4: New file.
55095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
55096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
55097         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
55098         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
55099         * doc/posix-functions/wcscoll.texi: Mention the new module.
55101 2011-02-06  Bruno Haible  <bruno@clisp.org>
55103         New module 'wcsncasecmp'.
55104         * modules/wcsncasecmp: New file.
55105         * lib/wchar.in.h (wcsncasecmp): New declaration.
55106         * lib/wcsncasecmp.c: New file.
55107         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
55108         * m4/wcsncasecmp.m4: New file.
55109         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
55110         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
55111         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
55112         HAVE_WCSNCASECMP.
55113         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
55114         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
55116 2011-02-06  Bruno Haible  <bruno@clisp.org>
55118         New module 'wcscasecmp'.
55119         * modules/wcscasecmp: New file.
55120         * lib/wchar.in.h (wcscasecmp): New declaration.
55121         * lib/wcscasecmp.c: New file.
55122         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
55123         * m4/wcscasecmp.m4: New file.
55124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
55125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
55126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
55127         HAVE_WCSCASECMP.
55128         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
55129         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
55131 2011-02-05  Bruno Haible  <bruno@clisp.org>
55133         New module 'wcsncmp'.
55134         * modules/wcsncmp: New file.
55135         * lib/wchar.in.h (wcsncmp): New declaration.
55136         * lib/wcsncmp.c: New file.
55137         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
55138         * m4/wcsncmp.m4: New file.
55139         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
55140         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
55141         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
55142         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
55143         * doc/posix-functions/wcsncmp.texi: Mention the new module.
55145 2011-02-05  Bruno Haible  <bruno@clisp.org>
55147         New module 'wcscmp'.
55148         * modules/wcscmp: New file.
55149         * lib/wchar.in.h (wcscmp): New declaration.
55150         * lib/wcscmp.c: New file.
55151         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
55152         * m4/wcscmp.m4: New file.
55153         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
55154         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
55155         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
55156         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
55157         * doc/posix-functions/wcscmp.texi: Mention the new module.
55159 2011-02-05  Bruno Haible  <bruno@clisp.org>
55161         New module 'wcsncat'.
55162         * modules/wcsncat: New file.
55163         * lib/wchar.in.h (wcsncat): New declaration.
55164         * lib/wcsncat.c: New file.
55165         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
55166         * m4/wcsncat.m4: New file.
55167         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
55168         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
55169         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
55170         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
55171         * doc/posix-functions/wcsncat.texi: Mention the new module.
55173 2011-02-05  Bruno Haible  <bruno@clisp.org>
55175         New module 'wcscat'.
55176         * modules/wcscat: New file.
55177         * lib/wchar.in.h (wcscat): New declaration.
55178         * lib/wcscat.c: New file.
55179         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
55180         * m4/wcscat.m4: New file.
55181         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
55182         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
55183         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
55184         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
55185         * doc/posix-functions/wcscat.texi: Mention the new module.
55187 2011-02-05  Bruno Haible  <bruno@clisp.org>
55189         New module 'wcpncpy'.
55190         * modules/wcpncpy: New file.
55191         * lib/wchar.in.h (wcpncpy): New declaration.
55192         * lib/wcpncpy.c: New file.
55193         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
55194         * m4/wcpncpy.m4: New file.
55195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
55196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
55197         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
55198         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
55199         * doc/posix-functions/wcpncpy.texi: Mention the new module.
55201 2011-02-05  Bruno Haible  <bruno@clisp.org>
55203         New module 'wcsncpy'.
55204         * modules/wcsncpy: New file.
55205         * lib/wchar.in.h (wcsncpy): New declaration.
55206         * lib/wcsncpy.c: New file.
55207         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
55208         * m4/wcsncpy.m4: New file.
55209         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
55210         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
55211         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
55212         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
55213         * doc/posix-functions/wcsncpy.texi: Mention the new module.
55215 2011-02-05  Bruno Haible  <bruno@clisp.org>
55217         New module 'wcpcpy'.
55218         * modules/wcpcpy: New file.
55219         * lib/wchar.in.h (wcpcpy): New declaration.
55220         * lib/wcpcpy.c: New file.
55221         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
55222         * m4/wcpcpy.m4: New file.
55223         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
55224         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
55225         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
55226         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
55227         * doc/posix-functions/wcpcpy.texi: Mention the new module.
55229 2011-02-05  Bruno Haible  <bruno@clisp.org>
55231         New module 'wcscpy'.
55232         * modules/wcscpy: New file.
55233         * lib/wchar.in.h (wcscpy): New declaration.
55234         * lib/wcscpy.c: New file.
55235         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
55236         * m4/wcscpy.m4: New file.
55237         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
55238         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
55239         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
55240         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
55241         * doc/posix-functions/wcscpy.texi: Mention the new module.
55243 2011-02-05  Bruno Haible  <bruno@clisp.org>
55245         New module 'wcsnlen'.
55246         * modules/wcsnlen: New file.
55247         * lib/wchar.in.h (wcsnlen): New declaration.
55248         * lib/wcsnlen.c: New file.
55249         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
55250         * m4/wcsnlen.m4: New file.
55251         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
55252         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
55253         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
55254         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
55255         * doc/posix-functions/wcsnlen.texi: Mention the new module.
55257 2011-02-05  Bruno Haible  <bruno@clisp.org>
55259         New module 'wcslen'.
55260         * modules/wcslen: New file.
55261         * lib/wchar.in.h (wcslen): New declaration.
55262         * lib/wcslen.c: New file.
55263         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
55264         * m4/wcslen.m4: New file.
55265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
55266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
55267         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
55268         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
55269         * doc/posix-functions/wcslen.texi: Mention the new module.
55271 2011-02-05  Bruno Haible  <bruno@clisp.org>
55273         New module 'wmemset'.
55274         * modules/wmemset: New file.
55275         * lib/wchar.in.h (wmemset): New declaration.
55276         * lib/wmemset.c: New file.
55277         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
55278         * m4/wmemset.m4: New file.
55279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
55280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
55281         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
55282         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
55283         * doc/posix-functions/wmemset.texi: Mention the new module.
55285 2011-02-05  Bruno Haible  <bruno@clisp.org>
55287         New module 'wmemmove'.
55288         * modules/wmemmove: New file.
55289         * lib/wchar.in.h (wmemmove): New declaration.
55290         * lib/wmemmove.c: New file.
55291         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
55292         * m4/wmemmove.m4: New file.
55293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
55294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
55295         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
55296         HAVE_WMEMMOVE.
55297         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
55298         * doc/posix-functions/wmemmove.texi: Mention the new module.
55300 2011-02-05  Bruno Haible  <bruno@clisp.org>
55302         New module 'wmemcpy'.
55303         * modules/wmemcpy: New file.
55304         * lib/wchar.in.h (wmemcpy): New declaration.
55305         * lib/wmemcpy.c: New file.
55306         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
55307         * m4/wmemcpy.m4: New file.
55308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
55309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
55310         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
55311         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
55312         * doc/posix-functions/wmemcpy.texi: Mention the new module.
55314 2011-02-05  Bruno Haible  <bruno@clisp.org>
55316         New module 'wmemcmp'.
55317         * modules/wmemcmp: New file.
55318         * lib/wchar.in.h (wmemcmp): New declaration.
55319         * lib/wmemcmp.c: New file.
55320         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
55321         * m4/wmemcmp.m4: New file.
55322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
55323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
55324         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
55325         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
55326         * doc/posix-functions/wmemcmp.texi: Mention the new module.
55328 2011-02-07  Jim Meyering  <meyering@redhat.com>
55330         di-set, ino-map: new modules, from coreutils
55331         * lib/di-set.c: New file.
55332         * lib/di-set.h: Likewise.
55333         * lib/ino-map.c: Likewise.
55334         * lib/ino-map.h: Likewise.
55335         * modules/di-set: Likewise.
55336         * modules/di-set-tests: Likewise.
55337         * modules/ino-map: Likewise.
55338         * modules/ino-map-tests: Likewise.
55339         * tests/test-di-set.c: Likewise.
55340         * tests/test-ino-map.c: Likewise.
55342 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
55344         getloadavg: merge minor changes from Emacs
55346         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
55347         (getloadavg): Use memset, not bzero.
55349         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
55350         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
55351         clash (bug#86).
55353 2010-11-14  Bruno Haible  <bruno@clisp.org>
55355         Allow multiple gnulib generated replacements to coexist.
55356         * lib/getopt.in.h (struct option): Avoid identical redefinition.
55357         * lib/inttypes.in.h (imaxdiv_t): Likewise.
55358         * lib/langinfo.in.h (nl_item): Likewise.
55359         * lib/math.in.h (_NaN, NAN): Likewise.
55360         * lib/netdb.in.h (struct addrinfo): Likewise.
55361         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
55362         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
55363         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
55364         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
55365         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
55366         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
55367         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
55368         pthread_mutexattr_init, pthread_mutexattr_settype,
55369         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
55370         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
55371         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
55372         pthread_spin_trylock, pthread_spin_unlock): Likewise.
55373         * lib/sched.in.h (struct sched_param): Likewise.
55374         * lib/se-selinux.in.h (security_class_t, security_context_t,
55375         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
55376         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
55377         lsetfilecon, fsetfilecon, security_check_context,
55378         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
55379         Likewise.
55380         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
55381         Likewise.
55382         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
55383         _gl_function_taking_int_returning_void_t, union sigval,
55384         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
55385         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
55386         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
55387         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
55388         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
55389         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
55390         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
55391         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
55392         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
55393         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
55394         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
55395         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
55396         socklen_t, rpl_fd_isset): Likewise.
55397         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
55398         * lib/sys_time.in.h (struct timeval): Likewise.
55399         * lib/sys_times.in.h (struct tms): Likewise.
55400         * lib/sys_utsname.in.h (struct utsname):
55401         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
55402         * lib/unistd.in.h (getpagesize): Likewise.
55403         * lib/wchar.in.h (mbstate_t): Likewise.
55404         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55405         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
55406         towlower, towupper): Likewise.
55407         Reported by Sam Steingold <sds@gnu.org>.
55409 2011-02-05  Eric Blake  <eblake@redhat.com>
55411         unsetenv: work around Haiku issues
55412         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
55413         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
55415 2010-12-30  Bruce Korb  <bkorb@gnu.org>
55417         libposix: avoid calling error() within libposix
55418         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
55419         is defined.
55421 2011-02-05  Eric Blake  <eblake@redhat.com>
55423         strerror_r-posix: port to cygwin
55424         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
55425         implementation.
55426         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
55427         * tests/test-strerror_r.c (main): Fix test.
55428         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
55429         issue.
55431 2011-02-05  Bruno Haible  <bruno@clisp.org>
55433         New module 'wmemchr'.
55434         * modules/wmemchr: New file.
55435         * lib/wchar.in.h (wmemchr): New declaration.
55436         * lib/wmemchr.c: New file.
55437         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
55438         * m4/wmemchr.m4: New file.
55439         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
55440         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
55441         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
55442         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
55443         * doc/posix-functions/wmemchr.texi: Mention the new module.
55445 2011-02-04  Eric Blake  <eblake@redhat.com>
55447         fdopendir: detect FreeBSD bug
55448         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
55449         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
55451 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55453         stdbool: do not define HAVE_STDBOOL_H
55454         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
55455         AC_HEADER_STDBOOL.  All uses changed.  Do not define
55456         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
55457         imported from the latest Autoconf git.  It was motivated by Emacs,
55458         which uses gnulib but does not need HAVE_STDBOOL_H.
55460 2011-02-04  Bruno Haible  <bruno@clisp.org>
55462         wcsnrtombs: Prepare for new module wwcsnrtombs.
55463         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
55464         * lib/wcsnrtombs.c: Include it.
55465         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
55467         wcsrtombs: Prepare for new module wwcsrtombs.
55468         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
55469         * lib/wcsrtombs.c: Include it.
55470         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
55472         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
55473         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
55474         * lib/mbsnrtowcs.c: Include it.
55475         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
55477         mbsrtowcs: Prepare for new module mbsrtowwcs.
55478         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
55479         * lib/mbsrtowcs.c: Include it.
55480         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
55482 2011-02-04  Bruno Haible  <bruno@clisp.org>
55484         vasnprintf: Reduce use of malloc for small format strings.
55485         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
55486         (arguments): Add room for the first 7 arguments.
55487         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
55488         (char_directives, u8_directives, u16_directives, u32_directives): Add
55489         room for the first 7 directives.
55490         * lib/printf-parse.c: Include <string.h>.
55491         (PRINTF_PARSE): Change memory handling code so that it uses the first
55492         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
55493         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
55494         Reported by Pádraig Brady <P@draigbrady.com>.
55496 2011-01-31  Eric Blake  <eblake@redhat.com>
55498         dup2: work around Haiku bug
55499         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
55500         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
55501         * doc/posix-functions/dup2.texi (dup2): Document the bug.
55502         * tests/test-dup2.c (main): Enhance test.
55504 2011-01-31  Simon Josefsson  <simon@josefsson.org>
55506         doc: off_t is not available in eglibc 2.11.2 stdio.h.
55507         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
55508         declared by eglibc 2.11.2.
55509         * lib/stdio.in.h: Likewise.
55511 2011-01-31  Eric Blake  <eblake@redhat.com>
55513         ignore-value: add missing test dependency
55514         * tests/test-ignore-value.c: Revert previous change; stdio.h
55515         provides off_t.
55516         * modules/ignore-value-tests (Depends-on): Add missing dependency.
55518 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
55520         mktime: clarify long_int width checking
55521         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
55522         the top level, to make it clearer that the assumption about
55523         long_int width is being checked.  See
55524         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
55526 2011-01-30  Simon Josefsson  <simon@josefsson.org>
55528         ignore-value: Fix self-test.
55529         * tests/test-ignore-value.c: Include sys/types.h for off_t.
55531 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55533         TYPE_MAXIMUM: avoid theoretically undefined behavior
55534         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
55535         negative number, which the C Standard says has undefined behavior.
55536         In practice this is not a problem, but might as well do it by the book.
55537         Reported by Rich Felker and Eric Blake; see
55538         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
55539         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
55540         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55541         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55542         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
55543         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55544         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
55546         mktime: #undef mktime before #defining it
55547         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
55549         mktime: systematically normalize tm_isdst comparisons
55550         * lib/mktime.c (isdst_differ): New function.
55551         (__mktime_internal): Use it systematically for all isdst comparisons.
55552         This completes the fix for libc BZ #6723, and removes the need for
55553         normalizing tm_isdst.  See
55554         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
55555         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
55557         mktime: fix some integer overflow issues and sidestep the rest
55559         This was prompted by a bug report by Benjamin Lindner for MinGW
55560         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
55561         His bug is due to signed integer overflow (0 - INT_MIN), and I
55562         I scanned through mktime.c looking for other integer overflow
55563         problems, fixing all the bugs I found.
55565         Although the C Standard says the resulting code is still not safe
55566         in the presence of integer overflow, in practice it should be good
55567         enough for all real-world two's-complement implementations, except
55568         for debugging environments that deliberately trap on integer
55569         overflow (e.g., gcc -ftrapv).
55571         * lib/mktime.c (WRAPV): New macro.
55572         (SHR): Also check that long_int and time_t shift right in the
55573         usual way, before using the fast-but-unportable method.
55574         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
55575         used.  The code already assumed two's complement, so there's
55576         no need to test for alternatives.  All uses removed.
55577         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
55578         the C standard.  Problem reported by Rich Felker in
55579         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
55580         (twos_complement_arithmetic): Also check long_int and time_t.
55581         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
55582         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
55583         (__mktime_internal): Avoid integer overflow with unary subtraction
55584         in two instances where -1 - X is an adequate replacement for -X,
55585         since the calculations are approximate.
55587 2011-01-29  Eric Blake  <eblake@redhat.com>
55589         mktime: avoid infinite loop
55590         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
55591         type; behavior is still undefined but portable to all known targets.
55592         Reported by Rich Felker.
55594 2011-01-29  Simon Josefsson  <simon@josefsson.org>
55596         rename, unlink, same-inode: Relicense.
55597         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
55598         * modules/unlink (License): Likewise.
55599         * modules/same-inode (License): Likewise.
55601 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55603         mktime: avoid problems on NetBSD 5 / i386
55604         * lib/mktime.c (long_int): New type.  This works around a problem
55605         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
55606         but time_t is 64 bits, and where I expect the existing code is
55607         wrong in some cases.
55608         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
55609         (ydhms_diff): Bring back the compile-time check for wide-enough
55610         year and yday.
55612         mktime: fix misspelling in comment
55613         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
55614         This merges all recent glibc changes of importance.
55616 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55618         move-if-change: cope with concurrent mv of identical file.
55619         * build-aux/move-if-change (CMPPROG): Accept environment
55620         variable as an override for `cmp'.
55621         (usage): Document CMPPROG.
55622         Adjust comparison to drop stdout.  Cope with failure of mv if
55623         the target file exists and is identical to the source, for
55624         parallel builds.
55625         Report from H.J. Lu against binutils in PR binutils/12283.
55627 2011-01-28  Bruce Korb  <bkorb@gnu.org>
55629         * users.txt: Mention sharutils.
55631 2011-01-28  Simon Josefsson  <simon@josefsson.org>
55633         * users.txt: Mention OATH Toolkit.
55635 2011-01-27  Bruno Haible  <bruno@clisp.org>
55637         Prepare for supporting FreeBSD 10.
55638         * build-aux/config.libpath: Remove handling of freebsd1*.
55640 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
55642         Prepare for supporting FreeBSD 10.
55643         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
55644         match FreeBSD 10.0.
55646 2011-01-27  Bruno Haible  <bruno@clisp.org>
55648         vma-iter, get-rusage-as: Add OpenBSD support.
55649         * modules/vma-iter (configure.ac): Test for mquery.
55650         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
55651         * lib/vma-iter.c: Include <sys/mman.h>.
55652         (vma_iterate): Add an implementation based on mquery().
55653         * lib/resource-ext.h (get_rusage_as): Update comments.
55654         * lib/get-rusage-as.c: Likewise.
55655         * lib/get-rusage-data.c: Likewise.
55657 2011-01-26  Karl Berry  <karl@gnu.org>
55659         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
55660         variables to make it easier to override the makeinfo program used.
55662 2011-01-26  Eric Blake  <eblake@redhat.com>
55664         fcntl: work around Haiku F_DUPFD bugs
55665         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
55666         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
55667         cloexec bit on duplication.
55668         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
55670 2011-01-26  Bruno Haible  <bruno@clisp.org>
55672         Enable memory leak tests on AIX.
55673         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
55674         * tests/test-fprintf-posix3.c (main): Likewise.
55676 2011-01-26  Bruno Haible  <bruno@clisp.org>
55678         Tests for module 'get-rusage-data'.
55679         * modules/get-rusage-data-tests: New file.
55680         * tests/test-get-rusage-data.c: New file.
55682         New module 'get-rusage-data'.
55683         * lib/resource-ext.h (get_rusage_data): New declaration.
55684         * lib/get-rusage-data.c: New file.
55685         * modules/get-rusage-data: New file.
55687 2011-01-25  Bruno Haible  <bruno@clisp.org>
55689         get-rusage-as: Allow for easier testing.
55690         * lib/resource-ext.h (get_rusage_as): Add comment.
55691         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
55692         (main): New function for interactive testing.
55694 2011-01-25  Bruno Haible  <bruno@clisp.org>
55696         vma-iter: Treat Haiku like BeOS.
55697         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
55698         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
55700 2011-01-25  Eric Blake  <eblake@redhat.com>
55702         c-stack: fix regression on cygwin when libsigsegv is present
55703         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
55705 2011-01-24  Bruno Haible  <bruno@clisp.org>
55707         vma-iter: Avoid empty intervals.
55708         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
55709         on an empty interval.
55711 2011-01-24  Jim Meyering  <meyering@redhat.com>
55713         u64: remove unnecessary #include
55714         * lib/u64.h: Don't include <stddef.h>.  It was not used.
55716 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55718         Allow the user to avoid the HAVE_RAW_DECL_* macros.
55719         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
55721 2011-01-23  Bruno Haible  <bruno@clisp.org>
55723         New module 'vma-iter'.
55724         * lib/vma-iter.h: New file.
55725         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
55726         * modules/vma-iter: New file.
55727         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
55728         for get_rusage_as_via_iterator.
55729         (vma_iterate_callback): New function.
55730         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
55731         * modules/get-rusage-as (Depends-on): Add vma-iter.
55733 2011-01-23  Bruno Haible  <bruno@clisp.org>
55735         uninorm: Tweak includes.
55736         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
55737         Reported by Jim Meyering.
55739 2011-01-23  Bruno Haible  <bruno@clisp.org>
55741         get-rusage-as: Improve on NetBSD.
55742         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
55743         /proc, like on FreeBSD.
55745 2011-01-23  Jim Meyering  <meyering@redhat.com>
55747         xreadlink.h: remove unnecessary #include
55748         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
55750         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
55751         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
55753 2011-01-23  Bruno Haible  <bruno@clisp.org>
55755         get-rusage-as: Fix bug.
55756         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
55757         original limit when aborting the first loop.
55759 2011-01-23  Bruno Haible  <bruno@clisp.org>
55761         wctype: Ensure valid C syntax.
55762         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
55763         unconditionally, instead of gl_NEXT_HEADERS conditionally.
55765 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
55767         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
55768         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
55769         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
55770         as they are needed only for configure's test case.
55771         This removes two unnecessary symbols from config.h.
55773         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
55774         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
55775         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
55776         AC_CHECK_HEADERS_ONCE on a header that we also invoke
55777         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
55778         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
55779         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
55780         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
55781         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55782         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
55783         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
55784         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55785         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55786         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
55787         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
55788         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55789         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
55790         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
55792 2011-01-21  Eric Blake  <eblake@redhat.com>
55794         maintainer-makefile: work with older git for submodule check
55795         * top/maint.mk (public-submodule-commit): Rewrite to avoid
55796         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
55797         Reported by Matthias Bolte.
55799         bootstrap: minor portability fixes
55800         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
55801         (usage): Omit leading capital and trailing . on help phrases, per
55802         GNU Coding Standards.
55803         (check_versions, top level): Prefix messages with script name.
55805 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
55807         bootstrap: support --no-git option
55808         * build-aux/bootstrap: Add --no-git option, to be used when
55809         --gnulib-srcdir points to the exact desired checkout.
55811 2011-01-21  Eric Blake  <eblake@redhat.com>
55813         strerror_r-posix: work with glibc 2.13
55814         * lib/strerror_r.c (strerror_r): Fix return type.
55816 2011-01-21  Pádraig Brady  <P@draigBrady.com>
55817             Bruno Haible  <bruno@clisp.org>
55819         uN_strstr: New unit tests.
55820         * modules/unistr/u8-strstr-tests: New file.
55821         * modules/unistr/u16-strstr-tests: New file.
55822         * modules/unistr/u32-strstr-tests: New file.
55823         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
55824         * tests/unistr/test-u8-strstr.c: New file.
55825         * tests/unistr/test-u16-strstr.c: New file.
55826         * tests/unistr/test-u32-strstr.c: New file.
55828 2011-01-21  Pádraig Brady  <P@draigBrady.com>
55829             Bruno Haible  <bruno@clisp.org>
55831         Make uN_strstr functions O(n) worst-case.
55832         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
55833         16-bit and 32-bit unit cases, use the unibyte algorithm from
55834         lib/mbsstr.c.
55835         * lib/unistr/u8-strstr.c: Include <string.h>.
55836         (UNIT_IS_UINT8_T): New macro.
55837         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
55838         (U_STRLEN, U_STRNLEN): New macros.
55839         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
55840         (U_STRLEN, U_STRNLEN): New macros.
55841         * modules/unistr/u8-strstr (Depends-on): Add strstr.
55842         (configure.ac): Update required libunistring version.
55843         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
55844         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
55845         malloca.
55846         (configure.ac): Update required libunistring version.
55847         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
55848         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
55849         malloca.
55850         (configure.ac): Update required libunistring version.
55852 2011-01-21  Pádraig Brady  <P@draigBrady.com>
55853             Bruno Haible  <bruno@clisp.org>
55855         Prepare for faster uN_strstr functions.
55856         * lib/str-kmp.h: Support definable UNITs.
55857         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
55858         needle_len argument.
55859         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
55860         * lib/mbscasestr.c (mbscasestr): Likewise.
55862 2011-01-21  Pádraig Brady  <P@draigBrady.com>
55864         malloca-tests: make faster by unsetting MALLOC_PERTURB_
55865         * tests/test-malloca.c (main): Unset the environment variable
55866         to greatly speed up the test.
55867         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
55868         * modules/malloca-tests: Depend on unsetenv.
55870 2011-01-21  Pádraig Brady  <P@draigBrady.com>
55872         ignore-value: remove stdint dependency
55873         * lib/ignore-value.h: Remove <stdint.h>
55874         * modules/ignore-value: Remove stdint dependency.
55876 2011-01-21  Jim Meyering  <meyering@redhat.com>
55878         maint.mk: adjust variable name to be consistent with other gl_ vars
55879         * top/maint.mk (gl_public_submodule_commit): Rename the variable
55880         to be lower case.
55882 2011-01-20  Jim Meyering  <meyering@redhat.com>
55884         maint.mk: make "check" depend on public-submodule-commit by default
55885         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
55887 2011-01-20  Bruno Haible  <bruno@clisp.org>
55889         mbfile, mbiter: Complete change from 2008-12-21.
55890         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
55891         * m4/mbiter.m4 (gl_MBITER): Likewise.
55893 2011-01-20  Jim Meyering  <meyering@redhat.com>
55895         init.sh: insert space between each function name and "()"
55896         * tests/init.sh: Make it a little easier to see that a function's
55897         name is "warn_", and not "warn" when looking at the first part of
55898         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
55900 2011-01-20  Jim Meyering  <meyering@redhat.com>
55902         mountlist: clean up code formatting
55903         * lib/mountlist.c (read_file_system_list): Split a long line,
55904         correct bracing style, use NULL in place of "(struct statfs *)0",
55905         don't parenthesize return value, add spaces around "=" and after
55906         ";-in-for-stmt".
55908 2011-01-14  Markus Duft  <mduft@gentoo.org>
55910         mountlist: add support for Interix
55911         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
55912         Apply statvfs to all entries of /dev/fs.
55913         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
55914         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
55916 2011-01-20  Jim Meyering  <meyering@redhat.com>
55918         maint.mk: improve the public-submodule-commit rule
55919         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
55920         to suppress printing of its commands... unless V=1.
55921         Add git submodule's --quiet option to suppress printing of e.g.,
55922         "Entering gnulib" output.
55923         "cd" into $(srcdir) before running git submodule.
55925 2011-01-20  Bruno Haible  <bruno@clisp.org>
55927         include_next: Fix bug introduced on 2011-01-18.
55928         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
55929         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
55930         ac_cv_header_... variable if the second argument is not 'check'.
55931         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
55932         gl_NEXT_HEADERS_INTERNAL.
55934 2011-01-20  Bruno Haible  <bruno@clisp.org>
55936         Allow the user to avoid the GNULIB_TEST_* macros.
55937         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
55938         Suggested by Paul Eggert.
55940 2011-01-14  Jim Meyering  <meyering@redhat.com>
55942         bootstrap: avoid failure when there is no .gitmodules file
55943         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
55944         has been assigned to, even when its value is the empty string.
55945         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
55946         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
55947         Reported by John W. Eaton <jwe@gnu.org>.
55949 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55951         assume <ctype.h>, ..., <time.h> exist
55952         For years gnulib has been assuming the existence of the headers
55953         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
55954         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
55955         them, since they don't appear to be needed.
55956         * README (Portability guidelines): Document this.
55957         * lib/flock.c: Assume <fcntl.h> exists.
55958         * lib/regex_internal.h: Assume <locale.h> exists.
55959         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
55960         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
55961         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
55962         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
55963         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
55964         * m4/regex.m4 (gl_REGEX): Likewise.
55965         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
55966         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
55967         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
55968         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
55969         * tests/test-argp.c: Likewise.
55970         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
55972         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
55973         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
55974         AA_APPLE_UNIVERSAL_BUILD.  See
55975         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
55976         * NEWS: Document this.
55978 2011-01-19  Eric Blake  <eblake@redhat.com>
55980         c-stack: assume stack overflow if SA_SIGINFO unsupported
55981         * lib/c-stack.c (SIGACTION_WORKS): Rename...
55982         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
55983         sigaction will work.
55984         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
55985         behavior match Linux.
55986         * tests/test-c-stack.c (main): Prefer NULL for pointers.
55988         stdbool-tests: accommodate Haiku
55989         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
55991         binary-io: fix O_TEXT on Haiku
55992         * modules/binary-io (Depends-on): Add fcntl-h.
55993         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
55994         than blindly undefining O_TEXT.
55995         Reported by Scott McCreary.
55997 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
55999         include_next: do not check for standard headers like stddef.h
56001         I found this problem when modifying Emacs to use gnulib.
56002         I noticed that it added HAVE_STDDEF_H to config.h, even though
56003         gnulib always assumes <stddef.h> exists as per README and this
56004         symbol is unnecessary.
56005         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
56006         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
56007         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
56008         faster for headers like stddef.h that are known to exist.
56009         (gl_CHECK_NEXT_HEADERS): Use it.
56010         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
56011         rather than gl_CHECK_NEXT_HEADERS.
56012         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
56013         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
56015 2011-01-18  Eric Blake  <eblake@redhat.com>
56017         ansi-c++-opt: skip C++ dependency style if C++ is unused
56018         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
56019         tests when we know C++ compilation is not desired.
56020         Reported by Scott McCreary.
56022 2011-01-18  Bruno Haible  <bruno@clisp.org>
56024         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
56025         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
56026         (main): Perform test also when getrlimit and setrlimit don't exist or
56027         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
56028         limiting the address space size using setrlimit, compare the address
56029         space size before and after the test.
56030         * tests/test-dprintf-posix2.c: Likewise.
56031         * tests/test-fprintf-posix3.sh: Update skip messages.
56032         * tests/test-dprintf-posix2.sh: Likewise.
56033         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
56034         * modules/dprintf-posix-tests (Depends-on): Likewise.
56035         Reported by Bruce Korb <bkorb@gnu.org> and
56036         Gary V. Vaughan <gary@gnu.org>.
56038 2011-01-18  Bruno Haible  <bruno@clisp.org>
56040         get-rusage-as: Improvement for Cygwin.
56041         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
56042         areas that are merely reserved.
56044 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56046         strftime: remove dependencies on multibyte modules
56048         strftime depended on mbrlen, mbsinit, and wchar, but these modules
56049         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
56050         only if __osf__ is defined, and I suspect OSF doesn't need these
56051         other modules.  If my guess is wrong, we'll need to come up with a
56052         variant of strftime that doesn't need the multibyte modules.
56054         I discovered this problem when attempting modify Emacs to use the
56055         strftime module.  With the previous gnulib, this caused Emacs to
56056         need 31 new files, ranging from lib/config.charset to
56057         m4/wint_t.m4.  This was overkill and I expect would be offputting
56058         to the Emacs maintainers.  After this change, only 6 new files are
56059         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
56060         stdbool.m4, and tm_gmtoff.m4.
56062         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
56063         Suggested by Bruno Haible in
56064         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
56065         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
56066         and do not check for wchar.h.
56067         * modules/strftime (Files): Remove m4/mbstate_t.m4.
56068         (Depends-on): Remove mbrlen, mbsinit, wchar.
56070 2011-01-18  Bruno Haible  <bruno@clisp.org>
56072         Tests for module 'get-rusage-as'.
56073         * modules/get-rusage-as-tests: New file.
56074         * tests/test-get-rusage-as.c: New file.
56076         New module 'get-rusage-as'.
56077         * modules/get-rusage-as: New file.
56078         * lib/resource-ext.h: New file.
56079         * lib/get-rusage-as.c: New file.
56081 2011-01-17  Eric Blake  <eblake@redhat.com>
56083         sigaction: relax license from LGPLv3+ to LGPLv2+
56084         * modules/sigaction (License): Relax to LGPLv2+.
56086 2011-01-14  Bruno Haible  <bruno@clisp.org>
56088         filemode: Make function declarations usable in C++ mode.
56089         * lib/filemode.h: Enclose function declarations in extern "C" block.
56090         Reported by John W. Eaton <jwe@gnu.org>.
56092 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
56094         save-cwd: no longer include "xgetcwd.h"
56095         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
56096         This avoids a compilation failure in projects that use save-cwd
56097         without also using the xgetcwd module.
56099 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56101         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
56102         This is so that a program like Emacs, which needs only dtoastr,
56103         does not have to bother with distributing and compiling ftoastr
56104         and ldtoastr.
56105         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
56106         * modules/dtoastr, modules/ldtoastr: New files.
56107         * modules/ftoastr: Now works just for 'float'.
56108         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
56109         (Makefile.am): Remove ftoastr.h (not needed and no effect),
56110         dtoastr.c, ldtoastr.c.
56112 2011-01-11  Jim Meyering  <meyering@redhat.com>
56114         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
56115         There is no need to work around the lack of the fchdir function,
56116         since gnulib can now provide a replacement when required.
56117         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
56118         * modules/save-cwd (Depends-on): Add fchdir.
56120 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56122         openat, save-cwd: avoid xmalloc
56124         This removes a direct (but undocumented) dependency of openat on
56125         xalloc, along with an indirect dependency via save-cwd.  It also
56126         removes a dependency of save-cwd on xgetcwd, and thereby
56127         indirectly on xalloc.  This change causes the openat substitute
56128         to fall back on save_cwd when memory is tight, and for save_cwd to
56129         fail instead of dying when memory is tight, but that's good enough.
56130         Problem and initial idea for fix reported by Bastien Roucaries in
56131         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
56133         * lib/openat-proc.c: Include stdlib.h (for malloc), not
56134         xalloc.h (for xmalloc).
56135         (openat_proc_name): Use malloc, not xmalloc.
56136         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
56137         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
56139         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
56140         This avoids heap allocation for file names whose lengths are in
56141         the range 512..1023, with the upper bound increasing to at most
56142         4031 depending on the platform's PATH_MAX.  (We do not want
56143         pathmax.h here as it might supply a non-constant PATH_MAX.)
56144         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
56145         Perhaps they should be moved to malloca.h?
56146         (OPENAT_BUFFER_SIZE): Use them.
56148 2011-01-10  Bruno Haible  <bruno@clisp.org>
56150         doc: Update users.txt.
56151         * users.txt: Add recutils.
56153 2011-01-09  Karl Berry  <karl@gnu.org>
56155         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
56157         * doc/configmake.texi: New file.
56158         * doc/gnulib.texi: Include it.
56159         * modules/configmake: Move documentation from here.
56161 2011-01-09  Bruno Haible  <bruno@clisp.org>
56163         Update to Unicode 6.0.0.
56164         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
56165         (get_lbp): Update for Unicode 6.0.0.
56166         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
56167         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
56168         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
56169         U+11001, U+11038..U+11046. Remove U+06DE.
56170         (uc_width): Fix bounds of planes.
56171         * tests/uniwidth/test-uc_width2.sh: Same updates as in
56172         lib/uniwidth/width.c.
56173         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
56174         trailing whitespace removed.
56175         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
56176         without comments, but with the original copyright notice.
56177         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
56178         * lib/unicase/ignorable.h: Likewise.
56179         * lib/unicase/tocasefold.h: Likewise.
56180         * lib/unicase/tolower.h: Likewise.
56181         * lib/unicase/totitle.h: Likewise.
56182         * lib/unicase/toupper.h: Likewise.
56183         * lib/unictype/bidi_of.h: Likewise.
56184         * lib/unictype/blocks.h: Likewise.
56185         * lib/unictype/categ_C.h: Likewise.
56186         * lib/unictype/categ_Cn.h: Likewise.
56187         * lib/unictype/categ_L.h: Likewise.
56188         * lib/unictype/categ_Ll.h: Likewise.
56189         * lib/unictype/categ_Lm.h: Likewise.
56190         * lib/unictype/categ_Lo.h: Likewise.
56191         * lib/unictype/categ_Lu.h: Likewise.
56192         * lib/unictype/categ_M.h: Likewise.
56193         * lib/unictype/categ_Mc.h: Likewise.
56194         * lib/unictype/categ_Me.h: Likewise.
56195         * lib/unictype/categ_Mn.h: Likewise.
56196         * lib/unictype/categ_N.h: Likewise.
56197         * lib/unictype/categ_Nd.h: Likewise.
56198         * lib/unictype/categ_No.h: Likewise.
56199         * lib/unictype/categ_P.h: Likewise.
56200         * lib/unictype/categ_Po.h: Likewise.
56201         * lib/unictype/categ_S.h: Likewise.
56202         * lib/unictype/categ_Sc.h: Likewise.
56203         * lib/unictype/categ_Sk.h: Likewise.
56204         * lib/unictype/categ_Sm.h: Likewise.
56205         * lib/unictype/categ_So.h: Likewise.
56206         * lib/unictype/categ_of.h: Likewise.
56207         * lib/unictype/combining.h: Likewise.
56208         * lib/unictype/ctype_alnum.h: Likewise.
56209         * lib/unictype/ctype_alpha.h: Likewise.
56210         * lib/unictype/ctype_graph.h: Likewise.
56211         * lib/unictype/ctype_lower.h: Likewise.
56212         * lib/unictype/ctype_print.h: Likewise.
56213         * lib/unictype/ctype_punct.h: Likewise.
56214         * lib/unictype/ctype_upper.h: Likewise.
56215         * lib/unictype/decdigit.h: Likewise.
56216         * lib/unictype/digit.h: Likewise.
56217         * lib/unictype/numeric.h: Likewise.
56218         * lib/unictype/pr_alphabetic.h: Likewise.
56219         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56220         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56221         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56222         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56223         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56224         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56225         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56226         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56227         * lib/unictype/pr_case_ignorable.h: Likewise.
56228         * lib/unictype/pr_cased.h: Likewise.
56229         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
56230         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
56231         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
56232         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
56233         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
56234         * lib/unictype/pr_combining.h: Likewise.
56235         * lib/unictype/pr_composite.h: Likewise.
56236         * lib/unictype/pr_currency_symbol.h: Likewise.
56237         * lib/unictype/pr_decimal_digit.h: Likewise.
56238         * lib/unictype/pr_deprecated.h: Likewise.
56239         * lib/unictype/pr_format_control.h: Likewise.
56240         * lib/unictype/pr_grapheme_base.h: Likewise.
56241         * lib/unictype/pr_grapheme_extend.h: Likewise.
56242         * lib/unictype/pr_grapheme_link.h: Likewise.
56243         * lib/unictype/pr_id_continue.h: Likewise.
56244         * lib/unictype/pr_id_start.h: Likewise.
56245         * lib/unictype/pr_ideographic.h: Likewise.
56246         * lib/unictype/pr_lowercase.h: Likewise.
56247         * lib/unictype/pr_math.h: Likewise.
56248         * lib/unictype/pr_numeric.h: Likewise.
56249         * lib/unictype/pr_other_alphabetic.h: Likewise.
56250         * lib/unictype/pr_other_id_continue.h: Likewise.
56251         * lib/unictype/pr_other_math.h: Likewise.
56252         * lib/unictype/pr_punctuation.h: Likewise.
56253         * lib/unictype/pr_sentence_terminal.h: Likewise.
56254         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56255         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56256         * lib/unictype/pr_unified_ideograph.h: Likewise.
56257         * lib/unictype/pr_uppercase.h: Likewise.
56258         * lib/unictype/pr_xid_continue.h: Likewise.
56259         * lib/unictype/pr_xid_start.h: Likewise.
56260         * lib/unictype/scripts.h: Likewise.
56261         * lib/unictype/scripts_byname.gperf: Likewise.
56262         * lib/unictype/sy_java_ident.h: Likewise.
56263         * lib/unigbrk/gbrkprop.h: Likewise.
56264         * lib/unilbrk/lbrkprop1.h: Likewise.
56265         * lib/unilbrk/lbrkprop2.h: Likewise.
56266         * lib/uninorm/decomposition-table2.h: Likewise.
56267         * lib/uniwbrk/wbrkprop.h: Likewise.
56268         * tests/unicase/test-cased.c: Likewise.
56269         * tests/unicase/test-ignorable.c: Likewise.
56270         * tests/unicase/test-uc_tolower.c: Likewise.
56271         * tests/unicase/test-uc_totitle.c: Likewise.
56272         * tests/unicase/test-uc_toupper.c: Likewise.
56273         * tests/unictype/test-categ_C.c: Likewise.
56274         * tests/unictype/test-categ_Cn.c: Likewise.
56275         * tests/unictype/test-categ_L.c: Likewise.
56276         * tests/unictype/test-categ_Ll.c: Likewise.
56277         * tests/unictype/test-categ_Lm.c: Likewise.
56278         * tests/unictype/test-categ_Lo.c: Likewise.
56279         * tests/unictype/test-categ_Lu.c: Likewise.
56280         * tests/unictype/test-categ_M.c: Likewise.
56281         * tests/unictype/test-categ_Mc.c: Likewise.
56282         * tests/unictype/test-categ_Me.c: Likewise.
56283         * tests/unictype/test-categ_Mn.c: Likewise.
56284         * tests/unictype/test-categ_N.c: Likewise.
56285         * tests/unictype/test-categ_Nd.c: Likewise.
56286         * tests/unictype/test-categ_No.c: Likewise.
56287         * tests/unictype/test-categ_P.c: Likewise.
56288         * tests/unictype/test-categ_Po.c: Likewise.
56289         * tests/unictype/test-categ_S.c: Likewise.
56290         * tests/unictype/test-categ_Sc.c: Likewise.
56291         * tests/unictype/test-categ_Sk.c: Likewise.
56292         * tests/unictype/test-categ_Sm.c: Likewise.
56293         * tests/unictype/test-categ_So.c: Likewise.
56294         * tests/unictype/test-ctype_alnum.c: Likewise.
56295         * tests/unictype/test-ctype_alpha.c: Likewise.
56296         * tests/unictype/test-ctype_graph.c: Likewise.
56297         * tests/unictype/test-ctype_lower.c: Likewise.
56298         * tests/unictype/test-ctype_print.c: Likewise.
56299         * tests/unictype/test-ctype_punct.c: Likewise.
56300         * tests/unictype/test-ctype_upper.c: Likewise.
56301         * tests/unictype/test-decdigit.h: Likewise.
56302         * tests/unictype/test-digit.h: Likewise.
56303         * tests/unictype/test-numeric.h: Likewise.
56304         * tests/unictype/test-pr_alphabetic.c: Likewise.
56305         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56306         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56307         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56308         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56309         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56310         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56311         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56312         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56313         * tests/unictype/test-pr_case_ignorable.c: Likewise.
56314         * tests/unictype/test-pr_cased.c: Likewise.
56315         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
56316         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
56317         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
56318         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
56319         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
56320         * tests/unictype/test-pr_combining.c: Likewise.
56321         * tests/unictype/test-pr_composite.c: Likewise.
56322         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56323         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56324         * tests/unictype/test-pr_deprecated.c: Likewise.
56325         * tests/unictype/test-pr_format_control.c: Likewise.
56326         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56327         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56328         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56329         * tests/unictype/test-pr_id_continue.c: Likewise.
56330         * tests/unictype/test-pr_id_start.c: Likewise.
56331         * tests/unictype/test-pr_ideographic.c: Likewise.
56332         * tests/unictype/test-pr_lowercase.c: Likewise.
56333         * tests/unictype/test-pr_math.c: Likewise.
56334         * tests/unictype/test-pr_numeric.c: Likewise.
56335         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56336         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56337         * tests/unictype/test-pr_other_math.c: Likewise.
56338         * tests/unictype/test-pr_punctuation.c: Likewise.
56339         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56340         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56341         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56342         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56343         * tests/unictype/test-pr_uppercase.c: Likewise.
56344         * tests/unictype/test-pr_xid_continue.c: Likewise.
56345         * tests/unictype/test-pr_xid_start.c: Likewise.
56346         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
56347         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
56348         changes.
56349         * lib/unictype/categ_Cc.h: Likewise.
56350         * lib/unictype/categ_Cf.h: Likewise.
56351         * lib/unictype/categ_Co.h: Likewise.
56352         * lib/unictype/categ_Cs.h: Likewise.
56353         * lib/unictype/categ_Lt.h: Likewise.
56354         * lib/unictype/categ_Nl.h: Likewise.
56355         * lib/unictype/categ_Pc.h: Likewise.
56356         * lib/unictype/categ_Pd.h: Likewise.
56357         * lib/unictype/categ_Pe.h: Likewise.
56358         * lib/unictype/categ_Pf.h: Likewise.
56359         * lib/unictype/categ_Pi.h: Likewise.
56360         * lib/unictype/categ_Ps.h: Likewise.
56361         * lib/unictype/categ_Z.h: Likewise.
56362         * lib/unictype/categ_Zl.h: Likewise.
56363         * lib/unictype/categ_Zp.h: Likewise.
56364         * lib/unictype/categ_Zs.h: Likewise.
56365         * lib/unictype/ctype_blank.h: Likewise.
56366         * lib/unictype/ctype_cntrl.h: Likewise.
56367         * lib/unictype/ctype_digit.h: Likewise.
56368         * lib/unictype/ctype_space.h: Likewise.
56369         * lib/unictype/ctype_xdigit.h: Likewise.
56370         * lib/unictype/mirror.h: Likewise.
56371         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56372         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56373         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56374         * lib/unictype/pr_bidi_control.h: Likewise.
56375         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56376         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56377         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56378         * lib/unictype/pr_bidi_pdf.h: Likewise.
56379         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56380         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56381         * lib/unictype/pr_dash.h: Likewise.
56382         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56383         * lib/unictype/pr_diacritic.h: Likewise.
56384         * lib/unictype/pr_extender.h: Likewise.
56385         * lib/unictype/pr_hex_digit.h: Likewise.
56386         * lib/unictype/pr_hyphen.h: Likewise.
56387         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56388         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56389         * lib/unictype/pr_ignorable_control.h: Likewise.
56390         * lib/unictype/pr_iso_control.h: Likewise.
56391         * lib/unictype/pr_join_control.h: Likewise.
56392         * lib/unictype/pr_left_of_pair.h: Likewise.
56393         * lib/unictype/pr_line_separator.h: Likewise.
56394         * lib/unictype/pr_logical_order_exception.h: Likewise.
56395         * lib/unictype/pr_non_break.h: Likewise.
56396         * lib/unictype/pr_not_a_character.h: Likewise.
56397         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56398         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56399         * lib/unictype/pr_other_id_start.h: Likewise.
56400         * lib/unictype/pr_other_lowercase.h: Likewise.
56401         * lib/unictype/pr_other_uppercase.h: Likewise.
56402         * lib/unictype/pr_paired_punctuation.h: Likewise.
56403         * lib/unictype/pr_paragraph_separator.h: Likewise.
56404         * lib/unictype/pr_pattern_syntax.h: Likewise.
56405         * lib/unictype/pr_pattern_white_space.h: Likewise.
56406         * lib/unictype/pr_private_use.h: Likewise.
56407         * lib/unictype/pr_quotation_mark.h: Likewise.
56408         * lib/unictype/pr_radical.h: Likewise.
56409         * lib/unictype/pr_soft_dotted.h: Likewise.
56410         * lib/unictype/pr_space.h: Likewise.
56411         * lib/unictype/pr_titlecase.h: Likewise.
56412         * lib/unictype/pr_variation_selector.h: Likewise.
56413         * lib/unictype/pr_white_space.h: Likewise.
56414         * lib/unictype/pr_zero_width.h: Likewise.
56415         * lib/unictype/sy_c_ident.h: Likewise.
56416         * lib/unictype/sy_c_whitespace.h: Likewise.
56417         * lib/unictype/sy_java_whitespace.h: Likewise.
56418         * lib/uninorm/composition-table.gperf: Likewise.
56419         * lib/uninorm/decomposition-table1.h: Likewise.
56420         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
56421         LB8.
56422         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56423         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56424         * modules/unictype/*: Bump version number of expected libunistring
56425         version.
56427 2011-01-09  Bruno Haible  <bruno@clisp.org>
56429         Update to Unicode 5.2.0.
56430         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
56431         trailing whitespace removed.
56433 2011-01-09  Bruno Haible  <bruno@clisp.org>
56435         New Unicode character properties, from Unicode 5.2.0.
56436         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
56437         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
56438         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
56439         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
56440         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
56441         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
56442         uc_is_property_cased, uc_is_property_case_ignorable,
56443         uc_is_property_changes_when_lowercased,
56444         uc_is_property_changes_when_uppercased,
56445         uc_is_property_changes_when_titlecased,
56446         uc_is_property_changes_when_casefolded,
56447         uc_is_property_changes_when_casemapped): New declarations.
56448         * lib/unictype/pr_byname.gperf: Add the new properties.
56449         * modules/unictype/property-byname (Depends-on): Depend on the new
56450         properties modules.
56451         * modules/unictype/property-all (Depends-on): Likewise.
56452         * MODULES.html.sh (Unicode string functions): Add
56453         unictype/property-case-ignorable, unictype/property-cased,
56454         unictype/property-changes-when-casefolded,
56455         unictype/property-changes-when-casemapped,
56456         unictype/property-changes-when-lowercased,
56457         unictype/property-changes-when-titlecased,
56458         unictype/property-changes-when-uppercased.
56460         New module 'unictype/property-changes-when-casemapped'.
56461         * modules/unictype/property-changes-when-casemapped: New file.
56462         * lib/unictype/pr_changes_when_casemapped.c: New file.
56463         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
56464         generated by gen-uni-tables.
56465         * modules/unictype/property-changes-when-casemapped-tests: New file.
56466         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
56467         automatically generated by gen-uni-tables.
56469         New module 'unictype/property-changes-when-casefolded'.
56470         * modules/unictype/property-changes-when-casefolded: New file.
56471         * lib/unictype/pr_changes_when_casefolded.c: New file.
56472         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
56473         generated by gen-uni-tables.
56474         * modules/unictype/property-changes-when-casefolded-tests: New file.
56475         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
56476         automatically generated by gen-uni-tables.
56478         New module 'unictype/property-changes-when-titlecased'.
56479         * modules/unictype/property-changes-when-titlecased: New file.
56480         * lib/unictype/pr_changes_when_titlecased.c: New file.
56481         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
56482         generated by gen-uni-tables.
56483         * modules/unictype/property-changes-when-titlecased-tests: New file.
56484         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
56485         automatically generated by gen-uni-tables.
56487         New module 'unictype/property-changes-when-uppercased'.
56488         * modules/unictype/property-changes-when-uppercased: New file.
56489         * lib/unictype/pr_changes_when_uppercased.c: New file.
56490         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
56491         generated by gen-uni-tables.
56492         * modules/unictype/property-changes-when-uppercased-tests: New file.
56493         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
56494         automatically generated by gen-uni-tables.
56496         New module 'unictype/property-changes-when-lowercased'.
56497         * modules/unictype/property-changes-when-lowercased: New file.
56498         * lib/unictype/pr_changes_when_lowercased.c: New file.
56499         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
56500         generated by gen-uni-tables.
56501         * modules/unictype/property-changes-when-lowercased-tests: New file.
56502         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
56503         automatically generated by gen-uni-tables.
56505         New module 'unictype/property-case-ignorable'.
56506         * modules/unictype/property-case-ignorable: New file.
56507         * lib/unictype/pr_case_ignorable.c: New file.
56508         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
56509         by gen-uni-tables.
56510         * modules/unictype/property-case-ignorable-tests: New file.
56511         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
56512         generated by gen-uni-tables.
56514         New module 'unictype/property-cased'.
56515         * modules/unictype/property-cased: New file.
56516         * lib/unictype/pr_cased.c: New file.
56517         * lib/unictype/pr_cased.h: New file, automatically generated by
56518         gen-uni-tables.
56519         * modules/unictype/property-cased-tests: New file.
56520         * tests/unictype/test-pr_cased.c: New file, automatically generated by
56521         gen-uni-tables.
56523 2011-01-09  Bruno Haible  <bruno@clisp.org>
56525         Update to Unicode 5.2.0.
56526         * lib/gen-uni-tables.c (output_predicate, output_category,
56527         output_combclass, output_bidi_category, output_decimal_digit_test,
56528         output_decimal_digit, output_digit_test, output_digit,
56529         output_numeric_test, output_numeric, output_mirror, output_scripts,
56530         output_scripts_byname, output_blocks, output_ident_category): Fix
56531         comment header.
56532         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
56533         get_wbp.
56534         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
56535         items.
56536         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
56537         Changes_When_Lowercased, Changes_When_Uppercased,
56538         Changes_When_Titlecased, Changes_When_Casefolded,
56539         Changes_When_Casemapped.
56540         (is_property_alphabetic, is_property_default_ignorable_code_point):
56541         Update for Unicode 5.2.0.
56542         (is_property_cased, is_property_case_ignorable,
56543         is_property_changes_when_lowercased,
56544         is_property_changes_when_uppercased,
56545         is_property_changes_when_titlecased,
56546         is_property_changes_when_casefolded,
56547         is_property_changes_when_casemapped): New functions.
56548         (output_properties): Output also the properties cased, case_ignorable,
56549         changes_when_lowercased, changes_when_uppercased,
56550         changes_when_titlecased, changes_when_casefolded,
56551         changes_when_casemapped.
56552         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
56553         Unicode TR#11 revision 17 -> 19.
56554         (LBP_CP): New enumeration value.
56555         (LBP_*): Adjust values accordingly.
56556         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
56557         TR#14 revision 22 -> 24.
56558         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
56559         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
56560         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
56561         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
56562         is_WBP_MIDLETTER.
56563         (output_composition_tables): Allow for 24 bits instead of 16 bits in
56564         the code1 and code2 of each composition rule.
56565         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
56566         * lib/unicase/ignorable.h: Likewise.
56567         * lib/unicase/tocasefold.h: Likewise.
56568         * lib/unicase/tolower.h: Likewise.
56569         * lib/unicase/totitle.h: Likewise.
56570         * lib/unicase/toupper.h: Likewise.
56571         * lib/unictype/bidi_of.h: Likewise.
56572         * lib/unictype/blocks.h: Likewise.
56573         * lib/unictype/categ_C.h: Likewise.
56574         * lib/unictype/categ_Cf.h: Likewise.
56575         * lib/unictype/categ_Cn.h: Likewise.
56576         * lib/unictype/categ_L.h: Likewise.
56577         * lib/unictype/categ_Ll.h: Likewise.
56578         * lib/unictype/categ_Lm.h: Likewise.
56579         * lib/unictype/categ_Lo.h: Likewise.
56580         * lib/unictype/categ_Lu.h: Likewise.
56581         * lib/unictype/categ_M.h: Likewise.
56582         * lib/unictype/categ_Mc.h: Likewise.
56583         * lib/unictype/categ_Mn.h: Likewise.
56584         * lib/unictype/categ_N.h: Likewise.
56585         * lib/unictype/categ_Nd.h: Likewise.
56586         * lib/unictype/categ_Nl.h: Likewise.
56587         * lib/unictype/categ_No.h: Likewise.
56588         * lib/unictype/categ_P.h: Likewise.
56589         * lib/unictype/categ_Pd.h: Likewise.
56590         * lib/unictype/categ_Po.h: Likewise.
56591         * lib/unictype/categ_S.h: Likewise.
56592         * lib/unictype/categ_Sc.h: Likewise.
56593         * lib/unictype/categ_So.h: Likewise.
56594         * lib/unictype/categ_of.h: Likewise.
56595         * lib/unictype/combining.h: Likewise.
56596         * lib/unictype/ctype_alnum.h: Likewise.
56597         * lib/unictype/ctype_alpha.h: Likewise.
56598         * lib/unictype/ctype_graph.h: Likewise.
56599         * lib/unictype/ctype_lower.h: Likewise.
56600         * lib/unictype/ctype_print.h: Likewise.
56601         * lib/unictype/ctype_punct.h: Likewise.
56602         * lib/unictype/ctype_upper.h: Likewise.
56603         * lib/unictype/decdigit.h: Likewise.
56604         * lib/unictype/digit.h: Likewise.
56605         * lib/unictype/numeric.h: Likewise.
56606         * lib/unictype/pr_alphabetic.h: Likewise.
56607         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56608         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56609         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56610         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56611         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56612         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56613         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56614         * lib/unictype/pr_combining.h: Likewise.
56615         * lib/unictype/pr_composite.h: Likewise.
56616         * lib/unictype/pr_currency_symbol.h: Likewise.
56617         * lib/unictype/pr_dash.h: Likewise.
56618         * lib/unictype/pr_decimal_digit.h: Likewise.
56619         * lib/unictype/pr_deprecated.h: Likewise.
56620         * lib/unictype/pr_diacritic.h: Likewise.
56621         * lib/unictype/pr_extender.h: Likewise.
56622         * lib/unictype/pr_grapheme_base.h: Likewise.
56623         * lib/unictype/pr_grapheme_extend.h: Likewise.
56624         * lib/unictype/pr_grapheme_link.h: Likewise.
56625         * lib/unictype/pr_id_continue.h: Likewise.
56626         * lib/unictype/pr_id_start.h: Likewise.
56627         * lib/unictype/pr_ideographic.h: Likewise.
56628         * lib/unictype/pr_ignorable_control.h: Likewise.
56629         * lib/unictype/pr_logical_order_exception.h: Likewise.
56630         * lib/unictype/pr_lowercase.h: Likewise.
56631         * lib/unictype/pr_numeric.h: Likewise.
56632         * lib/unictype/pr_other_alphabetic.h: Likewise.
56633         * lib/unictype/pr_punctuation.h: Likewise.
56634         * lib/unictype/pr_sentence_terminal.h: Likewise.
56635         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56636         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56637         * lib/unictype/pr_unified_ideograph.h: Likewise.
56638         * lib/unictype/pr_uppercase.h: Likewise.
56639         * lib/unictype/pr_xid_continue.h: Likewise.
56640         * lib/unictype/pr_xid_start.h: Likewise.
56641         * lib/unictype/pr_zero_width.h: Likewise.
56642         * lib/unictype/scripts.h: Likewise.
56643         * lib/unictype/scripts_byname.gperf: Likewise.
56644         * lib/unictype/sy_java_ident.h: Likewise.
56645         * lib/unigbrk/gbrkprop.h: Likewise.
56646         * lib/unilbrk/lbrkprop1.h: Likewise.
56647         * lib/unilbrk/lbrkprop2.h: Likewise.
56648         * lib/unilbrk/lbrktables.h: Likewise.
56649         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
56650         LBP_CP. Implement rule LB30.
56651         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
56652         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
56653         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
56654         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
56655         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
56656         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
56657         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
56658         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
56659         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
56660         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
56661         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
56662         bits instead of 16 bits in the code1 and code2 of each composition
56663         rule.
56664         (uc_composition): Update for Unicode 5.2.0.
56665         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
56666         * lib/uninorm/decomposition-table2.h: Likewise.
56667         * lib/uniwbrk/wbrkprop.h: Likewise.
56668         * tests/unicase/test-cased.c: Likewise.
56669         * tests/unicase/test-ignorable.c: Likewise.
56670         * tests/unicase/test-uc_tolower.c: Likewise.
56671         * tests/unicase/test-uc_totitle.c: Likewise.
56672         * tests/unicase/test-uc_toupper.c: Likewise.
56673         * tests/unictype/test-categ_C.c: Likewise.
56674         * tests/unictype/test-categ_Cf.c: Likewise.
56675         * tests/unictype/test-categ_Cn.c: Likewise.
56676         * tests/unictype/test-categ_L.c: Likewise.
56677         * tests/unictype/test-categ_Ll.c: Likewise.
56678         * tests/unictype/test-categ_Lm.c: Likewise.
56679         * tests/unictype/test-categ_Lo.c: Likewise.
56680         * tests/unictype/test-categ_Lu.c: Likewise.
56681         * tests/unictype/test-categ_M.c: Likewise.
56682         * tests/unictype/test-categ_Mc.c: Likewise.
56683         * tests/unictype/test-categ_Mn.c: Likewise.
56684         * tests/unictype/test-categ_N.c: Likewise.
56685         * tests/unictype/test-categ_Nd.c: Likewise.
56686         * tests/unictype/test-categ_Nl.c: Likewise.
56687         * tests/unictype/test-categ_No.c: Likewise.
56688         * tests/unictype/test-categ_P.c: Likewise.
56689         * tests/unictype/test-categ_Pd.c: Likewise.
56690         * tests/unictype/test-categ_Po.c: Likewise.
56691         * tests/unictype/test-categ_S.c: Likewise.
56692         * tests/unictype/test-categ_Sc.c: Likewise.
56693         * tests/unictype/test-categ_So.c: Likewise.
56694         * tests/unictype/test-ctype_alnum.c: Likewise.
56695         * tests/unictype/test-ctype_alpha.c: Likewise.
56696         * tests/unictype/test-ctype_graph.c: Likewise.
56697         * tests/unictype/test-ctype_lower.c: Likewise.
56698         * tests/unictype/test-ctype_print.c: Likewise.
56699         * tests/unictype/test-ctype_punct.c: Likewise.
56700         * tests/unictype/test-ctype_upper.c: Likewise.
56701         * tests/unictype/test-decdigit.h: Likewise.
56702         * tests/unictype/test-digit.h: Likewise.
56703         * tests/unictype/test-numeric.h: Likewise.
56704         * tests/unictype/test-pr_alphabetic.c: Likewise.
56705         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56706         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56707         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56708         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56709         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56710         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56711         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56712         * tests/unictype/test-pr_combining.c: Likewise.
56713         * tests/unictype/test-pr_composite.c: Likewise.
56714         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56715         * tests/unictype/test-pr_dash.c: Likewise.
56716         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56717         * tests/unictype/test-pr_deprecated.c: Likewise.
56718         * tests/unictype/test-pr_diacritic.c: Likewise.
56719         * tests/unictype/test-pr_extender.c: Likewise.
56720         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56721         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56722         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56723         * tests/unictype/test-pr_id_continue.c: Likewise.
56724         * tests/unictype/test-pr_id_start.c: Likewise.
56725         * tests/unictype/test-pr_ideographic.c: Likewise.
56726         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56727         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56728         * tests/unictype/test-pr_lowercase.c: Likewise.
56729         * tests/unictype/test-pr_numeric.c: Likewise.
56730         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56731         * tests/unictype/test-pr_punctuation.c: Likewise.
56732         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56733         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56734         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56735         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56736         * tests/unictype/test-pr_uppercase.c: Likewise.
56737         * tests/unictype/test-pr_xid_continue.c: Likewise.
56738         * tests/unictype/test-pr_xid_start.c: Likewise.
56739         * tests/unictype/test-pr_zero_width.c: Likewise.
56740         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
56741         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
56742         changed behaviour: line breaking is now disallowed between a letter
56743         or '=' and '('.
56744         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56745         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56746         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56747         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
56748         * tests/uniwidth/test-uc_width2.sh: Same updates as in
56749         lib/uniwidth/width.c.
56750         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
56751         without comments, but with the original copyright notice.
56752         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
56753         changes.
56754         * lib/unictype/categ_Cc.h: Likewise.
56755         * lib/unictype/categ_Co.h: Likewise.
56756         * lib/unictype/categ_Cs.h: Likewise.
56757         * lib/unictype/categ_Lt.h: Likewise.
56758         * lib/unictype/categ_Me.h: Likewise.
56759         * lib/unictype/categ_Pc.h: Likewise.
56760         * lib/unictype/categ_Pe.h: Likewise.
56761         * lib/unictype/categ_Pf.h: Likewise.
56762         * lib/unictype/categ_Pi.h: Likewise.
56763         * lib/unictype/categ_Ps.h: Likewise.
56764         * lib/unictype/categ_Sk.h: Likewise.
56765         * lib/unictype/categ_Sm.h: Likewise.
56766         * lib/unictype/categ_Z.h: Likewise.
56767         * lib/unictype/categ_Zl.h: Likewise.
56768         * lib/unictype/categ_Zp.h: Likewise.
56769         * lib/unictype/categ_Zs.h: Likewise.
56770         * lib/unictype/ctype_blank.h: Likewise.
56771         * lib/unictype/ctype_cntrl.h: Likewise.
56772         * lib/unictype/ctype_digit.h: Likewise.
56773         * lib/unictype/ctype_space.h: Likewise.
56774         * lib/unictype/ctype_xdigit.h: Likewise.
56775         * lib/unictype/mirror.h: Likewise.
56776         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56777         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56778         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56779         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56780         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56781         * lib/unictype/pr_bidi_control.h: Likewise.
56782         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56783         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56784         * lib/unictype/pr_bidi_pdf.h: Likewise.
56785         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56786         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56787         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56788         * lib/unictype/pr_format_control.h: Likewise.
56789         * lib/unictype/pr_hex_digit.h: Likewise.
56790         * lib/unictype/pr_hyphen.h: Likewise.
56791         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56792         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56793         * lib/unictype/pr_iso_control.h: Likewise.
56794         * lib/unictype/pr_join_control.h: Likewise.
56795         * lib/unictype/pr_left_of_pair.h: Likewise.
56796         * lib/unictype/pr_line_separator.h: Likewise.
56797         * lib/unictype/pr_math.h: Likewise.
56798         * lib/unictype/pr_non_break.h: Likewise.
56799         * lib/unictype/pr_not_a_character.h: Likewise.
56800         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56801         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56802         * lib/unictype/pr_other_id_continue.h: Likewise.
56803         * lib/unictype/pr_other_id_start.h: Likewise.
56804         * lib/unictype/pr_other_lowercase.h: Likewise.
56805         * lib/unictype/pr_other_math.h: Likewise.
56806         * lib/unictype/pr_other_uppercase.h: Likewise.
56807         * lib/unictype/pr_paired_punctuation.h: Likewise.
56808         * lib/unictype/pr_paragraph_separator.h: Likewise.
56809         * lib/unictype/pr_pattern_syntax.h: Likewise.
56810         * lib/unictype/pr_pattern_white_space.h: Likewise.
56811         * lib/unictype/pr_private_use.h: Likewise.
56812         * lib/unictype/pr_quotation_mark.h: Likewise.
56813         * lib/unictype/pr_radical.h: Likewise.
56814         * lib/unictype/pr_soft_dotted.h: Likewise.
56815         * lib/unictype/pr_space.h: Likewise.
56816         * lib/unictype/pr_titlecase.h: Likewise.
56817         * lib/unictype/pr_variation_selector.h: Likewise.
56818         * lib/unictype/pr_white_space.h: Likewise.
56819         * lib/unictype/sy_c_ident.h: Likewise.
56820         * lib/unictype/sy_c_whitespace.h: Likewise.
56821         * lib/unictype/sy_java_whitespace.h: Likewise.
56822         * modules/uni*/*: Bump version number of expected libunistring version.
56823         Reported by Simon Josefsson.
56825 2011-01-09  Karl Heuer  <kwzh@gnu.org>
56827         useless-if-before-free: fix typo in --help and make the internal,
56828         automatic version date update process work once again.
56829         --help output contained a NUL character instead of the
56830         backslash-zero that was intended.  Also, the "must lie within
56831         the first 8 lines" line is on line 9, and hence not getting
56832         automatically updated.
56833         * build-aux/useless-if-before-free: Fix the former by adding a
56834         backslash, and the latter by condensing the three lines of what-it-does
56835         to a single line, leaving one line of slack for the future.
56837 2011-01-09  Bruno Haible  <bruno@clisp.org>
56839         uniwidth/width: Fix width of U+1D173..U+1D17A.
56840         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
56841         symbolic_width, output_width_property_test): New functions.
56842         (main): Invoke output_nonspacing_property, output_width_property_test.
56843         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
56844         U+1D173..U+1D17A.
56845         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
56846         1.
56847         * modules/uniwidth/*: Bump version number of expected libunistring
56848         version.
56849         * modules/unilbrk/*: Likewise.
56851 2011-01-08  Bruno Haible  <bruno@clisp.org>
56853         uninorm tests: Preserve copyright of Unicode data file.
56854         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
56855         Mention modifications.
56857 2011-01-08  Bruno Haible  <bruno@clisp.org>
56859         gen-uni-tables: Prepare for Unicode 5.2.0.
56860         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
56861         (debug_output_lbp, output_lbp): Update.
56863 2011-01-08  Bruno Haible  <bruno@clisp.org>
56865         unilbrk: Clarify gen-uni-tables.c code.
56866         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
56867         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
56868         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
56870 2011-01-07  Bruno Haible  <bruno@clisp.org>
56872         strtod: Restore errno when successfully parsing Infinity or NaN.
56873         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
56874         restore the original errno.
56876 2011-01-07  Bruno Haible  <bruno@clisp.org>
56878         remove test: Avoid failure on HP-UX 11.
56879         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
56881 2011-01-07  Bruno Haible  <bruno@clisp.org>
56883         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
56884         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
56885         error code.
56887 2011-01-07  Pádraig Brady  <P@draigBrady.com>
56889         ignore-value: fixup comments, and add Eric Blake
56890         as an author since he rewrote the macros.
56891         * lib/ignore-value.h (ignore_value):  State that
56892         we now support aggregates.  Also specify exactly
56893         when the GCC warn_unused_result feature was added.
56895 2011-01-06  Eric Blake  <eblake@redhat.com>
56897         ignore-value: support aggregate types
56898         * lib/ignore-value.h (ignore_value): Provide separate gcc
56899         definition.
56900         * modules/ignore-value-tests: New test module.
56901         * tests/test-ignore-value.c: New test.
56903         maint.mk: improve sc_prohibit_strcmp regex
56904         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
56905         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
56906         definition of STRNEQ.
56908         signal: work around Haiku issue with SIGBUS
56909         * lib/siglist.h: Add comment.
56910         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
56911         strsignal's favoring of SIGSEGV.
56912         * tests/test-signal.c (main): Avoid test failure.
56913         * doc/posix-headers/signal.texi (signal.h): Document the issue.
56914         Reported by Scott McCreary.
56916         maint.mk: add pre-release check to ensure submodule commits are public
56917         * top/maint.mk (public-submodule-commit): New rule.
56918         (submodule-checks): New variable.
56919         (alpha beta stable): Depend on the variable.
56921 2011-01-05  Pádraig Brady  <P@draigBrady.com>
56922         and Jim Meyering  <meyering@redhat.com>
56924         ignore-value: make ignore_value more generic; deprecate ignore_ptr
56925         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
56926         (ATTRIBUTE_DEPRECATED): Define.
56927         (_ignore_case): New function.
56928         (ignore_value): New macro, to replace the old function.
56929         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
56930         * modules/ignore-value (Depends-on): Add stdint.
56932 2011-01-04  Eric Blake  <eblake@redhat.com>
56934         doc: regenerate INSTALL
56935         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
56936         @firstparagraphindent support, now that autoconf dropped it.
56937         (INSTALL_PRELUDE): Reinstate old macro.
56938         * doc/install.texi: Resync from autoconf.
56939         * doc/INSTALL: Reflect recent autoconf update.
56940         * doc/INSTALL.ISO: Likewise.
56941         * doc/INSTALL.UTF-8: Likewise.
56942         Reported by Karl Berry.
56944 2011-01-04  Bruce Korb  <address@hidden>
56946         git-version-gen: avoid a sub-shell
56947         * build-aux/git-version-gen: Redirect stderr in `...` via
56948         "exec 2>...", rather than via an added sub-shell.
56950 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
56952         git-version-gen: use (...) rather than sh -c '...'
56953         * build-aux/git-version-gen: Rather than hard-coding a shell's name
56954         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
56956 2011-01-03  Jim Meyering  <meyering@redhat.com>
56958         git-version-gen: convert leading TABs to spaces
56959         * build-aux/git-version-gen: Expand leading TABs.
56961         git-version-gen: handle failed "git rev-list"
56962         * build-aux/git-version-gen: Rather than leaking a "fatal" error
56963         from git and proceeding as if it had succeeded but printed no SHA1
56964         checksums, suppress the diagnostic and handle the failure.
56965         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
56967         git-version-gen: include command name in one more diagnostic
56968         * build-aux/git-version-gen: When the required .tarball-version file
56969         was missing or unreadable, you might see the diagnostic from "cat",
56970         but no trace of the name of the invoking script.  Now, you still see
56971         the diagnostic from cat, but also get one from "git-version-gen: ".
56972         Inspired by a patch from Bruce Korb.
56974         update-copyright: adjust test to match changed code
56975         * tests/test-update-copyright.sh: Change test's expected output
56976         to match new actual output.
56978 2011-01-02  Bruno Haible  <bruno@clisp.org>
56980         getlogin_r: Avoid test failure on HP-UX 11.
56981         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
56982         ERANGE when the second argument is zero.
56983         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
56984         portability problem.
56986 2011-01-02  Bruce Korb  <bkorb@gnu.org>
56988         * build-aux/update-copyright: doc Simon's changes
56990 2011-01-02  Simon Josefsson  <simon@josefsson.org>
56992         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
56993         environment variable.
56995 2011-01-02  Bruno Haible  <bruno@clisp.org>
56997         unigbrk: Avoid gcc warnings.
56998         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
56999         unused variable.
57000         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
57001         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
57002         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
57003         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
57004         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
57005         Change type of first argument to 'const char *'.
57006         (main): Remove unused variable.
57007         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
57008         type of first argument to 'const char *'.
57009         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
57010         Likewise.
57011         (main): Change type of variable 's'.
57012         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
57013         to 'int'.
57015 2011-01-02  Bruno Haible  <bruno@clisp.org>
57017         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
57018         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
57019         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
57020         bug.
57021         * lib/pwrite.c: Undo 2010-12-31 patch.
57022         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
57024 2011-01-02  Bruno Haible  <bruno@clisp.org>
57026         pread: Fix test whether it works.
57027         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
57029 2011-01-02  Bruno Haible  <bruno@clisp.org>
57031         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
57032         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
57033         ends in "6". Don't require a specific month name. Try also the locale
57034         names found on HP-UX 11 and Solaris 7.
57036 2011-01-02  Bruno Haible  <bruno@clisp.org>
57038         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
57039         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
57040         C linkage.
57041         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
57043 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57045         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
57046         for consistency, since the "cluster" term is not used elsewhere.
57047         * lib/unigbrk.in.h: Update name.
57048         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
57049         * lib/unigbrk/u16-grapheme-next.c: Update name.
57050         * lib/unigbrk/u16-grapheme-prev.c: Update name.
57051         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
57052         * lib/unigbrk/u32-grapheme-next.c: Update name.
57053         * lib/unigbrk/u32-grapheme-prev.c: Update name.
57054         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
57055         * lib/unigbrk/u8-grapheme-next.c: Update name.
57056         * lib/unigbrk/u8-grapheme-prev.c: Update name.
57057         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
57058         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
57059         Suggested by Bruno Haible.
57061 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57063         Remove module 'u8-grapheme-len' as too redundant with
57064         'u8-grapheme-next'.
57065         * modules/unigbrk/u8-grapheme-len: Delete file.
57066         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
57067         * lib/unigbrk.in.h: Remove prototype for deleted function.
57068         * lib/unigbrk/u8-grapheme-len.c: Delete file.
57069         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
57071         Remove module 'u16-grapheme-len' as too redundant with
57072         'u16-grapheme-next'.
57073         * modules/unigbrk/u16-grapheme-len: Delete file.
57074         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
57075         * lib/unigbrk.in.h: Remove prototype for deleted function.
57076         * lib/unigbrk/u16-grapheme-len.c: Delete file.
57077         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
57079         Remove module 'u32-grapheme-len' as too redundant with
57080         'u32-grapheme-next'.
57081         * modules/unigbrk/u32-grapheme-len: Delete file.
57082         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
57083         * lib/unigbrk.in.h: Remove prototype for deleted function.
57084         * lib/unigbrk/u32-grapheme-len.c: Delete file.
57085         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
57087         Suggested by Bruno Haible.
57089 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57091         * unigbrk.in.h: Fix typo: "ben" => "been".
57092         Reported by Bruno Haible.
57094 2011-01-01  Jim Meyering  <meyering@redhat.com>
57096         maint: update almost all copyright ranges to include 2011
57097         Run the new "make update-copyright" rule.
57099 2011-01-01  Jim Meyering  <meyering@redhat.com>
57101         maint: update-copyright: exempt doc/INSTALL*
57102         * Makefile (update-copyright): Also exclude doc/INSTALL*,
57103         since they are generated.  Suggested by Bruno Haible.
57105 2011-01-01  Jim Meyering  <meyering@redhat.com>
57107         maint: refine the update-copyright rule
57108         * Makefile (update-copyright): Also exclude any file that includes
57109         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
57110         code that merely generates the comment.
57112 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57114         New module 'u8-grapheme-len'.
57115         * modules/unigbrk/u8-grapheme-len: New file.
57116         * modules/unigbrk/u8-grapheme-len-tests: New file.
57117         * lib/unigbrk.in.h: Add prototype for new function.
57118         * lib/unigbrk/u8-grapheme-len.c: New file.
57119         * tests/unigbrk/test-u8-grapheme-len.c: New file.
57121         New module 'u16-grapheme-len'.
57122         * modules/unigbrk/u16-grapheme-len: New file.
57123         * modules/unigbrk/u16-grapheme-len-tests: New file.
57124         * lib/unigbrk.in.h: Add prototype for new function.
57125         * lib/unigbrk/u16-grapheme-len.c: New file.
57126         * tests/unigbrk/test-u16-grapheme-len.c: New file.
57128         New module 'u32-grapheme-len'.
57129         * modules/unigbrk/u32-grapheme-len: New file.
57130         * modules/unigbrk/u32-grapheme-len-tests: New file.
57131         * lib/unigbrk.in.h: Add prototype for new function.
57132         * lib/unigbrk/u32-grapheme-len.c: New file.
57133         * tests/unigbrk/test-u32-grapheme-len.c: New file.
57135         New module 'u8-grapheme-next'.
57136         * modules/unigbrk/u8-grapheme-next: New file.
57137         * modules/unigbrk/u8-grapheme-next-tests: New file.
57138         * lib/unigbrk.in.h: Add prototype for new function.
57139         * lib/unigbrk/u8-grapheme-next.c: New file.
57140         * tests/unigbrk/test-u8-grapheme-next.c: New file.
57142         New module 'u16-grapheme-next'.
57143         * modules/unigbrk/u16-grapheme-next: New file.
57144         * modules/unigbrk/u16-grapheme-next-tests: New file.
57145         * lib/unigbrk.in.h: Add prototype for new function.
57146         * lib/unigbrk/u16-grapheme-next.c: New file.
57147         * tests/unigbrk/test-u16-grapheme-next.c: New file.
57149         New module 'u32-grapheme-next'.
57150         * modules/unigbrk/u32-grapheme-next: New file.
57151         * modules/unigbrk/u32-grapheme-next-tests: New file.
57152         * lib/unigbrk.in.h: Add prototype for new function.
57153         * lib/unigbrk/u32-grapheme-next.c: New file.
57154         * tests/unigbrk/test-u32-grapheme-next.c: New file.
57156         New module 'u8-grapheme-prev'.
57157         * modules/unigbrk/u8-grapheme-prev: New file.
57158         * modules/unigbrk/u8-grapheme-prev-tests: New file.
57159         * lib/unigbrk.in.h: Add prototype for new function.
57160         * lib/unigbrk/u8-grapheme-prev.c: New file.
57161         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
57163         New module 'u16-grapheme-prev'.
57164         * modules/unigbrk/u16-grapheme-prev: New file.
57165         * modules/unigbrk/u16-grapheme-prev-tests: New file.
57166         * lib/unigbrk.in.h: Add prototype for new function.
57167         * lib/unigbrk/u16-grapheme-prev.c: New file.
57168         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
57170         New module 'u32-grapheme-prev'.
57171         * modules/unigbrk/u32-grapheme-prev: New file.
57172         * modules/unigbrk/u32-grapheme-prev-tests: New file.
57173         * lib/unigbrk.in.h: Add prototype for new function.
57174         * lib/unigbrk/u32-grapheme-prev.c: New file.
57175         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
57177         New module 'u8-grapheme-breaks'.
57178         * modules/unigbrk/u8-grapheme-breaks: New file.
57179         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
57180         * lib/unigbrk.in.h: Add prototype for new function.
57181         * lib/unigbrk/u8-grapheme-breaks.c: New file.
57182         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
57184         New module 'u16-grapheme-breaks'.
57185         * modules/unigbrk/u16-grapheme-breaks: New file.
57186         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
57187         * lib/unigbrk.in.h: Add prototype for new function.
57188         * lib/unigbrk/u16-grapheme-breaks.c: New file.
57189         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
57191         New module 'u32-grapheme-breaks'.
57192         * modules/unigbrk/u32-grapheme-breaks: New file.
57193         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
57194         * lib/unigbrk.in.h: Add prototype for new function.
57195         * lib/unigbrk/u32-grapheme-breaks.c: New file.
57196         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
57198         New module 'ulc-grapheme-breaks'.
57199         * modules/unigbrk/ulc-grapheme-breaks: New file.
57200         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
57201         * m4/locale-ar.m4: New file.
57202         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
57203         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
57204         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
57206 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57208         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
57209         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
57210         modified how this file was generated before I initially submitted
57211         the module, but failed to regenerate it.  This meant that several
57212         of the level2 entries were wrong.
57213         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
57214         Remove the division-by-2 that is folded into the table now that
57215         gbrkprop.h has been regenerated properly.  Now -1 entries are
57216         handled correctly.
57218         New module 'unigbrk/uc-gbrk-prop-tests'.
57219         * modules/unigbrk/uc-gbrk-prop-tests: New file.
57220         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
57221         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
57222         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
57224 2011-01-01  Bruno Haible  <bruno@clisp.org>
57226         Avoid use of hexadecimal escapes.
57227         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
57228         instead of hexadecimal escapes.
57230 2011-01-01  Jim Meyering  <meyering@redhat.com>
57232         maint: new rule to update copyright year ranges
57233         * Makefile (update-copyright): New rule.
57235         maint: indent with TABs in Makefile
57236         * Makefile: Expand leading sequences of spaces to TABs
57238         version-etc: update the copyright year it reports
57239         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
57241 2010-12-31  Bruno Haible  <bruno@clisp.org>
57243         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
57244         * lib/isfinite.c (zerof, zerod, zerol): New variables.
57245         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
57246         zero.
57248 2010-12-31  Bruno Haible  <bruno@clisp.org>
57250         pwrite: Work around HP-UX 11.11 bug.
57251         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
57252         works and set REPLACE_PWRITE if not.
57253         * lib/pwrite.c (pwrite): Add an implementation that uses the system
57254         function.
57255         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
57257 2010-12-31  Bruno Haible  <bruno@clisp.org>
57259         pread: Work around HP-UX 11 bugs.
57260         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
57261         and set REPLACE_PREAD if not.
57262         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
57264 2010-12-31  Eric Blake  <eblake@redhat.com>
57266         nl_langinfo: fix YESEXPR on Irix 6.5
57267         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
57268         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
57269         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
57270         it.
57272 2010-12-31  Bruno Haible  <bruno@clisp.org>
57274         iconv: Document HP-UX 11 bug.
57275         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
57277 2010-12-31  Bruno Haible  <bruno@clisp.org>
57279         ldexpl: Fix link error on HP-UX 11.
57280         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
57281         LDEXPL_LIBM, using $ISNANL_LIBM.
57283 2010-12-31  Eric Blake  <eblake@redhat.com>
57285         ftello: avoid compilation failure with SunStudio c89
57286         * lib/ftello.c (ftello): Use lseek, not llseek.
57288         tests: avoid failing coreutils tests on cygwin
57289         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
57290         (create_exe_shims_): Return 0 when skipping.
57292 2010-12-31  Bruno Haible  <bruno@clisp.org>
57294         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
57295         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
57297 2010-12-31  Bruno Haible  <bruno@clisp.org>
57299         waitpid: Fix link error in C++ mode.
57300         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
57302 2010-12-31  Bruno Haible  <bruno@clisp.org>
57304         isnan: Use GCC built-ins when possible.
57305         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
57306         __builtin_isnan.
57307         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
57308         (isnan): Define using GCC built-ins for GCC >= 4.0.
57310 2010-12-31  Bruno Haible  <bruno@clisp.org>
57312         isnand: Fix mistake.
57313         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
57314         __builtin_isnand.
57316 2010-12-31  Bruno Haible  <bruno@clisp.org>
57318         open: Avoid C++ error on HP-UX 11.
57319         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
57321 2010-12-31  Bruno Haible  <bruno@clisp.org>
57323         time_r: Add missing declarations on HP-UX 11.
57324         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
57325         instead of HAVE_LOCALTIME_R.
57326         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
57327         HAVE_LOCALTIME_R always.
57328         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
57329         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
57330         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
57331         HAVE_LOCALTIME_R.
57332         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
57333         * doc/posix-functions/localtime_r.texi: Likewise.
57335 2010-12-29  Eric Blake  <eblake@redhat.com>
57337         mountlist: tweak previous commit
57338         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
57339         Reported by Paul Eggert.
57341         mountlist: fix local drive detection on cygwin
57342         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
57343         that works for cygwin.
57345 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57347         ftoastr, snprintf: ftoastr + snprintf module
57348         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
57349         since the snprintf module now should be good enough here.
57350         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
57351         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
57352         and gl_MODULE_INDICATOR([snprintf]), but the former enables
57353         GNULIB_SNPRINTF only for the test directory, and the latter
57354         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
57355         seems to suffice by itself.
57357 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57359         alloca: one step towards thread-safety
57360         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
57361         need for a static variable.  All callers changed.  This does not
57362         make the alloca replacement thread-safe, but it's one step.
57364         tests: minor indenting change
57365         * tests/init.sh: Sync from coreutils housekeeping patch
57366         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
57367         to keep lines within 80 columns.
57369 2010-12-28  Jim Meyering  <meyering@redhat.com>
57371         regex: don't infloop on persistent failing calloc
57372         * lib/regexec.c (build_trtable): Return failure indication upon
57373         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
57374         In glibc, this was fixed for version 2.13:
57375         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
57377 2010-12-28  Bruno Haible  <bruno@clisp.org>
57378             Paul Eggert <eggert@cs.ucla.edu>
57380         linkat: Make implementation robust against system behaviour variations.
57381         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
57382         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
57383         way, and to -2 if it needs a generic runtime test.
57384         * lib/linkat.c (solaris_optimized_link_immediate,
57385         solaris_optimized_link_follow): New functions.
57386         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
57387         (check_same_link): Use it.
57389 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
57391         New module 'unigbrk/base'.
57392         * modules/unigbrk/base: New file.
57393         * lib/unigbrk.in.h: New file.
57395         New module 'unigbrk/uc-gbrk-prop'.
57396         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
57397         * modules/unigbrk/uc-gbrk-prop: New file.
57398         * lib/unigbrk/gbrkprop.h: New file.
57399         * lib/unigbrk/uc-gbrk-prop.c: New file.
57401         New module 'unigbrk/uc-is-grapheme-break'.
57402         * modules/unigbrk/uc-is-grapheme-break: New file.
57403         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
57404         * lib/unigbrk/uc-is-grapheme-break.c: New file.
57405         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
57406         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
57407         * tests/unigbrk/GraphemeBreakTest.txt: New file.
57409         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
57411 2010-12-27  Bruno Haible  <bruno@clisp.org>
57413         linkat test: Avoid failure on Solaris 11 2010-11.
57414         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
57416 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57418         utimens: work around glibc rounding bug on more platforms
57419         * lib/utimens.c (fdutimens): Work around rounding bug even if
57420         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
57421         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
57423 2010-12-27  Bruno Haible  <bruno@clisp.org>
57425         select tests: Improve comments.
57426         * tests/test-select.c (do_select): Add comments.
57428 2010-12-27  Bruno Haible  <bruno@clisp.org>
57430         select tests: Safer way of handling timeout.
57431         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
57432         at every invocation.
57434 2010-12-27  Bruno Haible  <bruno@clisp.org>
57436         select tests: Use 'bool' where appropriate.
57437         * tests/test-select.c (connect_to_socket): Change argument type to
57438         'bool'.
57440 2010-12-27  Bruno Haible  <bruno@clisp.org>
57442         select tests: Use existing modules.
57443         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
57444         (configure.ac): Don't test for unistd.h.
57445         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
57446         declared in <unistd.h>.
57448 2010-12-27  Bruno Haible  <bruno@clisp.org>
57450         mbrtowc: Work around a Solaris 7 bug.
57451         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
57452         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
57453         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
57454         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
57455         MBRTOWC_NULL_ARG1_BUG.
57456         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
57457         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
57458         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
57459         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
57461 2010-12-27  Jim Meyering  <meyering@redhat.com>
57463         read-file.c: tweak syntax
57464         * lib/read-file.c (fread_file): Remove space after "*" in function
57465         definitions.
57467 2010-12-27  Bruno Haible  <bruno@clisp.org>
57469         times test: Avoid gcc warnings on OSF/1.
57470         * tests/test-times.c (main): Cast printf arguments from clock_t to
57471         'long int'.
57473 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57475         utimens: work around glibc rounding bug on older Linux kernels
57476         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
57477         on Linux with a glibc whose utimes might not work, then work
57478         around a longstanding glibc bug involving rounding rather than
57479         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
57480         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
57482 2010-12-26  Bruno Haible  <bruno@clisp.org>
57484         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
57485         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
57486         _GL_CXXALIAS_SYS.
57487         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57489 2010-12-26  Bruno Haible  <bruno@clisp.org>
57491         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
57492         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
57493         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
57494         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
57495         looking for the declaration.
57496         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
57497         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
57498         problem.
57499         * doc/posix-functions/inet_pton.texi: Likewise.
57501 2010-12-26  Bruno Haible  <bruno@clisp.org>
57503         arpa_inet: Use the common idioms with C++ support.
57504         * lib/arpa_inet.in.h: Include c++defs.h.
57505         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
57506         support.
57507         * modules/arpa_inet (Depends-on): Add c++defs.
57508         (Makefile.am): Substitute the contents of c++defs.h.
57509         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
57510         * modules/arpa_inet-c++-tests: New file.
57511         * tests/test-arpa_inet-c++.cc: New file.
57513 2010-12-25  Bruno Haible  <bruno@clisp.org>
57515         Fix more C++ link errors on Solaris 8.
57516         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
57517         $(LIB_EACCESS).
57518         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
57519         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
57520         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
57521         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
57522         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
57524 2010-12-25  Bruno Haible  <bruno@clisp.org>
57526         printf-posix: Fix link error when a non-GCC compiler is used.
57527         * lib/stdio.in.h (printf): When not using GCC, override printf
57528         correctly.
57529         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57531 2010-12-25  Bruno Haible  <bruno@clisp.org>
57533         strerror_r-posix: Update doc.
57534         * doc/posix-functions/strerror_r.texi: Update doc about the return
57535         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
57537 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57539         utimens: simplify the logic of the previous change
57540         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
57541         This should not affect whether the test succeeds or fails.
57543         utimens: configure better on hosts with NFS clock skew
57544         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
57545         uses the clock of the local host.  It might use the clock of the
57546         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
57547         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
57549 2010-12-25  Bruno Haible  <bruno@clisp.org>
57551         ptsname test: Avoid failure on Solaris.
57552         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
57553         open a pseudo-terminal; don't use BSD-style ptys.
57554         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
57556 2010-12-25  Bruno Haible  <bruno@clisp.org>
57558         ptsname: Avoid ERANGE failure on some systems.
57559         * lib/ptsname.c (buffer): Increase size.
57561 2010-12-25  Bruno Haible  <bruno@clisp.org>
57563         rename, renameat: Avoid test failures at NFS mounted locations.
57564         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
57565         so that subsequent mkdir calls succeed.
57567 2010-12-25  Bruno Haible  <bruno@clisp.org>
57569         iswblank: Fix C++ link error on Solaris 8.
57570         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
57571         _GL_FUNCDECL_SYS.
57573 2010-12-25  Bruno Haible  <bruno@clisp.org>
57575         unistd: Fix C++ link error on Solaris 8.
57576         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
57578 2010-12-25  Bruno Haible  <bruno@clisp.org>
57580         readlink doc: Mention an old glibc bug.
57581         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
57583 2010-12-25  Bruno Haible  <bruno@clisp.org>
57585         fcntl-h: Fix for use of C++ on glibc systems.
57586         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
57587         also on glibc systems in C++ mode.
57588         Reported by Gary V. Vaughan <gary@gnu.org>.
57590 2010-12-25  Bruno Haible  <bruno@clisp.org>
57592         roundl-ieee: Make it work on OSF/1 5.1 with cc.
57593         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
57595 2010-12-25  Bruno Haible  <bruno@clisp.org>
57597         truncl-ieee: Make it work on OSF/1 5.1 with cc.
57598         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
57599         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
57600         test whether truncl works according to ISO C 99 with IEC 60559.
57601         * m4/truncl-ieee.m4: New file.
57602         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
57603         m4/signbit.m4.
57604         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
57606 2010-12-25  Bruno Haible  <bruno@clisp.org>
57608         ceill-ieee: Make it work on OSF/1 5.1 with cc.
57609         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
57610         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
57611         test whether ceill works according to ISO C 99 with IEC 60559.
57612         * m4/ceill-ieee.m4: New file.
57613         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
57614         m4/signbit.m4.
57615         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
57617 2010-12-25  Bruno Haible  <bruno@clisp.org>
57619         Ensure all prerequisites of <wchar.h> are included.
57620         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
57621         before <wchar.h>.
57622         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
57623         gl_MBRLEN_NUL_RETVAL): Likewise.
57624         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
57625         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
57626         AC_FUNC_MBRTOWC): Likewise.
57627         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
57628         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57629         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
57630         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
57631         Likewise.
57632         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
57633         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
57634         (gl_WCHAR_H): Improve comments.
57635         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
57637 2010-12-25  Bruno Haible  <bruno@clisp.org>
57639         strtok_r: Fix C syntax error in autoconf macro.
57640         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
57641         characters in test program.
57643 2010-12-24  Bruno Haible  <bruno@clisp.org>
57645         ceil, trunc, round: Fix gcc warnings.
57646         * lib/ceil.c (MIN): Undefine before redefining.
57647         * lib/trunc.c (MIN): Likewise.
57648         * lib/round.c (MIN): Likewise.
57649         Include <math.h> first.
57651 2010-12-24  Bruno Haible  <bruno@clisp.org>
57653         select tests: Avoid failures on OSF/1 5.1.
57654         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
57655         failure of closing the last socket; it may fail with ECONNRESET.
57657 2010-12-24  Eric Blake  <eblake@redhat.com>
57659         stdint: avoid HP-UX 10.20 preprocessor bug
57660         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
57661         than #if.
57662         * tests/test-floor2.c (main): Likewise.
57663         Reported by Peter O'Gorman.
57665         pipe: make obsoletion transition easier
57666         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
57667         * modules/pipe (Files): Include revived file.
57668         (Include): Drop reference, to mirror getdate's behavior.
57670 2010-12-24  Bruno Haible  <bruno@clisp.org>
57672         sys_socket: Hide mismatch of declarations on NonStop Kernel.
57673         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
57674         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
57675         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57677 2010-12-24  Bruno Haible  <bruno@clisp.org>
57679         gethostname: Ensure declaration on NonStop Kernel.
57680         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
57681         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57683 2010-12-24  Bruno Haible  <bruno@clisp.org>
57685         sys_select: Ensure all necessary types on NonStop Kernel.
57686         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
57687         include <sys/time.h>.
57688         * doc/posix-headers/sys_select.texi: Mention that it's missing on
57689         NonStop Kernel.
57690         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57692 2010-12-24  Bruno Haible  <bruno@clisp.org>
57694         sys_select: Remove unneeded include.
57695         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
57696         have <sys/select.h>.
57698 2010-12-24  Bruno Haible  <bruno@clisp.org>
57700         gethostname: Provide a fallback for HOST_NAME_MAX.
57701         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
57702         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
57703         instead.
57704         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57706 2010-12-24  Bruno Haible  <bruno@clisp.org>
57708         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
57709         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
57710         (SA_RESTART): Likewise.
57711         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57713 2010-12-24  Bruno Haible  <bruno@clisp.org>
57715         signal: Define NSIG.
57716         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
57717         * tests/test-signal.c (nsig): New variable.
57718         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57720 2010-12-24  Bruno Haible  <bruno@clisp.org>
57722         rename, renameat: Avoid test failures on OSF/1 5.1.
57723         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
57724         alternative error codes.
57725         * tests/test-renameat.c (main): Likewise.
57727 2010-12-24  Bruno Haible  <bruno@clisp.org>
57729         *printf: Detect large precisions bug on Solaris 10/SPARC.
57730         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
57731         by Paul Eggert.
57732         * tests/test-snprintf-posix.h (test_function): Add this test code here
57733         too.
57734         * tests/test-sprintf-posix.h (test_function): Likewise.
57735         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57736         * tests/test-vasprintf-posix.c (test_function): Likewise.
57737         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
57738         around by gnulib.
57739         * doc/posix-functions/printf.texi: Likewise.
57740         * doc/posix-functions/snprintf.texi: Likewise.
57741         * doc/posix-functions/sprintf.texi: Likewise.
57742         * doc/posix-functions/vfprintf.texi: Likewise.
57743         * doc/posix-functions/vprintf.texi: Likewise.
57744         * doc/posix-functions/vsnprintf.texi: Likewise.
57745         * doc/posix-functions/vsprintf.texi: Likewise.
57746         * doc/posix-functions/dprintf.texi: Undo last commit.
57747         * doc/posix-functions/vdprintf.texi: Likewise.
57749 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57751         tests: port test-fdutimensat.c to Solaris 8
57752         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
57753         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
57754         On Solaris 8, it fails with errno == ENOSYS, because there is no
57755         futimens (so it can't use the fd), and there is no lutimens (so it
57756         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
57758         vsnprintf: make more consistent with snprintf; doc fixes
57760         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
57761         the byte count return problem was promoted from the snprintf-posix
57762         to the snprintf module.
57763         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
57764         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
57765         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
57766         * tests/test-snprintf.c (main): Check the byte count returned.
57767         * tests/test-vsnprintf.c (main): Likewise.
57769 2010-12-23  Eric Blake  <eblake@redhat.com>
57771         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
57772         * modules/sigpipe (License): Relax license.
57774 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57776         doc: document Solaris printf bug with large float precisions
57777         * doc/posix-functions/dprintf.texi (dprintf):
57778         * doc/posix-functions/fprintf.texi (fprintf):
57779         * doc/posix-functions/printf.texi (printf):
57780         * doc/posix-functions/snprintf.texi (snprintf):
57781         * doc/posix-functions/sprintf.texi (sprintf):
57782         * doc/posix-functions/vdprintf.texi (vdprintf):
57783         * doc/posix-functions/vfprintf.texi (vfprintf):
57784         * doc/posix-functions/vprintf.texi (vprintf):
57785         * doc/posix-functions/vsnprintf.texi (vsnprintf):
57786         * doc/posix-functions/vsprintf.texi (vsprintf):
57787         Mention that these functions mishandle large floating point
57788         precisions on Solaris 10.  The same bug is also present in Solaris
57789         8, and I assume earlier.  This causes "cd gnulib-tests; make
57790         check" to fail on Solaris 8 (and I assume, later) when building
57791         the latest coreutils, in test-vasprintf-posix's call to
57792         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
57793         the wide flavors (e.g., wprintf) so this patch just updates the
57794         documentation for the narrow ones.
57796         test-posixtm.c: add two tests
57797         * tests/test-posixtm.c: Add two tests, to highlight the
57798         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
57799         around this bug; this is merely to document it.
57801 2010-12-22  Bruno Haible  <bruno@clisp.org>
57803         getlogin_r: Work around portability problem on OSF/1.
57804         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
57805         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
57806         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
57807         test for a truncated result.
57808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
57809         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
57810         * modules/getlogin_r (Depends-on): Add memchr.
57811         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
57813 2010-12-22  Bruno Haible  <bruno@clisp.org>
57815         ptsname: Avoid test failure on OSF/1 5.1.
57816         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
57817         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
57818         (same_slave): New function.
57819         (main): Use it to compare ptsname's result with the expected file name.
57821 2010-12-22  Bruno Haible  <bruno@clisp.org>
57823         Port extended stdio modules to HP NonStop Kernel.
57824         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
57825         macros.
57826         * lib/fbufmode.c: Update comments.
57827         * lib/fflush.c: Likewise.
57828         * lib/fpurge.c: Likewise.
57829         * lib/freadable.c: Likewise.
57830         * lib/freadahead.c: Likewise.
57831         * lib/freading.c: Likewise.
57832         * lib/freadptr.c: Likewise.
57833         * lib/freadseek.c: Likewise.
57834         * lib/fseeko.c: Likewise.
57835         * lib/fseterr.c: Likewise.
57836         * lib/fwritable.c: Likewise.
57837         * lib/fwriting.c: Likewise.
57838         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57840 2010-12-22  Bruno Haible  <bruno@clisp.org>
57842         ttyname_r: Work around bug on OSF/1 5.1.
57843         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
57844         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
57845         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
57846         present.
57847         * lib/ttyname_r.c (ttyname_r): Update comments.
57849 2010-12-22  Bruno Haible  <bruno@clisp.org>
57851         round: Implement result sign according to IEEE 754.
57852         * lib/round.c (MIN, MINUS_ZERO): New macros.
57853         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
57854         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
57855         * tests/test-round-ieee.c (main): Likewise.
57856         * tests/test-roundl-ieee.c (main): Likewise.
57858         trunc: Implement result sign according to IEEE 754.
57859         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
57860         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
57861         * tests/test-trunc2.c: Include minus-zero.h.
57862         (MINUS_ZERO): New macro.
57863         (trunc_reference): Keep in sync with lib/trunc.c.
57864         * tests/test-truncf2.c: Include minus-zero.h.
57865         (MINUS_ZERO): New macro.
57866         (truncf_reference): Keep in sync with lib/trunc.c.
57867         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
57868         * tests/test-trunc-ieee.c (main): Likewise.
57869         * tests/test-truncl-ieee.c (main): Likewise.
57871         ceil: Implement result sign according to IEEE 754.
57872         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
57873         (FUNC): Return -0.0 for -1 < x < 0.
57874         * tests/test-ceil2.c: Include minus-zero.h.
57875         (MINUS_ZERO): New macro.
57876         (ceil_reference): Keep in sync with lib/ceil.c.
57877         * tests/test-ceilf2.c: Include minus-zero.h.
57878         (MINUS_ZERO): New macro.
57879         (ceilf_reference): Keep in sync with lib/ceil.c.
57880         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
57881         * tests/test-ceil-ieee.c (main): Likewise.
57882         * tests/test-ceill-ieee.c (main): Likewise.
57884         floor: Implement result sign according to IEEE 754.
57885         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
57886         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
57887         * tests/test-floorf2.c (floorf_reference): Likewise.
57888         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
57889         * tests/test-floor-ieee.c (main): Likewise.
57890         * tests/test-floorl-ieee.c (main): Likewise.
57892 2010-12-22  Bruno Haible  <bruno@clisp.org>
57894         getaddrinfo: Update doc.
57895         * doc/posix-functions/gai_strerror.texi: Return type is also different
57896         on AIX and HP-UX.
57898 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57900         getaddrinfo, inet_ntop: Update doc for Solaris.
57901         * doc/posix-functions/gai_strerror.texi: Return type is also an
57902         issue on Solaris 9 and earlier.
57903         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
57904         on Solaris 10 and earlier.
57906 2010-12-21  Bruno Haible  <bruno@clisp.org>
57908         New module 'roundl-ieee'.
57909         * modules/roundl-ieee: New file.
57910         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
57911         test whether roundl works according to ISO C 99 with IEC 60559.
57912         * m4/roundl-ieee.m4: New file.
57913         * modules/roundl-ieee-tests: New file.
57914         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
57915         * tests/test-roundl.c (main): Remove signbit tests.
57916         * modules/roundl-tests (Depends-on): Remove signbit.
57917         * doc/posix-functions/roundl.texi: Mention the new module.
57919 2010-12-21  Bruno Haible  <bruno@clisp.org>
57921         New module 'truncl-ieee'.
57922         * modules/truncl-ieee: New file.
57923         * modules/truncl-ieee-tests: New file.
57924         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
57925         * tests/test-truncl.c (main): Remove signbit tests.
57926         * modules/truncl-tests (Depends-on): Remove signbit.
57927         * doc/posix-functions/truncl.texi: Mention the new module.
57929 2010-12-21  Bruno Haible  <bruno@clisp.org>
57931         New module 'ceill-ieee'.
57932         * modules/ceill-ieee: New file.
57933         * modules/ceill-ieee-tests: New file.
57934         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
57935         * tests/test-ceill.c (main): Remove signbit tests.
57936         * modules/ceill-tests (Depends-on): Remove signbit.
57937         * doc/posix-functions/ceill.texi: Mention the new module.
57939 2010-12-21  Bruno Haible  <bruno@clisp.org>
57941         New module 'floorl-ieee'.
57942         * modules/floorl-ieee: New file.
57943         * modules/floorl-ieee-tests: New file.
57944         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
57945         * tests/test-floorl.c (main): Remove signbit tests.
57946         * modules/floorl-tests (Depends-on): Remove signbit.
57947         * doc/posix-functions/floorl.texi: Mention the new module.
57949 2010-12-21  Bruno Haible  <bruno@clisp.org>
57951         New module 'round-ieee'.
57952         * modules/round-ieee: New file.
57953         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
57954         whether round works according to ISO C 99 with IEC 60559.
57955         * m4/round-ieee.m4: New file.
57956         * modules/round-ieee-tests: New file.
57957         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
57958         * tests/test-round1.c (main): Remove signbit tests.
57959         * modules/round-tests (Depends-on): Remove 'signbit'.
57960         * doc/posix-functions/round.texi: Mention the new module.
57962 2010-12-21  Bruno Haible  <bruno@clisp.org>
57964         New module 'trunc-ieee'.
57965         * modules/trunc-ieee: New file.
57966         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
57967         whether trunc works according to ISO C 99 with IEC 60559.
57968         * m4/trunc-ieee.m4: New file.
57969         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
57970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
57971         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
57972         * modules/trunc-ieee-tests: New file.
57973         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
57974         * tests/test-trunc1.c (main): Remove signbit tests.
57975         * modules/trunc-tests (Depends-on): Remove 'signbit'.
57976         * doc/posix-functions/trunc.texi: Mention the new module.
57978 2010-12-21  Bruno Haible  <bruno@clisp.org>
57980         New module 'ceil-ieee'.
57981         * modules/ceil-ieee: New file.
57982         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
57983         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
57984         ISO C 99 with IEC 60559.
57985         * m4/ceil-ieee.m4: New file.
57986         * modules/ceil (Files): Add lib/ceil.c.
57987         (Depends-on): Add 'float'.
57988         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
57989         * lib/math.in.h (ceil): New declaration.
57990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
57991         REPLACE_CEIL.
57992         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
57993         * modules/ceil-ieee-tests: New file.
57994         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
57995         * tests/test-math-c++.cc: Check the signature of 'ceil'.
57996         * doc/posix-functions/ceil.texi: Mention the new module.
57998 2010-12-21  Bruno Haible  <bruno@clisp.org>
58000         New module 'floor-ieee'.
58001         * modules/floor-ieee: New file.
58002         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
58003         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
58004         ISO C 99 with IEC 60559.
58005         * m4/floor-ieee.m4: New file.
58006         * modules/floor (Files): Add lib/floor.c.
58007         (Depends-on): Add 'float'.
58008         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58009         * lib/math.in.h (floor): New declaration.
58010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
58011         REPLACE_FLOOR.
58012         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
58013         * modules/floor-ieee-tests: New file.
58014         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
58015         * tests/test-math-c++.cc: Check the signature of 'floor'.
58016         * doc/posix-functions/floor.texi: Mention the new module.
58018 2010-12-21  Bruno Haible  <bruno@clisp.org>
58020         New module 'roundf-ieee'.
58021         * modules/roundf-ieee: New file.
58022         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
58023         test whether roundf works according to ISO C 99 with IEC 60559.
58024         * m4/roundf-ieee.m4: New file.
58025         * modules/roundf-ieee-tests: New file.
58026         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
58027         * tests/test-roundf1.c (main): Remove signbit tests.
58028         * modules/roundf-tests (Depends-on): Remove 'signbit'.
58029         * doc/posix-functions/roundf.texi: Mention the new module.
58031 2010-12-21  Bruno Haible  <bruno@clisp.org>
58033         New module 'truncf-ieee'.
58034         * modules/truncf-ieee: New file.
58035         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
58036         test whether truncf works according to ISO C 99 with IEC 60559.
58037         * m4/truncf-ieee.m4: New file.
58038         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
58039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
58040         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
58041         * modules/truncf-ieee-tests: New file.
58042         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
58043         * tests/test-truncf1.c (main): Remove signbit tests.
58044         * modules/truncf-tests (Depends-on): Remove 'signbit'.
58045         * doc/posix-functions/truncf.texi: Mention the new module.
58047 2010-12-21  Bruno Haible  <bruno@clisp.org>
58049         New module 'ceilf-ieee'.
58050         * modules/ceilf-ieee: New file.
58051         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
58052         test whether ceilf works according to ISO C 99 with IEC 60559.
58053         * m4/ceilf-ieee.m4: New file.
58054         * modules/ceilf-ieee-tests: New file.
58055         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
58056         * tests/test-ceilf1.c (main): Remove signbit tests.
58057         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
58058         * doc/posix-functions/ceilf.texi: Mention the new module.
58060 2010-12-21  Bruno Haible  <bruno@clisp.org>
58062         New module 'floorf-ieee'.
58063         * modules/floorf-ieee: New file.
58064         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
58065         test whether floorf works according to ISO C 99 with IEC 60559.
58066         * m4/floorf-ieee.m4: New file.
58067         * modules/floorf-ieee-tests: New file.
58068         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
58069         * tests/test-floorf1.c (main): Remove signbit tests.
58070         * modules/floorf-tests (Depends-on): Remove 'signbit'.
58071         * doc/posix-functions/floorf.texi: Mention the new module.
58073 2010-12-21  Bruno Haible  <bruno@clisp.org>
58075         Support for minus zero in autoconf macros.
58076         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
58077         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
58078         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
58079         * tests/minus-zero.h: Update comments.
58081 2010-12-21  Bruno Haible  <bruno@clisp.org>
58083         Tests for module 'ceil'.
58084         * modules/ceil-tests: New file.
58085         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
58086         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
58088 2010-12-21  Bruno Haible  <bruno@clisp.org>
58090         Tests for module 'floor'.
58091         * modules/floor-tests: New file.
58092         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
58093         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
58095 2010-12-21  Bruno Haible  <bruno@clisp.org>
58097         math: Fix indentation.
58098         * lib/math.in.h (floorf): Fix indentation.
58100 2010-12-21  Bruno Haible  <bruno@clisp.org>
58102         Fix cross-compilation guesses on Solaris.
58103         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
58104         not match "solaris2.10".
58105         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
58106         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
58107         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
58109 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58111         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
58112         This fixes a problem observed with the latest coreutils snapshot
58113         that caused a test to fail on Solaris 8.  src/csplit.c's call
58114         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
58115         earlier, instead of returning the number of bytes that would have
58116         been generated; this causes csplit to incorrectly report memory
58117         exhaustion.
58118         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
58119         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
58120         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
58121         comments to match.
58122         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
58123         Fix typo in matching older versions of Solaris: "solaris2.10"
58124         is matched by the shell pattern "solaris2.[0-9]*".  This matters
58125         only for guessing while cross-compiling.
58126         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
58128 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
58130         ftoastr: fix comment again
58131         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58132         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
58133         Also, simplify example a bit by using flags = 0.
58135 2010-12-20  Bruno Haible  <bruno@clisp.org>
58137         round*, trunc*: Update documentation regarding glibc.
58138         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
58139         * doc/posix-functions/round.texi: Likewise.
58140         * doc/posix-functions/roundl.texi: Likewise.
58141         * doc/posix-functions/truncf.texi: Likewise.
58142         * doc/posix-functions/trunc.texi: Likewise.
58143         * doc/posix-functions/truncl.texi: Likewise.
58145 2010-12-20  Bruno Haible  <bruno@clisp.org>
58147         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
58148         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
58149         * doc/posix-functions/round.texi: Likewise.
58150         * doc/posix-functions/roundl.texi: Likewise.
58152 2010-12-20  Bruno Haible  <bruno@clisp.org>
58154         ttyname_r: Add missing declaration on HP-UX 11.
58155         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
58156         HAVE_TTYNAME_R.
58157         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
58158         declared. Set HAVE_TTYNAME_R always.
58159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58160         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
58161         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
58162         HAVE_TTYNAME_R.
58163         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
58165 2010-12-20  Bruno Haible  <bruno@clisp.org>
58167         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
58168         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
58169         * doc/posix-functions/getlogin_r.texi: Likewise.
58170         * tests/test-getlogin.c: Include <errno.h>.
58171         (main): Avoid test failure on HP-UX 11.11.
58172         * tests/test-getlogin_r.c (main): Likewise.
58174 2010-12-20  Bruno Haible  <bruno@clisp.org>
58176         getlogin_r: Add missing declaration on HP-UX 11.
58177         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
58178         declared also when it exists as a function.
58179         * doc/posix-functions/getlogin_r.texi: Document this workaround.
58181 2010-12-20  Bruno Haible  <bruno@clisp.org>
58183         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
58184         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
58185         through wcrtomb.
58187 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58189         ftoastr: fix comment
58190         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58191         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
58193 2010-12-19  Bruno Haible  <bruno@clisp.org>
58195         isnan: Ensure it is a macro.
58196         * lib/math.in.h (isnan): Define as a macro if not already a macro.
58197         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
58198         Solaris.
58200 2010-12-19  Bruno Haible  <bruno@clisp.org>
58202         ldexpl test: Fix link error on OSF/1 5.1.
58203         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
58205 2010-12-19  Bruno Haible  <bruno@clisp.org>
58207         wctype: Make it work in C++ mode on OSF/1 5.1.
58208         * lib/wctype.in.h (iswblank): Declare but not define here.
58209         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
58210         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
58211         * modules/wctype (Files): Add lib/iswblank.c.
58213 2010-12-19  Bruno Haible  <bruno@clisp.org>
58215         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
58216         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
58217         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
58219 2010-12-19  Bruno Haible  <bruno@clisp.org>
58221         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
58222         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
58223         _POSIX_PII_SOCKET.
58224         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
58225         * doc/posix-functions/recvfrom.texi: Likewise.
58226         * doc/posix-functions/send.texi: Likewise.
58227         * doc/posix-functions/sendto.texi: Likewise.
58229 2010-12-19  Bruno Haible  <bruno@clisp.org>
58231         tcgetsid: Add missing declaration on OSF/1 5.1.
58232         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
58233         HAVE_TCGETSID.
58234         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
58235         Don't set HAVE_TCGETSID.
58236         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
58237         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
58238         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
58239         HAVE_TCGETSID.
58240         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
58242 2010-12-19  Bruno Haible  <bruno@clisp.org>
58244         stdio: Fix problem with popen() declaration on OSF/1 5.1.
58245         * lib/stdio.in.h: During the include_next statement, let recursive
58246         includes of this file include only the system header file.
58248 2010-12-19  Bruno Haible  <bruno@clisp.org>
58250         iconv_open: Fix regression from 2010-12-04.
58251         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
58252         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
58254 2010-12-19  Bruno Haible  <bruno@clisp.org>
58256         stdbool test: Avoid a gcc warning.
58257         * tests/test-stdbool.c (main): Fail if e1 is false.
58258         Reported by Jim Meyering.
58260 2010-12-19  Jim Meyering  <meyering@redhat.com>
58262         setenv: restore to working order
58263         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
58264         mistakenly removed.
58265         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
58266         HAVE_SETENV.
58267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
58268         HAVE_SETENV.
58270 2010-12-19  Bruno Haible  <bruno@clisp.org>
58272         Document some different function declarations on OSF/1 5.1.
58273         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
58274         * doc/posix-functions/inet_ntop.texi: Likewise.
58275         * doc/posix-functions/gethostname.texi: Likewise.
58276         * lib/unistd.in.h (gethostname): Update comment.
58278 2010-12-19  Bruno Haible  <bruno@clisp.org>
58280         doc: Mention vasprintf-posix module.
58281         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
58282         the 'vasprintf-posix' module.
58283         * doc/glibc-functions/vasprintf.texi: Likewise.
58285 2010-12-19  Bruno Haible  <bruno@clisp.org>
58287         unsetenv: Add missing declaration on OSF/1 5.1.
58288         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
58289         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
58290         Don't set HAVE_UNSETENV. In the test program, set _BSD.
58291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
58292         not HAVE_UNSETENV.
58293         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
58294         HAVE_UNSETENV.
58295         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
58297 2010-12-19  Bruno Haible  <bruno@clisp.org>
58299         setenv: Add missing declaration on OSF/1 5.1.
58300         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
58301         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
58302         declared. Don't set HAVE_SETENV.
58303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
58304         not HAVE_SETENV.
58305         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
58306         HAVE_SETENV.
58307         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
58309 2010-12-19  Bruno Haible  <bruno@clisp.org>
58311         nl_langinfo tests: Avoid gcc warning.
58312         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
58314 2010-12-19  Bruno Haible  <bruno@clisp.org>
58316         mknod: Avoid error in C++ mode on OSF/1 with GCC.
58317         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
58318         _GL_CXXALIAS_SYS.
58320 2010-12-19  Bruno Haible  <bruno@clisp.org>
58322         stdbool: Relax test.
58323         * tests/test-stdbool.c (e): Don't require that casts from a variable's
58324         address to 'bool' work in static initializer, for compilers other than
58325         GCC.
58327 2010-12-19  Bruno Haible  <bruno@clisp.org>
58329         ftello: Add missing declaration on OSF/1 5.1.
58330         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
58331         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
58332         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
58333         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
58334         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
58336 2010-12-19  Bruno Haible  <bruno@clisp.org>
58338         fseeko: Add missing declaration on OSF/1 5.1.
58339         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
58340         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
58341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
58342         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
58343         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
58345 2010-12-19  Bruno Haible  <bruno@clisp.org>
58347         fchdir: Add missing declaration on OSF/1 5.1.
58348         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
58349         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
58350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
58351         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
58352         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
58354 2010-12-19  Bruno Haible  <bruno@clisp.org>
58356         relocatable-prog-wrapper: Separate from relocatable-prog.
58357         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
58358         uninstall-relocwrapper rule here.
58359         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
58360         Reported by Ian Beckwith <ianb@erislabs.net>.
58362 2010-12-19  Bruno Haible  <bruno@clisp.org>
58364         unistr/u8-mbsnlen: Add missing dependency.
58365         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
58366         Reported by Ian Beckwith <ianb@erislabs.net>.
58368 2010-12-19  Bruno Haible  <bruno@clisp.org>
58370         iconv: Make it possible again to use this module without 'iconv-h'.
58371         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
58372         if it is not defined.
58373         Reported by Ian Beckwith <ianb@erislabs.net>.
58375 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58377         acl: port to Solaris 8 when copying from tmpfs to ufs
58378         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
58379         error number.  Problem observed on Solaris 8 with latest
58380         coreutils, with "mv A B", where A is on a tmpfs file system and B
58381         is on a ufs file system.  This caused coreutils' mv/part-symlink
58382         test to fail.
58384         tests: set fail=0 at start
58385         * tests/init.sh (setup_): Move fail=0 initialization here ...
58386         (mktempd_): ... from here, so that tests can rely on fail being
58387         set to 0 initially.  This fixes a problem in coreutils; see:
58388         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
58390 2010-12-18  Bruno Haible  <bruno@clisp.org>
58392         memmem-simple: Stylistic changes.
58393         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
58394         Fix preprocessor directive indentation.
58396 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58398         memmem, memmem-simple: reorganize and expand empty needle check
58399         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
58400         functional checks to memmem-simple so that one has a fully functional
58401         memmem by using just this module.
58402         Restrict the performance only check to the memmem module.
58403         Also expand the empty needle check to ensure the correct
58404         pointer is returned, not just a non NULL pointer.
58405         * doc/glibc-functions/memmem.texi: Rearrange the portability
58406         documentation to correlate with the rearranged checks.
58407         Clarify exactly how the memmem and memmem-simple modules
58408         relate to each other.
58410 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58411             Bruno Haible  <bruno@clisp.org>
58413         Improve cross-compilation guesses for uClibc.
58414         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
58415         that uClibc does not have the glibc bug.
58416         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
58417         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
58419 2010-12-14  Eric Blake  <eblake@redhat.com>
58421         configmake: provide fallbacks for oldest supported autotools
58422         * m4/configmake.m4: New file.
58423         * modules/configmake (Files): Ship it.
58424         (configure.ac): Use it to guarantee fallbacks.
58426 2010-12-13  Pádraig Brady  <P@draigBrady.com>
58428         read-file: Improve handling of large files
58429         * lib/read-file.c (fread_file): Minimize realloc()s
58430         for regular files, and better manage sizes around SIZE_MAX.
58432 2010-12-13  Eric Blake  <eblake@redhat.com>
58434         cloexec, fcntl: relax license
58435         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
58436         consent from all contributors.
58437         * modules/fcntl (License): Likewise.
58439 2010-12-10  Bruno Haible  <bruno@clisp.org>
58441         Tests for module 'pipe-posix'.
58442         * modules/pipe-posix-tests: New file.
58443         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
58445 2010-12-10  Bruno Haible  <bruno@clisp.org>
58447         pipe-posix: Make it work in C++ mode.
58448         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
58449         (pipe): Use common idiom, not a macro definition.
58450         * lib/pipe.c: New file.
58451         * m4/pipe.m4: New file.
58452         * modules/pipe-posix (Description): Enhance.
58453         (Files): Add lib/pipe.c, m4/pipe.m4.
58454         (configure.ac): Invoke gl_FUNC_PIPE.
58455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
58456         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
58457         * tests/test-unistd-c++.cc: Check the signature of pipe.
58459 2010-12-10  Bruno Haible  <bruno@clisp.org>
58461         Rename module 'pipe' to 'spawn-pipe'.
58462         * modules/spawn-pipe: New file, renamed from modules/pipe.
58463         (Files, configure.ac, Makefile.am): Update.
58464         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
58465         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
58466         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
58467         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
58468         "spawn-pipe.h" instead of "pipe.h".
58469         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
58470         to gl_SPAWN_PIPE.
58471         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
58472         (Files, Makefile.am): Update.
58473         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
58474         Update.
58475         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
58476         Include "spawn-pipe.h" instead of "pipe.h".
58477         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
58478         * lib/javacomp.c: Likewise.
58479         * lib/javaversion.c: Likewise.
58480         * lib/pipe-filter-gi.c: Likewise.
58481         * lib/pipe-filter-ii.c: Likewise.
58482         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
58483         * modules/javacomp (Depends-on): Likewise.
58484         * modules/javaversion (Depends-on): Likewise.
58485         * modules/pipe-filter-gi (Depends-on): Likewise.
58486         * modules/pipe-filter-ii (Depends-on): Likewise.
58487         * MODULES.html.sh (Executing programs): Update.
58488         * NEWS: Mention the change.
58490 2010-12-10  Eric Blake  <eblake@redhat.com>
58492         pipe-posix: new module
58493         * modules/pipe-posix: New file.
58494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
58495         (gl_UNISTD_H): Check for declaration.
58496         * modules/unistd (Makefile.am): Substitute it.
58497         * lib/unistd.in.h (pipe): Provide it for mingw.
58498         * doc/posix-functions/pipe.texi (pipe): Update documentation.
58499         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
58501 2010-12-07  Bruno Haible  <bruno@clisp.org>
58503         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
58504         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
58505         u8_strcmp_gnu.
58506         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
58508 2010-12-06  Bruno Haible  <bruno@clisp.org>
58510         Update internal documentation.
58511         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
58513 2010-12-04  Bruno Haible  <bruno@clisp.org>
58515         Put more information about failed tests into the test return codes.
58516         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
58517         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
58518         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
58519         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
58520         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
58521         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58522         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58523         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
58524         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
58525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58526         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
58527         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58528         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
58529         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58530         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
58531         returns a bit mask.
58532         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
58533         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
58534         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
58535         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
58536         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
58537         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
58538         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58539         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58540         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
58541         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
58542         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
58543         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
58544         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
58545         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
58546         * m4/link.m4 (gl_FUNC_LINK): Likewise.
58547         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
58548         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
58549         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
58550         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
58551         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
58552         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58553         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
58554         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
58555         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58556         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
58557         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
58558         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
58559         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
58560         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
58561         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
58562         gl_PRINTF_PRECISION): Likewise.
58563         * m4/regex.m4 (gl_REGEX): Likewise.
58564         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
58565         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
58566         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
58567         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58568         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58569         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58570         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
58571         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
58572         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58573         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58574         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
58575         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
58576         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
58577         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
58578         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58579         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58580         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
58581         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
58582         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58583         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
58584         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
58585         enumerated value.
58586         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
58588 2010-12-04  Bruno Haible  <bruno@clisp.org>
58590         Update for Solaris 11 2010-11.
58591         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
58592         Express, released in November 2010.
58594 2010-12-04  Bruno Haible  <bruno@clisp.org>
58596         nproc: Relax license.
58597         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
58598         and Paul Eggert.
58599         Requested by Ludovic Courtès <ludo@gnu.org>.
58601 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58603         utimecmp: fine-grained src to nearby coarse-grained dest
58605         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
58606         and the source is on a file system with higher-resolution time
58607         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
58608         not work, and the time stamps are close together, the algorithm to
58609         determine the exact resolution from the read-back mtime was buggy:
58610         it had a "!=" where it should have had an "==".  This bug has been
58611         in the code ever since it was introduced to gnulib.
58612         Problem reported by Dan Jacobson in
58613         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
58615 2010-11-30  Bruno Haible  <bruno@clisp.org>
58617         strerror_r-posix: Fix autoconf test.
58618         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
58620 2010-11-28  Bruno Haible  <bruno@clisp.org>
58621             Paul Eggert  <eggert@cs.ucla.edu>
58623         Tests for module 'getdomainname'.
58624         * modules/getdomainname-tests: New file.
58625         * tests/test-getdomainname.c: New file, based on
58626         tests/test-gethostname.c.
58628 2010-11-28  Bruno Haible  <bruno@clisp.org>
58629             Paul Eggert  <eggert@cs.ucla.edu>
58631         getdomainname: Use the system function when possible.
58632         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
58633         (getdomainname): Replace if needed. Provide the declaration if it is
58634         missing. Don't use _GL_CXXALIAS_SYS_CAST.
58635         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
58636         (getdomainname): When the system has getdomainname, call the system
58637         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
58638         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
58639         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
58640         found in libnsl. Look for the declaration also in <netdb.h>. Replace
58641         the function if its second argument is of type 'int' or if it is found
58642         in libnsl.
58643         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
58644         <sys/systeminfo.h> and sysinfo().
58645         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
58646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58647         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
58648         HAVE_GETDOMAINNAME.
58649         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
58650         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
58651         * doc/glibc-functions/getdomainname.texi: Document the problems with
58652         the getdomainname declaration.
58654 2010-11-28  Bruno Haible  <bruno@clisp.org>
58656         sys_socket: Ensure ss_family field on AIX.
58657         * lib/sys_socket.in.h (ss_family): New macro definition.
58658         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
58659         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
58660         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
58661         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
58662         * modules/sys_socket (Makefile.am): Substitute
58663         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
58664         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
58666 2010-11-27  Bruno Haible  <bruno@clisp.org>
58668         readline: Improve configure output.
58669         * m4/readline.m4 (gl_FUNC_READLINE): Make the
58670         "checking for readline..." result understandable.
58672 2010-11-27  Bruno Haible  <bruno@clisp.org>
58674         *printf-posix: Detect a bug on Solaris 10/x86.
58675         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
58676         for floating-point output.
58677         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
58678         directive.
58679         * tests/test-snprintf-posix.h (test_function): Likewise.
58680         * tests/test-sprintf-posix.h (test_function): Likewise.
58681         * tests/test-vasprintf-posix.c (test_function): Likewise.
58682         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
58683         * doc/posix-functions/printf.texi: Likewise.
58684         * doc/posix-functions/snprintf.texi: Likewise.
58685         * doc/posix-functions/sprintf.texi: Likewise.
58686         * doc/posix-functions/vfprintf.texi: Likewise.
58687         * doc/posix-functions/vprintf.texi: Likewise.
58688         * doc/posix-functions/vsnprintf.texi: Likewise.
58689         * doc/posix-functions/vsprintf.texi: Likewise.
58690         * doc/glibc-functions/obstack_printf.texi: Likewise.
58691         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
58693 2010-11-27  Bruno Haible  <bruno@clisp.org>
58695         Fix link error when module libunistring-optional is in use.
58696         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
58697         * modules/striconveha-tests (Makefile.am): Likewise.
58699 2010-11-27  Bruno Haible  <bruno@clisp.org>
58701         regex: Mention link dependencies.
58702         * modules/regex (Link): New section.
58703         * modules/rpmatch (Link): Likewise.
58704         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
58706 2010-11-27  Bruno Haible  <bruno@clisp.org>
58708         ftoastr: Fix compilation error on Solaris.
58709         * lib/ftoastr.c: Include <config.h>.
58711 2010-11-27  Bruno Haible  <bruno@clisp.org>
58713         getloadavg: Update documentation.
58714         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
58716 2010-11-27  Bruno Haible  <bruno@clisp.org>
58718         sys_socket: Fix test whether the functions are declared.
58719         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
58720         not <sys/select.h>.
58722 2010-11-27  Bruno Haible  <bruno@clisp.org>
58724         getpass: Make sure to get system declaration on some platforms.
58725         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
58726         gl_USE_SYSTEM_EXTENSIONS.
58727         * modules/getpass (Depends-on): Add extensions.
58729 2010-11-26  Bruno Haible  <bruno@clisp.org>
58731         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
58732         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
58733         'iconv' module is present.
58734         (ICONV_CONST): New macro.
58735         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
58736         ICONV_CONST.
58737         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
58738         set ICONV_CONST.
58739         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
58740         here.
58741         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
58742         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
58743         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
58744         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
58745         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
58746         present.
58748 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58750         ftoastr: comment fix
58751         * lib/ftoastr.c: "little" -> "little or no" in comment
58753 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
58755         stdint: port to GCC 4.3 + OSX + Octave
58756         On this platform, stdint.h is buggy and defines int64_t to long
58757         long int.  The replacement defined it to long int, causing
58758         problems with C++ style name mangling.  Instead, trust the system
58759         definition if INT64_MAX is defined, and likewise for the unsigned
58760         variant.   Problem reported by Jarno Rajahalme in
58761         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
58762         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
58763         and don't mess with int64_t and INT64_MAX in this case.
58764         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
58766 2010-11-24  Bruno Haible  <bruno@clisp.org>
58768         doc: Corrections regarding MacOS X 10.4 and 10.5.
58769         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
58770         MacOS X.
58771         Reported by Simon Josefsson.
58773 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
58775         Uninstall ".bin" files installed by relocwrapper.
58776         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
58777         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
58778         unless it is already there.
58780 2010-11-21  Bruno Haible  <bruno@clisp.org>
58782         Update for NetBSD 5.0.
58783         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
58784         NetBSD; the test fails on NetBSD 5.0.
58785         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
58786         about NetBSD.
58788 2010-11-21  Bruno Haible  <bruno@clisp.org>
58790         Update for HP-UX 11.23 and HP-UX 11.31.
58791         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
58792         HP-UX.
58794 2010-11-21  Bruno Haible  <bruno@clisp.org>
58796         Update for MacOS X 10.5.
58797         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
58798         MacOS X; the test fails on MacOS X 10.5.8.
58799         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
58800         about MacOS X.
58802 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
58804         bootstrap: add bootstrap_sync option.
58805         See discussion at
58806         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
58807         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
58808         * build-aux/bootstrap: Accept --bootstrap-sync to update
58809         bootstrap if it is not identical to the local gnulib's
58810         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
58811         enable this by default.  Accept --no-bootstrap-sync to disable
58812         it.
58814 2010-11-20  Bruno Haible  <bruno@clisp.org>
58816         Ensure that <features.h> is included before __GLIBC__ is tested.
58817         * lib/printf-parse.h: Include <features.h>.
58818         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
58819         Reported by Mike Frysinger <vapier@gentoo.org>.
58821         Ensure that <features.h> is included before __GLIBC__ is tested.
58822         * lib/wchar.in.h: Include <features.h>.
58823         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
58824         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
58825         Reported by Mike Frysinger <vapier@gentoo.org>.
58827         Ensure that <features.h> is included before __GLIBC__ is tested.
58828         * lib/arpa_inet.in.h: Include <features.h>.
58829         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
58830         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
58831         Reported by Mike Frysinger <vapier@gentoo.org>.
58833         Ensure that <features.h> is included before __GLIBC__ is tested.
58834         * build-aux/link-warning.h: Include <features.h>.
58835         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
58836         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
58837         Reported by Mike Frysinger <vapier@gentoo.org>.
58839         Ensure that <features.h> is included before __GLIBC__ is tested.
58840         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
58841         Reported by Mike Frysinger <vapier@gentoo.org>.
58843 2010-11-20  Bruno Haible  <bruno@clisp.org>
58845         memmem: Fix autoconf test.
58846         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
58848 2010-11-20  Bruno Haible  <bruno@clisp.org>
58850         Port to uClibc.
58851         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
58852         * lib/fcntl.in.h: Likewise.
58853         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
58854         * lib/mbrtowc.c (mbrtowc): Likewise.
58855         * lib/relocatable.c (find_shared_library_fullname): Likewise.
58856         * lib/strerror_r.c: Likewise.
58857         * lib/unistr/u8-strnlen.c: Likewise.
58858         * lib/vasnprintf.c (decimal_point_char): Likewise.
58859         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
58860         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
58861         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
58862         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
58863         * tests/test-sigaction.c (handler, main): Likewise.
58864         * lib/freading.h: Treat uClibc like a non-glibc platform.
58865         * lib/freading.c: Likewise.
58866         * lib/gettext.h: Likewise.
58867         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
58868         Likewise.
58869         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
58870         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58871         * lib/propername.c (proper_name_utf8): Likewise.
58872         * lib/spawn.in.h: Likewise.
58873         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
58874         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
58875         mem_cd_iconveh_internal): Likewise.
58876         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
58877         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
58878         strstr, strcasestr): Likewise.
58879         * lib/unicodeio.c (unicode_to_mb): Likewise.
58880         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
58881         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
58882         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
58883         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
58884         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
58885         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
58886         * lib/unistr/u8-stpncpy.c: Likewise.
58887         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58888         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
58889         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58890         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58891         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
58892         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
58893         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
58894         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
58895         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
58896         Likewise.
58897         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
58898         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58899         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
58900         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58901         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58902         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58903         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58904         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
58905         * tests/test-getopt.h (OPTIND_MIN): Likewise.
58906         * tests/test-striconveha.c (main): Likewise.
58907         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58908         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
58909         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
58910         * doc/posix-functions/getline.texi: Likewise.
58911         Reported by Mike Frysinger <vapier@gentoo.org>.
58913 2010-11-20  Bruno Haible  <bruno@clisp.org>
58915         nproc: Fix condition.
58916         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
58917         HAVE_PTHREAD_AFFINITY_NP.
58919 2010-11-20  Bruno Haible  <bruno@clisp.org>
58921         Fix a comment.
58922         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
58924 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
58926         ftoastr: don't assume snprintf
58927         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
58928         Implement a subset of snprintf here, by using sprintf safely.
58929         * modules/ftoastr (Depends-on): Remove snprintf.
58931 2010-11-19  Jim Meyering  <meyering@redhat.com>
58933         test-rename.h: fix compilation failure
58934         * tests/test-rename.h (test_rename): Add omitted "}".
58936 2010-11-17  Jim Meyering  <meyering@redhat.com>
58938         maint.mk: add a URL discussing the no-@acronym policy
58939         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
58941 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
58943         ftoastr: depend on snprintf, improve comments
58944         * lib/ftoastr.c: Also mention Loitsch's draft.
58945         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
58946         needed in the current implementation, but it might simplify
58947         speeding up the code later.
58948         * modules/ftoastr: Depend on snprintf; this improves portability.
58949         Suggested by Bruno Haible in the same email.
58951         ftoastr: port to hosts lacking strtof and strtold
58952         Problem reported by Bruno Haible in
58953         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
58954         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
58955         environment and strtold (and presumably strtof) are not available.
58956         * modules/ftoastr (Files): Add m4/c-strtod.m4.
58957         (configure.ac): Require gl_C99_STRTOLD.
58959 2010-11-18  Bruno Haible  <bruno@clisp.org>
58961         c-strtold: Avoid link error on AIX 7.
58962         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
58963         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
58964         (gl_C_STRTOLD): Test whether strtold_l exists.
58965         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58967 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58969         intprops: new macro INT_BITS_STRLEN_BOUND
58970         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
58971         ftoastr.h.  This exposes an internal of intprops.h that was formerly
58972         not exposed.  Also, it uses a slightly tighter bound than before;
58973         though this makes no practical difference, we might as well be as
58974         tight as we easily can.
58976         ftoastr: new module, for lossless conversion of floats to short strings
58977         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
58978         * modules/ftoastr: New files.
58980 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58982         bootstrap: port to Solaris sed
58983         * build-aux/bootstrap (get_version): Port to Solaris sed.
58984         See Ralf Wildenhues's note in
58985         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
58987 2010-11-14  Jim Meyering  <meyering@redhat.com>
58989         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
58990         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
58991         and move definition closer to sole use.
58993 2010-11-13  Jim Meyering  <meyering@redhat.com>
58995         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
58996         Now we require at least autoconf-2.59, which means the work-around
58997         is no longer needed.
58998         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
58999         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59000         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59001         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59002         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59004 2010-11-13  Bruno Haible  <bruno@clisp.org>
59006         rename, renameat: Avoid test failures at NFS mounted locations.
59007         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
59008         functions.
59009         (test_rename): Use assert_nonexistent.
59010         * tests/test-rename.c: Include <dirent.h>.
59011         * tests/test-renameat.c: Likewise.
59012         Reported by Gary V. Vaughan <gary@gnu.org>.
59014         rename, renameat: Document Linux bug with NFS
59015         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
59016         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
59017         * doc/posix-functions/renameat.texi: Likewise.
59018         Suggested by Eric Blake.
59020 2010-11-13  Bruno Haible  <bruno@clisp.org>
59022         rename test: Add comments.
59023         * tests/test-rename.h (test_rename): Add structure and comments.
59025 2010-11-13  Eric Blake  <eblake@redhat.com>
59027         maintainer-makefile: cover a few more files
59028         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
59029         scripts generated within C files, for libvirt.
59031 2010-11-13  Bruno Haible  <bruno@clisp.org>
59033         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
59034         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
59035         character, return the number of bytes that belong together, not always
59036         1.
59037         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
59038         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
59039         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
59040         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
59041         number of bytes of an invalid character.
59042         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
59043         (main): Invoke it.
59044         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
59045         results.
59046         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
59047         malformed byte sequences.
59048         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
59049         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
59050         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
59051         Reported by Ben Pfaff and Paolo Bonzini.
59053 2010-11-13  Bruno Haible  <bruno@clisp.org>
59055         openat: Work around glibc bug with fchownat() and empty file names.
59056         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
59057         (gl_FUNC_FCHOWNAT): Invoke it.
59058         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
59059         * doc/posix-functions/fchownat.texi: Document the glibc bug.
59060         Reported by Gary V. Vaughan <gary@gnu.org>.
59062 2010-11-13  Bruno Haible  <bruno@clisp.org>
59064         openat: Ensure autoconf macro ordering.
59065         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
59066         gl_USE_SYSTEM_EXTENSIONS.
59067         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
59069 2010-11-13  Bruno Haible  <bruno@clisp.org>
59071         Update comments.
59072         * lib/unistr/u8-check.c: Update file name in comments.
59073         * lib/unistr/u8-mblen.c: Likewise.
59074         * lib/unistr/u8-prev.c: Likewise.
59075         * lib/unistr/u8-strmblen.c: Likewise.
59076         * lib/unistr/u8-strmbtouc.c: Likewise.
59078 2010-11-13  Jim Meyering  <meyering@redhat.com>
59080         tests: avoid test failure on Solaris 10 due to lack of PATH export
59081         * tests/test-update-copyright.sh: Don't forget to export PATH.
59083         init.sh: ensure that IFS is defined, just in case...
59084         * tests/init.sh (setup_): Ensure that IFS is defined,
59085         so that saving and restoring it works as expected.  This
59086         appears to be useful at least for an old version of dash
59087         from a long time ago (RH 6).  See here for details:
59088         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
59090         maint.mk: tighten "test a == b" check
59091         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
59092         test to files that contain something like #!/bin/sh.
59093         Without this, coreutils would get two false positives in
59094         the comments of C source files.
59096 2010-11-12  Eric Blake  <eblake@redhat.com>
59098         bootstrap: fix typo in previous attempt
59099         * build-aux/bootstrap (buildreq): Correct the grouping.
59100         Reported by Paul Eggert.
59102         maintainer-makefile: prohibit test x == x
59103         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
59104         Based on a report by Matthias Bolte.
59106         bootstrap: allow FreeBSD gzip
59107         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
59108         which has no '.' and goes to stderr.
59109         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
59110         Reported by Matthias Bolte.
59112         maintainer-makefile: check for i18n setup
59113         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
59114         will likely work.
59116 2010-11-12  Bruno Haible  <bruno@clisp.org>
59118         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
59119         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
59120         * lib/nanosleep.c (nanosleep): Likewise.
59122 2010-11-11  Bruno Haible  <bruno@clisp.org>
59124         fcntl-h: Fix for use of C++ on glibc systems.
59125         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
59126         also on glibc systems in C++ mode.
59127         Reported by Gary V. Vaughan <gary@gnu.org>.
59129 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59131         mknod: avoid false failure with dash
59132         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
59134 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59136         unlink: Fix "is it should" typo in diagnostic.
59137         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
59138         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
59140 2010-11-11  Bruno Haible  <bruno@clisp.org>
59142         Tests for module 'strerror_r-posix'.
59143         * modules/strerror_r-posix-tests: New file.
59144         * tests/test-strerror_r.c: New file.
59145         * tests/test-string-c++.cc: Check the signature of strerror_r.
59147         New module 'strerror_r-posix'.
59148         * lib/string.in.h (strerror_r): New declaration.
59149         * lib/strerror_r.c: New file.
59150         * m4/strerror_r.m4: New file.
59151         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
59152         of strerror_r.
59153         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
59154         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59155         * modules/strerror_r-posix: New file.
59156         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
59157         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59158         * doc/posix-functions/strerror_r.texi: Mention the new module and the
59159         portability problems.
59161 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
59163         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
59164         line is also considered for output. Quoted function name in shell
59165         command, so temporary files for functions like MyClass::operator()
59166         are removed correctly without errors.
59168 2010-11-09  Bruno Haible  <bruno@clisp.org>
59170         * doc/posix-functions/strerror.texi: List more failing platforms.
59172         * doc/posix-functions/strerror.texi: Add a comment.
59174 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59176         fdopendir: fix bug on MacOS X when low on file descriptors
59178         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
59179         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
59180         All callers changed.
59181         (fdopendir): Invoke save_cwd at the top level, not after using
59182         multiple dup() calls to use up file descriptors.  Then retry
59183         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
59184         less than the maximum number of open file descriptors, because
59185         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
59186         on Mac OS X 10.6.4 for tar 1.24
59187         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
59188         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
59189         and for tar 1.25
59190         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
59192 2010-11-07  Bruno Haible  <bruno@clisp.org>
59194         vasnprintf: Support I flag on glibc systems.
59195         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
59196         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
59197         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
59198         snprintf function.
59199         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
59200         glibc systems.
59201         * tests/test-vasnprintf-posix3.c: New file.
59202         * modules/vasnprintf-posix-tests (Files): Add it.
59203         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
59205 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59207         [html] Fix copy/paste bug: Use unique name for compiler warnings.
59208         * MODULES.html.sh: For compiler warnings, use name
59209         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
59211 2010-11-05  Eric Blake  <eblake@redhat.com>
59213         ceil, floor: avoid spurious failure with icc
59214         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
59215         [denormals-as-zero] when optimizing without -mieee-fp option.
59216         * tests/test-floorf2.c (floorf_reference): Likewise.
59217         * tests/test-ceilf1.c (dummy): New function.
59218         (main): Use it to outsmart icc's optimization.
59219         * tests/test-floorf1.c (dummy, main): Likewise.
59221         tests: require working signbit
59222         * modules/ceilf-tests (Depends-on): Add signbit.
59223         * modules/ceill-tests (Depends-on): Likewise.
59224         * modules/floorf-tests (Depends-on): Likewise.
59225         * modules/floorl-tests (Depends-on): Likewise.
59226         * modules/round-tests (Depends-on): Likewise.
59227         * modules/roundf-tests (Depends-on): Likewise.
59228         * modules/roundl-tests (Depends-on): Likewise.
59229         * modules/trunc-tests (Depends-on): Likewise.
59230         * modules/truncf-tests (Depends-on): Likewise.
59231         * modules/truncl-tests (Depends-on): Likewise.
59233         strtod: work around icc bug
59234         * lib/strtod.c (minus_zero): Define to working value.
59235         (strtod): Use it to avoid icc bug.
59237         copysign: enhance tests
59238         * modules/copysign-tests (Files): Add minus-zero.h.
59239         * tests/test-copysign.c (main): Also test zeros.
59241 2010-11-04  Eric Blake  <eblake@redhat.com>
59243         ceil, floor, round, trunc: enhance tests of -0
59244         * tests/test-ceilf1.c (main): Ensure correct sign of result.
59245         * tests/test-ceill.c (main): Likewise.
59246         * tests/test-floorf1.c (main): Likewise.
59247         * tests/test-floorl.c (main): Likewise.
59248         * tests/test-round1.c (main): Likewise.
59249         * tests/test-roundf1.c (main): Likewise.
59250         * tests/test-roundl.c (main): Likewise.
59251         * tests/test-trunc1.c (main): Likewise.
59252         * tests/test-truncf1.c (main): Likewise.
59253         * tests/test-truncl.c (main): Likewise.
59255 2010-11-04  Eric Blake  <eblake@redhat.com>
59257         frexp, tests: work around ICC bug with -zero
59258         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
59259         works with more compilers.
59260         * tests/minus-zero.h: New file.
59261         * modules/ceilf-tests (Files): Include it.
59262         * modules/ceill-tests (Files): Likewise.
59263         * modules/floorf-tests (Files): Likewise.
59264         * modules/floorl-tests (Files): Likewise.
59265         * modules/frexp-nolibm-tests (Files): Likewise.
59266         * modules/frexp-tests (Files): Likewise.
59267         * modules/frexpl-nolibm-tests (Files): Likewise.
59268         * modules/frexpl-tests (Files): Likewise.
59269         * modules/isnan-tests (Files): Likewise.
59270         * modules/isnand-nolibm-tests (Files): Likewise.
59271         * modules/isnand-tests (Files): Likewise.
59272         * modules/isnanf-nolibm-tests (Files): Likewise.
59273         * modules/isnanf-tests (Files): Likewise.
59274         * modules/isnanl-nolibm-tests (Files): Likewise.
59275         * modules/isnanl-tests (Files): Likewise.
59276         * modules/round-tests (Files): Likewise.
59277         * modules/roundf-tests (Files): Likewise.
59278         * modules/roundl-tests (Files): Likewise.
59279         * modules/ldexpl-tests (Files): Likewise.
59280         * modules/signbit-tests (Files): Likewise.
59281         * modules/snprintf-posix-tests (Files): Likewise.
59282         * modules/sprintf-posix-tests (Files): Likewise.
59283         * modules/strtod-tests (Files): Likewise.
59284         * modules/trunc-tests (Files): Likewise.
59285         * modules/truncf-tests (Files): Likewise.
59286         * modules/truncl-tests (Files): Likewise.
59287         * modules/vsnprintf-posix-tests (Files): Likewise.
59288         * modules/vsprintf-posix-tests (Files): Likewise.
59289         * modules/vasnprintf-posix-tests (Files): Likewise.
59290         * modules/vasprintf-posix-tests (Files): Likewise.
59291         * tests/test-ceilf1.c (main): Use it.
59292         * tests/test-ceill.c (main): Likewise.
59293         * tests/test-floorf1.c (main): Likewise.
59294         * tests/test-floorl.c (main): Likewise.
59295         * tests/test-frexp.c (main): Likewise.
59296         * tests/test-frexpl.c (main): Likewise.
59297         * tests/test-isnan.c (main): Likewise.
59298         * tests/test-isnand.h (main): Likewise.
59299         * tests/test-isnanf.h (main): Likewise.
59300         * tests/test-isnanl.h (main): Likewise.
59301         * tests/test-ldexpl.c (main): Likewise.
59302         * tests/test-round.c (main): Likewise.
59303         * tests/test-roundf.c (main): Likewise.
59304         * tests/test-roundl.c (main): Likewise.
59305         * tests/test-signbit.c (test_signbitf, test_signbitd)
59306         (test_signbitl): Likewise.
59307         * tests/test-snprintf-posix.h (test_function): Likewise.
59308         * tests/test-sprintf-posix.h (test_function): Likewise.
59309         * tests/test-strtod.c (main): Likewise.
59310         * tests/test-trunc1.c (main): Likewise.
59311         * tests/test-truncf1.c (main): Likewise.
59312         * tests/test-truncl.c (main): Likewise.
59314         isnanl: work around icc bug
59315         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
59317 2010-11-03  Eric Blake  <eblake@redhat.com>
59319         tests: fix compiler warnings
59320         * tests/test-getopt.h (test_getopt): Fix condition.
59321         * tests/test-getopt_long.h (test_getopt_long): Likewise.
59322         * tests/test-pipe2.c (main): Likewise.
59323         * tests/test-quotearg-simple.c (main): Avoid icc warning.
59325         utimens: fix broken m4 test
59326         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
59328 2010-10-28  Bruno Haible  <bruno@clisp.org>
59330         posix_spawn*, getdtablesize: Relax license.
59331         * modules/posix_spawn (License): Change to LGPLv2+.
59332         * modules/posix_spawnp (License): Likewise.
59333         * modules/posix_spawn-internal (License): Likewise.
59334         * modules/posix_spawnattr_init (License): Likewise.
59335         * modules/posix_spawnattr_getflags (License): Likewise.
59336         * modules/posix_spawnattr_setflags (License): Likewise.
59337         * modules/posix_spawnattr_getpgroup (License): Likewise.
59338         * modules/posix_spawnattr_setpgroup (License): Likewise.
59339         * modules/posix_spawnattr_getschedparam (License): Likewise.
59340         * modules/posix_spawnattr_setschedparam (License): Likewise.
59341         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
59342         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
59343         * modules/posix_spawnattr_getsigdefault (License): Likewise.
59344         * modules/posix_spawnattr_setsigdefault (License): Likewise.
59345         * modules/posix_spawnattr_getsigmask (License): Likewise.
59346         * modules/posix_spawnattr_setsigmask (License): Likewise.
59347         * modules/posix_spawnattr_destroy (License): Likewise.
59348         * modules/posix_spawn_file_actions_init (License): Likewise.
59349         * modules/posix_spawn_file_actions_addclose (License): Likewise.
59350         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
59351         * modules/posix_spawn_file_actions_addopen (License): Likewise.
59352         * modules/posix_spawn_file_actions_destroy (License): Likewise.
59353         * modules/getdtablesize (License): Likewise.
59354         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
59356 2010-10-26  Bruno Haible  <bruno@clisp.org>
59358         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
59359         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
59360         Cygwin and mingw.
59361         Suggested by Eric Blake.
59363 2010-10-26  Bruno Haible  <bruno@clisp.org>
59365         stdio: Work around compilation error due to renameat() on Solaris 10.
59366         * lib/stdio.in.h: Include <unistd.h> on Solaris.
59367         * lib/renameat.c: Don't include <unistd.h> here.
59368         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
59369         Reported by Paul Eggert and Eric Blake.
59371 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59373         renameat: port to Solaris 10, which declares renameat in unistd.h
59375         * lib/renameat.c: Include unistd.h before stdio.h, because
59376         Solaris 10 declares renameat in unistd.h.  Problem encountered
59377         when building GNU tar 1.24 on Solaris 10.
59379 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59381         fdopendir: fix C89 compilation
59382         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
59383         compilers.
59385 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
59387         inttostr: simplify by removing unnecessary redundancy
59388         * lib/anytostr.c: Don't include verify.h.
59389         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
59390         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
59391         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
59392         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
59393         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
59394         Likewise.
59395         * modules/inttostr (Depends-on): Remove 'verify'.
59397 2010-10-23  Bruno Haible  <bruno@clisp.org>
59399         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
59400         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
59401         Reported by Eric Blake.
59403 2010-10-23  Bruno Haible  <bruno@clisp.org>
59405         Tests: Fix LOCALE_JA on MirBSD 10.
59406         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
59407         to an UTF-8 locale.
59408         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
59409         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59410         Reported by Eric Blake.
59412 2010-10-21  Bruno Haible  <bruno@clisp.org>
59414         nl_langinfo test: Avoid test failure on NetBSD 5.
59415         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
59416         Reported by Eric Blake.
59418 2010-10-21  Eric Blake  <eblake@redhat.com>
59420         c-stack: work around libsigsegv 2.8 bug
59421         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
59422         overflow on at least PowerPC64.
59424 2010-10-17  Bruno Haible  <bruno@clisp.org>
59426         userspec: Drop redundant file.
59427         * modules/userspec (Files): Remove lib/inttostr.h.
59429 2010-10-17  Bruno Haible  <bruno@clisp.org>
59431         nl_langinfo tests: Silence some warnings.
59432         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
59433         Reported by Jim Meyering.
59435 2010-10-17  Bruno Haible  <bruno@clisp.org>
59437         Make use of GCC's attribute __alloc_size__.
59438         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
59439         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
59440         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
59441         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
59442         __alloc_size__.
59443         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59444         Suggested by Jim Meyering.
59446 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
59448         bootstrap: anchor .gitignore entries.
59449         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
59450         with...
59451         (insert_vc_ignore): ... this new function, which prepends `/' to
59452         all .gitignore entries before passing them to
59453         insert_sorted_if_absent.
59455 2010-10-16  Bruno Haible  <bruno@clisp.org>
59457         nextafter: Fix configure check.
59458         * modules/nextafter (configure.ac): Correct expected prototype.
59460 2010-10-16  Bruno Haible  <bruno@clisp.org>
59462         termios: Update documentation.
59463         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
59465 2010-10-16  Bruno Haible  <bruno@clisp.org>
59467         tests: Make them compile with TinyCC.
59468         * tests/test-strstr.c (main): Remove parentheses around array
59469         initializer.
59471 2010-10-15  Eric Blake  <eblake@redhat.com>
59473         ignore-value: make header idempotent
59474         * lib/ignore-value.h: Add double-inclusion guards.
59475         Reported by Stefan Berger.
59477 2010-10-15  Jim Meyering  <meyering@redhat.com>
59479         GNUmakefile: handle "stable" target, not "major"
59480         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
59481         lists in maint.mk and announce-gen.  Without this, "make stable"
59482         would fail to ensure that $(VERSION) is up to date.
59484 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
59486         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
59487         & co.
59489 2010-10-14  Bruno Haible  <bruno@clisp.org>
59491         vasnprintf: Don't set errno to 0.
59492         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
59493         block that sets it to 0.
59494         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
59496 2010-10-14  Bruno Haible  <bruno@clisp.org>
59498         socketlib: Fix.
59499         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
59500         gl_PREREQ_SYS_H_WINSOCK2.
59501         Reported by Ian Beckwith <ianb@erislabs.net>.
59503 2010-10-13  Jim Meyering  <meyering@redhat.com>
59505         test-select-stdin.c: avoid warn_unused_result warnings
59506         * tests/test-select-stdin.c: Include "macros.h".
59507         ASSERT that read and fflush succeed.
59509 2010-10-13  Jim Meyering  <meyering@redhat.com>
59511         git-version-gen: do require git-VC'd files in cwd
59512         * build-aux/git-version-gen: Reject a git version string
59513         if there are no commits associated with the current directory.
59514         This avoids an unlikely false-positive (unrelated dir whose parent
59515         repository also contains a tag matching v*), as pointed out
59516         by Giuseppe Scrivano in
59517         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
59519 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
59521         argv-iter: omit nonconforming declaration
59522         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
59523         enum arg_iter_err declaration, which doesn't conform to C99.
59524         Solaris 10 cc warns about this.
59526 2010-10-13  Eric Blake  <eblake@redhat.com>
59528         termios: fix compilation on mingw
59529         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
59530         (gl_TERMIOS_H): Adjust it on mingw.
59531         * modules/termios (Makefile.am): Substitute new key.
59532         * lib/termios.in.h (includes): Make include_next conditional.
59533         * doc/posix-headers/termios.texi (termios.h): Update
59534         documentation.
59535         Reported by Daniel P. Berrange.
59537 2010-10-13  Jim Meyering  <meyering@redhat.com>
59539         git-version-gen: don't require that .git/ be in the current dir
59540         * build-aux/git-version-gen: Adjust this script so that it works
59541         when run from any working directory beneath the top-level .git/-
59542         containing directory.  Inspired by a patch from Giuseppe Scrivano,
59543         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
59545         test-select: avoid warn_unused_result warnings
59546         * tests/test-select.c: Include "macros.h".
59547         ASSERT that each call to read, write, and pipe succeeds.
59548         While not technically required, also check each "close".
59549         * modules/select-tests (Files): Add tests/macros.h.
59551         test-symlinkat: remove declaration of unused local
59552         * tests/test-symlinkat.c (main): Remove unused local, "buf".
59554         test-inttostr: avoid shadowing warnings
59555         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
59556         and use malloc rather than the stack for the same reason as
59557         mentioned in the comment justifying the other allocation.
59559 2010-10-11  Bruno Haible  <bruno@clisp.org>
59561         stdlib: Allow multiple gnulib generated replacements to coexist.
59562         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
59563         Reported by Sam Steingold <sds@gnu.org>.
59565 2010-10-11  Jim Meyering  <meyering@redhat.com>
59567         fix a documentation typo
59568         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
59570 2010-10-11  Eric Blake  <eblake@redhat.com>
59572         futimens: work around Solaris 11 bug
59573         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
59574         * tests/test-futimens.h (test_futimens): Enhance, rather than
59575         weaken test.
59576         * doc/posix-functions/futimens.texi (futimens): Document the bug.
59578 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59580         Indentation.
59581         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
59582         higher-level operators more to the left.
59584 2010-10-11  Jim Meyering  <meyering@redhat.com>
59586         test-futimens: avoid unwarranted test failure on Solaris 5.11
59587         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
59588         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
59589         because it tries to dereference the NULL name argument.
59591 2010-10-11  Bruno Haible  <bruno@clisp.org>
59593         Indentation.
59594         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
59595         indentation.
59597 2010-10-11  Jim Meyering  <meyering@redhat.com>
59599         spawn.in.h: make indentation consistent with parentheses
59600         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
59601         Make indentation consistent with parentheses.
59603 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
59605         Fix mismatched parens in previous commit
59606         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
59607         parens.
59609 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59611         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
59613         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
59614         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
59615         * lib/malloca.c: Include "verify.h".
59616         (verify1): Remove, replacing with a verify call.
59617         * lib/relocwrapper.c (verify1): Likewise.
59618         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
59619         Likewise.
59620         * modules/malloca (Depends-on): Add 'verify'.
59621         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
59622         * modules/vasnprintf (Depends-on): Add 'verify'.
59623         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59624         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59625         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59626         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59627         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59628         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59629         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59631         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
59633         Formerly the style was sometimes 2*X - 1, because the C standard
59634         was wrongly thought to disallow ?: in integral constant expressions.
59635         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
59636         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
59637         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
59638         * lib/stdint.in.h (_verify_intmax_size): Likewise.
59639         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
59640         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
59641         verify that time_t cannot be floating.
59643 2010-10-08  Eric Blake  <eblake@redhat.com>
59645         time: enforce recent POSIX ruling that time_t is integral
59646         * lib/time.in.h (__time_t_must_be_integral): Detect any
59647         problematic systems, allowing the rest of gnulib to assume POSIX.
59649 2010-10-08  Jim Meyering  <meyering@redhat.com>
59651         fdopendir: fix a bug on systems lacking openat and /proc support
59652         OpenBSD 4.7 is one such system.  The most noticeable effect was
59653         failure of any application making nontrivial use of fts: rm, du,
59654         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
59655           ./rm: traversal failed: `a': Bad file descriptor
59656         Debugging that, you see that even though FD 6 was closed just
59657         prior to the opendir call in fd_clone_opendir, its resulting
59658         dir->dd_fd was 8, rather than the expected value of 6:
59660         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
59661         93                close (fd);
59662         (gdb) n
59663         94                dir = fd_clone_opendir (dupfd);
59664         (gdb) n
59665         95                saved_errno = errno;
59666         (gdb) p dir->dd_fd
59667         $11 = 8
59669         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
59670         The problem is that on OpenBSD, fd_clone_opendir has to resort
59671         to using the old-style save/restore CWD mechanism, due to its
59672         lack of openat/proc support, and *that* would steal the FD (6)
59673         that opendir was supposed to use.
59675         The fix is to squirrel away the desired FD so that save_cwd uses a
59676         different one, and then free the dest FD right before calling opendir.
59677         That guarantees opendir will use the required file descriptor.
59679         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
59681 2010-10-08  Bruno Haible  <bruno@clisp.org>
59683         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
59684         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
59686 2010-10-08  Bruno Haible  <bruno@clisp.org>
59688         nanosleep: Make replacement POSIX compliant.
59689         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
59690         is out of range.
59691         Reported by Jim Meyering.
59693 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59695         bootstrap: add hook for altering gnulib.mk, for Bison
59696         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
59697         the Bison bootstrapping process can rewrite file names and variables
59698         in this file before later parts of 'bootstrap' use the file.
59699         Bison wants to include lib/gnulib.mk from the top-level makefile,
59700         so it needs the file names in this file to be relative to the top
59701         level, not relative to lib; plus it needs variable names to be
59702         rewritten.
59703         (slurp): Use the new function.
59705         bootstrap: reformat for readability
59706         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
59708 2010-10-08  Eric Blake  <eblake@redhat.com>
59710         docs: update cygwin progress
59711         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
59712         1.7.7.
59713         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
59714         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
59715         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
59716         * doc/posix-functions/carg.texi (carg): Likewise.
59717         * doc/posix-functions/cargf.texi (cargf): Likewise.
59718         * doc/posix-functions/casin.texi (casin): Likewise.
59719         * doc/posix-functions/casinf.texi (casinf): Likewise.
59720         * doc/posix-functions/casinh.texi (casinh): Likewise.
59721         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
59722         * doc/posix-functions/catan.texi (catan): Likewise.
59723         * doc/posix-functions/catanf.texi (catanf): Likewise.
59724         * doc/posix-functions/catanh.texi (catanh): Likewise.
59725         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
59726         * doc/posix-functions/ccos.texi (ccos): Likewise.
59727         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
59728         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
59729         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
59730         * doc/posix-functions/cexp.texi (cexp): Likewise.
59731         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
59732         * doc/posix-functions/cimag.texi (cimag): Likewise.
59733         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
59734         * doc/posix-functions/clog.texi (clog): Likewise.
59735         * doc/posix-functions/clogf.texi (clogf): Likewise.
59736         * doc/posix-functions/conj.texi (conj): Likewise.
59737         * doc/posix-functions/conjf.texi (conjf): Likewise.
59738         * doc/posix-functions/cpow.texi (cpow): Likewise.
59739         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
59740         * doc/posix-functions/cproj.texi (cproj): Likewise.
59741         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
59742         * doc/posix-functions/creal.texi (creal): Likewise.
59743         * doc/posix-functions/crealf.texi (crealf): Likewise.
59744         * doc/posix-functions/csin.texi (csin): Likewise.
59745         * doc/posix-functions/csinf.texi (csinf): Likewise.
59746         * doc/posix-functions/csinh.texi (csinh): Likewise.
59747         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
59748         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
59749         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
59750         * doc/posix-functions/ctan.texi (ctan): Likewise.
59751         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
59752         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
59753         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
59754         * doc/posix-headers/complex.texi (complex.h): Likewise.
59756 2010-10-07  Jim Meyering  <meyering@redhat.com>
59758         parse-datetime: avoid compilation failure on OpenBSD 4.7
59759         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
59760         This works around a compilation failure on OpenBSD 4.7:
59761         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
59763 2010-10-07  Eric Blake  <eblake@redhat.com>
59765         docs: update cygwin progress
59766         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
59767         1.7.6.
59768         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
59769         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
59770         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
59771         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
59772         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
59773         Likewise.
59774         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
59775         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
59776         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
59777         Likewise.
59778         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
59779         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
59780         Likewise.
59781         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
59782         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
59783         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
59784         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
59785         Likewise.
59786         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
59787         Likewise.
59788         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
59790         docs: update parse-datetime history
59791         * doc/parse-datetime.texi (Authors of parse_datetime): Better
59792         documentation of this function's history and alternatives.
59794         cygwin: use more robust version check
59795         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
59796         exclude an eventual cygwin 1.9.1.
59797         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
59798         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
59799         (gl_FUNC_STRCASESTR): Likewise.
59800         Reported by Bruno Haible.
59802 2010-10-06  Bruno Haible  <bruno@clisp.org>
59804         string, sys_select: Avoid #including large headers unless necessary.
59805         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
59806         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
59807         OSF/1, BeOS, Haiku.
59808         Reported by Jim Meyering.
59810 2010-10-05  Eric Blake  <eblake@redhat.com>
59812         memmem, strstr, strcasestr: fix bug with long periodic needle
59813         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
59814         periodic needle having false positive.
59815         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
59816         and cygwin 1.7.7.
59817         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
59818         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
59819         (gl_FUNC_STRCASESTR): Likewise.
59820         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
59821         * tests/test-memmem.c (main): Expose the bug.
59822         * tests/test-strcasestr.c (main): Likewise.
59823         * tests/test-strstr.c (main): Likewise.
59824         * tests/test-c-strcasestr.c (main): Likewise.
59825         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
59826         * doc/posix-functions/strstr.texi (strstr): Likewise.
59827         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59828         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
59830 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59832         parse-datetime: do some more renaming
59833         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
59834         parse_datetime, not get_date.  Mention the renaming.
59835         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
59836         in comments.
59837         * m4/bison.m4: Likewise.
59839 2010-10-05  Eric Blake  <eblake@redhat.com>
59841         parse-datetime: better name than get_date
59842         * NEWS: Reword the deprecation notice.
59843         * modules/get_date: Rename to modules/parse-datetime.
59844         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
59845         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
59846         * lib/get_date.y: Rename to lib/parse-datetime.y.
59847         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
59848         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
59849         * doc/getdate.texi: Provide fallback wrapper.
59850         * lib/getdate.h: Move guts, and wrap...
59851         * lib/parse-datetime.h: ...new file.
59852         * lib/parse-datetime.y (get_date): Rename...
59853         (parse_datetime): ...to this.
59854         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
59855         (gl_PARSE_DATETIME): ...to this.
59856         * doc/posix-functions/getdate.texi (get_date): Provide fallback
59857         documentation.
59858         * modules/getdate (Files): Provide fallback docs and header.
59859         (Notice, Depends-on): Update references.
59860         * tests/test-parse-datetime.c: Likewise.
59861         * DEPENDENCIES: Likewise.
59862         * MODULES.html.sh (Date and time <time.h>): Likewise.
59863         * doc/parse-datetime.texi (Date input formats)
59864         (Authors of parse_datetime): Likewise.
59865         * modules/parse-datetime (Files, configure.ac, Makefile.am)
59866         (Include): Likewise.
59867         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
59868         * gnulib-tool: Likewise.
59869         * m4/bison.m4 (gl_BISON): Likewise.
59870         Suggested by Bruno Haible.
59872 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59874         more ports to Solaris tr, which needs [] around ranges
59875         * gnulib-tool: Solaris tr needs [] around ranges.
59876         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
59877         * tests/test-pipe-filter-gi1.c (main): Likewise.
59878         * tests/test-pipe-filter-ii1.c (main): Likewise.
59880 2010-10-05  Eric Blake  <eblake@redhat.com>
59882         bootstrap: fix Solaris regression
59883         * build-aux/bootstrap (check_versions): Solaris tr still needs []
59884         around ranges.
59885         Reported by Pádraig Brady.
59887         bootstrap: work with pkg-config
59888         * build-aux/bootstrap (check_versions): Also transliterate - in
59889         prerequisite name.
59890         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
59891         prerequisites that were already found, to avoid confusion.
59892         Reported by Justin Clift.
59894         faccessat: remove unused wrappers
59895         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
59896         presence of these wrappers dragged in -lgen on Solaris.
59897         Reported by Clemens Brogi; fix suggested by Paul Eggert.
59899 2010-10-05  Jim Meyering  <meyering@redhat.com>
59901         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
59902         * Makefile (sc_pragma_columns): New syntax-check rule.
59904 2010-10-04  Bruno Haible  <bruno@clisp.org>
59906         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
59907         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
59908         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
59909         Reported by Bruce Korb and Eric Blake.
59911 2010-10-04  Bruno Haible  <bruno@clisp.org>
59913         threadlib: Make option --with-libpth-prefix work.
59914         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
59915         use $LIBPTH, not just -lpth.
59917 2010-10-04  Bruno Haible  <bruno@clisp.org>
59919         Avoid line length limitation from HP NonStop system header files.
59920         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
59921         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
59922         * lib/ctype.in.h: Likewise.
59923         * lib/dirent.in.h: Likewise.
59924         * lib/errno.in.h: Likewise.
59925         * lib/fcntl.in.h: Likewise.
59926         * lib/float.in.h: Likewise.
59927         * lib/getopt.in.h: Likewise.
59928         * lib/iconv.in.h: Likewise.
59929         * lib/inttypes.in.h: Likewise.
59930         * lib/langinfo.in.h: Likewise.
59931         * lib/locale.in.h: Likewise.
59932         * lib/math.in.h: Likewise.
59933         * lib/netdb.in.h: Likewise.
59934         * lib/netinet_in.in.h: Likewise.
59935         * lib/poll.in.h: Likewise.
59936         * lib/pthread.in.h: Likewise.
59937         * lib/pty.in.h: Likewise.
59938         * lib/sched.in.h: Likewise.
59939         * lib/se-selinux.in.h: Likewise.
59940         * lib/search.in.h: Likewise.
59941         * lib/signal.in.h: Likewise.
59942         * lib/spawn.in.h: Likewise.
59943         * lib/stdarg.in.h: Likewise.
59944         * lib/stddef.in.h: Likewise.
59945         * lib/stdint.in.h: Likewise.
59946         * lib/stdio.in.h: Likewise.
59947         * lib/stdlib.in.h: Likewise.
59948         * lib/string.in.h: Likewise.
59949         * lib/strings.in.h: Likewise.
59950         * lib/sys_file.in.h: Likewise.
59951         * lib/sys_ioctl.in.h: Likewise.
59952         * lib/sys_select.in.h: Likewise.
59953         * lib/sys_socket.in.h: Likewise.
59954         * lib/sys_stat.in.h: Likewise.
59955         * lib/sys_time.in.h: Likewise.
59956         * lib/sys_times.in.h: Likewise.
59957         * lib/sys_utsname.in.h: Likewise.
59958         * lib/sys_wait.in.h: Likewise.
59959         * lib/sysexits.in.h: Likewise.
59960         * lib/termios.in.h: Likewise.
59961         * lib/time.in.h: Likewise.
59962         * lib/unistd.in.h: Likewise.
59963         * lib/wchar.in.h: Likewise.
59964         * lib/wctype.in.h: Likewise.
59965         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
59966         * modules/ctype (Makefile.am): Likewise.
59967         * modules/dirent (Makefile.am): Likewise.
59968         * modules/errno (Makefile.am): Likewise.
59969         * modules/fcntl-h (Makefile.am): Likewise.
59970         * modules/float (Makefile.am): Likewise.
59971         * modules/getopt-posix (Makefile.am): Likewise.
59972         * modules/iconv-h (Makefile.am): Likewise.
59973         * modules/inttypes (Makefile.am): Likewise.
59974         * modules/langinfo (Makefile.am): Likewise.
59975         * modules/locale (Makefile.am): Likewise.
59976         * modules/math (Makefile.am): Likewise.
59977         * modules/netdb (Makefile.am): Likewise.
59978         * modules/netinet_in (Makefile.am): Likewise.
59979         * modules/poll-h (Makefile.am): Likewise.
59980         * modules/pthread (Makefile.am): Likewise.
59981         * modules/pty (Makefile.am): Likewise.
59982         * modules/sched (Makefile.am): Likewise.
59983         * modules/search (Makefile.am): Likewise.
59984         * modules/selinux-h (Makefile.am): Likewise.
59985         * modules/signal (Makefile.am): Likewise.
59986         * modules/spawn (Makefile.am): Likewise.
59987         * modules/stdarg (Makefile.am): Likewise.
59988         * modules/stddef (Makefile.am): Likewise.
59989         * modules/stdint (Makefile.am): Likewise.
59990         * modules/stdio (Makefile.am): Likewise.
59991         * modules/stdlib (Makefile.am): Likewise.
59992         * modules/string (Makefile.am): Likewise.
59993         * modules/strings (Makefile.am): Likewise.
59994         * modules/sys_file (Makefile.am): Likewise.
59995         * modules/sys_ioctl (Makefile.am): Likewise.
59996         * modules/sys_select (Makefile.am): Likewise.
59997         * modules/sys_socket (Makefile.am): Likewise.
59998         * modules/sys_stat (Makefile.am): Likewise.
59999         * modules/sys_time (Makefile.am): Likewise.
60000         * modules/sys_times (Makefile.am): Likewise.
60001         * modules/sys_utsname (Makefile.am): Likewise.
60002         * modules/sys_wait (Makefile.am): Likewise.
60003         * modules/sysexits (Makefile.am): Likewise.
60004         * modules/termios (Makefile.am): Likewise.
60005         * modules/time (Makefile.am): Likewise.
60006         * modules/unistd (Makefile.am): Likewise.
60007         * modules/wchar (Makefile.am): Likewise.
60008         * modules/wctype (Makefile.am): Likewise.
60010 2010-10-04  Bruno Haible  <bruno@clisp.org>
60012         read-file tests: Avoid a test failure on NonStop Kernel.
60013         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
60014         a regular file.
60015         Reported by Joachim Schmitz <schmitz@hp.com>.
60017 2010-10-03  Bruno Haible  <bruno@clisp.org>
60019         gnulib-tool: Fixes for --create-testdir with --libtool.
60020         * gnulib-tool (func_get_automake_snippet): Don't augment
60021         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
60022         an executable.
60023         (func_create_testdir): Handle module 'alloca' like func_import.
60024         Reported by Bruce Korb <bruce.korb@gmail.com>.
60026 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60028         Avoid some lines longer than 80 characters.
60029         * lib/stdint.in.h: Break long comment lines.
60030         * lib/math.in.h: Likewise.
60031         (_GL_NUM_UINT_WORDS): New macro, for readability.
60032         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
60033         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
60034         * lib/stdlib.in.h: Likewise.
60035         * lib/spawn.in.h: Likewise.
60036         * lib/sys_socket.in.h: Update an URL.
60037         * lib/sys_stat.in.h: Break long line.
60039 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
60041         Improve pmccabe2html.
60042         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
60043         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
60044         when the sources change. Remove the line in the HTML about "Used
60045         ranges" (which implied that there might be other unused ranges),
60046         rename "Resume" to "Summary" (easier to understand for more users).
60047         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
60048         styles, and some unnecessary blank lines.
60050 2010-10-03  Bruno Haible  <bruno@clisp.org>
60051             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
60053         acl: Add support for ACLs on NonStop Kernel.
60054         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
60055         Check whether the function aclsort() exists.
60056         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
60057         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
60058         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60059         (acl_nontrivial [HAVE_ACLSORT]: New function.
60060         (file_has_acl): Implement for NonStop Kernel.
60061         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60062         (qset_acl): Implement for NonStop Kernel.
60063         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
60064         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60065         (main): Implement for NonStop Kernel.
60066         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
60067         Kernel. Handle this flavor.
60068         * tests/test-set-mode-acl.sh: Likewise.
60069         * tests/test-copy-acl.sh: Likewise.
60070         * tests/test-copy-file.sh: Likewise.
60072 2010-10-03  Bruno Haible  <bruno@clisp.org>
60074         Info about ACLs on NonStop Kernel.
60075         * doc/acl-resources.txt: Add info about NonStop Kernel.
60076         References by Joachim Schmitz <schmitz@hp.com>.
60078 2010-10-02  Bruno Haible  <bruno@clisp.org>
60080         Define missing EDQUOT on NonStop Kernel.
60081         * lib/errno.in.h (EDQUOT): Assign a value if missing.
60082         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
60083         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
60084         missing.
60085         * doc/posix-headers/errno.texi: Mention the NSK bug.
60086         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
60087         Reported by Joachim Schmitz <schmitz@hp.com>.
60089 2010-10-02  Bruno Haible  <bruno@clisp.org>
60091         Update doc for POSIX:2008.
60092         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
60093         Update URL of POSIX specification.
60095 2010-10-02  Bruno Haible  <bruno@clisp.org>
60097         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
60098         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
60099         from gnulib, not from Automake.
60101 2010-10-02  Bruno Haible  <bruno@clisp.org>
60103         New module 'system-posix'.
60104         * modules/system-posix: New file.
60105         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
60106         module is present.
60107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60108         GNULIB_SYSTEM_POSIX.
60109         * modules/stdlib (Depends-on): Remove sys_wait.
60110         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
60111         * doc/posix-functions/system.texi: Mention the new module.
60112         * doc/posix-headers/stdlib.texi: Likewise.
60113         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
60114         define test_sys_wait_macros to a no-op.
60115         Reported by Sam Steingold <sds@gnu.org>.
60117 2010-09-30  Bruno Haible  <bruno@clisp.org>
60119         More renaming from 'getdate' to 'get_date'.
60120         * doc/get_date.texi: Renamed from doc/getdate.texi.
60121         * modules/get_date (Files): Update.
60122         * MODULES.html.sh (Date and time <time.h>): Update.
60123         * DEPENDENCIES: Update.
60124         * gnulib-tool: Update comment.
60125         * m4/bison.m4 (gl_BISON): Likewise.
60126         * m4/get_date.m4 (gl_GET_DATE): Likewise.
60128 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
60130         bootstrap: support ACLOCAL_FLAGS during aclocal
60131         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
60132         can add additional -I dir for third-party .m4 files.
60134 2010-09-30  Eric Blake  <eblake@redhat.com>
60136         bootstrap: use glibtoolize on MacOS
60137         * build-aux/bootstrap (check_versions): Convert libtool into
60138         libtoolize.
60139         (tool search): Move libtool check earlier, and look for
60140         glibtoolize for MacOS.
60141         (gnulib_tool_options): Auto-add --libtool when appropriate.
60142         Reported by Justin Clift.
60144         poll: fix typo that broke test on MacOS
60145         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
60146         Reported by Justin Clift.
60148         getdate: rename to get_date
60149         Note: getdate.h is not renamed, to minimize client impact.
60150         * modules/getdate: Mark obsolete.  Move old contents...
60151         * modules/get_date: ...to new module name.
60152         * modules/getdate-tests: Move...
60153         * modules/get_date-tests: ...here.
60154         * m4/getdate.m4: Move...
60155         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
60156         * lib/getdate.y: Move...
60157         * lib/get_date.y: ...here.
60158         * tests/test-getdate.c: Move...
60159         * tests/test-get_date.c: ...here.
60160         * doc/posix-functions/getdate.texi (getdate): Update name.
60161         * NEWS: Mention the change.
60163 2010-09-29  Bruno Haible  <bruno@clisp.org>
60165         Separate the module 'waitpid' from the module 'sys_wait'.
60166         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
60167         present.
60168         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
60169         gl_MODULE_INDICATOR_FOR_TESTS.
60170         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
60171         * modules/sys_wait (Depends-on): Remove waitpid.
60172         (Makefile.am): Substitute GNULIB_WAITPID.
60173         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
60174         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
60175         signature only if the 'waitpid' module is present.
60176         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
60177         * NEWS: Mention the change.
60178         * modules/grantpt (Depends-on): Add waitpid.
60179         * modules/wait-process (Depends-on): Likewise.
60181 2010-09-29  Bruno Haible  <bruno@clisp.org>
60183         More tests for module 'sys_wait'.
60184         * modules/sys_wait-c++-tests: New file.
60185         * tests/test-sys_wait-c++.cc: New file.
60186         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
60187         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60189 2010-09-29  Bruno Haible  <bruno@clisp.org>
60191         New module 'waitpid'.
60192         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
60193         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
60194         Don't include <process.h>.
60195         (waitpid): Declare only, using modern idiom.
60196         * m4/waitpid.m4: New file.
60197         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
60198         * modules/waitpid: New file.
60199         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
60200         (Makefile.am): Update.
60201         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60203 2010-09-28  Bruno Haible  <bruno@clisp.org>
60205         poll: Assume ANSI C.
60206         * lib/poll.c (poll): Use an ANSI C declaration.
60208 2010-09-28  Bruno Haible  <bruno@clisp.org>
60210         poll-h: Create poll.h on all platforms.
60211         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
60212         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
60213         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
60214         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
60215         (gl_REPLACE_POLL_H): Don't set POLL_H.
60216         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
60217         * modules/poll-h (Depends-on): Add include_next.
60218         (Makefile.am): Create poll.h unconditionally. Substitute also
60219         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
60221 2010-09-28  Bruno Haible  <bruno@clisp.org>
60223         Tests for module 'poll-h'.
60224         * modules/poll-h-c++-tests: New file.
60225         * tests/test-poll-h-c++.cc: New file.
60227         Tests for module 'poll-h'.
60228         * modules/poll-h-tests: New file.
60229         * tests/test-poll-h.c: New file.
60231 2010-09-28  Bruno Haible  <bruno@clisp.org>
60233         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
60234         * modules/poll-h (Depends-on): Add 'extensions'.
60236 2010-09-28  Bruno Haible  <bruno@clisp.org>
60238         New module 'poll-h'.
60239         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
60240         (poll): Use modern idiom.
60241         * modules/poll-h: New file.
60242         * modules/poll (Files): Remove lib/poll.in.h.
60243         (Depends-on): Add poll-h.
60244         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
60245         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
60246         * m4/poll_h.m4: New file.
60247         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
60248         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
60249         and invoke gl_REPLACE_POLL_H.
60250         * lib/poll.c: Use common idiom.
60251         * tests/test-poll.c: Likewise.
60252         * doc/posix-headers/poll.texi: Mention the poll-h module.
60253         Suggested by Eric Blake.
60255 2010-09-26  Bruno Haible  <bruno@clisp.org>
60257         sys_wait: Implement WSTOPSIG.
60258         * lib/sys_wait.in.h (WSTOPSIG): New macro.
60259         Reported by Simon Josefsson.
60261 2010-09-26  Simon Josefsson  <simon@josefsson.org>
60263         stdlib, sys_wait: Avoid compilation error on mingw.
60264         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
60266 2010-09-26  Bruno Haible  <bruno@clisp.org>
60268         stdlib tests: Avoid code duplication.
60269         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
60270         * modules/sys_wait-tests (Files): Likewise.
60271         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
60272         * tests/test-stdlib.c: Include test-sys_wait.h.
60273         (main): Invoke test_sys_wait_macros.
60274         * tests/test-sys_wait.c: Include test-sys_wait.h.
60275         (main): Invoke test_sys_wait_macros.
60277 2010-09-25  Simon Josefsson  <simon@josefsson.org>
60279         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
60280         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
60281         sure Windows sockets are working before calling getaddrinfo.
60282         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
60283         * doc/gnulib.texi (Windows sockets): Fix typo.
60285 2010-09-25  Bruno Haible  <bruno@clisp.org>
60287         Tests for module 'regex-quote'.
60288         * modules/regex-quote-tests: New file.
60289         * tests/test-regex-quote.c: New file.
60291         New module 'regex-quote'.
60292         * lib/regex-quote.h: New file.
60293         * lib/regex-quote.c: New file.
60294         * modules/regex-quote: New file.
60295         Suggested by Reuben Thomas <rrt@sc3d.org>.
60297 2010-09-24  Bruno Haible  <bruno@clisp.org>
60299         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
60300         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
60302 2010-09-23  Bruno Haible  <bruno@clisp.org>
60304         setenv: Relax license.
60305         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
60306         Blake.
60307         Requested by Eric Blake.
60309 2010-09-22  Bruno Haible  <bruno@clisp.org>
60311         termios: Relax license.
60312         * modules/termios (License): Change to LGPLv2+.
60313         Requested by Eric Blake.
60315 2010-09-22  Bruno Haible  <bruno@clisp.org>
60317         threadlib: Allow the package to change the default to 'no'.
60318         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
60319         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
60320         Reported by Paul Eggert.
60322 2010-09-22  Pádraig Brady  <P@draigbrady.com>
60323             Bruno Haible  <bruno@clisp.org>
60325         Fix endless loop in mbmemcasecoll.
60326         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
60327         byte.
60328         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
60330 2010-09-22  Bruno Haible  <bruno@clisp.org>
60332         Tests for module 'memcoll'.
60333         * modules/memcoll-tests: New file.
60334         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
60336         memcoll, xmemcoll: Clarify size vs. length.
60337         * modules/memcoll.c (memcoll0): Clarify specification.
60338         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
60339         passed to collate_error.
60341 2010-09-22  Bruno Haible  <bruno@clisp.org>
60343         Tests for module 'memcasecmp'.
60344         * modules/memcasecmp-tests: New file.
60345         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
60347 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60349         * lib/pthread.in.h: Add split double-inclusion guard, and include
60350         system <pthread.h> if there is one.  Use @@-style as in other
60351         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
60352         pthread.h doesn't.
60353         (pthread_mutexattr_destroy, pthread_mutexattr_init):
60354         (pthread_mutexattr_settype, pthread_mutex_trylock):
60355         New static inline functions, if there's no system <pthread.h>.
60356         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
60357         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
60358         Approximate with mutexes if the system lacks spinlocks, as in
60359         MacOS.
60360         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
60361         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
60362         @@-style.  Check for spinlocks separately.
60363         (gl_PTHREAD_DEFAULTS): New macro.
60364         * modules/pthread: Redo to use a more typical style for in.h files.
60366 2010-09-21  Eric Blake  <eblake@redhat.com>
60368         net_if: enhance tests
60369         * tests/test-net_if.c (main): Move signature checks earlier.
60370         Print failures to stderr.
60371         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
60372         Document the bug that we do not yet fix.
60374 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60376         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
60377         about gnulib, not GSS.
60379 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60381         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
60382         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
60383         for Emacs.
60384         * build-aux/pmccabe2html: Make Makefile.am example code more
60385         cut-and-paste friendly.
60387 2010-09-21  Simon Josefsson  <simon@josefsson.org>
60389         * tests/test-net_if.c: New file.
60390         * modules/net_if-tests: New file.
60392 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60394         pthread: add pthread_spin_destroy
60395         * lib/pthread.in.h (pthread_spin_destroy): New function.
60397 2010-09-19  Bruno Haible  <bruno@clisp.org>
60399         gnulib-tool: Fix --help output.
60400         * gnulib-tool (func_usage): Fix help message.
60401         Reported by Reuben Thomas <rrt@sc3d.org>.
60403 2010-09-18  Jim Meyering  <meyering@redhat.com>
60405         maint.mk: avoid unexpanded \n in two diagnostics
60406         * top/maint.mk (sc_prohibit_always_true_header_tests):
60407         Don't use a literal \n in a halt=... assignment.  It would not be
60408         expanded, and the two \n bytes would appear in the diagnostic output
60409         rather than the desired newline.  Use halt=$$(printf ... instead.
60410         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
60412 2010-09-18  Bruno Haible  <bruno@clisp.org>
60414         netinet_in: Doc tweak.
60415         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
60416         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60418 2010-09-18  Jim Meyering  <meyering@redhat.com>
60420         init.sh: correct an outdated comment
60421         * tests/init.sh (create_exe_shims_):  s/function/alias/
60423         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
60424         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
60425         a file named "*.exe" is removed between the glob expansion and the
60426         processing of that oddly named file.
60428 2010-09-17  Eric Blake  <eblake@redhat.com>
60430         mirbsd: add some more support
60431         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
60432         in BSD family.
60433         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
60434         devices as OpenBSD.
60435         * m4/host-os.m4 (mirbsd): Add MirBSD.
60437         tests: fix unportable assumption on sys/wait.h
60438         * tests/test-sys_wait.c (main): Relax test.
60439         * tests/test-stdlib.c (main): Likewise.
60441         init.sh: accommodate directory with no .exes
60442         * tests/init.sh: Accomodate directory containing only scripts.
60444         tests: avoid compiler warning
60445         * tests/test-stdlib.c (main): Use the variable.
60447         fdutimens, fdutimensat: update signature, again
60448         * lib/utimens.h (gl_futimens): Delete, and move signature...
60449         (fdutimens): ...here.
60450         (fdutimensat): Rearrange signature.
60451         (lutimensat): Rename variable for clarity.
60452         * lib/fdutimensat.c (fdutimensat): Update signature.
60453         * lib/utimens.c (fdutimens): Likewise.
60454         (gl_futimens): Delete.
60455         (utimens, lutimens): Update callers.
60456         * lib/futimens.c (futimens): Likewise.
60457         * tests/test-fdutimensat.c: Likewise.
60458         * tests/test-utimens.c: Likewise.
60459         * tests/test-futimens.h: Update comment.
60460         * NEWS: Mention this.
60461         Suggested by Paul Eggert.
60463 2010-09-17  Bruno Haible  <bruno@clisp.org>
60465         Take over the maintenance of some older macros from Autoconf.
60466         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
60467         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
60468         GNU Autoconf.
60469         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
60470         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
60472 2010-09-17  Eric Blake  <eblake@redhat.com>
60474         fdutimensat: drop atflag validation
60475         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
60476         with valid fd, to close a race scenario where futimens is
60477         unsupported and FILE was replaced by a symlink.
60478         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
60479         accordingly.
60480         Suggested by Paul Eggert.
60482 2010-09-16  Bruno Haible  <bruno@clisp.org>
60484         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
60485         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
60487 2010-09-16  Bruno Haible  <bruno@clisp.org>
60489         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
60490         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
60491         login_tty exists.
60492         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60494 2010-09-16  Bruno Haible  <bruno@clisp.org>
60496         login_tty: Make the replacement code work on BSD systems.
60497         * lib/login_tty.c: Include <sys/ioctl.h>.
60498         (login_tty): Use ioctl TIOCSCTTY when available.
60499         * modules/login_tty (Depends-on): Add sys_ioctl.
60500         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60502 2010-09-16  Bruno Haible  <bruno@clisp.org>
60504         login_tty: Stricter unit test.
60505         * modules/login_tty-tests (Depends-on): Add tcgetsid.
60506         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
60507         and tcgetsid() after login_tty.
60508         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60510 2010-09-16  Bruno Haible  <bruno@clisp.org>
60512         New module 'tcgetsid'.
60513         * lib/tcgetsid.c: New file.
60514         * m4/tcgetsid.m4: New file.
60515         * modules/tcgetsid: New file.
60516         * modules/termios (Depends-on): Add c++defs, warn-on-use.
60517         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
60518         GNULIB_TCGETSID, HAVE_TCGETSID.
60519         * lib/termios.in.h: Include <sys/types.h>.
60520         (tcgetsid): New declaration.
60521         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
60522         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
60523         * doc/posix-functions/tcgetsid.texi: Mention the new module.
60524         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
60526 2010-09-16  Bruno Haible  <bruno@clisp.org>
60528         Tests for module 'termios'.
60529         * modules/termios-c++-tests: New file.
60530         * modules/termios-tests: New file.
60531         * tests/test-termios-c++.cc: New file.
60532         * tests/test-termios.c: New file.
60534         New module 'termios'.
60535         * modules/termios: New file.
60536         * lib/termios.in.h: New file.
60537         * m4/termios_h.m4: New file.
60538         * doc/posix-headers/termios.texi: Mention the new module.
60540 2010-09-16  Eric Blake  <eblake@redhat.com>
60542         fdutimensat: add an atflag parameter
60543         * lib/fdutimensat.c (fdutimensat): Add new parameter.
60544         * lib/utimens.h (fdutimensat): Update prototype.
60545         * tests/test-fdutimensat.c: Adjust test to match.
60546         * NEWS: Document the change.
60547         Suggested by Paul Eggert.
60549 2010-09-16  Bruno Haible  <bruno@clisp.org>
60551         Fix typos in comments.
60552         * lib/striconveh.h: Fix typo in comment.
60553         * lib/login_tty.c (login_tty): Likewise.
60555 2010-09-15  Bruno Haible  <bruno@clisp.org>
60557         stdlib: clarify MirBSD WEXITSTATUS bug
60558         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
60559         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
60561 2010-09-15  Eric Blake  <eblake@redhat.com>
60563         stdlib: work around MirBSD WEXITSTATUS bug
60564         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
60565         * modules/stdlib (Depends-on): Add sys_wait.
60566         * tests/test-sys_wait.c (main): Enhance test.
60567         * tests/test-stdlib.c (main): Likewise.
60568         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
60570         docs: mention MacOS issue with WEXITSTATUS(constant)
60571         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
60572         issue.
60573         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
60575         strnlen: add tests
60576         * modules/strnlen-tests: New file.
60577         * tests/test-strnlen.c: Likewise.
60579 2010-09-14  Bruno Haible  <bruno@clisp.org>
60581         unistr/base: Avoid link errors when module 'libunistring' is also used.
60582         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
60583         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
60584         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
60585         Declare also when HAVE_LIBUNISTRING is set.
60586         Reported by Pádraig Brady <P@draigbrady.com>.
60588 2010-09-14  Eric Blake  <eblake@redhat.com>
60590         test-rawmemchr: make more robust
60591         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
60592         (Depends-on, configure.ac): Add needed prerequisites to use it.
60593         * modules/memchr-tests (Files, Depends-on, configure.ac):
60594         Likewise, to avoid implicit reliance on memchr module prereqs.
60595         * tests/test-memchr.c (main): Ensure proper masking.
60596         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
60597         reads.
60599         memchr: detect glibc Alpha bug
60600         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
60601         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
60602         Alpha.
60603         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
60604         * tests/test-memchr.c (main): Enhance test.
60605         Reported by Nelson H. F. Beebe.
60607 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60609         fts, getcwd, glob: audit for dirfd returning -1
60610         * lib/fts.c (opendir): Remove #define; no longer used.
60611         (opendirat): New arg PDIR_FD.  All callers changed.
60612         (fts_build, _opendir2): Use new opendirat to avoid the need for
60613         dirfd, or for checking whether dirfd returns a negative value.
60614         Don't use opendir; always use openat followed by fdopendir.
60615         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
60616         it.
60617         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
60618         returns -1 here.
60619         * modules/fts (Depends-on): Remove dirfd.
60620         * modules/getcwd (Depends-on): Likewise.
60622 2010-09-13  Eric Blake  <eblake@redhat.com>
60624         float: fix broken MirBSD header
60625         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
60626         * doc/posix-headers/float.texi (float.h): Document it.
60628 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60630         fts: use O_NOFOLLOW to avoid race condition when opening a directory
60631         * lib/fts.c (opendirat): New arg extra_flags.
60632         (__opendir2): Use it to avoid following symlinks when opening
60633         a directory, if symlinks are not supposed to be followed.  See
60634         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
60636         fdopendir: preserve argument fd before returning
60637         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
60638         (fdopendir_with_dup, fd_clone_opendir): New static functions.
60639         (fdopendir): Use them, arranging for FD to be open to the same
60640         directory that it was when it started.  (It might be temporarily
60641         closed while fdopendir is running, so this not thread- or
60642         signal-safe.)  Be careful to do the right thing even when file
60643         descriptors are scarce and dup fails with errno == EMFILE.  See
60644         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
60646 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
60648         regex: Pass the system regex if its only problem is 32-bit regoff_t.
60649         * NEWS: Document change.
60650         * m4/regex.m4: Disable test for regoff_t size.
60652 2010-09-13  Jim Meyering  <meyering@redhat.com>
60654         fts: don't operate on an invalid file descriptor after failed dup
60655         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
60656         negative file descriptor.
60658 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
60660         savedir: add streamsavedir, deprecate fdsavedir
60661         * NEWS: Mention deprecation of fdsavedir.
60662         * lib/savedir.c (streamsavedir): New extern function, whose name
60663         ends in "savedir" to be consistent with the others.  This differs
60664         from savedirstream in that it doesn't close its argument.  The
60665         next version of GNU tar will use this instead of fdsavedir, to
60666         avoid some race conditions and conserve file descriptors.
60667         (savedirstream): Reimplement as a wrapper around streamsavedir.
60668         (fdsavedir): Add a comment deprecating this function.  As far as
60669         I know, only GNU tar used it, and GNU tar doesn't need it any more.
60670         * lib/savedir.h (streamsavedir): New decl.
60671         (fdsavedir): Add a comment deprecating this.
60673 2010-09-10  Bruno Haible  <bruno@clisp.org>
60675         langinfo: Fix last commit.
60676         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
60677         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
60678         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60680 2010-09-10  Bruno Haible  <bruno@clisp.org>
60682         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
60683         * lib/progreloc.c (O_EXEC): Define fallback.
60685 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
60687         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
60688         * NEWS: Document recent changes to fcntl-h.
60689         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
60690         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
60691         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
60692         Similarly for O_SEARCH; this last was already true, but not documented.
60693         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
60694         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
60695         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
60696         Likewise.
60697         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
60698         is zero, not whether it is defined.
60699         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
60700         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
60701         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
60703 2010-09-10  Bruno Haible  <bruno@clisp.org>
60705         langinfo, nl_langinfo: Fix for IRIX 5.3.
60706         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
60707         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
60708         HAVE_LANGINFO_YESEXPR.
60709         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
60710         HAVE_LANGINFO_YESEXPR.
60711         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
60712         HAVE_LANGINFO_T_FMT_AMPM is 0.
60713         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
60714         HAVE_LANGINFO_YESEXPR is 0.
60715         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
60716         NOEXPR.
60717         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
60718         * doc/posix-functions/nl_langinfo.texi: Likewise.
60719         Reported by Eric Blake.
60721 2010-09-10  Bruno Haible  <bruno@clisp.org>
60723         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
60724         * doc/glibc-functions/login_tty.texi: Mention the include file problem
60725         on FreeBSD 8.0 and OpenBSD 4.6.
60726         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
60727         * m4/pty_h.m4 (gl_PTY_H): Likewise.
60728         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
60729         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
60730         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
60731         ac_includes_default.
60732         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60734 2010-09-09  Eric Blake  <eblake@redhat.com>
60736         strsignal: work around NetBSD bug
60737         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
60738         * lib/string.in.h (includes): Likewise.
60739         * doc/posix-functions/strsignal.texi (strsignal): Document the
60740         bug.
60741         Reported by Nelson H. F. Beebe.
60743         gnulib-tool: work with NetBSD /bin/sh
60744         * gnulib-tool (func_cache_var, func_cache_lookup_module)
60745         (func_get_description, func_get_comment, func_get_status)
60746         (func_get_notice, func_get_applicability, func_get_filelist)
60747         (func_get_dependencies, func_get_autoconf_early_snippet)
60748         (func_get_autoconf_snippet, func_get_automake_snippet)
60749         (func_get_include_directive, func_get_link_directive)
60750         (func_get_license, func_get_maintainer, func_import): Avoid
60751         shell syntax errors from parsing syntax extensions.
60753 2010-09-09  Bruno Haible  <bruno@clisp.org>
60755         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
60756         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
60757         a reliable way to determine whether the 'alias' command works.
60759 2010-09-08  Jim Meyering  <meyering@redhat.com>
60761         init.sh: penalize a set-x-impaired shell; don't disqualify it
60762         * tests/init.sh: Too many shells corrupt application stderr when
60763         you set -x, so we can't afford to disqualify them, since at least
60764         on Irix-6.5, that would disqualify all bourne shells.
60765         Instead, use a two-pass approach.
60766         On the first pass, try to find a shell that meets the stricter
60767         condition that set -x does not corrupt stderr.
60768         If no shell meets the stricter condition, retest each candidate
60769         shell, but without that extra condition.  Finally, when
60770         VERBOSE=yes is requested and set -x might cause trouble, simply
60771         issue a warning and refrain from enabling debug output.
60773 2010-09-08  Eric Blake  <eblake@redhat.com>
60775         unsetenv: fix OpenBSD bug
60776         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
60777         * doc/posix-functions/unsetenv.texi (unsetenv): Update
60778         documentation.
60779         Reported by Jim Meyering.
60781         strtod: work around IRIX 6.5 bug
60782         * lib/strtod.c (strtod): Reparse number on shorter string if
60783         exponent parse was invalid.
60784         * tests/test-strtod.c (main): Add check for "0x1p 2".
60785         Reported by Tom G. Christensen.
60787         getopt: optimize previous patch
60788         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
60789         empty variable.  Speed up awk script.
60790         Reported by Paolo Bonzini.
60792 2010-09-08  Jim Meyering  <meyering@redhat.com>
60794         test.sh: disqualify shells for which set -x corrupts stderr
60795         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
60796         and OpenBSD 4.7.  They make it so with "set -x", environment settings
60797         appear in stderr output.  For example, this command:
60798             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
60799         prints "P=1" on those two systems:
60801 2010-09-08  Bruno Haible  <bruno@clisp.org>
60803         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
60804         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
60805         commands, because some shells ignore redirections when there is an
60806         error in the command lookup.
60807         Reported by Eric Blake.
60809 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
60811         * lib/regex.h: Fix a mention of `regex_compile' (should be
60812         `re_compile_pattern').
60813         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
60814         (re_set_registers): Correct name of parameter in comment.
60816         * doc/regex.texi: Add documentation for missing syntax flags.
60817         Remove commented-out documentation of defunct syntax option
60818         RE_NO_EMPTY_ALTS.
60819         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
60820         Add documentation of re_set_registers.
60821         Document trick to re-use a pattern buffer by setting fastmap manually.
60822         Update documentation of struct re_pattern_buffer per public members.
60823         Uncomment documentation of equivalence class operators and
60824         collating symbol operators, since they are now implemented,
60825         Explain leftmost-longest matching in relation to alternatives.
60826         Tidy documentation of substring matching.
60827         Remove POSIX documentation, which is done better in
60828         glibc, and refer the reader there. Keep BSD API documentation, as
60829         that is not readily available elsewhere.
60831 2010-09-07  Eric Blake  <eblake@redhat.com>
60833         getopt: handle POSIXLY_CORRECT set but not exported
60834         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
60835         export state of POSIXLY_CORRECT, due to bash set -o posix.
60836         Reported by Dustin J. Mitchell.
60838 2010-09-05  Bruno Haible  <bruno@clisp.org>
60840         gnulib-tool: Highlight the changed options.
60841         * gnulib-tool (func_usage): Display the --import, --add-import,
60842         --remove-import explanations in bold font.
60844 2010-09-06  Karl Berry  <karl@gnu.org>
60846         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
60848 2010-09-05  Bruno Haible  <bruno@clisp.org>
60850         uniwidth/width: Update comment.
60851         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
60852         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
60854 2010-09-05  Bruno Haible  <bruno@clisp.org>
60856         isinf, isnan: Relax license.
60857         * modules/isinf (License): Change from GPL to LGPL, with consent from
60858         Ben Pfaff.
60859         * modules/isnan (License): Likewise.
60860         Requested by Ludovic Courtès.
60862 2010-09-04  Bruno Haible  <bruno@clisp.org>
60864         gnulib-tool: Help migration from --import to --add-import or --update.
60865         * gnulib-tool: Emit a verbose error message when --import is used
60866         without any module name.
60868 2010-09-04  Bruno Haible  <bruno@clisp.org>
60870         Update doc about gnulib-tool.
60871         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
60872         'gnulib-tool --update' in more detail.
60873         Reported by Eric Blake.
60875 2010-09-04  Bruno Haible  <bruno@clisp.org>
60877         gnulib-tool: Change --import. New options --add/remove-import.
60878         * gnulib-tool: New options --add-import, --remove-import.
60879         (func_usage): Document them.
60880         (have_associative): Define always.
60881         (func_import): In import mode, don't merge the specified settings with
60882         the cached settings. Implement remove-import mode.
60883         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
60884         Explain when to use them versus --import.
60885         (Simple update): Use --add-import instead of --import.
60886         * NEWS: Mention the change.
60888 2010-09-04  Bruno Haible  <bruno@clisp.org>
60890         * doc/gnulib-tool.texi (Initial import): Update paragraph about
60891         separate gnulib.mk.
60893 2010-09-04  Bruno Haible  <bruno@clisp.org>
60895         gnulib-tool: Don't talk about CVS any more.
60896         * gnulib-tool (func_usage, func_import): Write "version control"
60897         instead of CVS.
60899 2010-09-04  Jim Meyering  <meyering@redhat.com>
60901         maint.mk: avoid obscure sc_copyright_check failure in coreutils
60902         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
60903         false positives (whose names may be ill-chosen) when searching
60904         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
60905         would cause a false-positive.
60907         avoid coreutils "make distcheck" failure
60908         Coreutils tests with an absolute build directory name that contains
60909         a space.  Not quoting this directory name caused a failure.
60910         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
60911         * tests/test-vc-list-files-cvs.sh: Likewise.
60913 2010-09-04  Bruno Haible  <bruno@clisp.org>
60915         gnulib-tool: Avoid error when run in a package without Makefile.am.
60916         * gnulib-tool: When collecting the m4dirs in a package that does not
60917         have a Makefile.am, eliminate those directories that contain no
60918         gnulib-cache.m4. Fix expression that counts these directories.
60920 2010-09-04  Bruno Haible  <bruno@clisp.org>
60922         update-copyright test: Improve output when perl is missing or too old.
60923         * tests/test-update-copyright.sh: Move test of Perl version down after
60924         the test whether Perl exists. Provide an explanation relating Perl's
60925         error message to Automake's SKIP: message.
60927 2010-09-04  Bruno Haible  <bruno@clisp.org>
60929         Don't augment PATH in TESTS_ENVIRONMENT.
60930         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
60931         set abs_aux_dir instead of augmenting PATH.
60932         * modules/vc-list-files-tests (Makefile.am): Likewise.
60933         * tests/test-update-copyright.sh: Augment PATH here.
60934         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
60935         path_prepend_.
60936         * tests/test-vc-list-files-git.sh: Likewise.
60938 2010-09-04  Jim Meyering  <meyering@redhat.com>
60940         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
60941         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
60943 2010-09-04  Bruno Haible  <bruno@clisp.org>
60945         strdup: Fix compilation error in C++ mode.
60946         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
60947         the macro.
60949 2010-09-04  Bruno Haible  <bruno@clisp.org>
60951         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
60952         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
60953         macro into a function.
60954         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
60956 2010-09-04  Bruno Haible  <bruno@clisp.org>
60958         Set PATH_SEPARATOR the same way autoconf does.
60959         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
60960         the value of PATH_SEPARATOR the same way autoconf-generated configure
60961         scripts do.
60962         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
60963         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60965 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
60967         Set PATH_SEPARATOR the same way autoconf does.
60968         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
60969         the same way autoconf-generated configure scripts do.
60970         * posix-modules: Likewise.
60972 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60974         hash: fix safe_hasher const typo
60975         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
60976         const; otherwise, there is a type error later.
60978 2010-09-02  Jim Meyering  <meyering@redhat.com>
60980         test-update-copyright.sh: require perl 5.8.0
60981         * tests/test-update-copyright.sh: Require 5.8.0,
60982         which Tom G. Christensen has confirmed is adequate,
60983         while 5.6.1 is not.
60985 2010-09-02  Eric Blake  <eblake@redhat.com>
60987         tests: init.sh improvements for re-exec'ing with zsh
60988         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
60989         -vx through shell re-exec.
60990         Reported by Tom G. Christensen.
60992         wctype: fix typo in previous commit
60993         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
60994         Reported by Ludovic Courtès.
60996 2010-09-02  Jim Meyering  <meyering@redhat.com>
60998         test-update-copyright.sh: skip test if Perl is too old
60999         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
61000         Reported by Tom G. Christensen.
61002 2010-09-02  Bruno Haible  <bruno@clisp.org>
61004         wctype: Avoid compilation error on IRIX 6.5.30.
61005         * lib/wctype.in.h (iswblank): Declare with a replacement if
61006         REPLACE_ISWBLANK is set.
61007         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
61008         declared. Set REPLACE_ISWBLANK.
61009         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
61010         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
61011         * doc/posix-headers/wctype.texi: Likewise.
61012         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61014 2010-09-01  Bruno Haible  <bruno@clisp.org>
61016         New module 'socketlib'.
61017         * modules/socketlib: New file.
61018         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
61019         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
61020         * modules/sockets (Depends-on): Add socketlib.
61021         Suggested by Sam Steingold <sds@gnu.org>.
61023 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61025         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
61027         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
61028         when one needs search access to a directory but not read access.
61029         On systems where it is available, it works in some cases where
61030         O_RDONLY does not, namely on directories that are searchable but
61031         not readable, and which need only to be searchable.  If O_SEARCH
61032         is not available, fall back to the traditional method of using
61033         O_RDONLY.
61035         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
61036         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
61037         when opening a directory that needs only to be searchable.
61038         * lib/chdir-safer.c (chdir_no_follow): Likewise.
61039         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
61040         * lib/openat-proc.c (openat_proc_name): Likewise.
61041         * lib/openat.c (openat_needs_fchdir): Likewise.
61042         * lib/save-cwd.c (save_cwd): Likewise.
61043         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
61045 2010-08-28  Bruno Haible  <bruno@clisp.org>
61047         New module 'host-cpu-c-abi'.
61048         * modules/host-cpu-c-abi: New file.
61049         * m4/host-cpu-c-abi.m4: New file, based on part of
61050         clisp/src/m4/general.m4.
61051         Requested by Sam Steingold <sds@gnu.org>.
61053 2010-08-31  Eric Blake  <eblake@redhat.com>
61054         and Jim Meyering  <meyering@redhat.com>
61056         hash: factor, and guard against misbehaving hasher function
61057         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
61058         of table->hasher's return value.  Also protect against a hash value
61059         so large that adding it to table->bucket results in a NULL pointer.
61060         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
61061         Use it in place of open-coded check-and-abort.
61063 2010-08-30  Bruno Haible  <bruno@clisp.org>
61065         hash: silence spurious clang warning
61066         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
61067         Reported by Eric Blake.
61069 2010-08-30  Eric Blake  <eblake@redhat.com>
61071         strstr, memmem, strcasestr: avoid leaked shell message
61072         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
61073         FreeBSD.
61074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61075         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61077         tests: silence clang warning
61078         * tests/test-malloca.c (do_allocation): Avoid dead store.
61080 2010-08-29  Bruno Haible  <bruno@clisp.org>
61082         gettext: Fix recent mistake.
61083         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
61085 2010-08-29  Bruno Haible  <bruno@clisp.org>
61087         selinux-h: Offer a --without-selinux option.
61088         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
61089         --without-selinux was specified, skip all tests and define
61090         HAVE_SELINUX_SELINUX_H to 0.
61091         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
61092         set LIB_SELINUX to empty.
61093         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
61094         gl_LIBSELINUX. If --without-selinux was specified, replace
61095         selinux/context.h.
61096         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
61098 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61099             Bruno Haible  <bruno@clisp.org>
61101         Make the module 'realloc-gnu' work again on AIX and OSF/1.
61102         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
61103         of HAVE_REALLOC.
61104         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
61105         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
61106         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
61107         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61109 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61110             Bruno Haible  <bruno@clisp.org>
61112         Make the module 'calloc-gnu' work again on AIX and OSF/1.
61113         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
61114         HAVE_CALLOC.
61115         * lib/xmalloc.c: Update accordingly.
61116         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
61117         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
61118         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
61120 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61121             Bruno Haible  <bruno@clisp.org>
61123         Make the module 'malloc-gnu' work again on AIX and OSF/1.
61124         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
61125         HAVE_MALLOC.
61126         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
61127         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
61128         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61130 2010-08-29  Bruno Haible  <bruno@clisp.org>
61132         Update modules list.
61133         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
61134         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
61135         (String handling <string.h>): Add astrxfrm.
61136         (File system functions): Add readlinkat.
61138 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61140         Tests for module 'realloc-gnu'.
61141         * modules/realloc-gnu-tests: New file.
61142         * tests/test-realloc-gnu.c: New file.
61144         Tests for module 'calloc-gnu'.
61145         * modules/calloc-gnu-tests: New file.
61146         * tests/test-calloc-gnu.c: New file.
61148         Tests for module 'malloc-gnu'.
61149         * modules/malloc-gnu-tests: New file.
61150         * tests/test-malloc-gnu.c: New file.
61152 2010-08-28  Bruno Haible  <bruno@clisp.org>
61154         Rename module 'realloc' -> 'realloc-gnu'.
61155         * modules/realloc-gnu: New file, copied from modules/realloc.
61156         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
61157         obsolete.
61158         * modules/mgetgroups (Depends-on): Update.
61159         * doc/posix-functions/realloc.texi: Update.
61160         * NEWS: Mention the change.
61162         Rename module 'calloc' -> 'calloc-gnu'.
61163         * modules/calloc-gnu: New file, copied from modules/calloc.
61164         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
61165         obsolete.
61166         * doc/posix-functions/calloc.texi: Update.
61167         * NEWS: Mention the change.
61169         Rename module 'malloc' -> 'malloc-gnu'.
61170         * modules/malloc-gnu: New file, copied from modules/malloc.
61171         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
61172         obsolete.
61173         * modules/argp (Depends-on): Update.
61174         * modules/regex (Depends-on): Update.
61175         * doc/posix-functions/malloc.texi: Update.
61176         * NEWS: Mention the change.
61178 2010-08-28  Eric Blake  <eblake@redhat.com>
61180         pread, pwrite: add missing dependency
61181         * modules/pread (Depends-on): Add extensions.
61182         * modules/pwrite (Depends-on): Likewise.
61184 2010-08-28  Bruno Haible  <bruno@clisp.org>
61186         unistr/u*-strchr: Fix tests dependencies.
61187         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
61188         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
61189         Reported by Ian Beckwith <ianb@erislabs.net>.
61191 2010-08-28  Bruno Haible  <bruno@clisp.org>
61193         read-file: Don't occupy too much unused memory.
61194         * lib/read-file.c (fread_file): Shrink the buffer at the end.
61196 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
61197             Eric Blake  <eblake@redhat.com>
61198             Bruno Haible  <bruno@clisp.org>
61200         read-file: Avoid memory reallocations with regular files.
61201         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
61202         (fread_file): With regular files, use the remaining length as the
61203         initial buffer size.  Check against overflow.
61204         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
61205         sys_stat.
61207 2010-08-28  Bruno Haible  <bruno@clisp.org>
61209         ftello: Relax license.
61210         * modules/ftello (License): Relax to LGPLv2+.
61211         Reported by Eric Blake.
61213 2010-08-28  Bruno Haible  <bruno@clisp.org>
61215         Avoid relocwrapper link errors due to gnulib replacement functions.
61216         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
61217         function.
61218         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61220 2010-08-28  Bruno Haible  <bruno@clisp.org>
61222         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
61223         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
61224         defined.
61225         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
61226         Suggested by Eric Blake.
61228 2010-08-28  Bruno Haible  <bruno@clisp.org>
61230         sys_socket, netdb: Ensure socklen_t gets defined.
61231         * modules/sys_socket (Depends-on): Add socklen.
61232         * modules/netdb (Depends-on): Likewise.
61233         * modules/getaddrinfo (Depends-on): Remove socklen.
61234         * modules/getsockopt (Depends-on): Likewise.
61235         * modules/setsockopt (Depends-on): Likewise.
61236         * tests/test-sys_socket.c: Check that socklen_t is defined.
61237         * tests/test-netdb.c: Likewise.
61238         * m4/socklen.m4: Update comments.
61239         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61241 2010-08-27  Eric Blake  <eblake@redhat.com>
61243         login_tty: add missing dependency
61244         * modules/login_tty (Depends-on): Add pty.
61246 2010-08-26  Eric Blake  <eblake@redhat.com>
61248         lib-symbol-versions: fix m4 quoting
61249         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
61250         format for AC_LINK_IFELSE.
61252         glob: fix compile test
61253         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
61255         btowc: fix missing file
61256         * modules/btowc (Files): Also ship locale-fr.m4.
61258         lseek: fix link test
61259         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
61260         AC_LINK_IFELSE.
61262         include_next: silence autoconf 2.68 warning
61263         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
61264         AC_COMPILE_IFELSE as special.
61265         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
61266         autoconf < 2.68.
61268         acl: fix compilation test
61269         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
61270         AC_COMPILE_IFELSE.
61272 2010-08-26  Bruno Haible  <bruno@clisp.org>
61274         Modernize AC_TRY_RUN invocations.
61275         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
61276         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
61277         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
61278         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
61279         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
61280         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
61281         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
61282         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61283         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61284         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61285         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
61286         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
61287         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
61288         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
61289         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
61290         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61291         gl_MBRLEN_NUL_RETVAL): Likewise.
61292         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61293         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
61294         Likewise.
61295         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61296         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61297         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
61298         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
61299         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
61300         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
61301         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
61302         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
61303         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
61304         Likewise.
61305         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
61306         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
61307         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61308         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61309         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61310         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
61311         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61312         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
61313         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61316 2010-08-26  Bruno Haible  <bruno@clisp.org>
61318         Modernize AC_TRY_LINK invocations.
61319         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
61320         AC_TRY_LINK.
61321         * m4/argp.m4 (gl_ARGP): Likewise.
61322         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
61323         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
61324         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61325         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61326         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61327         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
61328         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
61329         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
61330         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61331         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
61332         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61333         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
61334         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
61335         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61336         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
61337         * m4/hostent.m4 (gl_HOSTENT): Likewise.
61338         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61339         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
61340         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
61341         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
61342         Likewise.
61343         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
61344         Likewise.
61345         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
61346         Likewise.
61347         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
61348         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
61349         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
61350         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
61351         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
61352         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
61353         * m4/servent.m4 (gl_SERVENT): Likewise.
61354         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
61355         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
61356         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
61357         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
61358         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61359         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
61360         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
61361         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61362         * modules/tsearch-tests (configure.ac): Likewise.
61364 2010-08-26  Bruno Haible  <bruno@clisp.org>
61366         Modernize AC_TRY_COMPILE invocations.
61367         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
61368         AC_TRY_COMPILE.
61369         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
61370         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
61371         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
61372         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61373         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
61374         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61375         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61376         * m4/lock.m4 (gl_LOCK): Likewise.
61377         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
61378         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61379         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
61380         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
61381         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
61382         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
61383         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
61384         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
61385         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
61386         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
61387         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
61388         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61389         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
61390         extraneous semicolon.
61392 2010-08-26  Jim Meyering  <meyering@redhat.com>
61394         stat-time: relax license LGPL
61395         * modules/stat-time (License): Change from GPL to LGPL,
61396         with consent from all contributors, for use in libguile.
61397         Requested by Ludovic Courtès.
61399 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
61401         poll: return immediately on POLLHUP.
61402         * lib/poll.c (poll): Always set timeout before wait_timeout is
61403         computed.
61405 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61407         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
61408         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
61409         rmdir ("dir/.//"), unlinkat.
61411 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61413         stdbool: avoid spurious failure with modern xlc
61414         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61416 2010-08-24  Bruno Haible  <bruno@clisp.org>
61418         getloadavg: simplify code
61419         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
61420         gl_have_func. Update comments.
61422 2010-08-24  Eric Blake  <eblake@redhat.com>
61424         getloadavg: don't define SVR4 on cygwin
61425         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
61426         only define SVR4 when -lkvm is required.
61427         Reported by Yaakov Selkowitz.
61429 2010-08-24  Bruno Haible  <bruno@clisp.org>
61431         priv-set: fix comment
61432         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
61434 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61436         priv-set: fix comments
61437         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
61438         to match code, as suggested by David Bartley in:
61439         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
61441 2010-08-23  Eric Blake  <eblake@redhat.com>
61443         stdbool: avoid rejecting clang
61444         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61445         * tests/test-stdbool.c: Enable more tests if using the system
61446         <stdbool.h> instead of the gnulib replacement.
61447         (main): Move xlc bug test to a runtime test for all compilers.
61448         Reported by Anders Kaseorg.
61450         argz: fix shell quoting issue
61451         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
61452         Reported by Charles Wilson.
61454 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
61455             Erik Faye-Lund <kusmabite@gmail.com>
61457         poll, select: handle ERROR_BROKEN_PIPE.
61458         * lib/poll.c (win32_compute_revents): Return POLLHUP when
61459         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61460         * lib/select.c (win32_compute_revents): Do not mark a pipe
61461         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61463 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
61465         fts: allow compilation with C++
61466         * lib/fts_.h: Specify extern "C" linkage with C++.
61468 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61470         Fix gnulib-tool sed script de-commentation for AIX sed.
61471         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
61472         sed.
61474 2010-08-17  Eric Blake  <eblake@redhat.com>
61476         test-stddef: test for (some) offsetof bugs
61477         * tests/test-stddef.c: Enhance test to ensure correct type of
61478         offsetof.
61479         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
61480         that we are not fixing at this time.
61482 2010-08-15  Bruno Haible  <bruno@clisp.org>
61484         stpncpy: Allow stpncpy to be defined as a macro.
61485         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
61486         if it's already correctly declared.
61487         * lib/string.in.h (stpncpy): Undefine before redefining.
61488         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
61490 2010-08-14  Bruno Haible  <bruno@clisp.org>
61492         Rename module 'memxfrm' to 'amemxfrm'.
61493         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
61494         (amemxfrm): Renamed from memxfrm.
61495         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
61496         (amemxfrm): Renamed from memxfrm.
61497         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
61498         * NEWS: Mention the change.
61499         * MODULES.html.sh (String handling <string.h>): Update.
61500         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
61501         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
61502         * lib/unicase/u16-casexfrm.c: Likewise.
61503         * lib/unicase/u32-casexfrm.c: Likewise.
61504         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
61505         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
61506         * lib/uninorm/u16-normxfrm.c: Likewise.
61507         * lib/uninorm/u32-normxfrm.c: Likewise.
61508         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
61509         memxfrm.
61510         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
61511         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
61512         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
61513         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
61514         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
61515         Suggested by Paul Eggert.
61517 2010-08-14  Bruno Haible  <bruno@clisp.org>
61519         Tests for module 'astrxfrm'.
61520         * modules/astrxfrm-tests: New file.
61521         * tests/test-astrxfrm.c: New file.
61523         New module 'astrxfrm'.
61524         * lib/astrxfrm.h: New file.
61525         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
61526         * modules/astrxfrm: New file.
61528 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
61530         regex: Tweak doc.
61531         * doc/regex.texi (Overview): Don't mention regex.c.
61532         (GNU Regular Expression Compiling): Likewise.
61533         (Match-end-of-line Operator): Mention 'not_eol'.
61535 2010-08-14  Brian Gough  <bjg@gnu.org>
61536             Bruno Haible  <bruno@clisp.org>
61538         git-merge-changelog: add doc relating to use with bzr and hg.
61539         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
61541 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
61543         pthread: fix pthread.h creation for srcdir != builddir
61544         * modules/pthread (Makefile.am): Fix the rule to work also in a
61545         non-srcdir build.
61547 2010-08-13  Karl Berry  <karl@gnu.org>
61549         * doc/regex.texi (Predefined Syntaxes): @smallexample.
61550         * doc/posix-*/*: force line break before @url of POSIX
61551         specifications.
61552         Suggested by Werner Lemberg.
61554 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61556         strtod: fix const diagnostic
61557         * lib/strtod.c (strtod): Don't assign const char * to char *,
61558         as this elicits a warning from GCC when warnings are enabled.
61560 2010-08-10  Pádraig Brady  <P@draigbrady.com>
61561         and Eric Blake  <eblake@redhat.com>
61563         copy-acl: ignore ENOTSUP on HP-UX
61564         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
61565         so that it is available for HP-UX.
61566         * lib/copy-acl.c (qcopy_acl): Use it.
61567         Reported by Patrick M. Callahan.
61569 2010-08-10  Eric Blake  <eblake@redhat.com>
61571         open, chown: relax license
61572         * modules/open (License): Change to LGPLv2+, with consent by all
61573         authors, for use in augeas.
61574         * modules/chown (License): Likewise.
61575         * modules/lchown (Likewise): Likewise.
61576         Requested by Adam Stokes.
61578 2010-08-09  Karl Berry  <karl@gnu.org>
61580         * build-aux/ar-lib: new file, import from Automake.
61581         * config/srclist.txt: autocheck for updates.
61583 2010-08-09  Eric Blake  <eblake@redhat.com>
61585         readlinkat: adjust client modules
61586         * modules/areadlinkat (Depends-on): Use readlinkat, not
61587         symlinkat.
61588         * modules/areadlinkat-with-size (Depends-on): Likewise.
61590         mknod: be more vocal about danger of running tests as root
61591         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
61592         root, since that is just asking for problems.
61593         Suggested by Bruno Haible, based on a report by Rainer Tammer.
61595         readlinkat: split into its own module
61596         * modules/symlinkat: Split readlinkat...
61597         * modules/readlinkat: ...into separate module.
61598         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
61599         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
61600         * lib/symlinkat.c (readlinkat): Move...
61601         * lib/readlinkat.c: ...into new file.
61602         * modules/symlinkat-tests: Split readlinkat test...
61603         * modules/readlinkat-tests: ...into separate module.
61604         * tests/test-symlinkat.c: Split...
61605         * tests/test-readlinkat.c: ...into new file.
61606         * NEWS: Document the split.
61607         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61608         * lib/unistd.in.h (readlinkat): Likewise.
61609         Suggested by Bruno Haible.
61611 2010-08-08  Bruno Haible  <bruno@clisp.org>
61613         memxfrm: Speed up.
61614         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
61615         that usually only one call to strxfrm is necessary for each string
61616         part.
61617         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61619 2010-08-07  Karl Berry  <karl@gnu.org>
61621         * doc/posix-headers/limits.texi,
61622         * doc/posix-functions/malloc.texi,
61623         * doc/posix-functions/strsignal.texi: missing @item.
61624         * doc/ld-version-script.texi: spurious leading i.
61625         * doc/regex.texi (Interval Operators): no commas inside @var.
61627 2010-08-01  Bruno Haible  <bruno@clisp.org>
61629         Integrate the regex documentation.
61630         * doc/gnulib.texi: Define 'cn' index.
61631         (Regular expressions): New a chapter that includes regex.texi and
61632         regexprops-generic.texi.
61633         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
61634         syntax.
61636         Whitespace cleanup.
61637         * doc/regex.texi: Remove trailing spaces.
61639         Add regex documentation.
61640         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
61641         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
61642         Written by Kathy A. Hargreaves and Karl Berry.
61644 2010-08-01  Bruno Haible  <bruno@clisp.org>
61646         link: Update documentation.
61647         * doc/posix-functions/link.texi: Update regarding Solaris.
61649 2010-07-31  Bruno Haible  <bruno@clisp.org>
61651         Update modules list.
61652         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
61653         (String handling <string.h>): Add memcmp2, memxfrm.
61654         (Container data structures): Add xlist, xsublist, xoset.
61655         (Core language properties): Add alignof, unused-parameter.
61656         (Process control, Numeric conversion functions <stdlib.h>): Renamed
61657         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
61658         (Unibyte characters <ctype.h>): New section.
61659         (String handling <string.h>): New section.
61660         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
61661         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
61662         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
61663         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
61664         tan, tanh, tanl, y0, y1, yn.
61665         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
61666         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
61667         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
61668         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
61669         unlockpt, vdprintf, vdprintf-posix.
61670         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
61671         (File system functions): Add concat-filename, sys_file, sys_ioctl,
61672         xconcat-filename.
61673         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
61674         getdtablesize, pipe2, pipe2-safer.
61675         (Security): New section.
61676         (Networking functions): Add accept4.
61677         (Signal handling): Add sigpipe.
61678         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
61679         mbmemcasecoll.
61680         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
61681         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
61682         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
61683         pipe-filter-ii.
61684         (Misc): Add argp-version-etc, login_tty, parse-duration.
61686 2010-07-31  Bruno Haible  <bruno@clisp.org>
61688         Improve doc in MODULES.html.
61689         * modules/linkat (Description): Add the word "function".
61690         * modules/mkfifo (Description): Likewise.
61691         * modules/mknod (Description): Likewise.
61692         * modules/remove (Description): Likewise.
61693         * modules/renameat (Description): Likewise.
61694         * modules/stat (Description): Likewise.
61695         * modules/symlink (Description): Likewise.
61696         * modules/unlink (Description): Likewise.
61698 2010-07-31  Bruno Haible  <bruno@clisp.org>
61700         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
61701         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
61702         option --enable/disable-c++ instead of --enable/disable-cxx.
61703         * NEWS: Mention the change.
61705 2010-07-31  Bruno Haible  <bruno@clisp.org>
61707         readlink, areadlink: Relax test a bit.
61708         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
61709         alternative to ENOTDIR.
61710         * tests/test-areadlink.h (test_areadlink): Likewise.
61711         Reported by Rainer Tammer.
61713 2010-07-31  Bruno Haible  <bruno@clisp.org>
61715         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
61716         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
61717         character, perform the search using U_STRCHR.
61718         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
61719         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
61720         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
61721         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
61722         Suggested by Paolo Bonzini.
61724 2010-07-31  Bruno Haible  <bruno@clisp.org>
61726         unistr/u*-strstr: Fix dependencies.
61727         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
61728         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
61729         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
61731 2010-07-31  Bruno Haible  <bruno@clisp.org>
61733         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
61734         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
61735         the beginning of the loop.
61736         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
61737         cases in 'switch' statement.
61739         unistr/u8-strchr: Fix several bugs.
61740         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
61741         the string. When not found, return NULL, not a pointer near the end.
61743         More tests for unistr/u8-strchr.
61744         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
61745         that the function does not read past the first occurrence of the byte
61746         being searched.
61747         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
61748         * tests/unistr/test-u16-strchr.c (main): New function.
61749         * tests/unistr/test-u32-strchr.c (main): New function.
61751 2010-07-31  Bruno Haible  <bruno@clisp.org>
61753         posix-modules: Ignore backup files of documentation files.
61754         * posix-modules: grep only through files named *.texi.
61756 2010-07-31  Bruno Haible  <bruno@clisp.org>
61758         symlinkat: Fix documentation.
61759         * doc/posix-functions/readlinkat.texi: Fix module name.
61761 2010-07-31  Bruno Haible  <bruno@clisp.org>
61763         fchownat: Replace also when chown has the trailing slash bug.
61764         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
61765         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
61766         introduced on 2010-04-10.
61767         Reported by Rainer Tammer.
61769 2010-07-31  Bruno Haible  <bruno@clisp.org>
61771         linkat: Work around AIX 7.1 bug.
61772         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
61773         whether linkat handles trailing slash correctly. If not, replace linkat
61774         and define LINKAT_TRAILING_SLASH_BUG.
61775         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
61776         check whether (fd1,file1) points to a directory if file1 or file2 ends
61777         in a slash. Code taken from lib/link.c.
61778         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
61779         Reported by Rainer Tammer.
61781 2010-07-31  Bruno Haible  <bruno@clisp.org>
61783         Correctly determine whether pow is available in libc on AIX 7 with xlc.
61784         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
61785         This disables an xlc optimization that was causing wrong test results.
61786         Reported by Rainer Tammer.
61788 2010-07-31  Bruno Haible  <bruno@clisp.org>
61790         iconv: Work around AIX 6.1..7.1 bug.
61791         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
61792         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
61793         cross-compiling, guess no on all versions of AIX.
61794         Reported by Rainer Tammer.
61796 2010-07-31  Bruno Haible  <bruno@clisp.org>
61798         readlink: Relax test a bit.
61799         * tests/test-readlink.h (test_readlink): Allow different errno value
61800         when readlink is called with a file name that ends in / and refers to
61801         a file.
61802         Suggested by Eric Blake.
61803         Reported by Rainer Tammer.
61805 2010-07-31  Bruno Haible  <bruno@clisp.org>
61807         copysign: Does not require -lm on glibc systems.
61808         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
61809         gl_COMMON_DOUBLE_MATHFUNC.
61810         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
61812 2010-07-31  Bruno Haible  <bruno@clisp.org>
61814         duplocale: Work around AIX 7.1 bug.
61815         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
61816         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
61817         * lib/duplocale.c (rpl_duplocale): Update comment.
61818         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
61819         Reported by Rainer Tammer.
61821 2010-07-30  Bruno Haible  <bruno@clisp.org>
61823         dirfd: Avoid link error on AIX 7.1.
61824         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
61825         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
61826         exist, set REPLACE_DIRFD.
61827         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
61828         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
61829         * doc/posix-functions/dirfd.texi: Update.
61830         Reported by Rainer Tammer.
61832 2010-07-30  Eric Blake  <eblake@redhat.com>
61834         strtod: next round of AIX fixes
61835         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
61836         exponent.
61837         * tests/test-strtod.c (main): Enhance tests.
61838         * doc/posix-functions/strtod.texi (strtod): Document next bug.
61839         Reported by Rainer Tammer.
61841         futimens: fix configure check
61842         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
61843         Reported by Bruno Haible.
61845 2010-07-30  Bruno Haible  <bruno@clisp.org>
61847         getline: Update regarding AIX.
61848         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
61849         Reported by Rainer Tammer.
61851 2010-07-30  Bruno Haible  <bruno@clisp.org>
61853         wcwidth: Drop replacement on AIX 7.
61854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
61855         AIX 7.
61856         Reported by Rainer Tammer.
61858 2010-07-30  Bruno Haible  <bruno@clisp.org>
61860         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
61861         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
61862         a 'char *'.
61863         Reported by Rainer Tammer.
61865 2010-07-30  Bruno Haible  <bruno@clisp.org>
61867         unlink: Update regarding AIX.
61868         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
61869         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
61870         Reported by Rainer Tammer.
61872 2010-07-30  Bruno Haible  <bruno@clisp.org>
61874         symlink: Update regarding AIX.
61875         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
61876         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
61877         Reported by Rainer Tammer.
61879 2010-07-30  Bruno Haible  <bruno@clisp.org>
61881         strndup: Update regarding AIX.
61882         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
61883         AIX 7.
61884         Reported by Rainer Tammer.
61886 2010-07-30  Bruno Haible  <bruno@clisp.org>
61888         stat: Update regarding AIX.
61889         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
61890         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
61891         Reported by Rainer Tammer.
61893 2010-07-30  Bruno Haible  <bruno@clisp.org>
61895         truncl: Fix autoconf test.
61896         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
61897         whether truncl works.
61898         Reported by Rainer Tammer.
61900 2010-07-30  Bruno Haible  <bruno@clisp.org>
61902         round: Update regarding AIX.
61903         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
61904         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
61905         Reported by Rainer Tammer.
61907 2010-07-30  Bruno Haible  <bruno@clisp.org>
61909         rename: Update regarding AIX.
61910         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
61911         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
61912         Reported by Rainer Tammer.
61914 2010-07-30  Bruno Haible  <bruno@clisp.org>
61916         printf.m4: Update regarding AIX.
61917         * m4/printf.m4: Update comments regarding AIX.
61918         Reported by Rainer Tammer.
61920 2010-07-30  Bruno Haible  <bruno@clisp.org>
61922         iconv: Update regarding AIX.
61923         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
61924         AIX 7.
61925         Reported by Rainer Tammer.
61927 2010-07-30  Bruno Haible  <bruno@clisp.org>
61929         getopt: Update regarding AIX.
61930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
61931         no on AIX.
61932         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
61933         Reported by Rainer Tammer.
61935 2010-07-30  Bruno Haible  <bruno@clisp.org>
61937         ldexpl; Update regarding AIX.
61938         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
61939         on AIX 7.
61940         Reported by Rainer Tammer.
61942 2010-07-30  Bruno Haible  <bruno@clisp.org>
61944         frexpl: Update regarding AIX.
61945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
61946         on AIX 7.
61947         Reported by Rainer Tammer.
61949 2010-07-30  Bruno Haible  <bruno@clisp.org>
61951         open, fopen: Update regarding AIX.
61952         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
61953         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
61954         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
61955         * doc/posix-functions/fopen.texi: Likewise.
61956         Reported by Rainer Tammer.
61958 2010-07-30  Bruno Haible  <bruno@clisp.org>
61960         chown: Update doc regarding AIX.
61961         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
61962         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
61963         Reported by Rainer Tammer.
61965 2010-07-30  Eric Blake  <eblake@redhat.com>
61967         strtod: fix bug in replacement function on AIX
61968         * lib/strtod.c (strtod): Special case broken "0x" parse in
61969         underlying strtod.
61970         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
61971         * doc/posix-functions/strtod.texi (strtod): Likewise.
61972         Reported by Rainer Tammer.
61974 2010-07-30  Bruno Haible  <bruno@clisp.org>
61976         mbrlen: Fix cross-compilation guess for AIX.
61977         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
61978         guess. Leftover from 2008-12-22.
61980 2010-07-30  Bruno Haible  <bruno@clisp.org>
61982         mbrtowc: Fix cross-compilation guess for AIX.
61983         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
61984         guess. Leftover from 2008-12-21.
61986 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
61988         init.sh: work around trap limitation of some shells
61989         * tests/init.sh (setup_): Move exit trap outside of shell function.
61991 2010-07-29  Eric Blake  <eblake@redhat.com>
61993         strtod: aid debugging
61994         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
61995         understanding why strtod is rejected.
61997 2010-07-28  Bruno Haible  <bruno@clisp.org>
61999         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
62000         * lib/unistr/u8-chr.c: Include <string.h>.
62001         * tests/unistr/test-u8-chr.c: Likewise.
62002         * tests/unistr/test-u16-chr.c: Likewise.
62003         * tests/unistr/test-u32-chr.c: Likewise.
62004         * tests/unistr/test-u8-strchr.c: Likewise.
62005         * tests/unistr/test-u16-strchr.c: Likewise.
62006         * tests/unistr/test-u32-strchr.c: Likewise.
62007         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
62008         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
62009         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
62010         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
62012 2010-07-28  Bruno Haible  <bruno@clisp.org>
62014         Use spaces for indentation, not tabs.
62015         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
62017 2010-07-27  Bruno Haible  <bruno@clisp.org>
62019         mbspcasecmp: Fix function specification.
62020         * lib/string.in.h (mbspcasecmp): Fix specification comment.
62021         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
62022         Reported by Eric Blake <eblake@redhat.com>.
62024 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
62026         timespec: use cast and not conditional, as truncation isn't possible
62027         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
62028         instead of a conditional.  Comment about the situation in more detail.
62029         This undoes most of the 2009-10-29 patch.
62031 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
62033         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
62034         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
62035         * lib/unistr/u8-strchr.c: Likewise.
62036         * modules/unistr/u8-chr: Depend on memchr.
62038         unistr/u*-strchr: add tests
62039         * modules/unistr/u8-strchr-tests: New file.
62040         * modules/unistr/u16-strchr-tests: New file.
62041         * modules/unistr/u32-strchr-tests: New file.
62042         * tests/unistr/test-strchr.h: New file.
62043         * tests/unistr/test-u8-strchr.c: New file.
62044         * tests/unistr/test-u16-strchr.c: New file.
62045         * tests/unistr/test-u32-strchr.c: New file.
62047         unistr/u*-chr: test multibyte sequences more
62048         * tests/unistr/test-chr.h: Do complete testing of the characters in the
62049         test vector.
62050         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
62051         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
62052         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
62054         unistr/u*-chr: test multibyte sequences
62055         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
62057         unistr/u*-chr: prepare for multibyte tests
62058         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
62059         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
62060         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
62061         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
62062         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
62063         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
62065 2010-07-18  Bruno Haible  <bruno@clisp.org>
62067         unistr/u8-strchr: Optimize non-ASCII argument case.
62068         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
62069         because the first byte often matches anyway.
62070         Reported by Pádraig Brady <P@draigbrady.com>.
62072 2010-07-15  Karl Berry  <karl@gnu.org>
62074         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
62076 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
62078         getcwd: on Solaris, work better if ancestors are inaccessible
62079         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
62080         buffer and size, try again with a large buffer.  This works better
62081         on Solaris, since its getcwd succeeds even if the path to the root
62082         is inaccessible, and this is helpful in common cases such as .zfs
62083         hidden directories.  Problem reported by J Chapman Flack in
62084         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
62085         Use system getcwd if it's declared, not merely if it's partly
62086         working; use the partly-working test only to avoid needless effort
62087         if the system getcwd fails.
62088         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
62089         comment that was already obsolete and is now even more obsolete.
62090         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
62091         now might call strdup.
62093 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
62095         pthread: Add enough so that coreutils/src/sort.c compiles.
62096         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
62097         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
62098         gnulib. Include <sched.h> and <time.h>, as per POSIX.
62099         Include <sys/types.h>, in case it defines pthread_t.
62100         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
62101         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
62102         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
62103         (pthread_rwlockattr_t, pthread_spinlock_t):
62104         New typedefs, if HAVE_PTHREAD_T is not defined.
62105         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
62106         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
62107         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
62108         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
62109         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
62110         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
62111         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
62112         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
62113         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
62114         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
62115         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
62116         New macros.
62117         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
62118         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
62119         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
62120         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
62121         (pthread_spin_unlock): New dummy functions.
62122         (pthread_create): Return EAGAIN; don't set errno.
62123         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
62124         require AC_C_INLINE.
62125         * modules/pthread (Depends-on): Add sched, time.
62126         (pthread.h): Use AM_V_GEN.
62128 2010-07-13  Bruno Haible  <bruno@clisp.org>
62130         striconveh: Don't malloc memory if the result buffer is sufficient.
62131         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
62132         buffer if its size is sufficient.
62133         Reported by Ludovic Courtès <ludo@gnu.org>.
62135 2010-07-13  Bruno Haible  <bruno@clisp.org>
62137         strtod: Add safety check.
62138         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
62140 2010-07-12  Bruno Haible  <bruno@clisp.org>
62142         Unify tests that set gl_cv_func_ldexpl_no_libm.
62143         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
62144         gl_FUNC_LDEXPL.
62145         (gl_FUNC_LDEXPL): Invoke it.
62146         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62148 2010-07-12  Bruno Haible  <bruno@clisp.org>
62150         Unify tests that set gl_cv_func_ldexp_no_libm.
62151         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
62152         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
62153         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
62154         (configure.ac): Simply invoke gl_FUNC_LDEXP.
62155         * modules/strtod (Files): Add m4/ldexp.m4.
62157 2010-07-12  Bruno Haible  <bruno@clisp.org>
62159         Unify tests that set gl_cv_func_frexpl_no_libm.
62160         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
62161         gl_FUNC_FREXPL_NO_LIBM.
62162         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
62163         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62165 2010-07-12  Bruno Haible  <bruno@clisp.org>
62167         Unify tests that set gl_cv_func_frexp_no_libm.
62168         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
62169         gl_FUNC_FREXP_NO_LIBM.
62170         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
62171         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
62173 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62175         memcoll: clarify sizes versus lengths, document better, and tweak perf
62176         * lib/memcoll.c (strcoll_loop, memcoll0):
62177         Improve quality of descriptive comments.  Name variables
62178         consistently as to whether they are lengths (which do not include
62179         terminating null) versus sizes (which do).
62180         * lib/xmemcoll.c (xmemcoll0): Likewise.
62181         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
62182         returned when s1size == 0; this is easier to compile and saves
62183         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
62185 2010-07-12  Bruno Haible  <bruno@clisp.org>
62187         Tests for module '_Exit'.
62188         * modules/_Exit-tests: New file.
62189         * tests/test-_Exit.sh: New file.
62190         * tests/test-_Exit.c: New file.
62192         New module '_Exit'.
62193         * lib/stdlib.in.h (__attribute__): New macro.
62194         (_Exit): New declaration.
62195         * lib/_Exit.c: New file.
62196         * m4/_Exit.m4: New file.
62197         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
62198         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
62199         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
62200         * modules/_Exit: New file.
62201         * tests/test-stdlib-c++.cc (_Exit): Check signature.
62202         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
62204 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62206         strtod: make it more-accurate typically, and don't require libm
62207         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
62208         Include limits.h.  Don't include string.h.
62209         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
62210         (locale_isspace): New function, so that no casts are needed to
62211         check whether *s is a space.
62212         (ldexp): Provide an unused dummy if not available.
62213         (scale_radix_exp, parse_number, underlying_strtod): New functions.
62214         (strtod): Use them.  This implementation prefers to use the
62215         underlying strtod if available, falling back on our own code
62216         only to fix known bugs.  This is more likely to produce an
62217         accurate result.  Also, it avoids the use of libm functions.
62218         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
62219         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
62220         was absent, but it caused a test failure with coreutils.
62221         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
62222         with libm.
62223         * modules/strtod (Makefile.am, Link): libm is no longer needed.
62224         * modules/strtod-tests (Makefile.am): Likewise.
62226 2010-07-11  Pádraig Brady  <P@draigBrady.com>
62227             Bruno Haible  <bruno@clisp.org>
62229         unistr/u8-strchr: Optimize ASCII argument case.
62230         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
62232 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62234         (x)memcoll: minor tweaks
62235         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
62236         is after the type that it qualifies.
62237         (memcoll0): Likewise.
62238         * lib/memcoll.h (memcoll0): Likewise.
62239         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
62240         * lib/xmemcoll.h (xmemcoll0): Likewise.
62241         * lib/memcoll.c (memcoll0): Correct the comment.  This function
62242         differs from memcoll in that the NUL byte is part of the argument.
62243         Omit the abort-checks, as performance is a real issue here.  Plus,
62244         the checks were wrong anyway (an off-by-one error).  Omit local
62245         variable 'diff', as it's a bit clearer that way.
62246         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
62247         no longer needed.
62249 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
62251         (x)memcoll: speedup when input is known to be NUL delimited
62252         * lib/memcoll.c: Include stdlib.
62253         (memcoll0): New function.
62254         (strcoll_loop): New function, refactored for use in both memcoll
62255         and memcoll0.
62256         * lib/memcoll.h (memcoll0): Add prototype.
62257         * lib/xmemcoll.c (xmemcoll0): New function.
62258         (collate_error): New function, refactored for use in both xmemcoll
62259         and xmemcoll0.
62260         * lib/xmemcoll.h (xmemcoll0): Add prototype.
62261         * m4/memcoll.m4: add inline invocation.
62263 2010-07-06  Pádraig Brady  <P@draigBrady.com>
62265         * build-aux/bootstrap: Remove any local translations
62266         from the translation project synchronization directory,
62267         so that local only translations are not distributed.
62269 2010-07-04  Bruno Haible  <bruno@clisp.org>
62271         fsusage: Clarify which code applies to which platforms.
62272         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
62273         platform.
62274         * lib/fsusage.c (get_fs_usage): Likewise.
62276 2010-07-04  Bruno Haible  <bruno@clisp.org>
62278         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
62279         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
62280         Reported by Martin Lambers <marlam@marlam.de>.
62282 2010-07-04  Jim Meyering  <meyering@redhat.com>
62284         hash: once again explicitly disallow insertion of NULL
62285         * lib/hash.c (hash_insert0): Reinstate just-removed test:
62286         inserting a NULL pointer cannot work with these functions.
62287         Add a comment with details.
62288         This reverts part of the 2010-07-01 commit, 5bef1a35
62289         "hash: extend module to deal with non-pointer keys".
62291 2010-07-01  Bruno Haible  <bruno@clisp.org>
62293         stdbool: Update doc.
62294         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
62295         Info from Christian Weisgerber <naddy@mips.inka.de>.
62297 2010-07-01  Jim Meyering  <meyering@redhat.com>
62299         hash: extend module to deal with non-pointer keys
62300         * lib/hash.c (hash_insert0): New interface, much like hash_insert
62301         but that allows insertion of non-pointer entries.
62302         Do not disallow an ENTRY value of NULL.
62303         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
62304         * lib/hash.h (hash_insert0): Declare.
62306 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62308         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
62309         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
62310         not present (i.e. with autoconf 2.59 and when using gettextize, not
62311         gnulib), require AC_GNU_SOURCE instead.
62313 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
62315         idpriv-drop: Fix tests.
62316         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
62317         not to the test-idpriv-droptemp program.
62319 2010-06-29  Bruno Haible  <bruno@clisp.org>
62321         string: Fix syntax error with g++ 2.96.
62322         * lib/string.in.h (__pure__): Remove definition.
62323         (_GL_ATTRIBUTE_PURE): New macro.
62324         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
62325         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
62326         Reported by Christian Weisgerber <naddy@mips.inka.de>.
62328 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
62330         unitypes: Fix bug introduced on 2010-05-18.
62331         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
62333 2010-06-22  Eric Blake  <eblake@redhat.com>
62335         memmem: slight optimization
62336         * lib/str-two-way.h (critical_factorization): Update comments.
62337         Reduce work during factorization phase.
62338         Reported by Carlos Bueno <carlos@bueno.org>.
62340 2010-06-21  Bruno Haible  <bruno@clisp.org>
62342         Fix HAVE_CALLOC_POSIX misnomer.
62343         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
62344         !HAVE_CALLOC_POSIX.
62345         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
62346         HAVE_CALLOC_POSIX.
62347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
62348         instead of HAVE_CALLOC_POSIX.
62349         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
62350         HAVE_CALLOC_POSIX.
62352         Use modern idiom for calloc() replacement.
62353         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
62354         AC_FUNC_CALLOC.
62355         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
62356         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
62357         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62358         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
62359         (gl_REPLACE_CALLOC): New macro.
62361 2010-06-21  Bruno Haible  <bruno@clisp.org>
62363         Fix HAVE_REALLOC_POSIX misnomer.
62364         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
62365         !HAVE_REALLOC_POSIX.
62366         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
62367         HAVE_REALLOC_POSIX.
62368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
62369         instead of HAVE_REALLOC_POSIX.
62370         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
62371         HAVE_REALLOC_POSIX.
62373         Use modern idiom for realloc() replacement.
62374         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
62375         AC_FUNC_REALLOC.
62376         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
62377         Autoconf's AC_FUNC_REALLOC.
62378         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62379         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
62380         (gl_REPLACE_REALLOC): New macro.
62381         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62383 2010-06-21  Bruno Haible  <bruno@clisp.org>
62385         Fix HAVE_MALLOC_POSIX misnomer.
62386         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
62387         !HAVE_MALLOC_POSIX.
62388         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
62389         HAVE_MALLOC_POSIX.
62390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
62391         instead of HAVE_MALLOC_POSIX.
62392         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
62393         HAVE_MALLOC_POSIX.
62395         Use modern idiom for malloc() replacement.
62396         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
62397         AC_FUNC_MALLOC.
62398         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
62399         Autoconf's AC_FUNC_MALLOC.
62400         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62401         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
62402         (gl_REPLACE_MALLOC): New macro.
62403         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62405 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
62407         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
62408         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
62409         This macro takes 3 arguments, not 4.
62411 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
62413         ipv6: fix detection under mingw
62414         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
62415         in6_addr.
62417 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
62419         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
62420         that strtod() works when cross-compiling to a glibc version known
62421         to work.
62423 2010-06-15  Bruno Haible  <bruno@clisp.org>
62425         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
62427 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
62429         select: Correct timeout.
62430         * lib/select.c (rpl_select): Compute wait_timeout correctly.
62432 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62434         git-version-gen: init shell var to avoid env var influence
62435         * build-aux/git-version-gen (v): Init shell var to empty.
62437 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
62439         priv-set: Don't assume that priv.h exists merely because getppriv does.
62440         See Jan Andersen's bug report about AIX 5L in
62441         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
62442         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
62443         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
62444         * lib/priv-set.h: Likewise.
62445         * tests/test-priv-set.c: Likewise.
62447 2010-06-13  Bruno Haible  <bruno@clisp.org>
62449         relocatable: Make it easier to test whether to install wrappers.
62450         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
62451         RELOCATABLE_VIA_WRAPPER.
62453 2010-06-13  Bruno Haible  <bruno@clisp.org>
62455         gnulib-tool: Display specified modules and dependencies differently.
62456         * gnulib-tool (func_show_module_list): New function.
62457         (func_import, func_create_testdir): Invoke it.
62458         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62460 2010-06-13  Bruno Haible  <bruno@clisp.org>
62462         gnulib-tool: Align code of func_import and func_create_testdir.
62463         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
62464         specified_modules.
62466 2010-06-12  Jim Meyering  <meyering@redhat.com>
62468         test-inttostr: avoid spurious failure on Solaris 9
62469         * tests/test-inttostr.c (main): Skip the test when snprintf fails
62470         to accept "%ju".  Reported by Bruno Haible.
62472 2010-06-11  Jim Meyering  <meyering@redhat.com>
62474         test-sys_socket: mark variables as used more readably
62475         * tests/test-sys_socket.c (main): Mark otherwise unused variables
62476         as "used" explicitly via (void) statement casts.  This is more
62477         readable than using them in an artificial return expression.
62478         Suggestion from Bruno Haible.
62480 2010-06-11  Bruno Haible  <bruno@clisp.org>
62482         Avoid some more warnings from "gcc -Wwrite-strings".
62483         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
62484         to 'const char *'.
62485         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
62486         * tests/test-c-strcasestr.c (main): Likewise.
62487         * tests/test-mbscasestr1.c (main): Likewise.
62488         * tests/test-mbscasestr2.c (main): Likewise.
62489         * tests/test-memmem.c (main): Likewise.
62490         * tests/test-strstr.c (main): Likewise.
62491         * tests/test-strcasestr.c (main): Likewise.
62493 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62495         init.sh: change framework_failure_ to fail with status 99, not 1
62496         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
62497         automake's parallel-tests rule that this is an unexpected failure,
62498         even if the test is listed in XFAIL_TESTS.
62500 2010-06-11  Jim Meyering  <meyering@redhat.com>
62502         test-inttostr: avoid warnings about 4-6KB literal strings
62503         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
62504         Include "macros.h", for its definition of ASSERT.
62505         (CK): s/assert/ASSERT/
62506         * modules/inttostr-tests (Files): Add macros.h.
62508         init.sh: don't use $ME_ or skip_ before they are defined
62509         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
62510         their first uses.  Also hoist their companions: warn_, fail_,
62511         framework_failure_, $stderr_fileno.  Prompted by a patch from
62512         Stefano Lattarini.
62514         test-sys_socket: avoid set-but-not-used warnings from gcc
62515         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
62516         avoid warning about set-but-not-used variables.
62518         test-xvasprintf: avoid 'const' discard warnings
62519         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
62520         "const" when assigning from literal strings.
62521         (test_xasprintf): Add "void" in function argument list to placate
62522         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
62524         tests: avoid compilation warnings in argmatch and exclude tests...
62525         in packages that define ARGMATCH_DIE_DECL, like coreutils.
62526         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
62527         Since it always exits, declare with the "noreturn" attribute.
62528         * tests/test-argmatch.c: Likewise.
62530         tests: avoid 'const' discard warnings in mbsstr tests
62531         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
62532         * tests/test-mbsstr2.c (main): Likewise.
62534         test-verify: avoid warning from gcc's -Wmissing-declarations
62535         * tests/test-verify.c (function): Declare to be static.
62537         test-inttostr.c: include <string.h> for use of strcmp
62538         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
62540         test-linkat: avoid failed assertion on "other" architectures
62541         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
62542         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
62543         sparc: https://bugs.launchpad.net/bugs/591968
62545 2010-06-11  Jim Meyering  <meyering@redhat.com>
62547         printf.m4: avoid autoconf's "Expanded Before Required" warning
62548         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
62549         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
62550         autoconf warning.
62552 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
62554         Replacement header templates are now named with ".in", not "_".
62555         * doc/gnulib-intro.texi: Correct.
62557 2010-06-10  Jim Meyering  <meyering@redhat.com>
62559         inttostr-tests: depend on snprintf, not snprintf-posix
62560         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
62561         snprintf-posix, to avoid this aclocal failure:
62562           missing file gnulib-tests/vasnprintf.c
62563           configure.ac:45: error: expected source file, required through \
62564           AC_LIBSOURCES, not found
62566 2010-06-10  Jim Meyering  <meyering@redhat.com>
62568         inttostr: add a new function, inttostr, and tests
62569         The namesake function was not available.  The existence of the
62570         template file, inttostr.c makes its addition nontrivial.
62571         * lib/anytostr.c: Rename from inttostr.c.
62572         (anytostr): Rename from inttostr.
62573         * lib/inttostr.c: New file.
62574         * modules/inttostr (Files): Add anytostr.c.
62575         (Makefile.am): Set lib_SOURCES instead of ...
62576         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
62577         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
62578         * lib/offtostr.c: Likewise.
62579         * lib/uinttostr.c: Likewise.
62580         * lib/umaxtostr.c: Likewise.
62581         * modules/inttostr-tests: New file.
62582         * tests/test-inttostr.c: New file.  Test these functions.
62584 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
62585             Bruno Haible  <bruno@clisp.org>
62587         Add "Extending Gnulib" chapter to manual.
62588         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
62589         chapter.
62590         (Extending Gnulib): New chapter.
62591         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
62592         chapter.
62594 2010-06-09  Bruno Haible  <bruno@clisp.org>
62596         Avoid relocwrapper link errors due to gnulib replacement functions.
62597         * lib/areadlink.c: Use the system's malloc, realloc functions.
62598         (areadlink): Set errno to ENOMEM explicitly.
62599         * modules/areadlink (Depends-on): Remove malloc-posix.
62600         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62602 2010-06-09  Bruno Haible  <bruno@clisp.org>
62604         Avoid relocwrapper link errors due to gnulib replacement functions.
62605         * lib/canonicalize-lgpl.c: Use the system's malloc function.
62606         * lib/malloca.c: Likewise.
62607         * lib/relocatable.c: Likewise.
62608         * lib/progreloc.c: Use the system's malloc, sprintf functions.
62609         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
62610         * lib/setenv.c: Use the system's malloc, realloc functions.
62611         * lib/strerror.c: Use the system's sprintf function.
62612         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62614 2010-06-04  Bruno Haible  <bruno@clisp.org>
62616         Prefer documented low-level autoconf macro names.
62617         * m4/lib-link.m4: Use m4_translit instead of translit.
62618         * m4/environ.m4: Likewise.
62619         * m4/mathfunc.m4: Likewise.
62620         * m4/onceonly.m4: Likewise.
62621         * m4/stdint.m4: Likewise.
62622         Suggested by Eric Blake.
62624 2010-06-04  Martin Lambers  <marlam@marlam.de>
62625             Bruno Haible  <bruno@clisp.org>
62627         havelib: Allow library names with '+' characters.
62628         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62629         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
62631 2010-06-09  Bruno Haible  <bruno@clisp.org>
62633         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
62634         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
62635         realloc failed.
62637 2010-06-08  Peter Simons  <simons@cryp.to>
62639         maint.mk: make the news-check rule more configurable
62640         * top/maint.mk (news-check-lines-spec): New variable.
62641         (news-check): Use "sed -n 1,10p" in place of "head".
62643 2010-06-07  Jim Meyering  <meyering@redhat.com>
62645         do-release-commit-and-tag: fix typo in --help
62646         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
62648         regex: avoid new dead-code warning with gcc-4.6.0
62649         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
62650         if-block containing a while-loop.  It's been unused for at least
62651         5 years.
62653 2010-06-05  Bruno Haible  <bruno@clisp.org>
62655         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
62656         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
62658 2010-06-04  Bruno Haible  <bruno@clisp.org>
62660         Update to GNU gettext 0.18.1.
62661         * modules/gettext (configure.ac): Require gettext infrastructure from
62662         version 0.18.1.
62664 2010-06-03  Bruno Haible  <bruno@clisp.org>
62666         Don't use AC_LIBOBJ with file names in subdirectories.
62667         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
62668         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
62669         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
62670         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
62671         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
62672         gl_LIBUNISTRING_LIBSOURCE.
62673         (Makefile.am): Augment lib_SOURCES here, conditionally.
62674         * NEWS: Drop requirement for Automake option 'subdir-objects'.
62676 2010-06-03  Bruno Haible  <bruno@clisp.org>
62678         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
62679         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
62680         expansion does not end with a newline.
62681         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
62682         unnecessary newline.
62684 2010-06-03  Bruno Haible  <bruno@clisp.org>
62686         Reduce dependencies.
62687         * tests/test-quotearg.h: New file, extracted from
62688         tests/test-quotearg.c.
62689         * tests/test-quotearg-simple.c: New file, extracted from
62690         tests/test-quotearg.c.
62691         * tests/test-quotearg.c: Don't include <ctype.h>.
62692         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
62693         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
62694         use_quote_double_quotes, use_quotearg_colon): Moved to
62695         tests/test-quotearg.h.
62696         (results_g, flag_results, custom_quotes, custom_results): Moved
62697         to tests/test-quotearg-simple.c.
62698         (main): Moved the part that does not depend on gettext to
62699         tests/test-quotearg-simple.c. Return 77 if the test cannot be
62700         performed.
62701         * modules/quotearg-simple: New file.
62702         * modules/quotearg-simple-tests: New file.
62703         * modules/quotearg (Depends-on): Add quotearg-simple.
62704         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
62705         (Files): Add tests/test-quotearg.h.
62706         Reported by Paolo Bonzini.
62708 2010-06-03  Bruno Haible  <bruno@clisp.org>
62710         Reduce dependencies.
62711         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
62713 2010-06-03  Bruno Haible  <bruno@clisp.org>
62715         time: Undefine more broken macros.
62716         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
62717         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
62718         Reported by Eric Blake.
62720 2010-06-03  Bruno Haible  <bruno@clisp.org>
62722         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
62723         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
62724         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
62725         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
62726         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
62727         Reported by Ludovic Courtès <ludo@gnu.org>.
62729 2010-06-02  Eric Blake  <eblake@redhat.com>
62731         time: work with mingw + pthreads-win32 library
62732         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
62733         if timespec is defined only in pthread.h.
62734         * modules/time (Makefile.am): Substitute it.
62735         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
62736         <pthread.h>, when needed.
62737         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
62738         from the library.
62740 2010-05-31  Bruno Haible  <bruno@clisp.org>
62742         Avoid expanding two macros in the wrong order.
62743         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
62744         gl_LIBUNISTRING if it is defined.
62745         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
62746         autoconf >= 2.64.
62747         Reported by Ludovic Courtès <ludo@gnu.org>.
62749 2010-05-27  Jim Meyering  <meyering@redhat.com>
62751         maint.mk: also prohibit "#undef" of always-defined symbols
62752         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
62753         Allow more than one space before the symbol name.
62754         (sc_prohibit_always-defined_macros): Use grep's -E, now that
62755         the regexp uses alternation.
62757 2010-05-26  Eric Blake  <eblake@redhat.com>
62759         maint.mk: avoid echo -e
62760         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
62761         Convert all uses of echo -* to printf.
62762         Reported by Matthias Bolte.
62764 2010-05-25  Bruno Haible  <bruno@clisp.org>
62766         Update to GNU gettext 0.18, part 2.
62767         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
62768         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
62770 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62772         Add missing include in test-pwrite.c.
62773         * tests/test-pwrite.c: Include string.h, for strcmp.
62775 2010-05-24  Bruno Haible  <bruno@clisp.org>
62777         * NEWS: Mention requirement for Automake option 'subdir-objects'.
62779 2010-05-24  Bruno Haible  <bruno@clisp.org>
62781         Don't use conversion with transliteration in u{8,16,32}_strcoll.
62782         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
62783         iconveh_error argument.
62784         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
62785         U_STRCONV_TO_LOCALE.
62786         * lib/unistr/u16-strcoll.c: Likewise.
62787         * lib/unistr/u32-strcoll.c: Likewise.
62788         * modules/unistr/u8-strcoll (Depends-on): Add
62789         uniconv/u8-strconv-to-enc, localcharset. Remove
62790         uniconv/u8-strconv-to-locale.
62791         (configure.ac): Bump version number.
62792         * modules/unistr/u16-strcoll (Depends-on): Add
62793         uniconv/u16-strconv-to-enc, localcharset. Remove
62794         uniconv/u16-strconv-to-locale.
62795         (configure.ac): Bump version number.
62796         * modules/unistr/u32-strcoll (Depends-on): Add
62797         uniconv/u32-strconv-to-enc, localcharset. Remove
62798         uniconv/u32-strconv-to-locale.
62799         (configure.ac): Bump version number.
62801 2010-05-24  Bruno Haible  <bruno@clisp.org>
62803         Avoid a test failure on NetBSD 5.0.
62804         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
62805         an iconv() bug.
62807 2010-05-24  Bruno Haible  <bruno@clisp.org>
62809         Adjust #include directive style.
62810         * modules/regex (Includes): Recommend to write <regex.h>.
62812 2010-05-24  Bruno Haible  <bruno@clisp.org>
62814         regex: Don't require alloca.
62815         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
62816         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
62817         only inside if (0).
62819 2010-05-23  Jim Meyering  <meyering@redhat.com>
62821         test-renameat.c: include <sys/stat.h>
62822         * tests/test-renameat.c: Include <sys/stat.h>; required for
62823         definition of S_IS* macros.
62825 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
62827         Update maintainer documentation for 'relocatable-prog' module.
62828         * doc/relocatable-maint.texi: Update.
62829         Comments by Bruno Haible.
62831 2010-05-23  Bruno Haible  <bruno@clisp.org>
62833         git-merge-changelog: Enable --split-merged-entry by default.
62834         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
62835         (usage): Don't mention this option any more.
62836         Reported by Ralf Wildenhues.
62838 2010-05-23  Jim Meyering  <meyering@redhat.com>
62840         test-pwrite: do not leave behind a test file named "out"
62841         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
62842         The trivial-looking use of init.sh is really necessary.
62843         It ensures that the temporary file, "out", is created in
62844         a temporary directory, and removed upon termination.
62845         * tests/test-pwrite.sh: Re-add file.
62846         * modules/pwrite-tests: Reference it.
62848 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62850         Fix output redirection buglet in init.sh.
62851         * tests/init.sh: Fix redirection of stderr.
62853 2010-05-20  Simon Josefsson  <simon@josefsson.org>
62855         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
62857 2010-05-17  Simon Josefsson  <simon@josefsson.org>
62859         * modules/valgrind-tests: New file.
62860         * m4/valgrind-tests.m4: New file.
62861         * doc/valgrind-tests.texi: New file.
62862         * doc/gnulib.texi (Running self-tests under valgrind): New
62863         section.
62865 2010-05-19  Bruno Haible  <bruno@clisp.org>
62867         Clean up dead code in recent commit.
62868         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
62869         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
62870         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
62871         Suggested by Paolo Bonzini.
62873 2010-05-19  Bruno Haible  <bruno@clisp.org>
62875         Avoid valgrind error reports from libunistring.
62876         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
62877         * modules/libunistring (Files): Add it.
62878         * modules/libunistring-optional (Files): Likewise.
62880 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
62881             Bruno Haible  <bruno@clisp.org>
62883         New module 'libunistring-optional'.
62884         * modules/libunistring-optional: New file.
62885         * m4/libunistring-base.m4: New file.
62886         * m4/libunistring-optional.m4: New file.
62887         * lib/unicase.in.h: Renamed from lib/unicase.h.
62888         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
62889         * lib/unictype.in.h: Renamed from lib/unictype.h.
62890         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
62891         * lib/uniname.in.h: Renamed from lib/uniname.h.
62892         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
62893         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
62894         * lib/unistr.in.h: Renamed from lib/unistr.h.
62895         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
62896         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
62897         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
62898         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
62899         gl_LIBUNISTRING. If the library was found, determine the installed
62900         version and set LIBUNISTRING_VERSION.
62901         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
62902         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
62903         handle a configuration option --with-included-libunistring.
62904         * modules/libunistring (Files): Add m4/absolute-header.m4.
62905         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
62906         Add m4/libunistring-base.m4.
62907         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62908         (Makefile.am): Build unicase.h from unicase.in.h.
62909         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
62910         Add m4/libunistring-base.m4.
62911         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62912         (Makefile.am): Build uniconv.h from uniconv.in.h.
62913         * modules/unictype/base (Files): Use unictype.in.h instead of
62914         unictype.h. Add m4/libunistring-base.m4.
62915         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62916         (Makefile.am): Build unictype.h from unictype.in.h.
62917         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
62918         Add m4/libunistring-base.m4.
62919         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62920         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
62921         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
62922         Add m4/libunistring-base.m4.
62923         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62924         (Makefile.am): Build uniname.h from uniname.in.h.
62925         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
62926         Add m4/libunistring-base.m4.
62927         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62928         (Makefile.am): Build uninorm.h from uninorm.in.h.
62929         * modules/unistdio/base (Files): Use unistdio.in.h instead of
62930         unistdio.h. Add m4/libunistring-base.m4.
62931         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62932         (Makefile.am): Build unistdio.h from unistdio.in.h.
62933         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
62934         Add m4/libunistring-base.m4.
62935         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62936         (Makefile.am): Build unistr.h from unistr.in.h.
62937         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
62938         Add m4/libunistring-base.m4.
62939         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62940         (Makefile.am): Build unitypes.h from unitypes.in.h.
62941         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
62942         Add m4/libunistring-base.m4.
62943         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62944         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
62945         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
62946         uniwidth.h. Add m4/libunistring-base.m4.
62947         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62948         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
62949         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
62950         instead of augmenting lib_SOURCES.
62951         * modules/unicase/empty-suffix-context: Likewise.
62952         * modules/unicase/locale-language: Likewise.
62953         * modules/unicase/tolower: Likewise.
62954         * modules/unicase/totitle: Likewise.
62955         * modules/unicase/toupper: Likewise.
62956         * modules/unicase/u8-casecmp: Likewise.
62957         * modules/unicase/u8-casecoll: Likewise.
62958         * modules/unicase/u8-casefold: Likewise.
62959         * modules/unicase/u8-casexfrm: Likewise.
62960         * modules/unicase/u8-ct-casefold: Likewise.
62961         * modules/unicase/u8-ct-tolower: Likewise.
62962         * modules/unicase/u8-ct-totitle: Likewise.
62963         * modules/unicase/u8-ct-toupper: Likewise.
62964         * modules/unicase/u8-is-cased: Likewise.
62965         * modules/unicase/u8-is-casefolded: Likewise.
62966         * modules/unicase/u8-is-lowercase: Likewise.
62967         * modules/unicase/u8-is-titlecase: Likewise.
62968         * modules/unicase/u8-is-uppercase: Likewise.
62969         * modules/unicase/u8-prefix-context: Likewise.
62970         * modules/unicase/u8-suffix-context: Likewise.
62971         * modules/unicase/u8-tolower: Likewise.
62972         * modules/unicase/u8-totitle: Likewise.
62973         * modules/unicase/u8-toupper: Likewise.
62974         * modules/unicase/u16-casecmp: Likewise.
62975         * modules/unicase/u16-casecoll: Likewise.
62976         * modules/unicase/u16-casefold: Likewise.
62977         * modules/unicase/u16-casexfrm: Likewise.
62978         * modules/unicase/u16-ct-casefold: Likewise.
62979         * modules/unicase/u16-ct-tolower: Likewise.
62980         * modules/unicase/u16-ct-totitle: Likewise.
62981         * modules/unicase/u16-ct-toupper: Likewise.
62982         * modules/unicase/u16-is-cased: Likewise.
62983         * modules/unicase/u16-is-casefolded: Likewise.
62984         * modules/unicase/u16-is-lowercase: Likewise.
62985         * modules/unicase/u16-is-titlecase: Likewise.
62986         * modules/unicase/u16-is-uppercase: Likewise.
62987         * modules/unicase/u16-prefix-context: Likewise.
62988         * modules/unicase/u16-suffix-context: Likewise.
62989         * modules/unicase/u16-tolower: Likewise.
62990         * modules/unicase/u16-totitle: Likewise.
62991         * modules/unicase/u16-toupper: Likewise.
62992         * modules/unicase/u32-casecmp: Likewise.
62993         * modules/unicase/u32-casecoll: Likewise.
62994         * modules/unicase/u32-casefold: Likewise.
62995         * modules/unicase/u32-casexfrm: Likewise.
62996         * modules/unicase/u32-ct-casefold: Likewise.
62997         * modules/unicase/u32-ct-tolower: Likewise.
62998         * modules/unicase/u32-ct-totitle: Likewise.
62999         * modules/unicase/u32-ct-toupper: Likewise.
63000         * modules/unicase/u32-is-cased: Likewise.
63001         * modules/unicase/u32-is-casefolded: Likewise.
63002         * modules/unicase/u32-is-lowercase: Likewise.
63003         * modules/unicase/u32-is-titlecase: Likewise.
63004         * modules/unicase/u32-is-uppercase: Likewise.
63005         * modules/unicase/u32-prefix-context: Likewise.
63006         * modules/unicase/u32-suffix-context: Likewise.
63007         * modules/unicase/u32-tolower: Likewise.
63008         * modules/unicase/u32-totitle: Likewise.
63009         * modules/unicase/u32-toupper: Likewise.
63010         * modules/unicase/ulc-casecmp: Likewise.
63011         * modules/unicase/ulc-casecoll: Likewise.
63012         * modules/unicase/ulc-casexfrm: Likewise.
63013         * modules/uniconv/u8-conv-from-enc: Likewise.
63014         * modules/uniconv/u8-conv-to-enc: Likewise.
63015         * modules/uniconv/u8-strconv-from-enc: Likewise.
63016         * modules/uniconv/u8-strconv-from-locale: Likewise.
63017         * modules/uniconv/u8-strconv-to-enc: Likewise.
63018         * modules/uniconv/u8-strconv-to-locale: Likewise.
63019         * modules/uniconv/u16-conv-from-enc: Likewise.
63020         * modules/uniconv/u16-conv-to-enc: Likewise.
63021         * modules/uniconv/u16-strconv-from-enc: Likewise.
63022         * modules/uniconv/u16-strconv-from-locale: Likewise.
63023         * modules/uniconv/u16-strconv-to-enc: Likewise.
63024         * modules/uniconv/u16-strconv-to-locale: Likewise.
63025         * modules/uniconv/u32-conv-from-enc: Likewise.
63026         * modules/uniconv/u32-conv-to-enc: Likewise.
63027         * modules/uniconv/u32-strconv-from-enc: Likewise.
63028         * modules/uniconv/u32-strconv-from-locale: Likewise.
63029         * modules/uniconv/u32-strconv-to-enc: Likewise.
63030         * modules/uniconv/u32-strconv-to-locale: Likewise.
63031         * modules/unictype/bidicategory-byname: Likewise.
63032         * modules/unictype/bidicategory-name: Likewise.
63033         * modules/unictype/bidicategory-of: Likewise.
63034         * modules/unictype/bidicategory-test: Likewise.
63035         * modules/unictype/block-list: Likewise.
63036         * modules/unictype/block-test: Likewise.
63037         * modules/unictype/category-C: Likewise.
63038         * modules/unictype/category-Cc: Likewise.
63039         * modules/unictype/category-Cf: Likewise.
63040         * modules/unictype/category-Cn: Likewise.
63041         * modules/unictype/category-Co: Likewise.
63042         * modules/unictype/category-Cs: Likewise.
63043         * modules/unictype/category-L: Likewise.
63044         * modules/unictype/category-Ll: Likewise.
63045         * modules/unictype/category-Lm: Likewise.
63046         * modules/unictype/category-Lo: Likewise.
63047         * modules/unictype/category-Lt: Likewise.
63048         * modules/unictype/category-Lu: Likewise.
63049         * modules/unictype/category-M: Likewise.
63050         * modules/unictype/category-Mc: Likewise.
63051         * modules/unictype/category-Me: Likewise.
63052         * modules/unictype/category-Mn: Likewise.
63053         * modules/unictype/category-N: Likewise.
63054         * modules/unictype/category-Nd: Likewise.
63055         * modules/unictype/category-Nl: Likewise.
63056         * modules/unictype/category-No: Likewise.
63057         * modules/unictype/category-P: Likewise.
63058         * modules/unictype/category-Pc: Likewise.
63059         * modules/unictype/category-Pd: Likewise.
63060         * modules/unictype/category-Pe: Likewise.
63061         * modules/unictype/category-Pf: Likewise.
63062         * modules/unictype/category-Pi: Likewise.
63063         * modules/unictype/category-Po: Likewise.
63064         * modules/unictype/category-Ps: Likewise.
63065         * modules/unictype/category-S: Likewise.
63066         * modules/unictype/category-Sc: Likewise.
63067         * modules/unictype/category-Sk: Likewise.
63068         * modules/unictype/category-Sm: Likewise.
63069         * modules/unictype/category-So: Likewise.
63070         * modules/unictype/category-Z: Likewise.
63071         * modules/unictype/category-Zl: Likewise.
63072         * modules/unictype/category-Zp: Likewise.
63073         * modules/unictype/category-Zs: Likewise.
63074         * modules/unictype/category-and: Likewise.
63075         * modules/unictype/category-and-not: Likewise.
63076         * modules/unictype/category-byname: Likewise.
63077         * modules/unictype/category-name: Likewise.
63078         * modules/unictype/category-none: Likewise.
63079         * modules/unictype/category-of: Likewise.
63080         * modules/unictype/category-or: Likewise.
63081         * modules/unictype/category-test: Likewise.
63082         * modules/unictype/combining-class: Likewise.
63083         * modules/unictype/ctype-alnum: Likewise.
63084         * modules/unictype/ctype-alpha: Likewise.
63085         * modules/unictype/ctype-blank: Likewise.
63086         * modules/unictype/ctype-cntrl: Likewise.
63087         * modules/unictype/ctype-digit: Likewise.
63088         * modules/unictype/ctype-graph: Likewise.
63089         * modules/unictype/ctype-lower: Likewise.
63090         * modules/unictype/ctype-print: Likewise.
63091         * modules/unictype/ctype-punct: Likewise.
63092         * modules/unictype/ctype-space: Likewise.
63093         * modules/unictype/ctype-upper: Likewise.
63094         * modules/unictype/ctype-xdigit: Likewise.
63095         * modules/unictype/decimal-digit: Likewise.
63096         * modules/unictype/digit: Likewise.
63097         * modules/unictype/mirror: Likewise.
63098         * modules/unictype/numeric: Likewise.
63099         * modules/unictype/property-alphabetic: Likewise.
63100         * modules/unictype/property-ascii-hex-digit: Likewise.
63101         * modules/unictype/property-bidi-arabic-digit: Likewise.
63102         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
63103         * modules/unictype/property-bidi-block-separator: Likewise.
63104         * modules/unictype/property-bidi-boundary-neutral: Likewise.
63105         * modules/unictype/property-bidi-common-separator: Likewise.
63106         * modules/unictype/property-bidi-control: Likewise.
63107         * modules/unictype/property-bidi-embedding-or-override: Likewise.
63108         * modules/unictype/property-bidi-eur-num-separator: Likewise.
63109         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
63110         * modules/unictype/property-bidi-european-digit: Likewise.
63111         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
63112         * modules/unictype/property-bidi-left-to-right: Likewise.
63113         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
63114         * modules/unictype/property-bidi-other-neutral: Likewise.
63115         * modules/unictype/property-bidi-pdf: Likewise.
63116         * modules/unictype/property-bidi-segment-separator: Likewise.
63117         * modules/unictype/property-bidi-whitespace: Likewise.
63118         * modules/unictype/property-byname: Likewise.
63119         * modules/unictype/property-combining: Likewise.
63120         * modules/unictype/property-composite: Likewise.
63121         * modules/unictype/property-currency-symbol: Likewise.
63122         * modules/unictype/property-dash: Likewise.
63123         * modules/unictype/property-decimal-digit: Likewise.
63124         * modules/unictype/property-default-ignorable-code-point: Likewise.
63125         * modules/unictype/property-deprecated: Likewise.
63126         * modules/unictype/property-diacritic: Likewise.
63127         * modules/unictype/property-extender: Likewise.
63128         * modules/unictype/property-format-control: Likewise.
63129         * modules/unictype/property-grapheme-base: Likewise.
63130         * modules/unictype/property-grapheme-extend: Likewise.
63131         * modules/unictype/property-grapheme-link: Likewise.
63132         * modules/unictype/property-hex-digit: Likewise.
63133         * modules/unictype/property-hyphen: Likewise.
63134         * modules/unictype/property-id-continue: Likewise.
63135         * modules/unictype/property-id-start: Likewise.
63136         * modules/unictype/property-ideographic: Likewise.
63137         * modules/unictype/property-ids-binary-operator: Likewise.
63138         * modules/unictype/property-ids-trinary-operator: Likewise.
63139         * modules/unictype/property-ignorable-control: Likewise.
63140         * modules/unictype/property-iso-control: Likewise.
63141         * modules/unictype/property-join-control: Likewise.
63142         * modules/unictype/property-left-of-pair: Likewise.
63143         * modules/unictype/property-line-separator: Likewise.
63144         * modules/unictype/property-logical-order-exception: Likewise.
63145         * modules/unictype/property-lowercase: Likewise.
63146         * modules/unictype/property-math: Likewise.
63147         * modules/unictype/property-non-break: Likewise.
63148         * modules/unictype/property-not-a-character: Likewise.
63149         * modules/unictype/property-numeric: Likewise.
63150         * modules/unictype/property-other-alphabetic: Likewise.
63151         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
63152         * modules/unictype/property-other-grapheme-extend: Likewise.
63153         * modules/unictype/property-other-id-continue: Likewise.
63154         * modules/unictype/property-other-id-start: Likewise.
63155         * modules/unictype/property-other-lowercase: Likewise.
63156         * modules/unictype/property-other-math: Likewise.
63157         * modules/unictype/property-other-uppercase: Likewise.
63158         * modules/unictype/property-paired-punctuation: Likewise.
63159         * modules/unictype/property-paragraph-separator: Likewise.
63160         * modules/unictype/property-pattern-syntax: Likewise.
63161         * modules/unictype/property-pattern-white-space: Likewise.
63162         * modules/unictype/property-private-use: Likewise.
63163         * modules/unictype/property-punctuation: Likewise.
63164         * modules/unictype/property-quotation-mark: Likewise.
63165         * modules/unictype/property-radical: Likewise.
63166         * modules/unictype/property-sentence-terminal: Likewise.
63167         * modules/unictype/property-soft-dotted: Likewise.
63168         * modules/unictype/property-space: Likewise.
63169         * modules/unictype/property-terminal-punctuation: Likewise.
63170         * modules/unictype/property-test: Likewise.
63171         * modules/unictype/property-titlecase: Likewise.
63172         * modules/unictype/property-unassigned-code-value: Likewise.
63173         * modules/unictype/property-unified-ideograph: Likewise.
63174         * modules/unictype/property-uppercase: Likewise.
63175         * modules/unictype/property-variation-selector: Likewise.
63176         * modules/unictype/property-white-space: Likewise.
63177         * modules/unictype/property-xid-continue: Likewise.
63178         * modules/unictype/property-xid-start: Likewise.
63179         * modules/unictype/property-zero-width: Likewise.
63180         * modules/unictype/scripts: Likewise.
63181         * modules/unictype/syntax-c-ident: Likewise.
63182         * modules/unictype/syntax-c-whitespace: Likewise.
63183         * modules/unictype/syntax-java-ident: Likewise.
63184         * modules/unictype/syntax-java-whitespace: Likewise.
63185         * modules/unilbrk/u8-possible-linebreaks: Likewise.
63186         * modules/unilbrk/u8-width-linebreaks: Likewise.
63187         * modules/unilbrk/u16-possible-linebreaks: Likewise.
63188         * modules/unilbrk/u16-width-linebreaks: Likewise.
63189         * modules/unilbrk/u32-possible-linebreaks: Likewise.
63190         * modules/unilbrk/u32-width-linebreaks: Likewise.
63191         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
63192         * modules/unilbrk/ulc-width-linebreaks: Likewise.
63193         * modules/uniname/uniname: Likewise.
63194         * modules/uninorm/canonical-decomposition: Likewise.
63195         * modules/uninorm/composition: Likewise.
63196         * modules/uninorm/decomposing-form: Likewise.
63197         * modules/uninorm/decomposition: Likewise.
63198         * modules/uninorm/filter: Likewise.
63199         * modules/uninorm/nfc: Likewise.
63200         * modules/uninorm/nfd: Likewise.
63201         * modules/uninorm/nfkc: Likewise.
63202         * modules/uninorm/nfkd: Likewise.
63203         * modules/uninorm/u8-normalize: Likewise.
63204         * modules/uninorm/u8-normcmp: Likewise.
63205         * modules/uninorm/u8-normcoll: Likewise.
63206         * modules/uninorm/u8-normxfrm: Likewise.
63207         * modules/uninorm/u16-normalize: Likewise.
63208         * modules/uninorm/u16-normcmp: Likewise.
63209         * modules/uninorm/u16-normcoll: Likewise.
63210         * modules/uninorm/u16-normxfrm: Likewise.
63211         * modules/uninorm/u32-normalize: Likewise.
63212         * modules/uninorm/u32-normcmp: Likewise.
63213         * modules/uninorm/u32-normcoll: Likewise.
63214         * modules/uninorm/u32-normxfrm: Likewise.
63215         * modules/unistdio/u8-asnprintf: Likewise.
63216         * modules/unistdio/u8-asprintf: Likewise.
63217         * modules/unistdio/u8-snprintf: Likewise.
63218         * modules/unistdio/u8-sprintf: Likewise.
63219         * modules/unistdio/u8-u8-asnprintf: Likewise.
63220         * modules/unistdio/u8-u8-asprintf: Likewise.
63221         * modules/unistdio/u8-u8-snprintf: Likewise.
63222         * modules/unistdio/u8-u8-sprintf: Likewise.
63223         * modules/unistdio/u8-u8-vasnprintf: Likewise.
63224         * modules/unistdio/u8-u8-vasprintf: Likewise.
63225         * modules/unistdio/u8-u8-vsnprintf: Likewise.
63226         * modules/unistdio/u8-u8-vsprintf: Likewise.
63227         * modules/unistdio/u8-vasnprintf: Likewise.
63228         * modules/unistdio/u8-vasprintf: Likewise.
63229         * modules/unistdio/u8-vsnprintf: Likewise.
63230         * modules/unistdio/u8-vsprintf: Likewise.
63231         * modules/unistdio/u16-asnprintf: Likewise.
63232         * modules/unistdio/u16-asprintf: Likewise.
63233         * modules/unistdio/u16-snprintf: Likewise.
63234         * modules/unistdio/u16-sprintf: Likewise.
63235         * modules/unistdio/u16-u16-asnprintf: Likewise.
63236         * modules/unistdio/u16-u16-asprintf: Likewise.
63237         * modules/unistdio/u16-u16-snprintf: Likewise.
63238         * modules/unistdio/u16-u16-sprintf: Likewise.
63239         * modules/unistdio/u16-u16-vasnprintf: Likewise.
63240         * modules/unistdio/u16-u16-vasprintf: Likewise.
63241         * modules/unistdio/u16-u16-vsnprintf: Likewise.
63242         * modules/unistdio/u16-u16-vsprintf: Likewise.
63243         * modules/unistdio/u16-vasnprintf: Likewise.
63244         * modules/unistdio/u16-vasprintf: Likewise.
63245         * modules/unistdio/u16-vsnprintf: Likewise.
63246         * modules/unistdio/u16-vsprintf: Likewise.
63247         * modules/unistdio/u32-asnprintf: Likewise.
63248         * modules/unistdio/u32-asprintf: Likewise.
63249         * modules/unistdio/u32-snprintf: Likewise.
63250         * modules/unistdio/u32-sprintf: Likewise.
63251         * modules/unistdio/u32-u32-asnprintf: Likewise.
63252         * modules/unistdio/u32-u32-asprintf: Likewise.
63253         * modules/unistdio/u32-u32-snprintf: Likewise.
63254         * modules/unistdio/u32-u32-sprintf: Likewise.
63255         * modules/unistdio/u32-u32-vasnprintf: Likewise.
63256         * modules/unistdio/u32-u32-vasprintf: Likewise.
63257         * modules/unistdio/u32-u32-vsnprintf: Likewise.
63258         * modules/unistdio/u32-u32-vsprintf: Likewise.
63259         * modules/unistdio/u32-vasnprintf: Likewise.
63260         * modules/unistdio/u32-vasprintf: Likewise.
63261         * modules/unistdio/u32-vsnprintf: Likewise.
63262         * modules/unistdio/u32-vsprintf: Likewise.
63263         * modules/unistdio/ulc-asnprintf: Likewise.
63264         * modules/unistdio/ulc-asprintf: Likewise.
63265         * modules/unistdio/ulc-fprintf: Likewise.
63266         * modules/unistdio/ulc-snprintf: Likewise.
63267         * modules/unistdio/ulc-sprintf: Likewise.
63268         * modules/unistdio/ulc-vasnprintf: Likewise.
63269         * modules/unistdio/ulc-vasprintf: Likewise.
63270         * modules/unistdio/ulc-vfprintf: Likewise.
63271         * modules/unistdio/ulc-vsnprintf: Likewise.
63272         * modules/unistdio/ulc-vsprintf: Likewise.
63273         * modules/unistr/u8-check: Likewise.
63274         * modules/unistr/u8-chr: Likewise.
63275         * modules/unistr/u8-cmp: Likewise.
63276         * modules/unistr/u8-cmp2: Likewise.
63277         * modules/unistr/u8-cpy: Likewise.
63278         * modules/unistr/u8-cpy-alloc: Likewise.
63279         * modules/unistr/u8-endswith: Likewise.
63280         * modules/unistr/u8-mblen: Likewise.
63281         * modules/unistr/u8-mbsnlen: Likewise.
63282         * modules/unistr/u8-mbtouc: Likewise.
63283         * modules/unistr/u8-mbtouc-unsafe: Likewise.
63284         * modules/unistr/u8-mbtoucr: Likewise.
63285         * modules/unistr/u8-move: Likewise.
63286         * modules/unistr/u8-next: Likewise.
63287         * modules/unistr/u8-prev: Likewise.
63288         * modules/unistr/u8-set: Likewise.
63289         * modules/unistr/u8-startswith: Likewise.
63290         * modules/unistr/u8-stpcpy: Likewise.
63291         * modules/unistr/u8-stpncpy: Likewise.
63292         * modules/unistr/u8-strcat: Likewise.
63293         * modules/unistr/u8-strchr: Likewise.
63294         * modules/unistr/u8-strcmp: Likewise.
63295         * modules/unistr/u8-strcoll: Likewise.
63296         * modules/unistr/u8-strcpy: Likewise.
63297         * modules/unistr/u8-strcspn: Likewise.
63298         * modules/unistr/u8-strdup: Likewise.
63299         * modules/unistr/u8-strlen: Likewise.
63300         * modules/unistr/u8-strmblen: Likewise.
63301         * modules/unistr/u8-strmbtouc: Likewise.
63302         * modules/unistr/u8-strncat: Likewise.
63303         * modules/unistr/u8-strncmp: Likewise.
63304         * modules/unistr/u8-strncpy: Likewise.
63305         * modules/unistr/u8-strnlen: Likewise.
63306         * modules/unistr/u8-strpbrk: Likewise.
63307         * modules/unistr/u8-strrchr: Likewise.
63308         * modules/unistr/u8-strspn: Likewise.
63309         * modules/unistr/u8-strstr: Likewise.
63310         * modules/unistr/u8-strtok: Likewise.
63311         * modules/unistr/u8-to-u16: Likewise.
63312         * modules/unistr/u8-to-u32: Likewise.
63313         * modules/unistr/u8-uctomb: Likewise.
63314         * modules/unistr/u16-check: Likewise.
63315         * modules/unistr/u16-chr: Likewise.
63316         * modules/unistr/u16-cmp: Likewise.
63317         * modules/unistr/u16-cmp2: Likewise.
63318         * modules/unistr/u16-cpy: Likewise.
63319         * modules/unistr/u16-cpy-alloc: Likewise.
63320         * modules/unistr/u16-endswith: Likewise.
63321         * modules/unistr/u16-mblen: Likewise.
63322         * modules/unistr/u16-mbsnlen: Likewise.
63323         * modules/unistr/u16-mbtouc: Likewise.
63324         * modules/unistr/u16-mbtouc-unsafe: Likewise.
63325         * modules/unistr/u16-mbtoucr: Likewise.
63326         * modules/unistr/u16-move: Likewise.
63327         * modules/unistr/u16-next: Likewise.
63328         * modules/unistr/u16-prev: Likewise.
63329         * modules/unistr/u16-set: Likewise.
63330         * modules/unistr/u16-startswith: Likewise.
63331         * modules/unistr/u16-stpcpy: Likewise.
63332         * modules/unistr/u16-stpncpy: Likewise.
63333         * modules/unistr/u16-strcat: Likewise.
63334         * modules/unistr/u16-strchr: Likewise.
63335         * modules/unistr/u16-strcmp: Likewise.
63336         * modules/unistr/u16-strcoll: Likewise.
63337         * modules/unistr/u16-strcpy: Likewise.
63338         * modules/unistr/u16-strcspn: Likewise.
63339         * modules/unistr/u16-strdup: Likewise.
63340         * modules/unistr/u16-strlen: Likewise.
63341         * modules/unistr/u16-strmblen: Likewise.
63342         * modules/unistr/u16-strmbtouc: Likewise.
63343         * modules/unistr/u16-strncat: Likewise.
63344         * modules/unistr/u16-strncmp: Likewise.
63345         * modules/unistr/u16-strncpy: Likewise.
63346         * modules/unistr/u16-strnlen: Likewise.
63347         * modules/unistr/u16-strpbrk: Likewise.
63348         * modules/unistr/u16-strrchr: Likewise.
63349         * modules/unistr/u16-strspn: Likewise.
63350         * modules/unistr/u16-strstr: Likewise.
63351         * modules/unistr/u16-strtok: Likewise.
63352         * modules/unistr/u16-to-u32: Likewise.
63353         * modules/unistr/u16-to-u8: Likewise.
63354         * modules/unistr/u16-uctomb: Likewise.
63355         * modules/unistr/u32-check: Likewise.
63356         * modules/unistr/u32-chr: Likewise.
63357         * modules/unistr/u32-cmp: Likewise.
63358         * modules/unistr/u32-cmp2: Likewise.
63359         * modules/unistr/u32-cpy: Likewise.
63360         * modules/unistr/u32-cpy-alloc: Likewise.
63361         * modules/unistr/u32-endswith: Likewise.
63362         * modules/unistr/u32-mblen: Likewise.
63363         * modules/unistr/u32-mbsnlen: Likewise.
63364         * modules/unistr/u32-mbtouc: Likewise.
63365         * modules/unistr/u32-mbtouc-unsafe: Likewise.
63366         * modules/unistr/u32-mbtoucr: Likewise.
63367         * modules/unistr/u32-move: Likewise.
63368         * modules/unistr/u32-next: Likewise.
63369         * modules/unistr/u32-prev: Likewise.
63370         * modules/unistr/u32-set: Likewise.
63371         * modules/unistr/u32-startswith: Likewise.
63372         * modules/unistr/u32-stpcpy: Likewise.
63373         * modules/unistr/u32-stpncpy: Likewise.
63374         * modules/unistr/u32-strcat: Likewise.
63375         * modules/unistr/u32-strchr: Likewise.
63376         * modules/unistr/u32-strcmp: Likewise.
63377         * modules/unistr/u32-strcoll: Likewise.
63378         * modules/unistr/u32-strcpy: Likewise.
63379         * modules/unistr/u32-strcspn: Likewise.
63380         * modules/unistr/u32-strdup: Likewise.
63381         * modules/unistr/u32-strlen: Likewise.
63382         * modules/unistr/u32-strmblen: Likewise.
63383         * modules/unistr/u32-strmbtouc: Likewise.
63384         * modules/unistr/u32-strncat: Likewise.
63385         * modules/unistr/u32-strncmp: Likewise.
63386         * modules/unistr/u32-strncpy: Likewise.
63387         * modules/unistr/u32-strnlen: Likewise.
63388         * modules/unistr/u32-strpbrk: Likewise.
63389         * modules/unistr/u32-strrchr: Likewise.
63390         * modules/unistr/u32-strspn: Likewise.
63391         * modules/unistr/u32-strstr: Likewise.
63392         * modules/unistr/u32-strtok: Likewise.
63393         * modules/unistr/u32-to-u16: Likewise.
63394         * modules/unistr/u32-to-u8: Likewise.
63395         * modules/unistr/u32-uctomb: Likewise.
63396         * modules/uniwbrk/u8-wordbreaks: Likewise.
63397         * modules/uniwbrk/u16-wordbreaks: Likewise.
63398         * modules/uniwbrk/u32-wordbreaks: Likewise.
63399         * modules/uniwbrk/ulc-wordbreaks: Likewise.
63400         * modules/uniwbrk/wordbreak-property: Likewise.
63401         * modules/uniwidth/u8-strwidth: Likewise.
63402         * modules/uniwidth/u8-width: Likewise.
63403         * modules/uniwidth/u16-strwidth: Likewise.
63404         * modules/uniwidth/u16-width: Likewise.
63405         * modules/uniwidth/u32-strwidth: Likewise.
63406         * modules/uniwidth/u32-width: Likewise.
63407         * modules/uniwidth/width: Likewise.
63408         * modules/unicase/cased-tests (Makefile.am): Link all test programs
63409         with $(LIBUNISTRING).
63410         * modules/unicase/ignorable-tests: Likewise.
63411         * modules/unicase/locale-language-tests: Likewise.
63412         * modules/unicase/tolower-tests: Likewise.
63413         * modules/unicase/totitle-tests: Likewise.
63414         * modules/unicase/toupper-tests: Likewise.
63415         * modules/unicase/u8-casecmp-tests: Likewise.
63416         * modules/unicase/u8-casecoll-tests: Likewise.
63417         * modules/unicase/u8-casefold-tests: Likewise.
63418         * modules/unicase/u8-is-cased-tests: Likewise.
63419         * modules/unicase/u8-is-casefolded-tests: Likewise.
63420         * modules/unicase/u8-is-lowercase-tests: Likewise.
63421         * modules/unicase/u8-is-titlecase-tests: Likewise.
63422         * modules/unicase/u8-is-uppercase-tests: Likewise.
63423         * modules/unicase/u8-tolower-tests: Likewise.
63424         * modules/unicase/u8-totitle-tests: Likewise.
63425         * modules/unicase/u8-toupper-tests: Likewise.
63426         * modules/unicase/u16-casecmp-tests: Likewise.
63427         * modules/unicase/u16-casecoll-tests: Likewise.
63428         * modules/unicase/u16-casefold-tests: Likewise.
63429         * modules/unicase/u16-is-cased-tests: Likewise.
63430         * modules/unicase/u16-is-casefolded-tests: Likewise.
63431         * modules/unicase/u16-is-lowercase-tests: Likewise.
63432         * modules/unicase/u16-is-titlecase-tests: Likewise.
63433         * modules/unicase/u16-is-uppercase-tests: Likewise.
63434         * modules/unicase/u16-tolower-tests: Likewise.
63435         * modules/unicase/u16-totitle-tests: Likewise.
63436         * modules/unicase/u16-toupper-tests: Likewise.
63437         * modules/unicase/u32-casecmp-tests: Likewise.
63438         * modules/unicase/u32-casecoll-tests: Likewise.
63439         * modules/unicase/u32-casefold-tests: Likewise.
63440         * modules/unicase/u32-is-cased-tests: Likewise.
63441         * modules/unicase/u32-is-casefolded-tests: Likewise.
63442         * modules/unicase/u32-is-lowercase-tests: Likewise.
63443         * modules/unicase/u32-is-titlecase-tests: Likewise.
63444         * modules/unicase/u32-is-uppercase-tests: Likewise.
63445         * modules/unicase/u32-tolower-tests: Likewise.
63446         * modules/unicase/u32-totitle-tests: Likewise.
63447         * modules/unicase/u32-toupper-tests: Likewise.
63448         * modules/unicase/ulc-casecmp-tests: Likewise.
63449         * modules/unicase/ulc-casecoll-tests: Likewise.
63450         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
63451         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
63452         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
63453         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
63454         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
63455         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
63456         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
63457         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
63458         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
63459         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
63460         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
63461         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
63462         * modules/unictype/bidicategory-byname-tests: Likewise.
63463         * modules/unictype/bidicategory-name-tests: Likewise.
63464         * modules/unictype/bidicategory-of-tests: Likewise.
63465         * modules/unictype/bidicategory-test-tests: Likewise.
63466         * modules/unictype/block-list-tests: Likewise.
63467         * modules/unictype/block-of-tests: Likewise.
63468         * modules/unictype/block-test-tests: Likewise.
63469         * modules/unictype/category-C-tests: Likewise.
63470         * modules/unictype/category-Cc-tests: Likewise.
63471         * modules/unictype/category-Cf-tests: Likewise.
63472         * modules/unictype/category-Cn-tests: Likewise.
63473         * modules/unictype/category-Co-tests: Likewise.
63474         * modules/unictype/category-Cs-tests: Likewise.
63475         * modules/unictype/category-L-tests: Likewise.
63476         * modules/unictype/category-Ll-tests: Likewise.
63477         * modules/unictype/category-Lm-tests: Likewise.
63478         * modules/unictype/category-Lo-tests: Likewise.
63479         * modules/unictype/category-Lt-tests: Likewise.
63480         * modules/unictype/category-Lu-tests: Likewise.
63481         * modules/unictype/category-M-tests: Likewise.
63482         * modules/unictype/category-Mc-tests: Likewise.
63483         * modules/unictype/category-Me-tests: Likewise.
63484         * modules/unictype/category-Mn-tests: Likewise.
63485         * modules/unictype/category-N-tests: Likewise.
63486         * modules/unictype/category-Nd-tests: Likewise.
63487         * modules/unictype/category-Nl-tests: Likewise.
63488         * modules/unictype/category-No-tests: Likewise.
63489         * modules/unictype/category-P-tests: Likewise.
63490         * modules/unictype/category-Pc-tests: Likewise.
63491         * modules/unictype/category-Pd-tests: Likewise.
63492         * modules/unictype/category-Pe-tests: Likewise.
63493         * modules/unictype/category-Pf-tests: Likewise.
63494         * modules/unictype/category-Pi-tests: Likewise.
63495         * modules/unictype/category-Po-tests: Likewise.
63496         * modules/unictype/category-Ps-tests: Likewise.
63497         * modules/unictype/category-S-tests: Likewise.
63498         * modules/unictype/category-Sc-tests: Likewise.
63499         * modules/unictype/category-Sk-tests: Likewise.
63500         * modules/unictype/category-Sm-tests: Likewise.
63501         * modules/unictype/category-So-tests: Likewise.
63502         * modules/unictype/category-Z-tests: Likewise.
63503         * modules/unictype/category-Zl-tests: Likewise.
63504         * modules/unictype/category-Zp-tests: Likewise.
63505         * modules/unictype/category-Zs-tests: Likewise.
63506         * modules/unictype/category-and-not-tests: Likewise.
63507         * modules/unictype/category-and-tests: Likewise.
63508         * modules/unictype/category-byname-tests: Likewise.
63509         * modules/unictype/category-name-tests: Likewise.
63510         * modules/unictype/category-none-tests: Likewise.
63511         * modules/unictype/category-of-tests: Likewise.
63512         * modules/unictype/category-or-tests: Likewise.
63513         * modules/unictype/category-test-withtable-tests: Likewise.
63514         * modules/unictype/combining-class-tests: Likewise.
63515         * modules/unictype/ctype-alnum-tests: Likewise.
63516         * modules/unictype/ctype-alpha-tests: Likewise.
63517         * modules/unictype/ctype-blank-tests: Likewise.
63518         * modules/unictype/ctype-cntrl-tests: Likewise.
63519         * modules/unictype/ctype-digit-tests: Likewise.
63520         * modules/unictype/ctype-graph-tests: Likewise.
63521         * modules/unictype/ctype-lower-tests: Likewise.
63522         * modules/unictype/ctype-print-tests: Likewise.
63523         * modules/unictype/ctype-punct-tests: Likewise.
63524         * modules/unictype/ctype-space-tests: Likewise.
63525         * modules/unictype/ctype-upper-tests: Likewise.
63526         * modules/unictype/ctype-xdigit-tests: Likewise.
63527         * modules/unictype/decimal-digit-tests: Likewise.
63528         * modules/unictype/digit-tests: Likewise.
63529         * modules/unictype/mirror-tests: Likewise.
63530         * modules/unictype/numeric-tests: Likewise.
63531         * modules/unictype/property-alphabetic-tests: Likewise.
63532         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
63533         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
63534         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
63535         * modules/unictype/property-bidi-block-separator-tests: Likewise.
63536         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
63537         * modules/unictype/property-bidi-common-separator-tests: Likewise.
63538         * modules/unictype/property-bidi-control-tests: Likewise.
63539         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
63540         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
63541         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
63542         * modules/unictype/property-bidi-european-digit-tests: Likewise.
63543         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
63544         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
63545         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
63546         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
63547         * modules/unictype/property-bidi-pdf-tests: Likewise.
63548         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
63549         * modules/unictype/property-bidi-whitespace-tests: Likewise.
63550         * modules/unictype/property-byname-tests: Likewise.
63551         * modules/unictype/property-combining-tests: Likewise.
63552         * modules/unictype/property-composite-tests: Likewise.
63553         * modules/unictype/property-currency-symbol-tests: Likewise.
63554         * modules/unictype/property-dash-tests: Likewise.
63555         * modules/unictype/property-decimal-digit-tests: Likewise.
63556         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
63557         * modules/unictype/property-deprecated-tests: Likewise.
63558         * modules/unictype/property-diacritic-tests: Likewise.
63559         * modules/unictype/property-extender-tests: Likewise.
63560         * modules/unictype/property-format-control-tests: Likewise.
63561         * modules/unictype/property-grapheme-base-tests: Likewise.
63562         * modules/unictype/property-grapheme-extend-tests: Likewise.
63563         * modules/unictype/property-grapheme-link-tests: Likewise.
63564         * modules/unictype/property-hex-digit-tests: Likewise.
63565         * modules/unictype/property-hyphen-tests: Likewise.
63566         * modules/unictype/property-id-continue-tests: Likewise.
63567         * modules/unictype/property-id-start-tests: Likewise.
63568         * modules/unictype/property-ideographic-tests: Likewise.
63569         * modules/unictype/property-ids-binary-operator-tests: Likewise.
63570         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
63571         * modules/unictype/property-ignorable-control-tests: Likewise.
63572         * modules/unictype/property-iso-control-tests: Likewise.
63573         * modules/unictype/property-join-control-tests: Likewise.
63574         * modules/unictype/property-left-of-pair-tests: Likewise.
63575         * modules/unictype/property-line-separator-tests: Likewise.
63576         * modules/unictype/property-logical-order-exception-tests: Likewise.
63577         * modules/unictype/property-lowercase-tests: Likewise.
63578         * modules/unictype/property-math-tests: Likewise.
63579         * modules/unictype/property-non-break-tests: Likewise.
63580         * modules/unictype/property-not-a-character-tests: Likewise.
63581         * modules/unictype/property-numeric-tests: Likewise.
63582         * modules/unictype/property-other-alphabetic-tests: Likewise.
63583         * modules/unictype/property-other-default-ignorable-code-point-tests:
63584         Likewise.
63585         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
63586         * modules/unictype/property-other-id-continue-tests: Likewise.
63587         * modules/unictype/property-other-id-start-tests: Likewise.
63588         * modules/unictype/property-other-lowercase-tests: Likewise.
63589         * modules/unictype/property-other-math-tests: Likewise.
63590         * modules/unictype/property-other-uppercase-tests: Likewise.
63591         * modules/unictype/property-paired-punctuation-tests: Likewise.
63592         * modules/unictype/property-paragraph-separator-tests: Likewise.
63593         * modules/unictype/property-pattern-syntax-tests: Likewise.
63594         * modules/unictype/property-pattern-white-space-tests: Likewise.
63595         * modules/unictype/property-private-use-tests: Likewise.
63596         * modules/unictype/property-punctuation-tests: Likewise.
63597         * modules/unictype/property-quotation-mark-tests: Likewise.
63598         * modules/unictype/property-radical-tests: Likewise.
63599         * modules/unictype/property-sentence-terminal-tests: Likewise.
63600         * modules/unictype/property-soft-dotted-tests: Likewise.
63601         * modules/unictype/property-space-tests: Likewise.
63602         * modules/unictype/property-terminal-punctuation-tests: Likewise.
63603         * modules/unictype/property-test-tests: Likewise.
63604         * modules/unictype/property-titlecase-tests: Likewise.
63605         * modules/unictype/property-unassigned-code-value-tests: Likewise.
63606         * modules/unictype/property-unified-ideograph-tests: Likewise.
63607         * modules/unictype/property-uppercase-tests: Likewise.
63608         * modules/unictype/property-variation-selector-tests: Likewise.
63609         * modules/unictype/property-white-space-tests: Likewise.
63610         * modules/unictype/property-xid-continue-tests: Likewise.
63611         * modules/unictype/property-xid-start-tests: Likewise.
63612         * modules/unictype/property-zero-width-tests: Likewise.
63613         * modules/unictype/scripts-tests: Likewise.
63614         * modules/unictype/syntax-c-ident-tests: Likewise.
63615         * modules/unictype/syntax-c-whitespace-tests: Likewise.
63616         * modules/unictype/syntax-java-ident-tests: Likewise.
63617         * modules/unictype/syntax-java-whitespace-tests: Likewise.
63618         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
63619         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
63620         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
63621         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
63622         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
63623         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
63624         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
63625         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
63626         * modules/uniname/uniname-tests: Likewise.
63627         * modules/uninorm/canonical-decomposition-tests: Likewise.
63628         * modules/uninorm/compat-decomposition-tests: Likewise.
63629         * modules/uninorm/composition-tests: Likewise.
63630         * modules/uninorm/decomposing-form-tests: Likewise.
63631         * modules/uninorm/decomposition-tests: Likewise.
63632         * modules/uninorm/filter-tests: Likewise.
63633         * modules/uninorm/nfc-tests: Likewise.
63634         * modules/uninorm/nfd-tests: Likewise.
63635         * modules/uninorm/nfkc-tests: Likewise.
63636         * modules/uninorm/nfkd-tests: Likewise.
63637         * modules/uninorm/u8-normcmp-tests: Likewise.
63638         * modules/uninorm/u8-normcoll-tests: Likewise.
63639         * modules/uninorm/u16-normcmp-tests: Likewise.
63640         * modules/uninorm/u16-normcoll-tests: Likewise.
63641         * modules/uninorm/u32-normcmp-tests: Likewise.
63642         * modules/uninorm/u32-normcoll-tests: Likewise.
63643         * modules/unistdio/u8-asnprintf-tests: Likewise.
63644         * modules/unistdio/u8-vasnprintf-tests: Likewise.
63645         * modules/unistdio/u8-vasprintf-tests: Likewise.
63646         * modules/unistdio/u8-vsnprintf-tests: Likewise.
63647         * modules/unistdio/u8-vsprintf-tests: Likewise.
63648         * modules/unistdio/u16-asnprintf-tests: Likewise.
63649         * modules/unistdio/u16-vasnprintf-tests: Likewise.
63650         * modules/unistdio/u16-vasprintf-tests: Likewise.
63651         * modules/unistdio/u16-vsnprintf-tests: Likewise.
63652         * modules/unistdio/u16-vsprintf-tests: Likewise.
63653         * modules/unistdio/u32-asnprintf-tests: Likewise.
63654         * modules/unistdio/u32-vasnprintf-tests: Likewise.
63655         * modules/unistdio/u32-vasprintf-tests: Likewise.
63656         * modules/unistdio/u32-vsnprintf-tests: Likewise.
63657         * modules/unistdio/u32-vsprintf-tests: Likewise.
63658         * modules/unistdio/ulc-asnprintf-tests: Likewise.
63659         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
63660         * modules/unistdio/ulc-vasprintf-tests: Likewise.
63661         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
63662         * modules/unistdio/ulc-vsprintf-tests: Likewise.
63663         * modules/unistr/u8-check-tests: Likewise.
63664         * modules/unistr/u8-chr-tests: Likewise.
63665         * modules/unistr/u8-cmp-tests: Likewise.
63666         * modules/unistr/u8-cmp2-tests: Likewise.
63667         * modules/unistr/u8-cpy-alloc-tests: Likewise.
63668         * modules/unistr/u8-cpy-tests: Likewise.
63669         * modules/unistr/u8-mblen-tests: Likewise.
63670         * modules/unistr/u8-mbsnlen-tests: Likewise.
63671         * modules/unistr/u8-mbtouc-tests: Likewise.
63672         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
63673         * modules/unistr/u8-mbtoucr-tests: Likewise.
63674         * modules/unistr/u8-move-tests: Likewise.
63675         * modules/unistr/u8-next-tests: Likewise.
63676         * modules/unistr/u8-prev-tests: Likewise.
63677         * modules/unistr/u8-set-tests: Likewise.
63678         * modules/unistr/u8-stpcpy-tests: Likewise.
63679         * modules/unistr/u8-stpncpy-tests: Likewise.
63680         * modules/unistr/u8-strcat-tests: Likewise.
63681         * modules/unistr/u8-strcmp-tests: Likewise.
63682         * modules/unistr/u8-strcoll-tests: Likewise.
63683         * modules/unistr/u8-strcpy-tests: Likewise.
63684         * modules/unistr/u8-strdup-tests: Likewise.
63685         * modules/unistr/u8-strlen-tests: Likewise.
63686         * modules/unistr/u8-strmblen-tests: Likewise.
63687         * modules/unistr/u8-strmbtouc-tests: Likewise.
63688         * modules/unistr/u8-strncat-tests: Likewise.
63689         * modules/unistr/u8-strncmp-tests: Likewise.
63690         * modules/unistr/u8-strncpy-tests: Likewise.
63691         * modules/unistr/u8-strnlen-tests: Likewise.
63692         * modules/unistr/u8-to-u16-tests: Likewise.
63693         * modules/unistr/u8-to-u32-tests: Likewise.
63694         * modules/unistr/u8-uctomb-tests: Likewise.
63695         * modules/unistr/u16-check-tests: Likewise.
63696         * modules/unistr/u16-chr-tests: Likewise.
63697         * modules/unistr/u16-cmp-tests: Likewise.
63698         * modules/unistr/u16-cmp2-tests: Likewise.
63699         * modules/unistr/u16-cpy-alloc-tests: Likewise.
63700         * modules/unistr/u16-cpy-tests: Likewise.
63701         * modules/unistr/u16-mblen-tests: Likewise.
63702         * modules/unistr/u16-mbsnlen-tests: Likewise.
63703         * modules/unistr/u16-mbtouc-tests: Likewise.
63704         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
63705         * modules/unistr/u16-mbtoucr-tests: Likewise.
63706         * modules/unistr/u16-move-tests: Likewise.
63707         * modules/unistr/u16-next-tests: Likewise.
63708         * modules/unistr/u16-prev-tests: Likewise.
63709         * modules/unistr/u16-set-tests: Likewise.
63710         * modules/unistr/u16-stpcpy-tests: Likewise.
63711         * modules/unistr/u16-stpncpy-tests: Likewise.
63712         * modules/unistr/u16-strcat-tests: Likewise.
63713         * modules/unistr/u16-strcmp-tests: Likewise.
63714         * modules/unistr/u16-strcoll-tests: Likewise.
63715         * modules/unistr/u16-strcpy-tests: Likewise.
63716         * modules/unistr/u16-strdup-tests: Likewise.
63717         * modules/unistr/u16-strlen-tests: Likewise.
63718         * modules/unistr/u16-strmblen-tests: Likewise.
63719         * modules/unistr/u16-strmbtouc-tests: Likewise.
63720         * modules/unistr/u16-strncat-tests: Likewise.
63721         * modules/unistr/u16-strncmp-tests: Likewise.
63722         * modules/unistr/u16-strncpy-tests: Likewise.
63723         * modules/unistr/u16-strnlen-tests: Likewise.
63724         * modules/unistr/u16-to-u32-tests: Likewise.
63725         * modules/unistr/u16-to-u8-tests: Likewise.
63726         * modules/unistr/u16-uctomb-tests: Likewise.
63727         * modules/unistr/u32-check-tests: Likewise.
63728         * modules/unistr/u32-chr-tests: Likewise.
63729         * modules/unistr/u32-cmp-tests: Likewise.
63730         * modules/unistr/u32-cmp2-tests: Likewise.
63731         * modules/unistr/u32-cpy-alloc-tests: Likewise.
63732         * modules/unistr/u32-cpy-tests: Likewise.
63733         * modules/unistr/u32-mblen-tests: Likewise.
63734         * modules/unistr/u32-mbsnlen-tests: Likewise.
63735         * modules/unistr/u32-mbtouc-tests: Likewise.
63736         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
63737         * modules/unistr/u32-mbtoucr-tests: Likewise.
63738         * modules/unistr/u32-move-tests: Likewise.
63739         * modules/unistr/u32-next-tests: Likewise.
63740         * modules/unistr/u32-prev-tests: Likewise.
63741         * modules/unistr/u32-set-tests: Likewise.
63742         * modules/unistr/u32-stpcpy-tests: Likewise.
63743         * modules/unistr/u32-stpncpy-tests: Likewise.
63744         * modules/unistr/u32-strcat-tests: Likewise.
63745         * modules/unistr/u32-strcmp-tests: Likewise.
63746         * modules/unistr/u32-strcoll-tests: Likewise.
63747         * modules/unistr/u32-strcpy-tests: Likewise.
63748         * modules/unistr/u32-strdup-tests: Likewise.
63749         * modules/unistr/u32-strlen-tests: Likewise.
63750         * modules/unistr/u32-strmblen-tests: Likewise.
63751         * modules/unistr/u32-strmbtouc-tests: Likewise.
63752         * modules/unistr/u32-strncat-tests: Likewise.
63753         * modules/unistr/u32-strncmp-tests: Likewise.
63754         * modules/unistr/u32-strncpy-tests: Likewise.
63755         * modules/unistr/u32-strnlen-tests: Likewise.
63756         * modules/unistr/u32-to-u16-tests: Likewise.
63757         * modules/unistr/u32-to-u8-tests: Likewise.
63758         * modules/unistr/u32-uctomb-tests: Likewise.
63759         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
63760         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
63761         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
63762         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
63763         * modules/uniwidth/u8-strwidth-tests: Likewise.
63764         * modules/uniwidth/u8-width-tests: Likewise.
63765         * modules/uniwidth/u16-strwidth-tests: Likewise.
63766         * modules/uniwidth/u16-width-tests: Likewise.
63767         * modules/uniwidth/u32-strwidth-tests: Likewise.
63768         * modules/uniwidth/u32-width-tests: Likewise.
63769         * modules/uniwidth/width-tests: Likewise.
63771 2010-05-18  Richard Jones  <rjones@redhat.com>
63773         doc: users.txt: list hivex
63774         * users.txt: Add hivex.
63776 2010-05-18  Richard Jones  <rjones@redhat.com>
63778         doc: users.txt: list febootstrap
63779         * users.txt: Add febootstrap.
63781 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
63783         bootstrap: fix an error when gnulib is not used as a git submodule
63784         * build-aux/bootstrap (gnulib_path): If its length is zero then
63785         assign "gnulib" to it.
63786         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
63788 2010-05-16  Bruno Haible  <bruno@clisp.org>
63790         Avoid autoconf warnings about AM_ICONV.
63791         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
63792         2.64.
63794 2010-05-16  Bruno Haible  <bruno@clisp.org>
63796         absolute-header: Make the macro usable in more situations.
63797         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
63798         from gl_ABSOLUTE_HEADER.
63799         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
63801 2010-05-16  James Youngman  <jay@gnu.org>
63803         doc: update users.txt
63804         * users.txt: Add CSSC.
63806 2010-05-16  Jim Meyering  <meyering@redhat.com>
63808         init.sh: fix an error in the previous change; add more comments
63809         * tests/init.sh: Compare exit code in loop against 9, not 2.
63810         Patch by Bruno Haible.
63811         Make the two tests more similar by adding an empty "then" clause.
63812         Add comments.
63814         init.sh: avoid unnecessary shell re-exec
63815         * tests/init.sh: Improve the re-exec-required check to first test the
63816         current shell.  If it passes the test, do not search for a shell that
63817         does pass, and do not re-exec.  This test is particularly contorted to
63818         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
63819         of $(...) evokes a syntax error and causes immediate shell exit with
63820         status 2.  Bruno Haible reported that the re-exec made it impossible
63821         to single-step through any init.sh-using script.
63823 2010-05-16  Bruno Haible  <bruno@clisp.org>
63825         Fix collision between gnulib's and libintl's printf replacements.
63826         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
63827         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
63828         (printf): When using GNU C, map the __printf__ function to rpl_printf
63829         via __asm__. When not using GNU C, define rpl_printf instead of
63830         __printf__.
63831         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
63832         commit.
63833         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
63834         commit.
63835         * m4/asm-underscore.m4: New file.
63836         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
63837         * modules/stdio (Files): Add m4/asm-underscore.m4.
63838         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
63839         Reported by Ben Pfaff.
63841 2010-05-16  Bruno Haible  <bruno@clisp.org>
63843         verify: Avoid skipping the test on openSUSE 11.0.
63844         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
63846 2010-05-13  Bruno Haible  <bruno@clisp.org>
63848         Avoid useless warnings from G++.
63849         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
63850         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
63851         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
63853 2010-05-11  Jim Meyering  <meyering@redhat.com>
63855         maint.mk: tweak preceding change
63856         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
63857         regexps tighter by anchoring at EOL, and make the new group "shy"
63858         for slightly decreased overhead.
63860 2010-05-11  Eric Blake  <eblake@redhat.com>
63862         maint.mk: gnulib doesn't guarantee NSIG
63863         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
63865 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
63867         test-pwrite.c: Remove unused variable declaration.
63868         * tests/test-pwrite.c (main): Remove read_buf declaration.
63870         Remove useless test-pwrite.sh file.
63871         * tests/test-pwrite.sh: Delete file.
63872         * modules/pwrite-tests: Remove references.
63873         Reported by Bruno Haible.
63875 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
63877         init.sh: fix a typo
63878         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
63880 2010-05-10  Jim Meyering  <meyering@redhat.com>
63882         maint.mk: avoid using a temporary file in the always-defined-macros check
63883         * top/maint.mk (.re-defmac): Remove rule.
63884         (gl_trap_): Remove definition.
63885         (sc_prohibit_always-defined_macros): Rewrite not to create and
63886         depend on a temporary file.  Instead, depend on GNU grep's ability
63887         to read a list of regular expressions from stdin when given "-f -".
63889 2010-05-09  Bruno Haible  <bruno@clisp.org>
63891         Update to GNU gettext 0.18, part 1.
63892         * m4/gettext.m4: Update to GNU gettext 0.18.
63893         * m4/intl.m4: Likewise.
63894         * m4/po.m4: Likewise.
63895         * modules/gettext (Files): Add m4/fcntl-o.m4.
63896         (configure.ac): Require gettext infrastructure from version 0.18.
63898 2010-05-09  Jim Meyering  <meyering@redhat.com>
63900         init.sh: enable MALLOC_PERTURB_
63901         * tests/init.sh: Enable glibc's malloc-perturbing option.
63903         maint.mk: improve sc_cross_check_PATH_usage_in_tests
63904         With my recent change in init.sh from the two-line form:
63905             -#   : ${srcdir=.}
63906             -#   . "$srcdir/init.sh"; path_prepend_ .
63907             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
63908         I noticed that using the one-line form would cause this test
63909         to fail with a false-positive, or to stop working altogether,
63910         depending on whether help-version changed or all the tests did.
63911         * top/maint.mk (_hv_regex): Remove this definition.
63912         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
63913         (_hv_regex_strong): Use a stronger regex to check for conformance.
63914         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
63915         Give a separate diagnostic for lack of conforming use.
63917         maint.mk: prohibit definition of symbols defined by gnulib
63918         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
63919         definition of symbols defined by gnulib.
63921 2010-05-09  Bruno Haible  <bruno@clisp.org>
63923         acl: Avoid test failure on Cygwin-hosted mingw.
63924         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
63926 2010-05-09  Bruno Haible  <bruno@clisp.org>
63928         error: Use system's fcntl function.
63929         * lib/error.c (fcntl): Undefine.
63931 2010-05-09  Jim Meyering  <meyering@redhat.com>
63933         verify: adjust formatting to be more consistent
63934         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
63935         argument-list '('s, and after one comma.
63937 2010-05-09  Bruno Haible  <bruno@clisp.org>
63939         error: More reliable output on mingw.
63940         * lib/error.c: Include <windows.h>.
63941         (is_open): New function.
63942         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
63943         defined.
63945 2010-05-09  Bruno Haible  <bruno@clisp.org>
63947         vasnprintf: Fix syntax errors in libintl build on mingw.
63948         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
63949         pad_ourselves and prec_ourselves after use.
63951 2010-05-08  Bruno Haible  <bruno@clisp.org>
63953         * lib/config.charset: Update comments for Cygwin 1.7.
63954         * lib/localcharset.c: Likewise.
63956 2010-05-07  Jim Meyering  <meyering@redhat.com>
63958         init.sh: improve comments
63959         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
63960         . "${srcdir=.}/init.sh"; path_prepend_ .
63961         Add a note about path_prepend_ and the alternative of using
63962         TESTS_ENVIRONMENT.
63964 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
63966         exclude: Unescape hashed patterns in wildcard mode.
63967         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
63968         to the hash list.
63969         * tests/test-exclude8.sh: New test case.
63970         * modules/exclude-tests: Add new test.
63972 2010-05-05  Eric Blake  <eblake@redhat.com>
63974         verify: automate tests
63975         * modules/verify-tests: New module.
63976         * tests/test-verify.sh: New file.
63977         * tests/test-verify.c: Guard each negative test with a unique id.
63978         Also avoid warning about unused left hand of comma expressions.
63980 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
63982         Further improvements to verify.h, suggested by Eric Blake.
63983         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
63984         the GL_* versions, to avoid collision with OpenGL.
63985         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
63986         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
63987         than testing merely whether it's defined.
63989         Modify verify.h to pacify gcc -Wredundant_decls.
63990         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
63991         These use the prefix "GL_" since they're likely to be useful elsewhere.
63992         We may need to break them out into a different .h file.
63993         (__COUNTER__): Define to 0 if the compiler doesn't support it.
63994         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
63995         of verify_function__.
63997 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
63999         Tests for module pwrite.
64000         * modules/pwrite-tests: New file.
64001         * tests/test-pwrite.sh: New file.
64002         * tests/test-pwrite.c: New file.
64004         New module pwrite.
64005         * lib/unistd.in.h (pwrite): New declaration.
64006         * lib/pwrite.c: New file, from glibc with modifications.
64007         * m4/pwrite.m4: New file.
64008         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
64009         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
64010         REPLACE_PWRITE.
64011         * modules/pwrite: New file.
64012         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
64013         REPLACE_PWRITE.
64014         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
64015         * doc/posix-functions/pwrite.texi: Mention the new module.
64017 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64019         pread: Update documentation.
64020         * doc/posix-functions/pread.texi: Mention the 'pread' module.
64022 2010-05-04  Eric Blake  <eblake@redhat.com>
64024         docs: update cygwin progress
64025         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
64026         this bug.
64027         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
64028         Added in cygwin 1.7.2.
64029         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
64030         Likewise.
64031         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
64032         Likewise.
64033         * doc/glibc-functions/dup3.texi (dup3): Likewise.
64034         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
64035         * doc/glibc-functions/accept4.texi (accept4): Likewise.
64036         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
64037         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
64038         Mention nproc module.
64039         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
64040         bug in cygwin 1.7.5 addition.
64041         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
64042         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
64043         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
64044         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
64045         1.7.5.
64046         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
64047         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
64048         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
64049         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
64050         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
64051         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
64052         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
64053         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
64054         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
64055         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
64056         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
64057         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
64058         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
64059         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
64060         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
64061         Likewise.
64062         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
64063         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
64064         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
64065         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
64066         Likewise.
64067         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
64068         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
64069         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
64070         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
64071         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
64072         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
64073         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
64074         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
64075         Likewise.
64076         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
64077         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
64078         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
64079         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
64080         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
64081         Likewise.
64082         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
64083         Likewise.
64084         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
64085         Likewise.
64086         * doc/glibc-functions/xdrrec_endofrecord.texi
64087         (xdrrec_endofrecord): Likewise.
64088         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
64089         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
64090         Likewise.
64091         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
64092         Likewise.
64094 2010-05-04  Jim Meyering  <meyering@redhat.com>
64096         gendocs.sh: make its "-s FILE" option more useful
64097         * build-aux/gendocs.sh: When honoring the -s FILE option, update
64098         $PACKAGE to reflect the probably-different basename of "FILE".
64100 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
64102         bootstrap: don't ignore download_po_files failure
64103         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
64104         failure.
64106 2010-05-03  Jim Meyering  <meyering@redhat.com>
64108         maint.mk: allow to pass options to gendocs.sh
64109         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
64110         (gendocs_options_): New overridable variable.
64112         gnu-web-doc-update: don't ignore configure or build failure
64113         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
64115         announce-gen: backslash-escape '@'s in --help output
64116         * build-aux/announce-gen: Fix syntax errors.
64118         maint.mk, announce-gen: allow project-specific announcement mail headers
64119         * top/maint.mk (translation_project_): Define default.
64120         (announcement_Cc_, announcement_mail_headers_): Likewise.
64121         (announcement): Invoke announce-gen with new --mail-headers option.
64122         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
64124         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
64125         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
64126         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
64127         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
64128         line in the "err2" output file when running "make check" in verbose
64129         mode (i.e., with set -x enabled).
64131 2010-05-03  Bruno Haible  <bruno@clisp.org>
64133         wctob: Fix for weird platforms.
64134         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
64135         argument value.
64137 2010-05-03  Jim Meyering  <meyering@redhat.com>
64139         maint.mk: prohibit unwarranted use of <strings.h>
64140         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
64141         strings.h in a file that does not also use strcasecmp, strncasecmp,
64142         ffs or ffsll.
64144         maint.mk: remove obsolete comments
64145         * top/maint.mk: Remove stale, commented-out rules.
64147 2010-05-02  Bruno Haible  <bruno@clisp.org>
64149         wcwidth: Declare also when it's aliased.
64150         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
64151         macro.
64153 2010-05-02  Bruno Haible  <bruno@clisp.org>
64155         Fix regression from 2010-04-25.
64156         * gnulib-tool (func_modules_transitive_closure): Check the status of
64157         all modules, not only of the tests that are of the form foo-tests where
64158         foo is a module.
64160 2010-05-02  Bruno Haible  <bruno@clisp.org>
64162         wctob: Work around nasty Cygwin 1.7.2 bug.
64163         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
64164         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
64166 2010-05-01  Bruno Haible  <bruno@clisp.org>
64168         fpurge: Sharper test.
64169         * tests/test-fpurge.c (main): Add one more ftell check.
64170         * modules/fpurge-tests (Depends-on): Add ftell.
64171         Suggested by Eric Blake.
64173 2010-05-01  Bruno Haible  <bruno@clisp.org>
64175         ftello: Another test.
64176         * tests/test-ftello3.c: New file.
64177         * modules/ftello-tests (Files): Add it.
64178         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64179         MOSTLYCLEANFILES.
64181         ftell: Another test.
64182         * tests/test-ftell3.c: New file.
64183         * modules/ftell-tests (Files): Add it.
64184         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64185         MOSTLYCLEANFILES.
64187 2010-05-01  Bruno Haible  <bruno@clisp.org>
64189         ftell, ftello: Work around Solaris bug.
64190         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
64191         * lib/ftello.c: Include stdio-impl.h.
64192         (ftello): On Solaris, when _IOWRT is set, compute the result without
64193         looking at _IOREAD.
64194         * modules/ftello (Files): Add lib/stdio-impl.h.
64195         * doc/posix-functions/ftell.texi: Mention Solaris bug.
64196         * doc/posix-functions/ftello.texi: Likewise.
64197         Reported by Eric Blake.
64199 2010-05-01  Bruno Haible  <bruno@clisp.org>
64201         freading: Adapt to special meaning of _IOREAD flag on Solaris.
64202         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
64203         the _IOWRT flag is also set.
64205 2010-05-01  Bruno Haible  <bruno@clisp.org>
64207         Fix doc about a HP-UX stdio bug.
64208         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
64209         * doc/posix-functions/ftello.texi: Likewise.
64211 2010-05-01  Bruno Haible  <bruno@clisp.org>
64213         lseek test: Fix failure on Solaris.
64214         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
64215         output.
64217 2010-04-30  Jim Meyering  <meyering@redhat.com>
64219         bootstrap: don't ignore failure to generate po*/Makevars
64220         * build-aux/bootstrap (with_gettext): Don't ignore failure
64221         to create po/Makevars or runtime-po/Makevars.
64223 2010-04-29  Eric Blake  <eblake@redhat.com>
64225         headers: relax license to LGPLv2+
64226         * modules/fcntl-h (License): Relax license.
64227         * modules/getopt-posix (License): Likewise.
64228         * modules/locale (License): Likewise.
64229         * modules/math (License): Likewise.
64230         * modules/pty (License): Likewise.
64231         * modules/sched (License): Likewise.
64232         * modules/search (License): Likewise.
64233         * modules/spawn (License): Likewise.
64234         * modules/stdarg (License): Likewise.
64235         * modules/sysexits (License): Likewise.
64237 2010-04-29  Jim Meyering  <meyering@redhat.com>
64239         inttypes: relax license to LGPLv2+
64240         * modules/inttypes (License): Relax license.
64242 2010-04-29  Simon Josefsson  <simon@josefsson.org>
64244         * top/maint.mk (indent): Run twice to produce idempotent results.
64246 2010-04-28  Bruno Haible  <bruno@clisp.org>
64248         getdate: Generate getdate.c in the source directory.
64249         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
64250         MOSTLYCLEANFILES.
64251         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
64253 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
64255         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
64256         is not declared as a const *; avoid warnings in that case.
64258 2010-04-28  Eric Blake  <eblake@redhat.com>
64260         canonicalize-lgpl: avoid compiler warning
64261         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
64262         declaration' / 'extraneous semicolon' warning with some compilers.
64263         Reported by Andreas Gruenbacher.
64265 2010-04-28  Jim Meyering  <meyering@redhat.com>
64267         init.sh: ensure a more reliable exit status when exiting via trap
64268         * tests/init.sh (setup_): Don't rely on $? in signal handler.
64269         Inspired by patches from Dmitry V. Levin.
64270         Also trap on signal 3 (SIGQUIT).
64272 2010-04-27  Bruno Haible  <bruno@clisp.org>
64274         Update doc about utimes().
64275         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
64276         'utimens' module.
64277         Reported by Andreas Gruenbacher <agruen@suse.de>.
64279 2010-04-27  Eric Blake  <eblake@redhat.com>
64281         full-read, full-write: relax license
64282         * modules/full-read (License): Drop to LGPLv2+.
64283         * modules/full-write (License): Likewise.
64284         * modules/safe-read (License): Likewise.
64285         * modules/safe-write (License): Likewise.
64287         pthread: mention library for linking
64288         * modules/pthread (Link): Mention $(LIB_PTHREAD).
64290 2010-04-27  Jim Meyering  <meyering@redhat.com>
64292         maint.mk: fix a bug introduced in last change
64293         * top/maint.mk (gl_assured_headers_): Now that all names are on
64294         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
64295         is not anchored to end of word, it should be adequate.
64297         maint.mk: avoid side-effect in latest syntax-check
64298         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
64299         to run commands via $(shell...), and hence to incur cost only when
64300         the new rule is actually run.
64302         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
64303         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
64304         and use that to create a regexp used to detect all #if HAVE_..._H uses.
64305         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
64306         (gl_assured_headers_, az_, AZ_): Define.
64307         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
64309 2010-04-26  Jim Meyering  <jim@meyering.net>
64310             Bruno Haible  <bruno@clisp.org>
64312         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
64313         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
64314         Prompted by an exchange with Gilles Espinasse.
64316 2010-04-26  Jim Meyering  <meyering@redhat.com>
64318         git-version-gen: aesthetic tweak
64319         * build-aux/git-version-gen: Use "$nl" rather than a literal,
64320         so that the command remains on a single line.
64322 2010-04-26  Eric Blake  <eblake@redhat.com>
64324         git-version-gen: allow use on EBCDIC hosts
64325         * build-aux/git-version-gen (dirty): Use literal rather than tying
64326         ourselves to ascii.
64327         Reported by Steve Goetze.
64329 2010-04-25  Bruno Haible  <bruno@clisp.org>
64331         netdb: Add support for GNULIB_POSIXCHECK.
64332         * lib/netdb.in.h: Include warn-on-use.h.
64333         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
64334         functions are used when GNULIB_POSIXCHECK is defined and the
64335         getaddrinfo module is not in use.
64336         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
64337         freeaddrinfo, gai_strerror, getnameinfo are declared.
64338         * modules/netdb (Depends-on): Add warn-on-use.
64339         (Makefile.am): Include warn-on-use.h in netdb.h.
64341 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
64343         build: avoid "make check" failure without .git/ directory
64344         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
64345         there is no .git/ directory.
64347 2010-04-25  Bruno Haible  <bruno@clisp.org>
64349         ptsname: Fix misuse of ttyname_r.
64350         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
64351         of errno.
64353 2010-04-25  Bruno Haible  <bruno@clisp.org>
64355         ttyname_r: Make it work on Solaris 10.
64356         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
64357         if the system function has the POSIX declaration. Test whether the
64358         function fails if the buffer is less than 128 bytes large.
64359         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
64360         system's ttyname_r function. Provide a reasonably large buffer.
64361         * modules/ttyname_r (Depends-on): Add extensions.
64362         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
64364 2010-04-25  Bruno Haible  <bruno@clisp.org>
64366         Use the 'extensions' module for some more functions on Solaris.
64367         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
64368         module.
64369         * doc/posix-functions/ctime_r.texi: Likewise.
64370         * doc/posix-functions/getgrgid_r.texi: Likewise.
64371         * doc/posix-functions/getgrnam_r.texi: Likewise.
64372         * doc/posix-functions/getpwnam_r.texi: Likewise.
64373         * doc/posix-functions/getpwuid_r.texi: Likewise.
64374         * doc/posix-functions/readdir_r.texi: Likewise.
64375         * doc/posix-functions/sigwait.texi: Likewise.
64376         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
64377         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
64379 2010-04-25  Bruno Haible  <bruno@clisp.org>
64381         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
64382         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
64383         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
64384         * lib/ttyname_r.c: Include <limits.h>.
64385         (ttyname_r): Define using the system's ttyname_r function, if it exists
64386         and not on Solaris.
64387         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
64388         set.
64389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
64390         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
64391         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
64392         Reported by Simon Josefsson.
64394 2010-04-25  Bruno Haible  <bruno@clisp.org>
64396         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
64397         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
64398         * doc/posix-functions/ctime_r.texi: Likewise.
64399         * doc/posix-functions/getgrgid_r.texi: Likewise.
64400         * doc/posix-functions/getgrnam_r.texi: Likewise.
64401         * doc/posix-functions/getlogin_r.texi: Likewise.
64402         * doc/posix-functions/getpwnam_r.texi: Likewise.
64403         * doc/posix-functions/getpwuid_r.texi: Likewise.
64404         * doc/posix-functions/readdir_r.texi: Likewise.
64405         * doc/posix-functions/sigwait.texi: Likewise.
64406         * doc/posix-functions/ttyname_r.texi: Likewise.
64407         Reported by Simon Josefsson.
64409 2010-04-25  Bruno Haible  <bruno@clisp.org>
64411         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
64412         * gnulib-tool (func_usage): Document that --with-*-tests options apply
64413         also to --create-testdir.
64414         (func_acceptable): Don't consider the status of *-tests modules here.
64415         (func_modules_transitive_closure): Consider it here, before including a
64416         test module.
64417         (func_import, func_create_testdir): Set inc_all_direct_tests,
64418         inc_all_indirect_tests.
64419         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
64420         --create-testdir and --create-megatestdir.
64422 2010-04-25  Bruno Haible  <bruno@clisp.org>
64424         gnulib-tool: Add --without-*-tests options.
64425         * gnulib-tool (func_usage): Document the --without-*-tests options.
64426         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
64427         excl_unportable_tests): New variables.
64428         Fail if they are specified with --import or --update.
64429         (func_acceptable): Respect the excl_*_tests variables.
64430         (func_import): Set the excl_*_tests variables to empty.
64432 2010-04-25  Simon Josefsson  <simon@josefsson.org>
64433             Bruno Haible  <bruno@clisp.org>
64435         Work around a MacOS X 10.4 bug with openpty.
64436         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
64437         * tests/test-openpty.c (main): Close the master side explicitly.
64439 2010-04-25  Bruno Haible  <bruno@clisp.org>
64441         strnlen: Fix a C++ test error on MacOS X and Solaris.
64442         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
64443         the function is not declared.
64444         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
64445         Simon Josefsson.
64447 2010-04-24  Bruno Haible  <bruno@clisp.org>
64449         Avoid a gcc warning.
64450         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
64451         of correct type for %08lx directive.
64452         Reported by Eric Blake.
64454 2010-04-24  Bruno Haible  <bruno@clisp.org>
64456         vasnprintf: Correct errno value in case of out-of-memory.
64457         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
64458         or sprintf. Use the errno value from SNPRINTF or sprintf.
64459         Reported by Ian Beckwith <ianb@erislabs.net>.
64461 2010-04-24  Bruno Haible  <bruno@clisp.org>
64463         ansi-c++-opt: Find correct compiler when cross-compiling.
64464         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
64465         AC_CHECK_PROGS.
64466         Reported by Simon Josefsson.
64468 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
64470         vc-list-files: Add support for subversion
64471         * build-aux/vc-list-files: Use "svn list" to generate the list of
64472         files controlled by subversion.
64474 2010-04-23  Jim Meyering  <meyering@redhat.com>
64476         vc-list-files tests: convert to use init.sh
64477         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
64478         path_prepend_.
64479         Use Exit, not exit.
64480         Use skip_ rather than open coding it.
64481         Remove trap set-up and compare definitions.
64482         * tests/test-vc-list-files-git.sh: Likewise.
64483         * modules/vc-list-files-tests (Files): Add tests/init.sh.
64485 2010-04-22  Simon Josefsson  <simon@josefsson.org>
64487         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
64488         backup files.
64490 2010-04-21  Simon Josefsson  <simon@josefsson.org>
64492         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
64494 2010-04-20  Eric Blake  <eblake@redhat.com>
64496         tests: be robust to ignored SIGPIPE
64497         * tests/test-select-in.sh: Consume all output.
64498         * tests/test-lseek.sh: Check correct exit status, while avoiding
64499         EPIPE.
64501 2010-04-20  Simon Josefsson  <simon@josefsson.org>
64502             Bruno Haible  <bruno@clisp.org>
64504         visibility: Don't use -fvisibility if it leads to a warning.
64505         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
64506         yes, don't pretend that visibility works if it leads to a warning.
64507         Reported by Mike Gran <spk121@yahoo.com>.
64509 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
64511         * build-aux/bootstrap: Use "git -h" for testing for supported options
64512         instead of "git --help".  The short-form option only shows a summary,
64513         and doesn't layout the full man page.  Grep for the full option name
64514         in the summary, too.
64516 2010-04-19  Bruno Haible  <bruno@clisp.org>
64518         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
64519         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
64520         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
64521         mention of RELOCATABLE_STRIP.
64522         Reported by Sylvain Beucler <beuc@beuc.net>.
64524 2010-04-19  Bruno Haible  <bruno@clisp.org>
64526         * lib/diffseq.h: Fix typo in comment.
64527         Reported by Eric Blake.
64529 2010-04-19  Bruno Haible  <bruno@clisp.org>
64531         ioctl: Move autoconf macro to a .m4 file.
64532         * m4/ioctl.m4: New file, extracted from modules/ioctl.
64533         * modules/ioctl (Files): Add it.
64534         (configure.ac): Simply invoke gl_FUNC_IOCTL.
64535         Reported by Ian Beckwith <ianb@erislabs.net>.
64537 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
64538             Bruno Haible  <bruno@clisp.org>
64540         diffseq: Accommodate use-case with abstract arrays.
64541         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
64542         is not defined.
64543         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
64544         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
64546 2010-04-18  Bruno Haible  <bruno@clisp.org>
64548         * doc/posix-headers/stdbool.texi: More precise wording.
64550 2010-04-17  Jim Meyering  <meyering@redhat.com>
64552         maint.mk: use gnu-style indentation in an embedded perl script
64553         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
64554         Rename variable: s/two/last_two_bytes/
64556 2010-04-16  Eric Blake  <eblake@redhat.com>
64558         test-stdbool: skip test that fails with Solaris CC
64559         * tests/test-stdbool.c (f): Skip test that causes compilation
64560         error under buggy C++ compiler.
64561         * lib/stdbool.in.h: Document the limitation.
64562         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
64564         setenv: allow compilation with C++
64565         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
64566         register keyword.
64568         stdint: allow test to pass with C++
64569         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
64571         getopt: allow compilation with C++
64572         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
64573         struct.
64574         * lib/getopt.c (_getopt_internal_r): Use correct type.
64575         Reported by Dagobert Michelson, via Joel E. Denny.
64577 2010-04-16  Bruno Haible  <bruno@clisp.org>
64579         Override netdb.h always.
64580         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
64581         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
64582         Reported by Ludovic Courtès <ludo@gnu.org>.
64584 2010-04-15  Bruno Haible  <bruno@clisp.org>
64586         openpty: Fix mistake from 2010-03-21.
64587         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
64588         Reported by Simon Josefsson.
64590 2010-04-15  Eric Blake  <eblake@redhat.com>
64592         test-forkpty: fix expected signature
64593         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
64594         Reported by Simon Josefsson.
64596 2010-04-15  Jim Meyering  <meyering@redhat.com>
64598         maint.mk: texinfo_suffix_re_: correct the default regexp
64599         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
64601         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
64602         make it configurable via texinfo_suffix_re_.
64604 2010-04-14  Eric Blake  <eblake@redhat.com>
64606         strtok_r: relax license to LGPLv2+
64607         * modules/strtok_r (License): Relax license.
64608         Reported by Matthias Bolte.
64610 2010-04-14  Simon Josefsson  <simon@josefsson.org>
64612         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
64613         version 1.4.4 by default instead of requiring the libgcrypt
64614         version used during build.  This makes it possible to use the
64615         application with older but still binary compatible libgcrypt
64616         versions.
64618 2010-04-13  Eric Blake  <eblake@redhat.com>
64620         getopt-gnu: match recent glibc fixes and posix ruling
64621         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
64622         '+' handling, when requesting extensions.
64623         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
64624         'W;' handling.
64625         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
64626         * doc/posix-functions/getopt.texi (getopt): Document this.
64627         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
64628         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
64629         Likewise.
64631         getopt: merge bug fixes from glibc
64632         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
64633         diagnostics.  Honor '+:' correctly.  Reject ';'.
64635         getopt-posix: detect MacOS bug
64636         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
64637         optind when missing a required argument.
64638         * doc/posix-functions/getopt.texi (getopt): Document the bug.
64639         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
64640         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
64641         Likewise.
64643         getopt-posix: avoid spurious failure on Solaris
64644         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
64645         an indicator that setting optind=1 is sufficient for reset.
64647         getopt-posix: avoid spurious failure on FreeBSD
64648         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
64649         in POSIX mode, since the m4 test uses it.
64651         gnulib-tool: silence warning on BSD sh
64652         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
64654 2010-04-13  Jim Meyering  <meyering@redhat.com>
64656         doc: users.txt: GNU patch now uses gnulib
64657         * users.txt: Add patch.
64659 2010-04-12  Jim Meyering  <meyering@redhat.com>
64661         maint.mk: generate more concise timing data for syntax-check rules
64662         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
64663         " done" from each line that reports a syntax-check test duration.
64665 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
64667         git-version-gen: use "git update-index..." rather than "git status"
64668         * build-aux/git-version-gen: Use git update-index --refresh, not
64669         "git status".  With some versions of git, "git status" would fail
64670         to update the index and result in an unwarranted "-dirty" suffix.
64672 2010-04-11  Jim Meyering  <meyering@redhat.com>
64674         openat: correct formatting (no semantic change)
64675         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
64676         Suggested by Bruno Haible.
64678 2010-04-11  Bruno Haible  <bruno@clisp.org>
64680         Stricter declaration checking in testdirs.
64681         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64682         If for_tests is true, augment AM_CPPFLAGS to define
64683         GNULIB_STRICT_CHECKING.
64684         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
64685         GNULIB_STRICT_CHECKING is defined, verify that the function is
64686         declared.
64688 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
64689             Bruno Haible  <bruno@clisp.org>
64691         libunistring: Improve configure output.
64692         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
64693         Don't say "consider installing GNU libunistring" when checking again
64694         with libiconv.
64696 2010-04-11  Bruno Haible  <bruno@clisp.org>
64698         libunistring: Correct value of $LTLIBUNISTRING.
64699         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
64700         correct the value of $LTLIBUNISTRING.
64702 2010-04-11  Bruno Haible  <bruno@clisp.org>
64704         havelib: Add static libraries to LIBS in the right order.
64705         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
64706         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
64708 2010-04-11  Bruno Haible  <bruno@clisp.org>
64710         libunistring: Detect libunistring also when it depends on libiconv.
64711         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
64712         the second AC_LIB_HAVE_LINKFLAGS invocation.
64714 2010-04-11  James Youngman  <jay@gnu.org>
64716         close-stream: declare local scalars to be "const"
64717         * lib/close-stream.c (close_stream): Make boolean variables const
64718         to document the fact that we set but do not change them.
64720 2010-04-11  Bruno Haible  <bruno@clisp.org>
64722         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
64724 2010-04-11  Jim Meyering  <meyering@redhat.com>
64726         maint.mk: don't include dist-check.mk
64727         * top/maint.mk: Remove bogus include directive.
64729         maint.mk: improve empty-line-at-EOF check
64730         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
64731         solution, rather than tail+Perl-based one.  The latter would read
64732         a few kilobytes from the end of each file, and did not handle empty
64733         files properly.
64735         maint.mk: print the elapsed time for each syntax-check rule
64736         * top/maint.mk (sc_m_rules_): Save start time in a file.
64737         (sc_z_rules_): New rules: remove temp file and print elapsed time.
64738         (local-check): Interpose the .z rules
64740 2010-04-11  Jim Meyering  <meyering@redhat.com>
64742         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
64743         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
64744         empty file with one that ends in an empty line.
64746 2010-04-10  Bruno Haible  <bruno@clisp.org>
64748         mkdir: Make it work on mingw64.
64749         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
64750         * lib/mkdir.c: Update comment.
64751         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
64753 2010-04-10  Bruno Haible  <bruno@clisp.org>
64755         Don't override improved macro from newer autoconf.
64756         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
64757         autoconf >= 2.62.
64758         Reported by Joel E. Denny <jdenny@clemson.edu>.
64760 2010-04-10  Jim Meyering  <meyering@redhat.com>
64762         maint.mk: new syntax-check rule: prohibit empty lines at end of file
64763         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
64765         maint.mk: correct a diagnostic
64766         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
64767         in diagnostic; now use $prohibit.
64769 2010-04-10  Bruno Haible  <address@hidden>
64771         fchownat: Fix a C++ test error on Solaris 8.
64772         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
64773         the function does not exist.
64775 2010-04-10  Bruno Haible  <bruno@clisp.org>
64777         vasnprintf: Add more tests.
64778         * tests/test-vasnprintf-posix.c: Include <errno.h>.
64779         (test_function): Test converting an invalid wide string.
64781         vasnprintf: Correct handling of unconvertible wide string arguments.
64782         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
64783         VASNPRINTF.
64784         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
64785         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
64786         smaller than the expected maximum need for the directive. Set errno to
64787         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
64788         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
64789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
64790         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
64791         * modules/vasnprintf (Files): Add m4/printf.m4.
64792         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64794 2010-04-10  Bruno Haible  <bruno@clisp.org>
64796         vasnprintf: Fix crash in %ls directive.
64797         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
64798         string is passed as argument to %ls, with no precision and no width.
64799         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64801 2010-04-10  Bruno Haible  <bruno@clisp.org>
64803         vasnprintf: Fix multiple test failures on mingw.
64804         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
64805         _snprintf, or snwprintf, not _snwprintf.
64807 2010-04-10  Bruno Haible  <bruno@clisp.org>
64809         write: Fix a C++ test error on mingw.
64810         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
64812 2010-04-10  Bruno Haible  <bruno@clisp.org>
64814         vasnprintf test: Reduce code duplication.
64815         * tests/test-vasnprintf.c (test_function): New function, extracted from
64816         test_vasnprintf.
64817         (test_vasnprintf, test_asnprintf): Invoke it.
64819 2010-04-10  Bruno Haible  <bruno@clisp.org>
64821         strnlen: Fix warning in C++ mode on MacOS X.
64822         * lib/string.in.h (strnlen): Use the modern idiom.
64823         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
64824         defining strnlen as a macro already in <config.h>.
64825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64826         REPLACE_STRNLEN.
64827         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
64828         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64830 2010-04-08  James Youngman  <jay@gnu.org>
64832         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
64833         the example.
64835 2010-04-09  Jim Meyering  <meyering@redhat.com>
64837         maint.mk: print better diagnostic when there is no $(_hv_file)
64838         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
64839         announce that when $(_hv_file) (aka help-version) does not exist.
64841         init.sh: run tr in the "C" locale to avoid multibyte interpretation
64842         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
64843         not try to interpret its random input bytes.  Jarno Rajahalme reported
64844         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
64845         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
64846         (mktempd_): Likewise, just in case.
64848         ftruncate: add two years to projected module removal date: 2012
64849         * m4/ftruncate.m4: Adjust comments.
64851         ftruncate: mark module as obsolete; even MinGW provides it, now
64852         * modules/ftruncate (Status): Obsolete.
64853         (Notice): Say that.
64854         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
64855         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
64857 2010-04-08  Bruno Haible  <bruno@clisp.org>
64859         Fix side effects from tests-related modules.
64860         * modules/dprintf-posix (Comment): New section.
64861         * modules/fprintf-posix (Comment): Likewise.
64862         * modules/obstack-printf-posix (Comment): Likewise.
64863         * modules/printf-posix (Comment): Likewise.
64864         * modules/snprintf-posix (Comment): Likewise.
64865         * modules/sprintf-posix (Comment): Likewise.
64866         * modules/vasnprintf-posix (Comment): Likewise.
64867         * modules/vasprintf-posix (Comment): Likewise.
64868         * modules/vdprintf-posix (Comment): Likewise.
64869         * modules/vfprintf-posix (Comment): Likewise.
64870         * modules/vprintf-posix (Comment): Likewise.
64871         * modules/vsnprintf-posix (Comment): Likewise.
64872         * modules/vsprintf-posix (Comment): Likewise.
64873         * modules/xprintf-posix (Comment): Likewise.
64874         * modules/xvasprintf-posix (Comment): Likewise.
64875         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
64876         * modules/floorf-tests (Depends-on): Likewise.
64877         * modules/round-tests (Depends-on): Likewise.
64878         * modules/roundf-tests (Depends-on): Likewise.
64879         * modules/trunc-tests (Depends-on): Likewise.
64880         * modules/truncf-tests (Depends-on): Likewise.
64881         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
64882         'fprintf-posix' module is not present.
64883         * tests/test-floorf2.c (check): Likewise.
64884         * tests/test-trunc2.c (check): Likewise.
64885         * tests/test-truncf2.c (check): Likewise.
64886         * tests/test-round2.c (equal): Likewise.
64887         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64889 2010-04-07  Karl Berry  <karl@gnu.org>
64891         * config/srclist.txt,
64892         * config/srclistvars.sh,
64893         * config/srclist-update: doc fixes.
64895 2010-04-07  Jim Meyering  <meyering@redhat.com>
64897         maint.mk: add a PATH crosschecking syntax-check rule
64898         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
64899         Useful if you use a test like the one in help-version (coreutils,
64900         diffutils, grep, gzip) that ensures $(VERSION) matches what is
64901         printed by prog --version.
64903 2010-04-06  Bruno Haible  <bruno@clisp.org>
64905         Fix link error on mingw.
64906         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
64907         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
64909 2010-04-06  Bruno Haible  <bruno@clisp.org>
64911         Assume rmdir exists.
64912         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
64914 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
64916         doc: update users.txt
64917         * users.txt: Add gcal.
64919 2010-04-06  Jim Meyering  <meyering@redhat.com>
64921         init.sh: simply unset TMPDIR rather than risking env -i
64922         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
64923         although it probably works fine on all Unix-based systems, some
64924         systems (Cygwin?) cannot tolerate a totally cleared environment.
64925         Suggestion from Eric Blake.
64927 2010-04-06  Jim Meyering  <meyering@redhat.com>
64929         init.sh: portability fix: use env's POSIX-specified -i option not -u
64930         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
64931         than unportable env -u.  Solaris 5.11's env lacks support for -u.
64933 2010-04-05  Bruno Haible  <bruno@clisp.org>
64935         btowc: Work around Cygwin 1.7.2 bug.
64936         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
64937         does not map NUL to 0.
64938         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
64940 2010-04-05  Bruno Haible  <bruno@clisp.org>
64942         Make the multithread modules work on Cygwin 1.7.2.
64943         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
64944         imported symbols can be declared weak, so that it returns "no" on
64945         Cygwin 1.7.2.
64947 2010-04-05  Bruno Haible  <bruno@clisp.org>
64949         Use the module 'strncat'.
64950         * modules/unistr/u8-strncat (Depends-on): Add strncat.
64952         Tests for module 'strncat'.
64953         * modules/strncat-tests: New file.
64954         * tests/test-strncat.c: New file.
64956         New module 'strncat'.
64957         * lib/string.in.h (strncat): New declaration.
64958         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
64959         * m4/strncat.m4: New file, based on m4/memchr.m4.
64960         * modules/strncat: New file.
64961         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
64962         is declared.
64963         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
64964         REPLACE_STRNCAT.
64965         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
64966         REPLACE_STRNCAT.
64967         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
64968         module.
64969         * tests/test-string-c++.cc: Check signature of strncat.
64971 2010-04-05  Jim Meyering  <meyering@redhat.com>
64973         xstrtoumax-tests: convert to use init.sh
64974         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
64975         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
64976         Use Exit, not exit.
64977         Remove uses of $EXEEXT and "./" to run a program in the current dir.
64979         xstrtoimax-tests: convert to use init.sh
64980         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
64981         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
64982         Use Exit, not exit.
64983         Remove uses of $EXEEXT and "./" to run a program in the current dir.
64985 2010-04-05  Bruno Haible  <bruno@clisp.org>
64987         sys_socket: Avoid #define replacements in C++ mode.
64988         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
64989         warning to the function if possible, rather than #defining the symbol
64990         to a dysfunctional alias.
64992 2010-04-05  Bruno Haible  <bruno@clisp.org>
64994         fseeko: Fix C++ test error on mingw.
64995         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
64996         gl_FUNC_FSEEKO.
64997         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
64998         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
64999         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
65000         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
65002 2010-04-05  Bruno Haible  <bruno@clisp.org>
65004         duplocale: Improve test output.
65005         * tests/test-duplocale.c (main): Print reason for skipped test.
65007 2010-04-05  Bruno Haible  <bruno@clisp.org>
65009         Assume rmdir exists.
65010         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
65011         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
65013 2010-04-05  Bruno Haible  <bruno@clisp.org>
65015         Fix link error on Solaris 8 with cc.
65016         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
65018 2010-04-05  Bruno Haible  <bruno@clisp.org>
65020         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65021         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
65023 2010-04-05  Bruno Haible  <bruno@clisp.org>
65025         vasprintf: Update documentation.
65026         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
65028 2010-04-05  Bruno Haible  <bruno@clisp.org>
65030         ptsname: Improve test.
65031         * tests/test-ptsname.c (main): Also try the various master names of BSD
65032         systems.
65034 2010-04-05  Bruno Haible  <bruno@clisp.org>
65036         memchr: Avoid a possible C++ test error.
65037         * lib/string.in.h (memchr): Provide declaration if function is missing.
65038         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
65039         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
65040         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
65041         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
65043 2010-04-05  Bruno Haible  <bruno@clisp.org>
65045         strtok_r: Improve idiom.
65046         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
65047         AC_LIBOBJ is used.
65049 2010-04-05  Bruno Haible  <bruno@clisp.org>
65051         strdup: Improve idiom.
65052         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
65053         AC_LIBOBJ is used.
65054         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
65055         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
65056         when AC_LIBOBJ is used.
65058 2010-04-05  Bruno Haible  <bruno@clisp.org>
65060         mbsinit, mbrtowc, wcrtomb: Improve idioms.
65061         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
65062         don't set REPLACE_MBSINIT to 1.
65063         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
65064         don't set REPLACE_MBRTOWC to 1.
65065         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
65066         exist, don't set REPLACE_MBSRTOWCS to 1.
65067         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
65068         exist, don't set REPLACE_MBSNRTOWCS to 1.
65069         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
65070         don't set REPLACE_WCRTOMB to 1.
65071         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
65072         exist, don't set REPLACE_WCSRTOMBS to 1.
65073         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
65074         exist, don't set REPLACE_WCSNRTOMBS to 1.
65076 2010-04-05  Bruno Haible  <bruno@clisp.org>
65078         ldexpl: Improve idiom.
65079         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
65080         make sure to set HAVE_DECL_LDEXPL to 0.
65082 2010-04-05  Jim Meyering  <meyering@redhat.com>
65084         xstrtol-tests: convert to use init.sh
65085         * modules/xstrtol-tests (Files): Add tests/init.sh.
65086         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65087         Use Exit, not exit.
65088         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65090         atexit-tests: convert to use init.sh
65091         * modules/atexit-tests (Files): Add tests/init.sh.
65092         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65093         Use Exit, not exit.
65094         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65096         init.sh: fix typo
65097         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
65099         init.sh: make it easier for a test script to write to the tty, ...
65100         when using automake's parallel-tests mode.
65101         * tests/init.sh (stderr_fileno_): Define overridable variable.
65102         (warn_): New function, to use it.
65103         (fail_, skip_, framework_failure_): Use warn_.
65105 2010-04-04  Bruno Haible  <bruno@clisp.org>
65107         btowc: Avoid warning.
65108         * lib/btowc.c: Include <stdlib.h>.
65109         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
65111 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65112             Bruno Haible  <bruno@clisp.org>
65114         wchar: Port to NetBSD 1.5.
65115         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
65116         * lib/wctype.in.h (WEOF): Likewise.
65118 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65119             Bruno Haible  <bruno@clisp.org>
65121         Port extended stdio to NetBSD 1.5.
65122         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
65123         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
65124         older.
65126 2010-04-04  Bruno Haible  <bruno@clisp.org>
65128         string: Remove unused substitution.
65129         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65130         HAVE_DECL_STRERROR.
65131         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
65133 2010-04-04  Bruno Haible  <bruno@clisp.org>
65135         strtod: Avoid a possible C++ test error.
65136         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
65137         set REPLACE_STRTOD.
65139 2010-04-04  Bruno Haible  <bruno@clisp.org>
65141         strerror: Update documentation.
65142         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
65144 2010-04-04  Bruno Haible  <bruno@clisp.org>
65146         stdio: Fix some C++ test errors on Solaris 8 with GCC.
65147         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
65148         _GL_CXXALIAS_SYS_CAST.
65150 2010-04-04  Bruno Haible  <bruno@clisp.org>
65152         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65153         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
65154         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
65155         REPLACE_FREXPL to 1.
65156         * doc/posix-functions/frexpl.texi: Update documentation.
65158 2010-04-04  Bruno Haible  <bruno@clisp.org>
65160         math: Fix some C++ test errors on Solaris 8 and Cygwin.
65161         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
65163 2010-04-04  Bruno Haible  <bruno@clisp.org>
65165         Implement nanosleep for native Windows.
65166         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
65168 2010-04-04  Bruno Haible  <bruno@clisp.org>
65170         math: Fix some C++ test errors on Solaris 8.
65171         * lib/math.in.h (truncf, trunc): Use simpler idiom.
65173 2010-04-04  Bruno Haible  <bruno@clisp.org>
65175         math: Fix some C++ test errors on Cygwin.
65176         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
65177         truncl): Provide declaration if the system does not have it.
65178         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
65179         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
65180         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
65181         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
65182         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
65183         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
65184         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
65185         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
65186         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
65187         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
65188         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
65189         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
65190         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
65191         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
65192         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
65193         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
65194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
65195         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65196         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65197         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
65198         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65199         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65201 2010-04-04  Bruno Haible  <bruno@clisp.org>
65203         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
65204         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
65205         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
65206         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65207         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
65208         * m4/isinf.m4 (gl_ISINF): Likewise.
65209         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65211 2010-04-04  Bruno Haible  <bruno@clisp.org>
65213         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
65214         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65216 2010-04-04  Bruno Haible  <bruno@clisp.org>
65218         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
65219         * modules/tmpfile (configure.ac): Update.
65221         tmpfile: Fix C++ test error on mingw.
65222         * lib/stdio.in.h (tmpfile): New declaration.
65223         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
65224         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
65225         * modules/tmpfile (Depends-on): Add stdio.
65226         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65227         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
65228         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
65229         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
65230         REPLACE_TMPFILE.
65231         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
65233 2010-04-04  Bruno Haible  <bruno@clisp.org>
65235         ioctl: Fix C++ test error on mingw.
65236         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
65237         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
65238         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
65240 2010-04-03  Bruno Haible  <bruno@clisp.org>
65242         wcwidth: Fix C++ test error on mingw.
65243         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
65244         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
65245         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
65247 2010-04-03  Bruno Haible  <bruno@clisp.org>
65249         nanosleep: Fix C++ test error on mingw.
65250         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
65251         * lib/time.in.h (nanosleep): Use modern idiom.
65252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
65253         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
65254         REPLACE_NANOSLEEP to 1.
65255         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
65256         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
65258 2010-04-03  Bruno Haible  <bruno@clisp.org>
65260         strptime: Fix C++ test error on mingw.
65261         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
65262         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
65263         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
65264         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
65265         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
65266         not REPLACE_STRPTIME.
65267         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
65268         REPLACE_STRPTIME.
65270 2010-04-03  Bruno Haible  <bruno@clisp.org>
65272         timegm: Fix C++ test error on mingw.
65273         * lib/time.in.h (timegm): Use modern idiom.
65274         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
65275         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
65276         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
65277         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
65279 2010-04-03  Bruno Haible  <bruno@clisp.org>
65281         timegm: Assume declaration if function exists.
65282         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
65283         if it exists. Don't clobber ac_cv_func_timegm.
65285 2010-04-03  Bruno Haible  <bruno@clisp.org>
65287         time_r: Fix C++ test error on mingw.
65288         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
65289         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
65290         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
65291         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
65292         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
65294 2010-04-03  Bruno Haible  <bruno@clisp.org>
65296         time_r: Minor updates.
65297         * modules/time_r (Description): Mention the provided functions.
65298         * lib/time_r.c: Don't include <string.h>.
65299         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
65300         * doc/posix-functions/localtime_r.texi: Likewise.
65302 2010-04-03  Bruno Haible  <bruno@clisp.org>
65304         time: Fix regression introduced on 2010-03-08.
65305         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
65306         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
65308 2010-04-03  Jim Meyering  <meyering@redhat.com>
65310         maint.mk: don't silently disable project-specific syntax-check rules
65311         * top/maint.mk (_prohibit_regexp): Define, to help people realize
65312         that they need to convert their project-specific syntax-check rules
65313         to use the new _sc_search_regexp.
65315 2010-04-03  Bruno Haible  <bruno@clisp.org>
65317         fchdir: Fix regression introduced on 2010-03-08.
65318         * lib/unistd.in.h (fchdir): Fix declaration.
65319         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
65320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
65321         REPLACE_FCHDIR.
65322         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
65323         REPLACE_FCHDIR.
65325 2010-04-03  Bruno Haible  <bruno@clisp.org>
65327         getpagesize: Fix C++ test error on mingw.
65328         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
65329         system does not declare the function.
65330         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
65331         declared.
65332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65333         HAVE_DECL_GETPAGESIZE.
65334         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
65336 2010-04-03  Bruno Haible  <bruno@clisp.org>
65338         stdio: Make C++ tests work on mingw.
65339         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
65340         does not declare the function.
65342 2010-04-03  Bruno Haible  <bruno@clisp.org>
65344         ftello: Fix C++ test error on mingw.
65345         * lib/stdio.in.h (ftello): Use modern idiom.
65346         * lib/ftello.c (ftello): Renamed from rpl_ftello.
65347         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
65348         is missing and that it needs to be replaced.
65349         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
65350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
65351         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
65353 2010-04-03  Bruno Haible  <bruno@clisp.org>
65355         fseeko: Fix C++ test error on mingw.
65356         * lib/stdio.in.h (fseeko): Use modern idiom.
65357         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
65358         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
65359         is missing and that it needs to be replaced.
65360         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
65361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
65362         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
65364 2010-04-03  Bruno Haible  <bruno@clisp.org>
65366         mkstemp: Fix C++ test error on mingw.
65367         * lib/stdlib.in.h (mkstemp): Use modern idiom.
65368         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
65369         function is missing and that it needs to be replaced.
65370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
65371         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
65373 2010-04-03  Bruno Haible  <bruno@clisp.org>
65375         stpncpy: Fix C++ test error on mingw.
65376         * lib/string.in.h (stpncpy): Use modern idiom.
65377         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
65378         function is missing and that it needs to be replaced.
65379         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65380         REPLACE_STPNCPY.
65381         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
65383 2010-04-03  Bruno Haible  <bruno@clisp.org>
65385         sys_stat: Fix C++ test error on mingw.
65386         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
65387         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
65389 2010-04-03  Bruno Haible  <bruno@clisp.org>
65391         pty: Update doc.
65392         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
65394 2010-04-03  Bruno Haible  <bruno@clisp.org>
65396         unistd: Fix C++ test error on mingw.
65397         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
65399 2010-04-03  Bruno Haible  <bruno@clisp.org>
65401         Update doc regarding mingw.
65402         * doc/glibc-functions/openpty.texi: Update regarding mingw.
65403         * doc/glibc-functions/login_tty.texi: Likewise.
65404         * doc/glibc-functions/forkpty.texi: Likewise.
65406 2010-04-03  Bruno Haible  <bruno@clisp.org>
65408         stdlib: Avoid compilation failure of c-strtold on mingw.
65409         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
65411 2010-04-03  Bruno Haible  <bruno@clisp.org>
65413         locale: Make C++ tests work on Cygwin and mingw.
65414         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
65415         cannot provide the function.
65416         Reported by Simon Josefsson.
65418 2010-04-03  Bruno Haible  <bruno@clisp.org>
65420         localename: Port to MacOS X 10.6.
65421         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
65422         memory layout of the locales in MacOS X 10.6 as well.
65423         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
65425 2010-04-02  Bruno Haible  <bruno@clisp.org>
65427         gnulib-tool: Ensure that long-running tests are executed last.
65428         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
65429         running tests after the one for the other tests.
65431 2010-04-02  Bruno Haible  <bruno@clisp.org>
65433         gnulib-tool: Ensure the tests in the main directory are executed first.
65434         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
65435         start with the current directory.
65437 2010-04-02  Bruno Haible  <bruno@clisp.org>
65439         Tests for module 'havelib', moved here from GNU gettext.
65440         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
65441         modifications.
65442         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
65443         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
65444         with modifications.
65445         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
65446         modifications.
65447         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
65448         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
65449         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
65450         with modifications.
65451         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
65452         with modifications.
65453         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
65454         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
65455         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
65456         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
65457         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
65458         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
65459         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
65460         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
65461         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
65462         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
65463         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
65464         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
65465         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
65466         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
65467         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
65468         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
65469         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
65470         with modifications.
65471         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
65472         with modifications.
65473         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
65474         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
65475         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
65476         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
65477         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
65478         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
65479         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
65480         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
65481         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
65482         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
65483         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
65484         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
65485         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
65486         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
65487         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
65488         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
65489         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
65490         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
65491         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
65492         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
65493         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
65494         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
65495         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
65496         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
65497         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
65498         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
65499         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
65500         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
65501         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
65502         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
65503         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
65504         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
65505         * tests/havelib/rpathx/rpathx.c: New file, from
65506         gettext/autoconf-lib-link.
65507         * tests/havelib/rpathx/Makefile.am: New file, from
65508         gettext/autoconf-lib-link.
65509         * tests/havelib/rpathx/configure.ac: New file, from
65510         gettext/autoconf-lib-link with modifications.
65511         * tests/havelib/rpathy/rpathy.c: New file, from
65512         gettext/autoconf-lib-link.
65513         * tests/havelib/rpathy/Makefile.am: New file, from
65514         gettext/autoconf-lib-link.
65515         * tests/havelib/rpathy/configure.ac: New file, from
65516         gettext/autoconf-lib-link with modifications.
65517         * tests/havelib/rpathz/rpathz.c: New file, from
65518         gettext/autoconf-lib-link.
65519         * tests/havelib/rpathz/Makefile.am: New file, from
65520         gettext/autoconf-lib-link.
65521         * tests/havelib/rpathz/configure.ac: New file, from
65522         gettext/autoconf-lib-link with modifications.
65523         * tests/havelib/rpathlx/usex.c: New file, from
65524         gettext/autoconf-lib-link.
65525         * tests/havelib/rpathlx/Makefile.am: New file, from
65526         gettext/autoconf-lib-link.
65527         * tests/havelib/rpathlx/configure.ac: New file, from
65528         gettext/autoconf-lib-link with modifications.
65529         * tests/havelib/rpathly/usey.c: New file, from
65530         gettext/autoconf-lib-link.
65531         * tests/havelib/rpathly/Makefile.am: New file, from
65532         gettext/autoconf-lib-link.
65533         * tests/havelib/rpathly/configure.ac: New file, from
65534         gettext/autoconf-lib-link with modifications.
65535         * tests/havelib/rpathlz/usez.c: New file, from
65536         gettext/autoconf-lib-link.
65537         * tests/havelib/rpathlz/Makefile.am: New file, from
65538         gettext/autoconf-lib-link.
65539         * tests/havelib/rpathlz/configure.ac: New file, from
65540         gettext/autoconf-lib-link with modifications.
65541         * tests/havelib/rpathlyx/usey.c: New file, from
65542         gettext/autoconf-lib-link.
65543         * tests/havelib/rpathlyx/Makefile.am: New file, from
65544         gettext/autoconf-lib-link.
65545         * tests/havelib/rpathlyx/configure.ac: New file, from
65546         gettext/autoconf-lib-link with modifications.
65547         * tests/havelib/rpathlzyx/usez.c: New file, from
65548         gettext/autoconf-lib-link.
65549         * tests/havelib/rpathlzyx/Makefile.am: New file, from
65550         gettext/autoconf-lib-link.
65551         * tests/havelib/rpathlzyx/configure.ac: New file, from
65552         gettext/autoconf-lib-link with modifications.
65553         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
65554         with modifications.
65556 2010-04-02  Bruno Haible  <bruno@clisp.org>
65558         gnulib-tool: Create distributed built sources also for the tests.
65559         * gnulib-tool (func_create_testdir): Also generate distributed built
65560         sources in the tests directory.
65562 2010-04-02  Bruno Haible  <bruno@clisp.org>
65564         gnulib-tool: Obey user's environment variables.
65565         * gnulib-tool (func_create_testdir): When creating built sources,
65566         respect the environment variables for autoconf, automake, etc. given by
65567         the user.
65569 2010-04-02  Bruno Haible  <bruno@clisp.org>
65571         gnulib-tool: Provide the value of --m4-base to modules.
65572         * gnulib-tool (func_import, func_create_testdir): Emit a definition
65573         of gl_m4_base.
65575 2010-04-02  Eric Blake  <eblake@redhat.com>
65577         maint.mk: fix some fallout
65578         * NEWS: Document the incompatible change, and its effect on cfg.mk.
65579         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
65581 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
65583         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
65584         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
65585         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
65586         (sc_cast_of_x_alloc_return_value): Likewise.
65587         (sc_cast_of_alloca_return_value): Likewise.
65588         (sc_space_tab): Likewise.
65589         (sc_prohibit_atoi_atof): Likewise.
65590         (sc_prohibit_magic_number_exit): Likewise.
65591         (sc_error_exit_success): Likewise.
65592         (sc_file_system): Likewise.
65593         (sc_prohibit_have_config_h): Likewise.
65594         (sc_require_config_h): Likewise.
65595         (sc_prohibit_HAVE_MBRTOWC): Likewise.
65596         (sc_obsolete_symbols): Likewise.
65597         (sc_changelog): Likewise.
65598         (sc_program_name): Likewise.
65599         (sc_the_the): Likewise.
65600         (sc_trailing_blank): Likewise.
65601         (sc_two_space_separator_in_usage): Likewise.
65602         (sc_useless_cpp_parens): Likewise.
65603         (sc_GPL_version): Likewise.
65604         (sc_GFDL_version): Likewise.
65605         (sc_texinfo_acronym): Likewise.
65606         (sc_prohibit_cvs_keyword): Likewise.
65607         (sc_prohibit_stat_st_blocks): Likewise.
65608         (sc_prohibit_S_IS_definition): Likewise.
65609         (sc_redundant_const): Likewise.
65610         (sc_makefile_TAB_only_indentation): Likewise.
65611         (sc_m4_quote_check): Likewise.
65612         (sc_makefile_path_separator_check): Likewise.
65613         (sc_copyright_check): Likewise.
65614         (sc_Wundef_boolean): Likewise.
65615         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
65617         maint.mk: match 0 or more whitespace-before-function-call '('
65618         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
65619         that have zero or two-and-more spaces between the function name
65620         and the open parenthesis.
65621         (sc_error_message_warn_fatal): Likewise.
65622         (sc_error_message_uppercase): Likewise.
65623         (sc_error_message_period): Likewise.
65625 2010-03-31  Eric Blake  <eblake@redhat.com>
65627         maint.mk: check for [ as well as test
65628         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
65629         Based on a libvirt report by Matthias Bolte.
65631         gnumakefile: don't squelch _version output
65632         * top/GNUmakefile (_version): Create one-shot dependency rather
65633         than using $(shell) when version must be regenerated.
65634         (_autoreconf): Run verbosely, by default.
65636         sys_time: avoid compiler warnings
65637         * lib/sys_time.in.h (includes): Ensure gcc pragma is
65638         unconditional, fixing regression from 2010-03-29.
65639         Reported by Simon Josefsson.
65641 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
65643         maint.mk: s/_header_without_use/_sc_header_without_use/
65644         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
65645         (sc_prohibit_assert_without_use): Use the new name.
65646         (sc_prohibit_close_stream_without_use): Likewise.
65647         (sc_prohibit_getopt_without_use): Likewise.
65648         (sc_prohibit_quotearg_without_use): Likewise.
65649         (sc_prohibit_quote_without_use): Likewise.
65650         (sc_prohibit_long_options_without_use): Likewise.
65651         (sc_prohibit_inttostr_without_use): Likewise.
65652         (sc_prohibit_ignore_value_without_use): Likewise.
65653         (sc_prohibit_error_without_use): Likewise.
65654         (sc_prohibit_xalloc_without_use): Likewise.
65655         (sc_prohibit_hash_without_use): Likewise.
65656         (sc_prohibit_hash_pjw_without_use): Likewise.
65657         (sc_prohibit_safe_read_without_use): Likewise.
65658         (sc_prohibit_argmatch_without_use): Likewise.
65659         (sc_prohibit_canonicalize_without_use): Likewise.
65660         (sc_prohibit_root_dev_ino_without_use): Likewise.
65661         (sc_prohibit_openat_without_use): Likewise.
65662         (sc_prohibit_c_ctype_without_use): Likewise.
65663         (sc_prohibit_signal_without_use): Likewise.
65664         (sc_prohibit_intprops_without_use): Likewise.
65666 2010-03-30  Eric Blake  <eblake@redhat.com>
65668         maint: improve module indicators
65669         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
65670         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
65671         columns, and avoid extra macro expansion.
65673         fdopendir: work around FreeBSD bug
65674         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
65675         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
65676         * modules/dirent (Makefile.am): Substitute it.
65677         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
65678         declaration.
65679         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
65680         fix.
65681         Reported by Christian Weisgerber <naddy@mips.inka.de>.
65683 2010-03-29  Bruno Haible  <bruno@clisp.org>
65685         Emit #pragma system_header after the inclusion guard, not before.
65686         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
65687         guard that spans the entire file, not before. This enables an
65688         optimization in GCC's preprocessor.
65689         * lib/ctype.in.h: Likewise.
65690         * lib/dirent.in.h: Likewise.
65691         * lib/errno.in.h: Likewise.
65692         * lib/float.in.h: Likewise.
65693         * lib/getopt.in.h: Likewise.
65694         * lib/iconv.in.h: Likewise.
65695         * lib/langinfo.in.h: Likewise.
65696         * lib/locale.in.h: Likewise.
65697         * lib/math.in.h: Likewise.
65698         * lib/netdb.in.h: Likewise.
65699         * lib/netinet_in.in.h: Likewise.
65700         * lib/pty.in.h: Likewise.
65701         * lib/sched.in.h: Likewise.
65702         * lib/se-selinux.in.h: Likewise.
65703         * lib/search.in.h: Likewise.
65704         * lib/spawn.in.h: Likewise.
65705         * lib/stdarg.in.h: Likewise.
65706         * lib/stdint.in.h: Likewise.
65707         * lib/string.in.h: Likewise.
65708         * lib/strings.in.h: Likewise.
65709         * lib/sys_file.in.h: Likewise.
65710         * lib/sys_ioctl.in.h: Likewise.
65711         * lib/sys_time.in.h: Likewise.
65712         * lib/sys_times.in.h: Likewise.
65713         * lib/sys_utsname.in.h: Likewise.
65714         * lib/sys_wait.in.h: Likewise.
65715         * lib/sysexits.in.h: Likewise.
65716         * lib/wctype.in.h: Likewise.
65718 2010-03-28  James Youngman  <jay@gnu.org>
65720         save-cwd: don't leak a file descriptor when the caller execs.
65721         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
65722         saved file descriptor.
65723         * modules/save-cwd (Depends-on): Depend on cloexec.
65725 2010-03-29  Bruno Haible  <bruno@clisp.org>
65727         Remove vestiges of fts-lgpl module.
65728         * lib/fts_.h: Assume GNULIB_FTS is 1.
65729         * lib/fts.c: Likewise.
65730         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
65732 2010-03-28  Bruno Haible  <bruno@clisp.org>
65734         Fix definition of tests witness macro.
65735         * gnulib-tool (func_import): Fix definition of witness macro.
65737 2010-03-28  Bruno Haible  <bruno@clisp.org>
65739         Fix ioctl's protoype on glibc systems.
65740         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
65741         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
65742         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
65743         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
65744         signature. If not, arrange to replace the ioctl function.
65745         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
65746         REPLACE_IOCTL.
65747         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
65748         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
65749         Reported by Ludovic Courtès <ludo@gnu.org>.
65751 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
65753         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
65754         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
65755         made it so grep -r --include=GLOB* ... did not work.
65757 2010-03-26  Jim Meyering  <meyering@redhat.com>
65758             Eric Blake  <eblake@redhat.com>
65760         maint.mk: prohibit use of test's -o and -a operators
65761         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
65763 2010-03-28  Bruno Haible  <bruno@clisp.org>
65765         Remove unused GNULIB_XYZ macro definitions.
65766         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
65767         invocation.
65769 2010-03-28  Bruno Haible  <bruno@clisp.org>
65771         Mark privileged tests modules.
65772         * modules/idpriv-drop-tests (Status): New section.
65773         * modules/idpriv-droptemp-tests (Status): New section.
65775 2010-03-28  Bruno Haible  <bruno@clisp.org>
65777         Split C++ tests into separate tests modules.
65778         * modules/dirent-c++-tests: New file, extracted from
65779         modules/dirent-tests.
65780         * modules/dirent-tests: Depend on it.
65781         * modules/fcntl-h-c++-tests: New file, extracted from
65782         modules/fcntl-h-tests.
65783         * modules/fcntl-h-tests: Depend on it.
65784         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
65785         * modules/glob-tests: Depend on it.
65786         * modules/iconv-h-c++-tests: New file, extracted from
65787         modules/iconv-h-tests.
65788         * modules/iconv-h-tests: Depend on it.
65789         * modules/langinfo-c++-tests: New file, extracted from
65790         modules/langinfo-tests.
65791         * modules/langinfo-tests: Depend on it.
65792         * modules/locale-c++-tests: New file, extracted from
65793         modules/locale-tests.
65794         * modules/locale-tests: Depend on it.
65795         * modules/math-c++-tests: New file, extracted from modules/math-tests.
65796         * modules/math-tests: Depend on it.
65797         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
65798         * modules/pty-tests: Depend on it.
65799         * modules/search-c++-tests: New file, extracted from
65800         modules/search-tests.
65801         * modules/search-tests: Depend on it.
65802         * modules/signal-c++-tests: New file, extracted from
65803         modules/signal-tests.
65804         * modules/signal-tests: Depend on it.
65805         * modules/spawn-c++-tests: New file, extracted from
65806         modules/spawn-tests.
65807         * modules/spawn-tests: Depend on it.
65808         * modules/stdio-c++-tests: New file, extracted from
65809         modules/stdio-tests.
65810         * modules/stdio-tests: Depend on it.
65811         * modules/stdlib-c++-tests: New file, extracted from
65812         modules/stdlib-tests.
65813         * modules/stdlib-tests: Depend on it.
65814         * modules/string-c++-tests: New file, extracted from
65815         modules/string-tests.
65816         * modules/string-tests: Depend on it.
65817         * modules/sys_ioctl-c++-tests: New file, extracted from
65818         modules/sys_ioctl-tests.
65819         * modules/sys_ioctl-tests: Depend on it.
65820         * modules/sys_select-c++-tests: New file, extracted from
65821         modules/sys_select-tests.
65822         * modules/sys_select-tests: Depend on it.
65823         * modules/sys_socket-c++-tests: New file, extracted from
65824         modules/sys_socket-tests.
65825         * modules/sys_socket-tests: Depend on it.
65826         * modules/sys_stat-c++-tests: New file, extracted from
65827         modules/sys_stat-tests.
65828         * modules/sys_stat-tests: Depend on it.
65829         * modules/sys_time-c++-tests: New file, extracted from
65830         modules/sys_time-tests.
65831         * modules/sys_time-tests: Depend on it.
65832         * modules/time-c++-tests: New file, extracted from modules/time-tests.
65833         * modules/time-tests: Depend on it.
65834         * modules/unistd-c++-tests: New file, extracted from
65835         modules/unistd-tests.
65836         * modules/unistd-tests: Depend on it.
65837         * modules/wchar-c++-tests: New file, extracted from
65838         modules/wchar-tests.
65839         * modules/wchar-tests: Depend on it.
65840         * modules/wctype-c++-tests: New file, extracted from
65841         modules/wctype-tests.
65842         * modules/wctype-tests: Depend on it.
65843         Reported by Simon Josefsson.
65845 2010-03-28  Bruno Haible  <bruno@clisp.org>
65847         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
65848         * gnulib-tool (func_exists_module): New function, extracted from
65849         func_verify_module.
65850         (func_verify_module): Use it.
65851         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
65852         'foo' only if 'foo' exists.
65853         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
65854         module.
65856 2010-03-28  Bruno Haible  <bruno@clisp.org>
65858         gnulib-tool: Add support for special categories of tests.
65859         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
65860         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
65861         (func_usage): Document them.
65862         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
65863         inc_unportable_tests, inc_all_tests): New variables.
65864         (func_acceptable): Consider these variables.
65865         (func_modules_transitive_closure): Make it work when the 'Status' field
65866         consists of multiple words.
65867         (func_import): Store and restore the values of inc_cxx_tests,
65868         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
65869         inc_all_tests in gnulib-comp.m4.
65870         (func_create_testdir): Set inc_all_tests to true.
65871         * doc/gnulib.texi (Extra tests modules): New section.
65872         Suggested by Jim Meyering.
65874 2010-03-28  Bruno Haible  <bruno@clisp.org>
65876         ansi-c++-opt: Allow turning off the C++ build by default.
65877         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
65878         gl_CXX_CHOICE_DEFAULT_NO is defined.
65879         Requested by Eric Blake.
65881 2010-03-28  Bruno Haible  <bruno@clisp.org>
65883         unistd: Avoid #define replacements in C++ mode.
65884         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
65885         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
65886         setsockopt, shutdown, select): In C++, attach a warning to the function
65887         if possible, rather than #defining the symbol to a dysfunctional alias.
65888         Reported by John W. Eaton <jwe@gnu.org>.
65890 2010-03-28  Bruno Haible  <bruno@clisp.org>
65892         Fix link errors on mingw.
65893         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
65894         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
65895         $(LIBSOCKET).
65896         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
65897         $(LIBSOCKET).
65899 2010-03-28  Bruno Haible  <bruno@clisp.org>
65900             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65902         lib-ignore: Determine different options for different compilers.
65903         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
65904         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
65905         Add comments.
65906         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
65907         * NEWS: Mention the change.
65909 2010-03-27  Bruno Haible  <bruno@clisp.org>
65911         Remove unused GNULIB_XYZ macro definitions.
65912         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
65913         * modules/fseek (configure.ac): Likewise.
65914         * modules/ioctl (configure.ac): Likewise.
65915         * modules/open (configure.ac): Likewise.
65916         * modules/stdlib-safer (configure.ac): Likewise.
65918 2010-03-27  Bruno Haible  <bruno@clisp.org>
65920         Add a remark about certain modules.
65921         * modules/malloc (Comment): New section.
65922         * modules/realloc (Comment): Likewise.
65923         * modules/sigpipe (Comment): Likewise.
65925 2010-03-27  Bruno Haible  <bruno@clisp.org>
65927         Resolve conflict between the two kinds of module indicators.
65928         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
65929         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
65930         * modules/canonicalize (configure.ac): Invoke
65931         gl_MODULE_INDICATOR_FOR_TESTS.
65932         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
65933         GNULIB_XYZ.
65934         * tests/test-dirent-c++.cc: Likewise.
65935         * tests/test-dirent-safer.c: Likewise.
65936         * tests/test-dup2.c: Likewise.
65937         * tests/test-fchdir.c: Likewise.
65938         * tests/test-fcntl-h-c++.cc: Likewise.
65939         * tests/test-getopt.c: Likewise.
65940         * tests/test-getopt.h: Likewise.
65941         * tests/test-langinfo-c++.cc: Likewise.
65942         * tests/test-locale-c++.cc: Likewise.
65943         * tests/test-math-c++.cc: Likewise.
65944         * tests/test-pty-c++.cc: Likewise.
65945         * tests/test-search-c++.cc: Likewise.
65946         * tests/test-signal-c++.cc: Likewise.
65947         * tests/test-spawn-c++.cc: Likewise.
65948         * tests/test-stdio-c++.cc: Likewise.
65949         * tests/test-stdlib-c++.cc: Likewise.
65950         * tests/test-string-c++.cc: Likewise.
65951         * tests/test-sys_ioctl-c++.cc: Likewise.
65952         * tests/test-sys_select-c++.cc: Likewise.
65953         * tests/test-sys_socket-c++.cc: Likewise.
65954         * tests/test-sys_stat-c++.cc: Likewise.
65955         * tests/test-sys_time-c++.cc: Likewise.
65956         * tests/test-time-c++.cc: Likewise.
65957         * tests/test-unistd-c++.cc: Likewise.
65958         * tests/test-wchar-c++.cc: Likewise.
65959         * tests/uninorm/test-u8-nfc.c: Likewise.
65960         * tests/uninorm/test-u8-nfd.c: Likewise.
65961         * tests/uninorm/test-u8-nfkc.c: Likewise.
65962         * tests/uninorm/test-u8-nfkd.c: Likewise.
65963         * tests/uninorm/test-u16-nfc.c: Likewise.
65964         * tests/uninorm/test-u16-nfd.c: Likewise.
65965         * tests/uninorm/test-u16-nfkc.c: Likewise.
65966         * tests/uninorm/test-u16-nfkd.c: Likewise.
65967         * tests/uninorm/test-u32-nfc.c: Likewise.
65968         * tests/uninorm/test-u32-nfc-big.c: Likewise.
65969         * tests/uninorm/test-u32-nfd.c: Likewise.
65970         * tests/uninorm/test-u32-nfd-big.c: Likewise.
65971         * tests/uninorm/test-u32-nfkc.c: Likewise.
65972         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
65973         * tests/uninorm/test-u32-nfkd.c: Likewise.
65974         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
65975         * tests/uninorm/test-u32-normalize-big.c: Likewise.
65977 2010-03-27  Bruno Haible  <bruno@clisp.org>
65979         Distinguish two kinds of module indicators.
65980         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
65981         gl_MODULE_INDICATOR.
65982         (gl_MODULE_INDICATOR): New macro.
65983         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
65984         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
65985         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
65986         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
65987         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
65988         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
65989         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
65990         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
65991         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
65992         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
65993         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
65994         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
65995         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
65996         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
65997         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
65998         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
65999         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66000         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66001         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66002         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66003         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66004         * modules/cloexec (configure.ac): Likewise.
66005         * modules/getopt-gnu (configure.ac): Likewise.
66006         * modules/uninorm/u8-normalize (configure.ac): Likewise.
66007         * modules/uninorm/u16-normalize (configure.ac): Likewise.
66008         * modules/uninorm/u32-normalize (configure.ac): Likewise.
66009         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
66011 2010-03-27  Bruno Haible  <bruno@clisp.org>
66013         New module description field 'Comment'.
66014         * gnulib-tool: New option --extract-comment.
66015         (func_usage): Document it.
66016         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
66017         (func_get_comment): New function.
66018         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
66020 2010-03-27  Bruno Haible  <bruno@clisp.org>
66022         Addendum to 2010-02-07 commit.
66023         * gnulib-tool (func_usage): Document --extract-applicability option.
66025 2010-03-27  Bruno Haible  <bruno@clisp.org>
66027         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
66028         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
66029         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
66030         rather than link errors.
66032 2010-03-27  Bruno Haible  <bruno@clisp.org>
66034         Avoid side effects from tests-related modules on the compilation of lib.
66035         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
66036         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
66037         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
66038         parameter. Emit into AM_CPPFLAGS a definition of the designated C
66039         macro.
66040         (func_import): Define a witness macro. Assign it a value that depends
66041         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
66042         tests-related modules.
66043         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
66044         Reported by Jim Meyering.
66046 2010-03-27  Bruno Haible  <bruno@clisp.org>
66048         Factorize common .m4 code.
66049         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
66050         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
66051         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
66052         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
66053         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66054         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
66055         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
66056         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66057         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66058         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66059         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
66060         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66061         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66062         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66063         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66064         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
66065         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66066         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66067         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66068         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
66069         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
66070         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66071         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66072         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66073         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66074         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66075         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
66076         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
66077         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
66078         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66079         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66080         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66082 2010-03-27  Bruno Haible  <bruno@clisp.org>
66084         Fix a compilation error on Cygwin with g++ >= 4.3.
66085         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
66086         if it is undefined or if we alias it to chmod.
66087         (lstat): Don't warn about the use of this function if it is undefined
66088         or if we alias it to stat.
66089         Reported by Simon Josefsson.
66091 2010-03-27  Bruno Haible  <bruno@clisp.org>
66093         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
66094         * modules/getlogin (configure.ac): Update.
66096         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
66097         * modules/getlogin_r (configure.ac): Update.
66099         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
66100         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
66101         * modules/inet_ntop (configure.ac): Update.
66103         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
66104         * modules/inet_pton (configure.ac): Update.
66106         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
66107         * modules/mbslen (configure.ac): Update.
66109         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
66110         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
66111         * modules/forkpty (configure.ac): Update.
66112         * modules/openpty (configure.ac): Update.
66114 2010-03-26  Simon Josefsson  <simon@josefsson.org>
66116         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
66117         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
66119 2010-03-25  Eric Blake  <eblake@redhat.com>
66121         maint: use pragma consistently across replacement headers
66122         * lib/ctype.in.h (system_header): Hoist for consistent placement.
66123         * lib/dirent.in.h (system_header): Likewise.
66124         * lib/errno.in.h (system_header): Likewise.
66125         * lib/float.in.h (system_header): Likewise.
66126         * lib/getopt.in.h (system_header): Likewise.
66127         * lib/iconv.in.h (system_header): Likewise.
66128         * lib/inttypes.in.h (system_header): Likewise.
66129         * lib/langinfo.in.h (system_header): Likewise.
66130         * lib/locale.in.h (system_header): Likewise.
66131         * lib/math.in.h (system_header): Likewise.
66132         * lib/netdb.in.h (system_header): Likewise.
66133         * lib/netinet_in.in.h (system_header): Likewise.
66134         * lib/pty.in.h (system_header): Likewise.
66135         * lib/sched.in.h (system_header): Likewise.
66136         * lib/se-selinux.in.h (system_header): Likewise.
66137         * lib/search.in.h (system_header): Likewise.
66138         * lib/spawn.in.h (system_header): Likewise.
66139         * lib/stdarg.in.h (system_header): Likewise.
66140         * lib/stdint.in.h (system_header): Likewise.
66141         * lib/string.in.h (system_header): Likewise.
66142         * lib/strings.in.h (system_header): Likewise.
66143         * lib/sys_file.in.h (system_header): Likewise.
66144         * lib/sys_ioctl.in.h (system_header): Likewise.
66145         * lib/sys_socket.in.h (system_header): Likewise.
66146         * lib/sys_times.in.h (system_header): Likewise.
66147         * lib/sys_utsname.in.h (system_header): Likewise.
66148         * lib/sys_wait.in.h (system_header): Likewise.
66149         * lib/sysexits.in.h (system_header): Likewise.
66150         * lib/unistd.in.h (system_header): Likewise.
66151         * lib/wctype.in.h (system_header): Likewise.
66153         arpa/inet: fix mingw compilation warning
66154         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
66155         Reported by Matthew Bolte.
66157 2010-03-25  Bruno Haible  <bruno@clisp.org>
66159         Avoid collision between gnulib wrapper and libintl wrapper.
66160         * lib/printf.c (printf): Don't define if a printf wrapper is already
66161         defined in intl/printf.c.
66162         Reported by Michel Boaventura <michel@michelboaventura.com>.
66164 2010-03-25  Bruno Haible  <bruno@clisp.org>
66166         Use ANSI C.
66167         * lib/readutmp.h (getutent): Provide ANSI C prototype.
66169 2010-03-25  Bruno Haible  <bruno@clisp.org>
66171         Minor formatting changes.
66172         * lib/acosl.c: Insert space before function argument list.
66173         * lib/argz.c: Likewise.
66174         * lib/asinl.c: Likewise.
66175         * lib/expl.c: Likewise.
66176         * lib/gen-uni-tables.c: Likewise.
66177         * lib/gettext.h: Likewise.
66178         * lib/glthread/lock.h: Likewise.
66179         * lib/tanl.c: Likewise.
66180         * lib/uniname/uniname.c: Likewise.
66181         * tests/test-idpriv-drop.c: Likewise.
66182         * tests/test-idpriv-droptemp.c: Likewise.
66183         * tests/test-lock.c: Likewise.
66184         * tests/test-tls.c: Likewise.
66185         * lib/argp-help.c: Insert space before function-like macro argument
66186         list.
66187         * lib/memcmp.c: Likewise.
66188         * tests/test-base64.c: Likewise.
66189         * lib/localename.c: Insert space before sizeof's argument list.
66190         * lib/safe-alloc.h: Likewise.
66191         * lib/file-set.h: Insert space before macro argument list.
66192         * tests/test-argp.c: Likewise.
66193         * lib/argp-namefrob.h: Insert space before function parameter list.
66194         * lib/getaddrinfo.c: Likewise.
66195         * lib/netdb.in.h: Likewise.
66196         * lib/parse-duration.h: Likewise.
66197         * lib/parse-duration.c: Likewise.
66198         * lib/poll.c: Likewise.
66199         * lib/select.c: Likewise.
66200         * lib/trim.h: Likewise.
66201         * tests/test-usleep.c: Likewise.
66202         * lib/ldexpl.c: Insert space before function parameter list and before
66203         function argument list.
66204         * lib/logl.c: Likewise.
66205         * lib/sqrtl.c: Likewise.
66206         * lib/trim.c: Likewise.
66207         * lib/cosl.c: Use GNU style indentation. Insert space before function
66208         argument list.
66209         * lib/sinl.c: Likewise.
66210         * lib/tsearch.c: Insert space after 'for'.
66211         Reported by Jim Meyering.
66213 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
66215         * maint.mk (sc_Wundef_boolean): Check for the presence of the
66216         config header before grepping, as it's not present before
66217         autoreconf/configure are run.  Reported by Simon Josefsson.
66219 2010-03-23  Bruno Haible  <bruno@clisp.org>
66221         pt_chown: Make it work with automake < 1.11.
66222         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
66223         Reported by Simon Josefsson.
66225 2010-03-23  Bruno Haible  <bruno@clisp.org>
66227         pt_chown: Don't depend on GPLed modules.
66228         * lib/pt_chown.c: Don't include idpriv.h.
66229         (main): Don't drop privileges.
66230         * modules/pt_chown (Depends-on): Remove idpriv-drop.
66231         Reported by Simon Josefsson.
66233 2010-03-24  Simon Josefsson  <simon@josefsson.org>
66235         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
66236         suggestions from karl@freefriends.org (Karl Berry).
66238 2010-03-22  Eric Blake  <eblake@redhat.com>
66240         gethostname: further tweaks
66241         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
66242         are overriding gethostname.
66243         Suggested by Bruno Haible.
66245 2010-03-21  Bruno Haible  <bruno@clisp.org>
66247         Fix comments.
66248         * lib/forkpty.c (rpl_forkpty): Fix comment.
66249         * lib/openpty.c (rpl_openpty): Likewise.
66250         Reported by Eric Blake.
66252 2010-03-22  Eric Blake  <eblake@redhat.com>
66254         gethostname: fix build on mingw
66255         * lib/unistd.in.h (includes): Work around fact that mingw
66256         <winsock2.h> re-includes <unistd.h>, by avoiding any
66257         redeclarations if we are being included by <winsock2.h>.
66258         Reported by Matthias Bolte.
66260 2010-03-21  Bruno Haible  <bruno@clisp.org>
66262         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66263         * lib/forkpty.c (forkpty): New replacement function, from glibc with
66264         modifications.
66265         * lib/pty.in.h (forkpty): Update declaration. Add comments.
66266         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
66267         provide the replacement.
66268         * modules/forkpty (Depends-on): Add openpty, login_tty.
66269         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
66270         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
66271         * doc/glibc-functions/forkpty.texi: More supported platforms.
66272         * config/srclist.txt: Add forkpty.c (commented).
66274 2010-03-21  Bruno Haible  <bruno@clisp.org>
66276         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
66277         (Makefile.am): Verify that PTY_LIB is defined.
66279         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
66281 2010-03-21  Bruno Haible  <bruno@clisp.org>
66283         Tests for module 'login_tty'.
66284         * modules/login_tty-tests: New file.
66285         * tests/test-login_tty.c: New file.
66287         New module 'login_tty'.
66288         * lib/login_tty.c: New file.
66289         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
66290         * modules/login_tty: New file.
66291         * doc/glibc-functions/login_tty.texi: Mention the new module.
66293 2010-03-21  Bruno Haible  <bruno@clisp.org>
66295         login_tty: Documentation.
66296         * doc/glibc-functions/login_tty.texi: New file.
66297         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
66299 2010-03-21  Bruno Haible  <bruno@clisp.org>
66301         pty: Consistent macro naming.
66302         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
66303         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
66304         * modules/pty (configure.ac): Update.
66306 2010-03-21  Bruno Haible  <bruno@clisp.org>
66308         Tests for openpty: Make stricter.
66309         * tests/test-openpty.c (main): Add test of canonical processing and
66310         erase.
66311         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
66313         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66314         * lib/openpty.c (openpty): New replacement function.
66315         * lib/pty.in.h: Include <termios.h>.
66316         (openpty): Update declaration. Add comments.
66317         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
66318         is not declared, arrange to provide the replacement. Check for _getpty
66319         and posix_openpt.
66320         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
66321         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
66322         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
66323         * modules/pty-tests (test_pty_c___LDADD): New variable.
66324         * doc/glibc-functions/openpty.texi: More supported platforms.
66326 2010-03-21  Bruno Haible  <bruno@clisp.org>
66328         setenv: Tweaks.
66329         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
66330         the test program.
66331         * doc/posix-functions/setenv.texi: Update platforms list.
66333 2010-03-21  Bruno Haible  <bruno@clisp.org>
66335         New module 'unlockpt'.
66336         * lib/unlockpt.c: New file, from glibc with modifications.
66337         * m4/unlockpt.m4: New file.
66338         * modules/unlockpt: New file.
66339         * lib/stdlib.in.h (unlockpt): New declaration.
66340         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
66341         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
66342         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
66343         HAVE_UNLOCKPT.
66344         * doc/posix-functions/unlockpt.texi: Mention the new module.
66345         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
66346         * config/srclist.txt: Add unlockpt.c (commented).
66348 2010-03-21  Jim Meyering  <meyering@redhat.com>
66350         maint.mk: prohibit inclusion of "intprops.h" without use
66351         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
66353 2010-03-21  Bruno Haible  <bruno@clisp.org>
66355         New module 'grantpt'.
66356         * lib/grantpt.c: New file, from glibc with modifications.
66357         * m4/grantpt.m4: New file.
66358         * modules/grantpt: New file.
66359         * lib/stdlib.in.h (grantpt): New declaration.
66360         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
66361         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
66362         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
66363         HAVE_GRANTPT.
66364         * doc/posix-functions/grantpt.texi: Mention the new module.
66365         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
66366         * config/srclist.txt: Add grantpt.c (commented).
66368 2010-03-21  Bruno Haible  <bruno@clisp.org>
66370         New module 'pt_chown'.
66371         * lib/pt_chown.c: New file, from glibc with modifications.
66372         * lib/pty-private.h: New file, from glibc with modifications.
66373         * modules/pt_chown: New file.
66374         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
66376 2010-03-21  Bruno Haible  <bruno@clisp.org>
66378         Tests for module 'ptsname'.
66379         * modules/ptsname-tests: New file.
66380         * tests/test-ptsname.c: New file.
66382         New module 'ptsname'.
66383         * lib/ptsname.c: New file, from glibc with modifications.
66384         * m4/ptsname.m4: New file.
66385         * modules/ptsname: New file.
66386         * lib/stdlib.in.h (ptsname): New declaration.
66387         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
66388         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
66389         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
66390         HAVE_PTSNAME.
66391         * doc/posix-functions/ptsname.texi: Mention the new module.
66392         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
66393         * config/srclist.txt: Add ptsname.c (commented).
66395 2010-03-21  Bruno Haible  <bruno@clisp.org>
66397         Tests for module 'ttyname_r'.
66398         * modules/ttyname_r-tests: New file.
66399         * tests/test-ttyname_r.c: New file.
66401         New module 'ttyname_r'.
66402         * lib/ttyname_r.c: New file.
66403         * m4/ttyname_r.m4: New file.
66404         * modules/ttyname_r: New file.
66405         * lib/unistd.in.h (ttyname_r): New declaration.
66406         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
66407         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
66408         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
66409         HAVE_TTYNAME_R.
66410         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
66411         * doc/posix-functions/ttyname_r.texi: Mention the new module.
66413 2010-03-20  Bruno Haible  <bruno@clisp.org>
66415         signal: Undefine macro definitions in C++ mode.
66416         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
66417         sigfillset): Undefine macro definitions from the system header in C++
66418         mode.
66419         Reported by John W. Eaton <jwe@gnu.org>.
66421 2010-03-20  Bruno Haible  <bruno@clisp.org>
66423         Ensure no #include statements inside extern "C" { ... }.
66424         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
66425         contain #include statements.
66426         * lib/time.in.h: Likewise.
66428 2010-03-20  Bruno Haible  <bruno@clisp.org>
66430         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
66431         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
66432         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
66433         Reported by John W. Eaton <jwe@gnu.org>.
66435 2010-03-20  Bruno Haible  <bruno@clisp.org>
66437         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
66438         Reported by Jim Meyering.
66440 2010-03-20  Bruno Haible  <bruno@clisp.org>
66442         pipe: Set errno upon failure.
66443         * lib/pipe.h: Specify that when -1 is returned, errno is set.
66444         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
66445         errno value in error message.
66447 2010-03-20  Bruno Haible  <bruno@clisp.org>
66448             Jim Meyering  <meyering@redhat.com>
66450         lchown: Avoid "unused variable" warning.
66451         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
66453 2010-03-20  Bruno Haible  <bruno@clisp.org>
66455         Work around unlink() bug on MacOS X 10.5.6.
66456         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
66457         attempting to unlink a parent directory.
66458         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
66459         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
66460         activate for the replacement function.
66461         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
66463 2010-03-20  Bruno Haible  <bruno@clisp.org>
66465         Fix link errors on Solaris 8.
66466         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
66467         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
66469 2010-03-19  Jim Meyering  <meyering@redhat.com>
66471         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
66472         The _LIBC implementation of build_range_exp correctly honors the
66473         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
66474         However, the non-_LIBC implementation would ignore that syntax-bit
66475         flag and return REG_ERANGE unconditionally.
66476         This change makes it honor that flag.
66477         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
66478         Make two pointer parameters "const".
66479         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
66480         (parse_bracket_exp): Update caller.
66482         regex.m4: correct the reversed range endpoint ([b-a]) test
66483         * m4/regex.m4: When requiring that [b-a] evoke failure,
66484         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
66485         test pass once again for x86-based systems.
66487 2010-03-19  Bruno Haible  <bruno@clisp.org>
66489         scandir: Fix link error on Solaris 8.
66490         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
66491         macros.
66493 2010-03-19  Bruno Haible  <bruno@clisp.org>
66495         getusershell: Fix documentation.
66496         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
66497         module.
66498         * doc/glibc-functions/setusershell.texi: Likewise.
66500         getusershell: Provide declaration, missing on Solaris 9.
66501         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
66502         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
66503         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
66504         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
66505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66506         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
66507         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
66508         HAVE_GETUSERSHELL.
66509         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
66511 2010-03-19  Bruno Haible  <bruno@clisp.org>
66513         wctype: Provide iswblank function.
66514         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
66515         exists and is fine.
66516         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
66517         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
66518         * tests/test-wctype.c (main): Re-enable the iswblank tests.
66519         * doc/posix-functions/iswblank.texi: Update.
66521 2010-03-19  Bruno Haible  <bruno@clisp.org>
66523         Tests of module 'pty' in C++ mode.
66524         * modules/pty-tests: New file.
66525         * tests/test-pty-c++.cc: New file.
66526         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
66528 2010-03-19  Eric Blake  <eblake@redhat.com>
66530         logb: fix documentation
66531         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
66532         1.5 declaration bug.
66534         forkpty, openpty: prefer glibc's const-safe prototype
66535         * lib/forkpty.c (rpl_forkpty): New file.
66536         * lib/openpty.c (rpl_openpty): Likewise.
66537         * modules/forkpty (Files): Distribute it.
66538         * modules/openpty (Files): Likewise.
66539         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
66540         check...
66541         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
66542         replacement for non-const BSD signature.
66543         * modules/pty (Makefile.am): Substitute witnesses.
66544         * lib/pty.in.h (forkpty, openpty): Declare replacements.
66545         * tests/test-forkpty.c: Update signature check.
66546         * tests/test-openpty.c: Likewise.
66547         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
66548         * doc/glibc-functions/openpty.texi (openpty): Likewise.
66550         forkpty, openpty: split functions into new modules
66551         * modules/pty (Makefile.am): Substitute new witnesses.
66552         (Libraries): Move library detection...
66553         * modules/forkpty: ...into new module.
66554         * modules/openpty: Another new module.
66555         * modules/pty-tests: Rename and split...
66556         * modules/forkpty-tests: ...to this...
66557         * modules/openpty-tests: ...and this.
66558         * tests/test-pty.c: Rename and split...
66559         * tests/test-forkpty.c: ...to this...
66560         * tests/test-openpty.c: ...and this.
66561         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
66562         (gl_PTY): Split library searching...
66563         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
66564         (gl_FORKPTY, gl_OPENPTY): New macros.
66565         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
66566         * NEWS: Mention the split.
66567         * MODULES.html.sh (Misc): Document the modules.
66568         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
66569         * doc/glibc-functions/openpty.texi (openpty): Likewise.
66571         pty: improve replacement header
66572         * lib/pty.in.h: New file.
66573         * modules/pty (Files): Ship it.
66574         (Makefile.am): Always build replacement.
66575         * m4/pty.m4: Rename...
66576         * m4/pty_h.m4: ...to this.
66577         (gl_PTY): Modernize setting of witness macros; update check of
66578         forkpty to take proper advantage of cache.
66579         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
66581         getopt: avoid compiler warning
66582         * lib/getopt.c (attribute_hidden): Remove unused macro.
66584 2010-03-18  Bruno Haible  <bruno@clisp.org>
66586         Fix link errors on Solaris 8.
66587         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
66588         * modules/search-tests (test_search_c___LDADD): Likewise.
66589         * modules/signal-tests (test_signal_c___LDADD): Likewise.
66590         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
66591         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
66592         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
66593         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
66594         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
66595         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
66597 2010-03-18  Bruno Haible  <bruno@clisp.org>
66599         Fix bug introduced on 2010-03-14.
66600         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
66601         (gl_SPAWN_H): Require it.
66602         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
66603         Reported by Simon Josefsson.
66605 2010-03-18  Bruno Haible  <bruno@clisp.org>
66607         Fix typo introduced on 2009-12-31.
66608         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
66609         posix_spawn_file_actions_adddup2.
66611 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
66612         and Eric Blake  <eblake@redhat.com>
66614         test-vc-list-files-git: make more robust
66615         * tests/test-vc-list-files-git.sh: Unset problematic environment
66616         variables.  Chain commands together.
66618 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
66620         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
66621         `AC_CHECK_DECL' invocation.
66623 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
66625         * lib/inttostr.c (inttostr): Make sure the invocation of verify
66626         appears before executable statements. Suggested by Petr Sumbera
66627         <Petr.Sumbera@Sun.COM>.
66629 2010-03-14  Bruno Haible  <bruno@clisp.org>
66631         * tests/test-flock.c (test_exclusive): Comment out a test that causes
66632         portability problems. Instead use a simpler test.
66633         (main): Check that invalid arguments are rejected only on Linux.
66635 2010-03-14  Bruno Haible  <bruno@clisp.org>
66637         Fix bug introduced on 2009-12-31.
66638         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
66639         gl_PREREQ_SYS_H_WINSOCK2 always.
66640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
66641         SYS_SOCKET_H variable.
66642         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
66643         Update comments.
66644         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
66645         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
66646         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
66647         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
66648         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
66650 2010-03-14  Bruno Haible  <bruno@clisp.org>
66652         Fix values returned by sinl, cosl.
66653         * lib/trigl.h: Add specification comments.
66654         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
66655         that combines the values from the precomputed table with the values of
66656         the Chebyshev polynomials.
66658 2010-03-14  Bruno Haible  <bruno@clisp.org>
66660         Fix compilation error when modules 'posix_spawn[p]' are not used.
66661         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
66662         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
66664 2010-03-14  Bruno Haible  <bruno@clisp.org>
66666         Fix compilation error on mingw when module 'time_r' is not used.
66667         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
66668         is 1.
66669         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
66670         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
66671         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
66672         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
66674 2010-03-14  Bruno Haible  <bruno@clisp.org>
66676         Fix compilation error with Sun C.
66677         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
66678         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
66679         instead of GCC specific ULONG_LONG_MAX.
66680         * lib/xstrtoll.c: Likewise.
66681         * lib/xstrtoull.c: Likewise.
66683 2010-03-13  Bruno Haible  <bruno@clisp.org>
66685         Allow the user to disable C++ code and tests.
66686         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
66687         (gl_PROG_ANSI_CXX): Require it.
66689 2010-03-13  Bruno Haible  <bruno@clisp.org>
66691         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
66692         cases.
66694 2010-03-13  Bruno Haible  <bruno@clisp.org>
66696         Test that gnulib does not break the standard C++ headers.
66697         * tests/test-locale-c++2.cc: New file.
66698         * modules/locale-tests (Files): Add it.
66699         (Makefile.am): Compile it for test-locale-c++.
66700         * tests/test-math-c++2.cc: New file.
66701         * modules/math-tests (Files): Add it.
66702         (Makefile.am): Compile it for test-math-c++.
66703         * tests/test-signal-c++2.cc: New file.
66704         * modules/signal-tests (Files): Add it.
66705         (Makefile.am): Compile it for test-signal-c++.
66706         * tests/test-stdio-c++2.cc: New file.
66707         * modules/stdio-tests (Files): Add it.
66708         (Makefile.am): Compile it for test-stdio-c++.
66709         * tests/test-stdlib-c++2.cc: New file.
66710         * modules/stdlib-tests (Files): Add it.
66711         (Makefile.am): Compile it for test-stdlib-c++.
66712         * tests/test-string-c++2.cc: New file.
66713         * modules/string-tests (Files): Add it.
66714         (Makefile.am): Compile it for test-string-c++.
66715         * tests/test-time-c++2.cc: New file.
66716         * modules/time-tests (Files): Add it.
66717         (Makefile.am): Compile it for test-time-c++.
66718         Reported by John W. Eaton <jwe@gnu.org>.
66720 2010-03-13  Bruno Haible  <bruno@clisp.org>
66722         * gnulib-tool (func_usage): Clarify which options are available for
66723         --create-testdir and --create-megatestdir.
66725 2010-03-13  Bruno Haible  <bruno@clisp.org>
66727         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
66728         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
66729         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
66730         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
66731         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
66732         when appropriate.
66733         Reported by Jim Meyering.
66735 2010-03-12  Simon Josefsson  <simon@josefsson.org>
66737         * gnulib-tool (func_import): Explain origin of code.
66739 2010-03-12  Bruno Haible  <bruno@clisp.org>
66741         Fix problem with automake's definition of CXXLINK.
66742         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
66743         Reported by Simon Josefsson and Ludovic Courtès.
66745 2010-03-12  Bruno Haible  <bruno@clisp.org>
66747         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
66748         stable releases.
66750 2010-03-11  Bruno Haible  <bruno@clisp.org>
66752         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
66753         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
66754         whether the system provides one variant or multiple variants of the
66755         function.
66756         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
66757         C++ compilers.
66758         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
66759         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
66760         Reported by Jim Meyering.
66762 2010-03-09  Simon Josefsson  <simon@josefsson.org>
66764         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
66766 2010-03-08  Bruno Haible  <bruno@clisp.org>
66768         gnulib-tool: Add support for --libtool in --create-testdir.
66769         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
66770         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
66772 2010-03-08  Eric Blake  <eblake@redhat.com>
66774         gnulib-tool.texi: mention possibility of git submodule
66775         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
66776         submodules.
66777         * doc/.gitignore: Ignore another generated file.
66779 2010-03-08  Karl Berry  <karl@gnu.org>
66781         * doc/gnulib-tool.texi (VCS Issues): Mention third option
66782         of committing gnulib files while skipping others.
66784 2010-03-07  Bruno Haible  <bruno@clisp.org>
66786         Tests of module 'wctype' in C++ mode.
66787         * tests/test-wctype-c++.cc: New file.
66788         * modules/wctype-tests (Files): Add it and tests/signature.h.
66789         (Depends-on): Add ansi-c++-opt.
66790         (Makefile.am): Arrange to compile and run test-wctype-c++.
66792         Tests of module 'wchar' in C++ mode.
66793         * tests/test-wchar-c++.cc: New file.
66794         * modules/wchar-tests (Files): Add it and tests/signature.h.
66795         (Depends-on): Add ansi-c++-opt.
66796         (Makefile.am): Arrange to compile and run test-wchar-c++.
66797         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
66798         gl_MODULE_INDICATOR.
66800         Tests of module 'unistd' in C++ mode.
66801         * tests/test-unistd-c++.cc: New file.
66802         * modules/unistd-tests (Files): Add it and tests/signature.h.
66803         (Depends-on): Add ansi-c++-opt.
66804         (Makefile.am): Arrange to compile and run test-unistd-c++.
66805         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
66806         gl_MODULE_INDICATOR.
66808         Tests of module 'time' in C++ mode.
66809         * tests/test-time-c++.cc: New file.
66810         * modules/time-tests (Files): Add it and tests/signature.h.
66811         (Depends-on): Add ansi-c++-opt.
66812         (Makefile.am): Arrange to compile and run test-time-c++.
66813         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
66815         Tests of module 'sys_time' in C++ mode.
66816         * tests/test-sys_time-c++.cc: New file.
66817         * modules/sys_time-tests (Files): Add it and tests/signature.h.
66818         (Depends-on): Add ansi-c++-opt.
66819         (Makefile.am): Arrange to compile and run test-sys_time-c++.
66820         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
66821         gl_MODULE_INDICATOR.
66823         Tests of module 'sys_stat' in C++ mode.
66824         * tests/test-sys_stat-c++.cc: New file.
66825         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
66826         (Depends-on): Add ansi-c++-opt.
66827         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
66828         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
66829         gl_MODULE_INDICATOR.
66831         Tests of module 'sys_socket' in C++ mode.
66832         * tests/test-sys_socket-c++.cc: New file.
66833         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
66834         (Depends-on): Add ansi-c++-opt.
66835         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
66836         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
66837         gl_MODULE_INDICATOR.
66839         Tests of module 'sys_select' in C++ mode.
66840         * tests/test-sys_select-c++.cc: New file.
66841         * modules/sys_select-tests (Files): Add it and tests/signature.h.
66842         (Depends-on): Add ansi-c++-opt.
66843         (Makefile.am): Arrange to compile and run test-sys_select-c++.
66844         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
66845         gl_MODULE_INDICATOR.
66847         Tests of module 'sys_ioctl' in C++ mode.
66848         * tests/test-sys_ioctl-c++.cc: New file.
66849         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
66850         (Depends-on): Add ansi-c++-opt.
66851         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
66852         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
66853         gl_MODULE_INDICATOR.
66855         Tests of module 'string' in C++ mode.
66856         * tests/test-string-c++.cc: New file.
66857         * modules/string-tests (Files): Add it and tests/signature.h.
66858         (Depends-on): Add ansi-c++-opt.
66859         (Makefile.am): Arrange to compile and run test-string-c++.
66860         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
66861         gl_MODULE_INDICATOR.
66863         Tests of module 'stdlib' in C++ mode.
66864         * tests/test-stdlib-c++.cc: New file.
66865         * modules/stdlib-tests (Files): Add it and tests/signature.h.
66866         (Depends-on): Add ansi-c++-opt.
66867         (Makefile.am): Arrange to compile and run test-stdlib-c++.
66868         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
66869         gl_MODULE_INDICATOR.
66871         Tests of module 'stdio' in C++ mode.
66872         * tests/test-stdio-c++.cc: New file.
66873         * modules/stdio-tests (Files): Add it and tests/signature.h.
66874         (Depends-on): Add ansi-c++-opt.
66875         (Makefile.am): Arrange to compile and run test-stdio-c++.
66876         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
66877         gl_MODULE_INDICATOR.
66879         Tests of module 'spawn' in C++ mode.
66880         * tests/test-spawn-c++.cc: New file.
66881         * modules/spawn-tests (Files): Add it and tests/signature.h.
66882         (Depends-on): Add ansi-c++-opt.
66883         (Makefile.am): Arrange to compile and run test-spawn-c++.
66884         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
66885         gl_MODULE_INDICATOR.
66887         Tests of module 'signal' in C++ mode.
66888         * tests/test-signal-c++.cc: New file.
66889         * modules/signal-tests (Files): Add it and tests/signature.h.
66890         (Depends-on): Add ansi-c++-opt.
66891         (Makefile.am): Arrange to compile and run test-signal-c++.
66892         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
66893         gl_MODULE_INDICATOR.
66895         Tests of module 'search' in C++ mode.
66896         * tests/test-search-c++.cc: New file.
66897         * modules/search-tests (Files): Add it and tests/signature.h.
66898         (Depends-on): Add ansi-c++-opt.
66899         (Makefile.am): Arrange to compile and run test-search-c++.
66900         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
66901         gl_MODULE_INDICATOR.
66903         Tests of module 'math' in C++ mode.
66904         * tests/test-math-c++.cc: New file.
66905         * modules/math-tests (Files): Add it and tests/signature.h.
66906         (Depends-on): Add ansi-c++-opt.
66907         (Makefile.am): Arrange to compile and run test-math-c++.
66908         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
66910         Tests of module 'locale' in C++ mode.
66911         * tests/test-locale-c++.cc: New file.
66912         * modules/locale-tests (Files): Add it and tests/signature.h.
66913         (Depends-on): Add ansi-c++-opt.
66914         (Makefile.am): Arrange to compile and run test-locale-c++.
66915         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
66916         gl_MODULE_INDICATOR.
66918         Tests of module 'langinfo' in C++ mode.
66919         * tests/test-langinfo-c++.cc: New file.
66920         * modules/langinfo-tests (Files): Add it and tests/signature.h.
66921         (Depends-on): Add ansi-c++-opt.
66922         (Makefile.am): Arrange to compile and run test-langinfo-c++.
66923         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
66924         gl_MODULE_INDICATOR.
66926         Tests of module 'iconv-h' in C++ mode.
66927         * tests/test-iconv-h-c++.cc: New file.
66928         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
66929         (Depends-on): Add ansi-c++-opt.
66930         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
66932         Tests of module 'glob' in C++ mode.
66933         * tests/test-glob-c++.cc: New file.
66934         * modules/glob-tests (Files): Add it.
66935         (Depends-on): Add ansi-c++-opt.
66936         (Makefile.am): Arrange to compile and run test-glob-c++.
66938         Tests of module 'fcntl-h' in C++ mode.
66939         * tests/test-fcntl-h-c++.cc: New file.
66940         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
66941         (Depends-on): Add ansi-c++-opt.
66942         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
66943         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
66944         gl_MODULE_INDICATOR.
66946         Tests of module 'dirent' in C++ mode.
66947         * tests/test-dirent-c++.cc: New file.
66948         * modules/dirent-tests (Files): Add it and tests/signature.h.
66949         (Depends-on): Add ansi-c++-opt.
66950         (Makefile.am): Arrange to compile and run test-dirent-c++.
66951         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
66952         gl_MODULE_INDICATOR.
66954         New module 'ansi-c++-opt'.
66955         * modules/ansi-c++-opt: New file.
66956         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
66958         Document C++ namespace mode.
66959         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
66961         wctype: Avoid #define replacements in C++ mode.
66962         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
66963         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
66964         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
66965         In C++, define a namespaced alias symbol.
66966         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
66967         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
66968         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
66969         rule.
66971         wchar: Avoid #define replacements in C++ mode.
66972         * lib/wchar.in.h: Include c++defs.h.
66973         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
66974         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
66975         symbol.
66976         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
66977         * modules/wchar (Depends-on): Add c++defs.
66978         (Makefile.am): Update wchar.h rule.
66980         unistd: Avoid #define replacements in C++ mode.
66981         * lib/unistd.in.h: Include c++defs.h.
66982         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
66983         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
66984         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
66985         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
66986         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
66987         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
66988         symbol.
66989         (environ): Update.
66990         * modules/unistd (Depends-on): Add c++defs.
66991         (Makefile.am): Update unistd.h rule.
66993         time: Avoid #define replacements in C++ mode.
66994         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
66995         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
66996         define a namespaced alias symbol.
66997         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
66998         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
66999         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
67000         * modules/time (Depends-on): Add c++defs, warn-on-use.
67001         (Makefile.am): Update time.h rule.
67002         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67003         * modules/nanosleep (configure.ac): Likewise.
67004         * modules/strptime (configure.ac): Likewise.
67005         * modules/timegm (configure.ac): Likewise.
67007         sys_time: Avoid #define replacements in C++ mode.
67008         * lib/sys_time.in.h: Include c++defs.h.
67009         (gettimeofday): In C++, define a namespaced alias symbol.
67010         * modules/sys_time (Depends-on): Add c++defs.
67011         (Makefile.am): Update sys/time.h rule.
67013         sys_stat: Avoid #define replacements in C++ mode.
67014         * lib/sys_stat.in.h: Include c++defs.h.
67015         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
67016         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
67017         namespaced alias symbol.
67018         In C++, define a namespaced alias symbol.
67019         * modules/sys_stat (Depends-on): Add c++defs.
67020         (Makefile.am): Update sys/stat.h rule.
67022         sys_socket: Avoid #define replacements in C++ mode.
67023         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
67024         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
67025         definitions also when the system has a <sys/socket.h>.
67026         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
67027         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
67028         In C++, define a namespaced alias symbol.
67029         * modules/sys_socket (Depends-on): Add c++defs.
67030         (Makefile.am): Update sys/socket.h rule.
67032         sys_select: Avoid #define replacements in C++ mode.
67033         * lib/sys_select.in.h: Include c++defs.h. Enable the function
67034         definitions also when the system has a <sys/select.h>.
67035         (select): In C++, define a namespaced alias symbol.
67036         * modules/sys_select (Depends-on): Add c++defs.
67037         (Makefile.am): Update sys/select.h rule.
67039         sys_ioctl: Avoid #define replacements in C++ mode.
67040         * lib/sys_ioctl.in.h: Include c++defs.h.
67041         (ioctl): In C++, define a namespaced alias symbol.
67042         * modules/sys_ioctl (Depends-on): Add c++defs.
67043         (Makefile.am): Update sys/ioctl.h rule.
67045         string: Avoid #define replacements in C++ mode.
67046         * lib/string.in.h: Include c++defs.h.
67047         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
67048         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
67049         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
67050         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
67051         strsignal, strverscmp): In C++, define a namespaced alias symbol.
67052         * modules/string (Depends-on): Add c++defs.
67053         (Makefile.am): Update string.h rule.
67055         stdlib: Avoid #define replacements in C++ mode.
67056         * lib/stdlib.in.h: Include c++defs.h.
67057         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
67058         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
67059         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
67060         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
67061         symbol.
67062         * modules/stdlib (Depends-on): Add c++defs.
67063         (Makefile.am): Update stdlib.h rule.
67065         stdio: Avoid #define replacements in C++ mode.
67066         * lib/stdio.in.h: Include c++defs.h.
67067         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
67068         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
67069         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
67070         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
67071         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
67072         namespaced alias symbol.
67073         * modules/stdio (Depends-on): Add c++defs.
67074         (Makefile.am): Update stdio.h rule.
67076         spawn: Avoid #define replacements in C++ mode.
67077         * lib/spawn.in.h: Include c++defs.h.
67078         (posix_spawn, posix_spawnp, posix_spawnattr_init,
67079         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
67080         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
67081         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
67082         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
67083         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
67084         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
67085         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
67086         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
67087         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
67088         In C++, define a namespaced alias symbol.
67089         * modules/spawn (Depends-on): Add c++defs.
67090         (Makefile.am): Update spawn.h rule.
67092         signal: Avoid #define replacements in C++ mode.
67093         * lib/signal.in.h: Include c++defs.h.
67094         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
67095         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
67096         namespaced alias symbol.
67097         * modules/signal (Depends-on): Add c++defs.
67098         (Makefile.am): Update signal.h rule.
67100         search: Avoid #define replacements in C++ mode.
67101         * lib/search.in.h: Include c++defs.h.
67102         (_gl_search_compar_fn, _gl_search_action_fn): New types.
67103         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
67104         symbol.
67105         * modules/search (Depends-on): Add c++defs.
67106         (Makefile.am): Update search.h rule.
67108         math: Avoid #define replacements in C++ mode.
67109         * lib/math.in.h: Include c++defs.h.
67110         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
67111         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
67112         trunc, truncl): In C++, define a namespaced alias symbol.
67113         * modules/math (Depends-on): Add c++defs.
67114         (Makefile.am): Update math.h rule.
67116         locale: Avoid #define replacements in C++ mode.
67117         * lib/locale.in.h: Include c++defs.h.
67118         (duplocale): In C++, define a namespaced alias symbol.
67119         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
67120         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
67121         * modules/locale (Depends-on): Add c++defs.
67122         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
67124         langinfo: Avoid #define replacements in C++ mode.
67125         * lib/langinfo.in.h: Include c++defs.h.
67126         (nl_langinfo): In C++, define a namespaced alias symbol.
67127         * modules/langinfo (Depends-on): Add c++defs.
67128         (Makefile.am): Update langinfo.h rule.
67130         iconv-h: Avoid #define replacements in C++ mode.
67131         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
67132         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
67133         symbol.
67134         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
67135         whenever iconv is present.
67136         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
67137         (Makefile.am): Update iconv.h rule.
67139         glob: Avoid #define replacements in C++ mode.
67140         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
67141         (_gl_glob_errfunc_fn): New type.
67142         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
67143         symbol.
67144         * modules/glob (Depends-on): Add c++defs, warn-on-use.
67145         (Makefile.am): Update glob.h rule.
67147         fcntl-h: Avoid #define replacements in C++ mode.
67148         * lib/fcntl.in.h: Include c++defs.h.
67149         (fcntl, open, openat): In C++, define a namespaced alias symbol.
67150         * modules/fcntl-h (Depends-on): Add c++defs.
67151         (Makefile.am): Update fcntl.h rule.
67153         dirent: Avoid #define replacements in C++ mode.
67154         * lib/dirent.in.h: Include c++defs.h.
67155         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
67156         namespaced alias symbol.
67157         (dirfd): Update declaration.
67158         * modules/dirent (Depends-on): Add c++defs.
67159         (Makefile.am): Update dirent.h rule.
67161         ctype: Make it usable in C++ code.
67162         * lib/ctype.in.h: Include c++defs.h.
67163         (isblank): Declare as extern "C".
67164         * modules/ctype (Depends-on): Add c++defs.
67165         (Makefile.am): Update ctype.h rule.
67167         New module 'c++defs'.
67168         * modules/c++defs: New file.
67169         * build-aux/c++defs.h: New file.
67170         Reported by John W. Eaton <jwe@gnu.org>.
67172 2010-03-07  Bruno Haible  <bruno@clisp.org>
67174         logb: Provide missing declaration for Cygwin.
67175         * lib/math.in.h (logb): New declaration.
67176         * m4/logb.m4: New file.
67177         * modules/logb (Files): Add m4/logb.m4.
67178         (Depends-on): Add math.
67179         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
67180         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
67181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
67182         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
67183         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
67185 2010-03-07  Bruno Haible  <bruno@clisp.org>
67187         Fix test-cond link error.
67188         * tests/test-cond.c: Include <stdio.h>.
67190 2010-03-07  Bruno Haible  <bruno@clisp.org>
67192         Fix test-dirent-safer link error.
67193         * modules/dirent-safer-tests (Makefile.am): Define
67194         test_dirent_safer_LDADD.
67196 2010-03-07  Bruno Haible  <bruno@clisp.org>
67198         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
67199         among default module list.
67201 2010-03-07  Bruno Haible  <bruno@clisp.org>
67203         Fix link error on platforms with GNU libiconv.
67204         * modules/unistr/u8-strcoll-tests (Makefile): Define
67205         test_u8_strcoll_LDADD.
67206         * modules/unistr/u16-strcoll-tests (Makefile): Define
67207         test_u16_strcoll_LDADD.
67208         * modules/unistr/u32-strcoll-tests (Makefile): Define
67209         test_u32_strcoll_LDADD.
67211 2010-03-07  Bruno Haible  <bruno@clisp.org>
67213         Use POSIX declarations for socket functions.
67214         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
67215         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
67216         rpl_sendto): Change declaration to match POSIX.
67217         * lib/connect.c (rpl_connect): Likewise.
67218         * lib/accept.c (rpl_accept): Likewise.
67219         * lib/bind.c (rpl_bind): Likewise.
67220         * lib/getpeername.c (rpl_getpeername): Likewise.
67221         * lib/getsockname.c (rpl_getsockname): Likewise.
67222         * lib/recv.c (rpl_recv): Likewise.
67223         * lib/send.c (rpl_send): Likewise.
67224         * lib/recvfrom.c (rpl_recvfrom): Likewise.
67225         * lib/sendto.c (rpl_sendto): Likewise.
67227 2010-03-06  Bruno Haible  <bruno@clisp.org>
67229         Clarify access, euidaccess, faccessat.
67230         * doc/posix-functions/faccessat.texi: Mention security problem under
67231         "Other problems", not "Portability problems".
67232         * doc/posix-functions/access.texi: Likewise. Mention a related security
67233         problem.
67234         * doc/glibc-functions/euidaccess.texi: Mention security problems.
67235         * lib/euidaccess.c: Add comments about platforms.
67236         * lib/unistd.in.h (access, euidaccess): Add warnings.
67238 2010-03-07  Bruno Haible  <bruno@clisp.org>
67240         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
67241         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
67242         (POSIX_SPAWN_SETSCHEDULER): Likewise.
67243         (POSIX_SPAWN_USEVFORK): Define in a way that works when
67244         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67245         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
67246         declare when POSIX_SPAWN_SETSCHEDULER is zero.
67247         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
67248         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
67249         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
67250         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
67251         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
67252         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
67253         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
67254         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
67255         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
67256         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
67257         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
67258         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
67259         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
67260         Likewise.
67261         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
67262         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
67263         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
67264         Likewise.
67265         * tests/test-spawn.c (main): Make it work when
67266         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67268 2010-03-07  Bruno Haible  <bruno@clisp.org>
67270         Fix incorrect Makefile.am generation in German locale.
67271         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67272         Execute sed command with character range in C locale.
67274 2010-03-06  Bruno Haible  <bruno@clisp.org>
67276         Tests for module 'iconv-h'.
67277         * modules/iconv-h-tests: New file.
67278         * tests/test-iconv-h.c: New file.
67280         New module 'iconv-h'.
67281         * modules/iconv-h: New file.
67282         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
67283         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
67284         (configure.ac): Remove gl_ICONV_H.
67285         (Makefile.am): Remove rule for iconv.h.
67287 2010-03-06  Bruno Haible  <bruno@clisp.org>
67289         More consistent naming of *.m4 files.
67290         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
67291         * modules/wctype (Files): Update.
67293         More consistent naming of *.m4 files.
67294         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
67295         * modules/wchar (Files): Update.
67297 2010-03-06  Jim Meyering  <meyering@redhat.com>
67299         euidaccess: relax license to LGPLv2+
67300         * modules/euidaccess (License): Relax to LGPLv2+.
67302 2010-03-06  Bruno Haible  <bruno@clisp.org>
67304         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
67305         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
67306         (Makefile.am): Augment lib_SOURCES instead.
67308 2010-03-04  Jim Meyering  <meyering@redhat.com>
67310         utime: remove obsolete module
67311         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
67312         unnecessary for years, and has been marked as obsolete for 10 months.
67313         * modules/utime: Remove file.
67314         * lib/utime.c: Remove file.
67315         * m4/utime.m4: Remove file.
67316         * m4/utimes-null.m4: Remove file.
67317         * doc/posix-functions/utime.texi (utime): Remove reference to
67318         the module.  Move the sole "fixed by gnulib" item into the
67319         "problems not fixed by Gnulib" list.
67320         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
67322 2010-03-05  Simon Josefsson  <simon@josefsson.org>
67324         * modules/exit (License): Relax license to LGPLv2+.
67325         (Status): Mark as obsolete.
67326         * NEWS: Mention deprecated 'exit' module.
67327         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
67328         of now obsolete 'exit'.
67330 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67332         fts-lgpl: remove unused module
67333         * modules/fts-lgpl: Remove.
67334         * MODULES.html.sh (func_all_modules): Adjust.
67335         * check-module (find_included_lib_files): Adjust.
67336         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
67338 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
67340         copy-acl: enhance Solaris ACL error handling
67341         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
67342         * lib/set-mode-acl.c (qset_acl): Likewise.
67344 2010-03-02  Bruno Haible  <bruno@clisp.org>
67346         spawn: Don't override the system defined values on FreeBSD 8.
67347         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
67348         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
67349         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
67350         if HAVE_POSIX_SPAWN is 1.
67351         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
67353 2010-03-01  Bruno Haible  <bruno@clisp.org>
67355         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
67356         regarding Automake.
67358 2010-02-25  Bruno Haible  <bruno@clisp.org>
67360         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
67361         * gnulib-tool: Define 'echo' as a function only before the ksh alias
67362         setting, not afterwards.
67363         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
67365 2010-02-24  Eric Blake  <eblake@redhat.com>
67367         bootstrap, git-version-gen: use timestamp
67368         * build-aux/git-version-gen (scriptversion): Force UTC.
67369         * build-aux/bootstrap (scriptversion): New variable.
67371         bootstrap: allow older git
67372         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
67373         older than 1.6.4.  Requested by the libvirt project.
67375 2010-02-23  Eric Blake  <eblake@redhat.com>
67377         warn-on-use: work with old autoconf
67378         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
67379         AS_VAR semantics of autoconf 2.60.
67380         Reported by Bruno Haible.
67382         bootstrap: improve some comments
67383         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
67384         clarification comments.
67386         gettimeofday: provide correct function
67387         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
67388         when replacement is declared, otherwise provide gettimeofday.
67389         Reported by Michael Goffioul.
67391 2010-02-23  Jim Meyering  <meyering@redhat.com>
67393         lib-ignore: relax license to "unlimited", not LGPLv2+
67394         * modules/lib-ignore (License): Relax to "unlimited".
67396 2010-02-23  Jim Meyering  <meyering@redhat.com>
67398         lib-ignore: relax license to LGPLv2+
67399         * modules/lib-ignore (License): Relax to LGPLv2+.
67401 2010-02-22  Eric Blake  <eblake@redhat.com>
67403         lseek: avoid bash 3.2 broken pipe bug
67404         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
67405         warning from bash 3.2.
67406         Reported by Ben Pfaff, with analysis from Bruno Haible.
67408         bootstrap: support non-FSF copyright holder
67409         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
67410         bootstrap.conf override of COPYRIGHT_HOLDER.
67411         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
67413         bootstrap: interoperate with gettext 0.14.1
67414         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
67416         bootstrap: allow for alternate submodule location
67417         * build-aux/bootstrap (gnulib_path): New variable; use instead of
67418         hardcoding submodule location.
67419         (gnulib_mk): Allow direct use of Makefile.am.
67421         bootstrap: use GNULIB_SRCDIR to reduce disk usage
67422         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
67423         rather than reconfiguring where the submodule points.
67425         gettimeofday: restore support for platforms that lack function
67426         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
67427         replacement if function is missing.
67428         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
67429         * modules/sys_time (Makefile.am): Substitute it.
67430         * lib/sys_time.in.h (gettimeofday): Check it.
67431         Reported by Michael Goffioul.
67433 2010-02-21  Bruno Haible  <bruno@clisp.org>
67435         * lib/stdio.in.h (obstack_printf): Fix typo.
67437 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
67439         vc-list-files: use bzr ls's -R option
67440         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
67441         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
67443 2010-02-21  Jim Meyering  <meyering@redhat.com>
67445         init.sh: fix EXEEXT shims to work also for names like test-prog
67446         * tests/init.sh: Re-exec a better shell, when needed.
67447         If the current shell lacks support for posix $(...), an init.sh-using
67448         test will now try to find a shell that supports that.  If EXEEXT is
67449         nonempty, we also require support for hyphen-in-alias-name and shell
67450         substitutions like ${var#glob}.  Failure to find such a shell results
67451         in a skipped test.
67453 2010-02-21  Bruno Haible  <bruno@clisp.org>
67455         Really work around "broken pipe" error message from bash 3.2.
67456         * gnulib-tool (func_reset_sigpipe): Remove function.
67457         (echo): In bash 3.2, define to a function that uses printf.
67458         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
67460 2010-02-20  Bruno Haible  <bruno@clisp.org>
67462         Restore support for automake 1.9.6 with autoconf 2.61.
67463         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
67464         Reported by James Youngman <jay@gnu.org>.
67466 2010-02-20  Bruno Haible  <bruno@clisp.org>
67468         Improve *printf warning condition.
67469         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
67470         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
67471         and the function is overridden due to SIGPIPE emulation.
67473 2010-02-20  Bruno Haible  <bruno@clisp.org>
67475         * lib/stdio.in.h: Tweak comments.
67477 2010-02-19  Bruno Haible  <bruno@clisp.org>
67479         Make it easier to find modules. New gnulib-tool option '--find'.
67480         * gnulib-tool: New option --find.
67481         (func_usage): Document it.
67482         (func_sanitize_modulelist): New function, extracted from
67483         func_all_modules.
67484         (func_all_modules): Invoke it.
67485         * doc/gnulib-tool.texi (Which modules?): New node.
67487 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
67489         * lib/sys_select.in.h: Provide select replacement even if
67490         sys/select.h exists on a system, for Interix.
67492 2010-02-18  Jim Meyering  <meyering@redhat.com>
67494         init.sh: don't use $(...) just yet
67495         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
67496         to accommodate e.g., Solaris' /bin/sh.
67498 2010-02-17  Bruno Haible  <bruno@clisp.org>
67500         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
67501         Reported by Ludovic Courtès <ludo@gnu.org>.
67503 2010-02-16  Simon Josefsson  <simon@josefsson.org>
67505         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
67506         linking with -lintl.
67508 2010-02-17  Simon Josefsson  <simon@josefsson.org>
67510         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
67511         if not provided by the system's netdb.h.  Reported by
67512         ludo@gnu.org (Ludovic Courtès).
67514 2010-02-15  Jim Meyering  <meyering@redhat.com>
67516         init.sh: improve portability and efficiency
67517         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
67518         "dummy" in a for loop.
67519         Use '!', not '^' to select the complement of a character set used
67520         in a "case" statement.
67521         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
67522         Suggestions from Eric Blake.
67524         init.sh: automatically accommodate programs with the .exe suffix
67525         Automatically arrange for an invocation of "prog" to execute the
67526         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
67527         may use the simpler "prog", yet still work when built on a system
67528         that requires specifying the added suffix.
67529         Do this by constructing a function named "prog" that invokes
67530         "prog.exe" for each .exe file in selected directories.
67531         * tests/init.sh (find_exe_basenames_): New function.
67532         (create_exe_shim_functions_): New function.
67533         (path_prepend_): Use it.
67535         maint.mk: mark syntax-check sc_*.m rules as .PHONY
67536         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
67537         "make -t syntax-check" doesn't create a ton of sc_*.m files.
67539 2010-02-14  Jim Meyering  <meyering@redhat.com>
67541         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
67542         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
67543         (sc_prohibit_hash_pjw_without_use): New rule.
67545         maint.mk: allow the default upload destination dir to be overridden
67546         * top/maint.mk (upload_dest_dir_): Define with a default that
67547         preserves the status quo.
67548         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
67549         Reported by Peter Simons.
67551         maint.mk: prohibit inclusion of "hash.h" without_use
67552         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
67554 2010-02-10  Jim Meyering  <meyering@redhat.com>
67556         maint.mk: prohibit inclusion of "ignore-value.h" without_use
67557         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
67559 2010-02-09  Eric Blake  <ebb9@byu.net>
67560         and Bruno Haible  <bruno@clisp.org>
67562         obstack-printf-posix: ensure declaration
67563         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
67564         extracted from gl_FUNC_OBSTACK_PRINTF.
67565         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
67566         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
67567         Likewise.
67568         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
67569         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
67570         0.
67572 2010-02-08  Bruno Haible  <bruno@clisp.org>
67574         gnulib-tool: Fix typo in 2010-02-07 commit.
67575         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
67576         Reported by Eric Blake.
67578 2010-02-07  Bruno Haible  <bruno@clisp.org>
67580         gnulib-tool: Fix up caching patches.
67581         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
67582         option --no-cache. Use associative arrays when supported by the shell.
67583         (sed_comments): New variable.
67584         (modcache): Renamed from do_cache.
67585         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
67586         abbreviate unnecessarily.
67587         (have_associative): New variable.
67588         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
67589         way also for ksh and zsh.
67590         (func_init_sed_convert_to_cache_statements): New function, extracted
67591         from func_cache_lookup_module. Add support for associative arrays.
67592         Don't set the c_MODULE_cached variable here. Ignore all lines before
67593         the first field header. Remove only the final newline, not all trailing
67594         newlines. Support empty fields correctly. Limit the use of 'eval' to
67595         assignments.
67596         (func_get_description, func_get_status, func_get_notice,
67597         func_get_applicability, func_get_filelist, func_get_dependencies,
67598         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
67599         func_get_automake_snippet, func_get_include_directive,
67600         func_get_link_directive, func_get_license, func_get_maintainer):
67601         Update documentation. List the unoptimized code first. Add support for
67602         associative arrays. Limit the use of 'eval' to assignments.
67603         (func_get_applicability): Undo stylistic pessimisations.
67604         (func_get_automake_snippet, func_get_include_directive): Reduce code
67605         duplication.
67606         (func_modules_transitive_closure, func_modules_add_dummy,
67607         func_modules_notice, func_modules_to_filelist, func_add_file,
67608         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
67609         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
67610         func_create_testdir, func_create_megatestdir): Update documentation.
67612 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67614         * gnulib-tool (func_cache_lookup_module): Store the module name
67615         belonging to the cache variable; error out if two different
67616         module names map to the same cache variable name.
67618 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67620         gnulib-tool: Make caching optional.
67621         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
67622         Update matching short versions of --no-changelog.
67623         (func_usage): Update.
67624         (sed_extract_cache_prog): Renamed from ...
67625         (sed_extract_prog): ... this; revert to old extraction script.
67626         (func_get_description, func_get_status)
67627         (func_get_notice, func_get_applicability, func_get_filelist)
67628         (func_get_dependencies, func_get_autoconf_early_snippet)
67629         (func_get_autoconf_snippet, func_get_automake_snippet)
67630         (func_get_include_directive, func_get_link_directive)
67631         (func_get_license, func_get_maintainer): If $do_cache is false,
67632         use old, non-caching extraction scripts.
67633         Suggestion by Bruno Haible.
67635 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67637         gnulib-tool: cache module metainformation.
67638         * gnulib-tool (sed_extract_prog): Match newline before each
67639         header, and rewrite header to a shell variable suffix.
67640         (func_cache_var, func_cache_lookup_module): New functions,
67641         to turn a module name into a cache variable prefix, and to
67642         look up and cache module metainformation.
67643         (func_get_description, func_get_status)
67644         (func_get_notice, func_get_applicability, func_get_filelist)
67645         (func_get_dependencies, func_get_autoconf_early_snippet)
67646         (func_get_autoconf_snippet, func_get_automake_snippet)
67647         (func_get_include_directive, func_get_link_directive)
67648         (func_get_license, func_get_maintainer): Use
67649         func_cache_lookup_module.
67651 2010-02-07  Bruno Haible  <bruno@clisp.org>
67653         fnctl: Fix missing dependency.
67654         * modules/fcntl (Depends-on): Add getdtablesize.
67655         Reported by John W. Eaton <jwe@gnu.org>.
67657 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67659         Argp: fix recognition of short alias options.
67661         * lib/argp-parse.c (convert_options): Fix improper use of
67662         `|' between character values.
67663         * tests/test-argp.c (group1_option): New alias option
67664         --read (-r).
67665         (group1_parser): Special handling for 'r'.
67666         (test15): New test case.
67667         (test_fun): Add test15.
67668         * tests/test-argp-2.sh: Update expected --help and --usage
67669         outputs.
67671 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67673         * tests/test-argp.c: Fix indentation.
67675 2010-02-04  Eric Blake  <ebb9@byu.net>
67677         gettimeofday: expose type of second argument
67678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
67679         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
67680         * tests/test-gettimeofday.c: Use it to silence warning.
67681         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
67682         the issue.
67684 2010-02-03  Jim Meyering  <meyering@redhat.com>
67686         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
67687         * lib/regcomp.c (TYPE_SIGNED): Define.
67688         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
67690         regcomp.c: avoid a new -Wshadow warning
67691         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
67693 2010-02-01  Jim Meyering  <meyering@redhat.com>
67695         removing useless parentheses in cpp #define directives
67696         For motivation, see commit c0221df4, "define STREQ(a,b)
67697         consistently, removing useless parentheses"
67698         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
67699         * lib/mountlist.c (MNT_IGNORE): Likewise.
67700         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
67702 2010-02-01  Eric Blake  <ebb9@byu.net>
67704         sys_time: use link-warning
67705         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
67706         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
67707         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
67708         * modules/sys_time (Depends-on): Add warn-on-use.
67709         (Makefile.am): Always build replacement.
67710         (configure.ac): Update substitutions.
67711         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
67712         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
67713         bother with SYS_TIME_H.
67714         * modules/gettimeofday (configure.ac): Declare indicator.
67715         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
67716         in use.
67718         closein-tests: silence compiler warning
67719         * tests/test-closein.c (main): Ignore fread result.
67720         * modules/closein-tests (Depends-on): Add ignore-value.
67722         tests: silence warning about system return
67723         * tests/test-areadlink-with-size.c (main): Ignore system result.
67724         * tests/test-areadlink.c (main): Likewise.
67725         * tests/test-areadlinkat-with-size.c (main): Likewise.
67726         * tests/test-areadlinkat.c (main): Likewise.
67727         * tests/test-canonicalize-lgpl.c (main): Likewise.
67728         * tests/test-canonicalize.c (main): Likewise.
67729         * tests/test-chown.c (main): Likewise.
67730         * tests/test-fchownat.c (main): Likewise.
67731         * tests/test-fdutimensat.c (main): Likewise.
67732         * tests/test-fstatat.c (main): Likewise.
67733         * tests/test-futimens.c (main): Likewise.
67734         * tests/test-lchown.c (main): Likewise.
67735         * tests/test-link.c (main): Likewise.
67736         * tests/test-linkat.c (main): Likewise.
67737         * tests/test-lstat.c (main): Likewise.
67738         * tests/test-mkdir.c (main): Likewise.
67739         * tests/test-mkdirat.c (main): Likewise.
67740         * tests/test-mkfifo.c (main): Likewise.
67741         * tests/test-mkfifoat.c (main): Likewise.
67742         * tests/test-mknod.c (main): Likewise.
67743         * tests/test-readlink.c (main): Likewise.
67744         * tests/test-remove.c (main): Likewise.
67745         * tests/test-rename.c (main): Likewise.
67746         * tests/test-renameat.c (main): Likewise.
67747         * tests/test-rmdir.c (main): Likewise.
67748         * tests/test-symlink.c (main): Likewise.
67749         * tests/test-symlinkat.c (main): Likewise.
67750         * tests/test-unlink.c (main): Likewise.
67751         * tests/test-unlinkat.c (main): Likewise.
67752         * tests/test-utimens.c (main): Likewise.
67753         * tests/test-utimensat.c (main): Likewise.
67754         * modules/areadlink-tests (Depends-on): Add ignore-value.
67755         * modules/areadlink-with-size-tests (Depends-on): Likewise.
67756         * modules/areadlinkat-tests (Depends-on): Likewise.
67757         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
67758         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
67759         * modules/canonicalize-tests (Depends-on): Likewise.
67760         * modules/chown-tests (Depends-on): Likewise.
67761         * modules/fdutimensat-tests (Depends-on): Likewise.
67762         * modules/futimens-tests (Depends-on): Likewise.
67763         * modules/lchown-tests (Depends-on): Likewise.
67764         * modules/link-tests (Depends-on): Likewise.
67765         * modules/linkat-tests (Depends-on): Likewise.
67766         * modules/lstat-tests (Depends-on): Likewise.
67767         * modules/mkdir-tests (Depends-on): Likewise.
67768         * modules/mkfifo-tests (Depends-on): Likewise.
67769         * modules/mkfifoat-tests (Depends-on): Likewise.
67770         * modules/mknod-tests (Depends-on): Likewise.
67771         * modules/openat-tests (Depends-on): Likewise.
67772         * modules/readlink-tests (Depends-on): Likewise.
67773         * modules/remove-tests (Depends-on): Likewise.
67774         * modules/rename-tests (Depends-on): Likewise.
67775         * modules/renameat-tests (Depends-on): Likewise.
67776         * modules/rmdir-tests (Depends-on): Likewise.
67777         * modules/symlink-tests (Depends-on): Likewise.
67778         * modules/symlinkat-tests (Depends-on): Likewise.
67779         * modules/unlink-tests (Depends-on): Likewise.
67780         * modules/utimens-tests (Depends-on): Likewise.
67781         * modules/utimensat-tests (Depends-on): Likewise.
67783 2010-01-31  Bruno Haible  <bruno@clisp.org>
67785         Perform the same test for many <math.h> functions.
67786         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
67787         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
67788         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
67789         of gl_MATHFUNC.
67790         * modules/acos (configure.ac): Likewise.
67791         * modules/asin (configure.ac): Likewise.
67792         * modules/atan (configure.ac): Likewise.
67793         * modules/atan2 (configure.ac): Likewise.
67794         * modules/cbrt (configure.ac): Likewise.
67795         * modules/copysign (configure.ac): Likewise.
67796         * modules/cos (configure.ac): Likewise.
67797         * modules/cosh (configure.ac): Likewise.
67798         * modules/erf (configure.ac): Likewise.
67799         * modules/erfc (configure.ac): Likewise.
67800         * modules/exp (configure.ac): Likewise.
67801         * modules/fmod (configure.ac): Likewise.
67802         * modules/hypot (configure.ac): Likewise.
67803         * modules/j0 (configure.ac): Likewise.
67804         * modules/j1 (configure.ac): Likewise.
67805         * modules/jn (configure.ac): Likewise.
67806         * modules/lgamma (configure.ac): Likewise.
67807         * modules/log (configure.ac): Likewise.
67808         * modules/log10 (configure.ac): Likewise.
67809         * modules/log1p (configure.ac): Likewise.
67810         * modules/pow (configure.ac): Likewise.
67811         * modules/remainder (configure.ac): Likewise.
67812         * modules/sin (configure.ac): Likewise.
67813         * modules/sinh (configure.ac): Likewise.
67814         * modules/tan (configure.ac): Likewise.
67815         * modules/tanh (configure.ac): Likewise.
67816         * modules/y0 (configure.ac): Likewise.
67817         * modules/y1 (configure.ac): Likewise.
67818         * modules/yn (configure.ac): Likewise.
67819         Suggested by Paolo Bonzini.
67821 2010-01-31  Bruno Haible  <bruno@clisp.org>
67823         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
67825 2010-01-31  Bruno Haible  <bruno@clisp.org>
67827         Work around getdelim() bug on FreeBSD 8.0.
67828         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
67829         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
67830         not work.
67831         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
67832         is 1.
67833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
67834         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
67835         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
67836         a non-zero size.
67837         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
67839 2010-01-31  Bruno Haible  <bruno@clisp.org>
67841         Work around getline() bug on FreeBSD 8.0.
67842         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
67843         and a non-zero size.
67844         * tests/test-getline.c (main): Likewise.
67845         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
67846         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
67848 2010-01-28  Eric Blake  <ebb9@byu.net>
67850         regex: fix build failure
67851         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
67852         platforms.
67854 2010-01-28  Jim Meyering  <meyering@redhat.com>
67856         regex: do not ignore memory allocation failure
67857         * lib/regex_internal.c (create_cd_newstate): Detect
67858         re_node_set_init_copy failure.   Extracted from glibc commit
67859         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
67861         regex: sync more white-space changes from libc
67862         * lib/regex_internal.c: White-space only changes.
67863         * lib/regexec.c: Likewise.
67865         regex: add many uses of __attribute_warn_unused_result__
67866         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
67867         * lib/regexec.c: Likewise.
67868         Extracted from a messy glibc commit.
67870         regcomp.c: spelling and merge-artifact from glibc
67871         * lib/regcomp.c: Merge remainder of glibc's
67872         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
67874         regcomp.c: sync white-space changes from glibc
67875         * lib/regcomp.c: Merge to accommodate white space
67876         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
67878         regcomp.c: do not ignore internal return values
67879         * lib/regcomp.c: Do not ignore internal return values.
67880         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
67881         but without its white-space changes and spelling fixes.
67883         regex_internal.h: define __attribute_warn_unused_result__
67884         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
67886         maint: add a syntax-check rule to check for vulnerable Makefile.in
67887         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
67889 2010-01-27  Jim Meyering  <meyering@redhat.com>
67891         ncftpput-ftp: clean up spaces
67892         * build-aux/ncftpput-ftp: Make Copyright line consistent.
67893         Remove trailing blanks.
67895 2010-01-27  Simon Josefsson  <simon@josefsson.org>
67897         * build-aux/git-version-gen: Fix copyright statement.
67898         * build-aux/gnupload: Likewise.
67899         * tests/test-arcfour.c: Likewise.
67900         * tests/test-arctwo.c: Likewise.
67901         * tests/test-count-one-bits.c: Likewise.
67902         * tests/test-crc.c: Likewise.
67903         * tests/test-des.c: Likewise.
67904         * tests/test-gc-arcfour.c: Likewise.
67905         * tests/test-gc-arctwo.c: Likewise.
67906         * tests/test-gc-des.c: Likewise.
67907         * tests/test-gc-hmac-md5.c: Likewise.
67908         * tests/test-gc-hmac-sha1.c: Likewise.
67909         * tests/test-gc-md2.c: Likewise.
67910         * tests/test-gc-md4.c: Likewise.
67911         * tests/test-gc-md5.c: Likewise.
67912         * tests/test-gc-pbkdf2-sha1.c: Likewise.
67913         * tests/test-gc-rijndael.c: Likewise.
67914         * tests/test-gc-sha1.c: Likewise.
67915         * tests/test-gc.c: Likewise.
67916         * tests/test-gethostname.c: Likewise.
67917         * tests/test-gettimeofday.c: Likewise.
67918         * tests/test-hash.c: Likewise.
67919         * tests/test-hmac-md5.c: Likewise.
67920         * tests/test-hmac-sha1.c: Likewise.
67921         * tests/test-md2.c: Likewise.
67922         * tests/test-md4.c: Likewise.
67923         * tests/test-md5.c: Likewise.
67924         * tests/test-memchr.c: Likewise.
67925         * tests/test-memchr2.c: Likewise.
67926         * tests/test-memcmp.c: Likewise.
67927         * tests/test-memmem.c: Likewise.
67928         * tests/test-memrchr.c: Likewise.
67929         * tests/test-rawmemchr.c: Likewise.
67930         * tests/test-read-file.c: Likewise.
67931         * tests/test-rijndael.c: Likewise.
67932         * tests/test-sockets.c: Likewise.
67933         * tests/test-strchrnul.c: Likewise.
67934         * tests/test-strstr.c: Likewise.
67935         * tests/test-strtod.c: Likewise.
67936         * build-aux/ncftpput-ftp: Likewise.
67938 2010-01-26  Eric Blake  <ebb9@byu.net>
67940         ignore-value: update recommended header name
67941         * modules/ignore-value (Include): Only use <> for headers that
67942         exist in glibc.
67944 2010-01-26  Jim Meyering  <meyering@redhat.com>
67946         test-userspec.c: avoid compiler warnings
67947         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
67948         and "initialization discards qualifiers..." warnings.
67949         Put the first "uid" in its own scope, and make char* members "const".
67951 2010-01-25  Bruno Haible  <bruno@clisp.org>
67953         gnulib-tool: Make warning diagnostics consistent.
67954         * gnulib-tool (func_warning): New function.
67955         Use it everywhere where gnulib-tool produces output to stderr and it is
67956         not a fatal error.
67958 2010-01-25  Bruno Haible  <bruno@clisp.org>
67960         Fix test dependencies.
67961         * modules/xstrtol-tests (Depends-on): Add inttypes.
67962         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
67964 2010-01-25  Pádraig Brady  <P@draigBrady.com>
67966         syntax-check: detect incorrect boolean macro values in config.h
67967         * modules/maintainer-makefile (configure.ac): Parameterize the location
67968         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
67969         The logic is from Eric Blake and the location indicated by Jim Meyering.
67970         Note the more natural CONFIG_HEADER name is prohibited by automake
67971         for backwards compatibility reasons.
67972         * top/maint.mk (sc_Wundef_boolean): New rule.
67974 2010-01-25  Jim Meyering  <meyering@redhat.com>
67976         bootstrap: detect MacOS 10.6's shasum, too
67977         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
67978         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
67980 2010-01-23  Jim Meyering  <meyering@redhat.com>
67982         xstrtoll: new module
67983         * modules/xstrtoll: New file.
67984         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
67985         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
67986         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
67987         ./configure fails if you use this module and lack "long long".
67988         * modules/xstrtoll-tests: New module.
67989         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
67990         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
67991         new init.sh-based test framework.
67993 2010-01-24  Bruno Haible  <bruno@clisp.org>
67995         Tests for module 'yn'.
67996         * modules/yn-tests: New file.
67997         * tests/test-yn.c: New file.
67999         Tests for module 'y1'.
68000         * modules/y1-tests: New file.
68001         * tests/test-y1.c: New file.
68003         Tests for module 'y0'.
68004         * modules/y0-tests: New file.
68005         * tests/test-y0.c: New file.
68007         Tests for module 'tanh'.
68008         * modules/tanh-tests: New file.
68009         * tests/test-tanh.c: New file.
68011         Tests for module 'tan'.
68012         * modules/tan-tests: New file.
68013         * tests/test-tan.c: New file.
68015         Tests for module 'sqrt'.
68016         * modules/sqrt-tests: New file.
68017         * tests/test-sqrt.c: New file.
68019         Tests for module 'sinh'.
68020         * modules/sinh-tests: New file.
68021         * tests/test-sinh.c: New file.
68023         Tests for module 'sin'.
68024         * modules/sin-tests: New file.
68025         * tests/test-sin.c: New file.
68027         Tests for module 'rint'.
68028         * modules/rint-tests: New file.
68029         * tests/test-rint.c: New file.
68031         Tests for module 'remainder'.
68032         * modules/remainder-tests: New file.
68033         * tests/test-remainder.c: New file.
68035         Tests for module 'pow'.
68036         * modules/pow-tests: New file.
68037         * tests/test-pow.c: New file.
68039         Tests for module 'nextafter'.
68040         * modules/nextafter-tests: New file.
68041         * tests/test-nextafter.c: New file.
68043         Tests for module 'modf'.
68044         * modules/modf-tests: New file.
68045         * tests/test-modf.c: New file.
68047         Tests for module 'logb'.
68048         * modules/logb-tests: New file.
68049         * tests/test-logb.c: New file.
68051         Tests for module 'log1p'.
68052         * modules/log1p-tests: New file.
68053         * tests/test-log1p.c: New file.
68055         Tests for module 'log10'.
68056         * modules/log10-tests: New file.
68057         * tests/test-log10.c: New file.
68059         Tests for module 'log'.
68060         * modules/log-tests: New file.
68061         * tests/test-log.c: New file.
68063         Tests for module 'lgamma'.
68064         * modules/lgamma-tests: New file.
68065         * tests/test-lgamma.c: New file.
68067         Tests for module 'ldexp'.
68068         * modules/ldexp-tests: New file.
68069         * tests/test-ldexp.c: New file.
68071         Tests for module 'jn'.
68072         * modules/jn-tests: New file.
68073         * tests/test-jn.c: New file.
68075         Tests for module 'j1'.
68076         * modules/j1-tests: New file.
68077         * tests/test-j1.c: New file.
68079         Tests for module 'j0'.
68080         * modules/j0-tests: New file.
68081         * tests/test-j0.c: New file.
68083         Tests for module 'hypot'.
68084         * modules/hypot-tests: New file.
68085         * tests/test-hypot.c: New file.
68087         Tests for module 'fmod'.
68088         * modules/fmod-tests: New file.
68089         * tests/test-fmod.c: New file.
68091         Tests for module 'fabs'.
68092         * modules/fabs-tests: New file.
68093         * tests/test-fabs.c: New file.
68095         Tests for module 'exp'.
68096         * modules/exp-tests: New file.
68097         * tests/test-exp.c: New file.
68099         Tests for module 'erfc'.
68100         * modules/erfc-tests: New file.
68101         * tests/test-erfc.c: New file.
68103         Tests for module 'erf'.
68104         * modules/erf-tests: New file.
68105         * tests/test-erf.c: New file.
68107         Tests for module 'cosh'.
68108         * modules/cosh-tests: New file.
68109         * tests/test-cosh.c: New file.
68111         Tests for module 'cos'.
68112         * modules/cos-tests: New file.
68113         * tests/test-cos.c: New file.
68115         Tests for module 'copysign'.
68116         * modules/copysign-tests: New file.
68117         * tests/test-copysign.c: New file.
68119         Tests for module 'cbrt'.
68120         * modules/cbrt-tests: New file.
68121         * tests/test-cbrt.c: New file.
68123         Tests for module 'atan2'.
68124         * modules/atan2-tests: New file.
68125         * tests/test-atan2.c: New file.
68127         Tests for module 'atan'.
68128         * modules/atan-tests: New file.
68129         * tests/test-atan.c: New file.
68131         Tests for module 'asin'.
68132         * modules/asin-tests: New file.
68133         * tests/test-asin.c: New file.
68135         Tests for module 'acos'.
68136         * modules/acos-tests: New file.
68137         * tests/test-acos.c: New file.
68139 2010-01-24  Bruno Haible  <bruno@clisp.org>
68141         Fix tests for common <math.h> functions.
68142         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
68143         code snippet that references the function pointer, rather than merely
68144         calling the function. Substitute the FUNC_LIBM variable.
68145         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
68146         * modules/acos (configure.ac): Likewise.
68147         * modules/asin (configure.ac): Likewise.
68148         * modules/atan (configure.ac): Likewise.
68149         * modules/atan2 (configure.ac): Likewise.
68150         * modules/cbrt (configure.ac): Likewise.
68151         * modules/copysign (configure.ac): Likewise.
68152         * modules/cos (configure.ac): Likewise.
68153         * modules/cosh (configure.ac): Likewise.
68154         * modules/erf (configure.ac): Likewise.
68155         * modules/erfc (configure.ac): Likewise.
68156         * modules/exp (configure.ac): Likewise.
68157         * modules/fabs (configure.ac): Likewise.
68158         * modules/fmod (configure.ac): Likewise.
68159         * modules/hypot (configure.ac): Likewise.
68160         * modules/j0 (configure.ac): Likewise.
68161         * modules/j1 (configure.ac): Likewise.
68162         * modules/jn (configure.ac): Likewise.
68163         * modules/ldexp (configure.ac): Likewise.
68164         * modules/lgamma (configure.ac): Likewise.
68165         * modules/log (configure.ac): Likewise.
68166         * modules/log10 (configure.ac): Likewise.
68167         * modules/log1p (configure.ac): Likewise.
68168         * modules/logb (configure.ac): Likewise.
68169         * modules/modf (configure.ac): Likewise.
68170         * modules/nextafter (configure.ac): Likewise.
68171         * modules/pow (configure.ac): Likewise.
68172         * modules/remainder (configure.ac): Likewise.
68173         * modules/rint (configure.ac): Likewise.
68174         * modules/sin (configure.ac): Likewise.
68175         * modules/sinh (configure.ac): Likewise.
68176         * modules/tan (configure.ac): Likewise.
68177         * modules/tanh (configure.ac): Likewise.
68178         * modules/y0 (configure.ac): Likewise.
68179         * modules/y1 (configure.ac): Likewise.
68180         * modules/yn (configure.ac): Likewise.
68182 2010-01-24  Bruno Haible  <bruno@clisp.org>
68184         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
68185         * tests/test-acosl.c (x): New variable.
68186         (main): Store argument in x and fetch it from x.
68187         * tests/test-asinl.c (x): New variable.
68188         (main): Store argument in x and fetch it from x.
68189         * tests/test-atanl.c (x): New variable.
68190         (main): Store argument in x and fetch it from x.
68191         * tests/test-cosl.c (x): New variable.
68192         (main): Store argument in x and fetch it from x.
68193         * tests/test-expl.c (x): New variable.
68194         (main): Store argument in x and fetch it from x.
68195         * tests/test-logl.c (x): New variable.
68196         (main): Store argument in x and fetch it from x.
68197         * tests/test-sinl.c (x): New variable.
68198         (main): Store argument in x and fetch it from x.
68199         * tests/test-sqrtl.c (x): New variable.
68200         (main): Store argument in x and fetch it from x.
68201         * tests/test-tanl.c (x): New variable.
68202         (main): Store argument in x and fetch it from x.
68204 2010-01-24  Bruno Haible  <bruno@clisp.org>
68206         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
68207         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
68208         assignments to the initial TESTS_ENVIRONMENT.
68209         * doc/gnulib.texi (Unit test modules): Document it.
68210         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
68211         TESTS_ENVIRONMENT.
68212         * modules/btowc-tests (Makefile.am): Likewise.
68213         * modules/c-stack-tests (Makefile.am): Likewise.
68214         * modules/c-strcase-tests (Makefile.am): Likewise.
68215         * modules/copy-file-tests (Makefile.am): Likewise.
68216         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
68217         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
68218         * modules/mbrtowc-tests (Makefile.am): Likewise.
68219         * modules/mbscasecmp-tests (Makefile.am): Likewise.
68220         * modules/mbscasestr-tests (Makefile.am): Likewise.
68221         * modules/mbschr-tests (Makefile.am): Likewise.
68222         * modules/mbscspn-tests (Makefile.am): Likewise.
68223         * modules/mbsinit-tests (Makefile.am): Likewise.
68224         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
68225         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
68226         * modules/mbspbrk-tests (Makefile.am): Likewise.
68227         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
68228         * modules/mbsrchr-tests (Makefile.am): Likewise.
68229         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
68230         * modules/mbsspn-tests (Makefile.am): Likewise.
68231         * modules/mbsstr-tests (Makefile.am): Likewise.
68232         * modules/nl_langinfo-tests (Makefile.am): Likewise.
68233         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
68234         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
68235         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
68236         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
68237         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
68238         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
68239         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
68240         * modules/wcrtomb-tests (Makefile.am): Likewise.
68241         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
68242         * modules/wcsrtombs-tests (Makefile.am): Likewise.
68243         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
68244         assignments from TESTS_ENVIRONMENT.
68245         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
68246         augmentation.
68247         * modules/argp-version-etc-tests (Makefile.am): Likewise.
68248         * modules/atexit-tests (Makefile.am): Likewise.
68249         * modules/binary-io-tests (Makefile.am): Likewise.
68250         * modules/closein-tests (Makefile.am): Likewise.
68251         * modules/dprintf-posix-tests (Makefile.am): Likewise.
68252         * modules/exclude-tests (Makefile.am): Likewise.
68253         * modules/fflush-tests (Makefile.am): Likewise.
68254         * modules/fpending-tests (Makefile.am): Likewise.
68255         * modules/fprintf-posix-tests (Makefile.am): Likewise.
68256         * modules/freadahead-tests (Makefile.am): Likewise.
68257         * modules/freadptr-tests (Makefile.am): Likewise.
68258         * modules/freadseek-tests (Makefile.am): Likewise.
68259         * modules/fseek-tests (Makefile.am): Likewise.
68260         * modules/fseeko-tests (Makefile.am): Likewise.
68261         * modules/ftell-tests (Makefile.am): Likewise.
68262         * modules/ftello-tests (Makefile.am): Likewise.
68263         * modules/idpriv-drop-tests (Makefile.am): Likewise.
68264         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
68265         * modules/lseek-tests (Makefile.am): Likewise.
68266         * modules/parse-duration-tests (Makefile.am): Likewise.
68267         * modules/perror-tests (Makefile.am): Likewise.
68268         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
68269         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
68270         * modules/pipe-tests (Makefile.am): Likewise.
68271         * modules/pread-tests (Makefile.am): Likewise.
68272         * modules/printf-posix-tests (Makefile.am): Likewise.
68273         * modules/select-tests (Makefile.am): Likewise.
68274         * modules/sigpipe-tests (Makefile.am): Likewise.
68275         * modules/tsearch-tests (Makefile.am): Likewise.
68276         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
68277         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
68278         * modules/uniname/uniname-tests (Makefile.am): Likewise.
68279         * modules/uniwidth/width-tests (Makefile.am): Likewise.
68280         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
68281         * modules/version-etc-tests (Makefile.am): Likewise.
68282         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
68283         * modules/vprintf-posix-tests (Makefile.am): Likewise.
68284         * modules/xalloc-die-tests (Makefile.am): Likewise.
68285         * modules/xprintf-posix-tests (Makefile.am): Likewise.
68286         * modules/xstrtoimax-tests (Makefile.am): Likewise.
68287         * modules/xstrtol-tests (Makefile.am): Likewise.
68288         * modules/xstrtoumax-tests (Makefile.am): Likewise.
68289         * modules/yesno-tests (Makefile.am): Likewise.
68290         Suggested by Jim Meyering.
68292 2010-01-24  Bruno Haible  <bruno@clisp.org>
68294         More documentation.
68295         * doc/gnulib.texi (Writing modules): New chapter.
68296         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
68297         the new chapter.
68299 2010-01-24  Jim Meyering  <meyering@redhat.com>
68301         maint.mk: do not prepend "./" after filtering
68302         * top/maint.mk (_prepend_srcdir_prefix): New variable
68303         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
68304         "./" when $(srcdir) is ".".
68306         define STREQ(a,b) consistently, removing useless parentheses
68307         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
68308         since the only risk is that "a" or "b" contains an unparenthesized
68309         comma, but if either did that, STREQ would have 3 or more arguments.
68310         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
68311         * lib/fts.c (STREQ): Remove unnecessary parentheses.
68312         * lib/hash-triple.c (STREQ): Likewise.
68313         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
68314         * lib/getugroups.c (STREQ): Likewise.
68316 2010-01-23  Jim Meyering  <meyering@redhat.com>
68318         maint.mk: fix syntax-check in a non-srcdir build directory
68319         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
68320         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
68322 2010-01-22  Jim Meyering  <meyering@redhat.com>
68324         userspec: add unit tests
68325         * tests/test-userspec.c: New file.
68326         * modules/userspec-tests: Likewise.
68328 2010-01-21  Jim Meyering  <meyering@redhat.com>
68330         maint.mk: handle source file names containing "." robustly
68331         * top/maint.mk (_dot_escaped_srcdir): Define.
68332         (VC_LIST): Use it in LHS of sed substitution.
68334 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
68336         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
68337         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
68338         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
68339         from a non-srcdir build.
68341 2010-01-20  Eric Blake  <ebb9@byu.net>
68343         warn-on-use: use instead of link-warning
68344         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
68345         * modules/unistd (Depends-on, Makefile.am): Likewise.
68346         * modules/arpa_inet (Depends-on): Replace link-warning with
68347         warn-on-use.
68348         (Makefile.am): Update rules accordingly.
68349         * modules/ctype (Depends-on, Makefile.am): Likewise.
68350         * modules/dirent (Depends-on, Makefile.am): Likewise.
68351         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
68352         * modules/inttypes (Depends-on, Makefile.am): Likewise.
68353         * modules/langinfo (Depends-on, Makefile.am): Likewise.
68354         * modules/locale (Depends-on, Makefile.am): Likewise.
68355         * modules/math (Depends-on, Makefile.am): Likewise.
68356         * modules/search (Depends-on, Makefile.am): Likewise.
68357         * modules/signal (Depends-on, Makefile.am): Likewise.
68358         * modules/spawn (Depends-on, Makefile.am): Likewise.
68359         * modules/stdlib (Depends-on, Makefile.am): Likewise.
68360         * modules/string (Depends-on, Makefile.am): Likewise.
68361         * modules/strings (Depends-on, Makefile.am): Likewise.
68362         * modules/sys_file (Depends-on, Makefile.am): Likewise.
68363         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
68364         * modules/sys_select (Depends-on, Makefile.am): Likewise.
68365         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
68366         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
68367         * modules/sys_times (Depends-on, Makefile.am): Likewise.
68368         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
68369         * modules/wchar (Depends-on, Makefile.am): Likewise.
68370         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
68371         should be poisoned.
68372         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
68373         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
68374         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
68375         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68376         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
68377         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68378         * m4/math_h.m4 (gl_MATH_H): Likewise.
68379         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68380         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68381         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
68382         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68383         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68384         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68385         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
68386         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
68387         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
68388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68389         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68390         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68391         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
68392         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
68393         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68394         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68395         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
68396         GL_LINK_WARNING.
68397         * lib/ctype.in.h: Likewise.
68398         * lib/dirent.in.h: Likewise.
68399         * lib/fcntl.in.h: Likewise.
68400         * lib/inttypes.in.h: Likewise.
68401         * lib/langinfo.in.h: Likewise.
68402         * lib/locale.in.h: Likewise.
68403         * lib/math.in.h: Likewise.
68404         * lib/search.in.h: Likewise.
68405         * lib/signal.in.h: Likewise.
68406         * lib/spawn.in.h: Likewise.
68407         * lib/stdio.in.h: Likewise.
68408         * lib/stdlib.in.h: Likewise.
68409         * lib/string.in.h: Likewise.
68410         * lib/strings.in.h: Likewise.
68411         * lib/sys_file.in.h: Likewise.
68412         * lib/sys_ioctl.in.h: Likewise.
68413         * lib/sys_select.in.h: Likewise.
68414         * lib/sys_socket.in.h: Likewise.
68415         * lib/sys_stat.in.h: Likewise.
68416         * lib/sys_times.in.h: Likewise.
68417         * lib/sys_utsname.in.h: Likewise.
68418         * lib/unistd.in.h: Likewise.
68419         * lib/wchar.in.h: Likewise.
68421 2010-01-20  Bruno Haible  <bruno@clisp.org>
68423         Avoid duplicate -lm.
68424         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
68425         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
68426         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
68427         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
68428         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
68429         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
68430         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
68431         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
68432         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
68433         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
68434         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
68435         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
68436         Reported by Paolo Bonzini.
68438 2010-01-19  Bruno Haible  <bruno@clisp.org>
68440         langinfo, nl_langinfo: Relicense under LGPLv2+.
68441         * modules/langinfo (License): Change to LGPLv2+.
68442         * modules/nl_langinfo (License): Likewise.
68443         Patch by David Lutterkort <lutter@redhat.com>.
68445 2010-01-19  Bruno Haible  <bruno@clisp.org>
68447         Avoid compilation error with cc on OSF/1 5.1.
68448         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
68449         statement, not before.
68450         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68452 2010-01-18  Bruno Haible  <bruno@clisp.org>
68454         Avoid a link error due to the __printf__ symbol.
68455         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
68456         and 2.6.x.
68457         (__format__, __printf__): Remove definitions.
68458         * lib/argp-fmtstream.h: Likewise.
68459         * lib/argp.h: Likewise.
68460         * lib/error.h: Likewise.
68461         * lib/vasnprintf.h: Likewise.
68462         * lib/xprintf.h: Likewise.
68463         * lib/xvasprintf.h: Likewise.
68464         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68466 2010-01-18  Bruno Haible  <bruno@clisp.org>
68468         Tests for module 'tanl'.
68469         * modules/tanl-tests: New file.
68470         * tests/test-tanl.c: New file.
68472         Tests for module 'sqrtl'.
68473         * modules/sqrtl-tests: New file.
68474         * tests/test-sqrtl.c: New file.
68476         Tests for module 'sinl'.
68477         * modules/sinl-tests: New file.
68478         * tests/test-sinl.c: New file.
68480         Tests for module 'logl'.
68481         * modules/logl-tests: New file.
68482         * tests/test-logl.c: New file.
68484         Tests for module 'expl'.
68485         * modules/expl-tests: New file.
68486         * tests/test-expl.c: New file.
68488         Tests for module 'cosl'.
68489         * modules/cosl-tests: New file.
68490         * tests/test-cosl.c: New file.
68492         Tests for module 'atanl'.
68493         * modules/atanl-tests: New file.
68494         * tests/test-atanl.c: New file.
68496         Tests for module 'asinl'.
68497         * modules/asinl-tests: New file.
68498         * tests/test-asinl.c: New file.
68500         Tests for module 'acosl'.
68501         * modules/acosl-tests: New file.
68502         * tests/test-acosl.c: New file.
68504         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
68505         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
68506         tanl): Use the standard gnulib idiom.
68507         * lib/cosl.c: Don't include trigl.c and sincosl.c.
68508         * lib/sinl.c: Likewise.
68509         * lib/tanl.c: Don't include trigl.c.
68510         (kernel_tanl): Make static.
68511         * lib/sincosl.c: Include trigl.h first.
68512         * lib/trigl.c: Likewise.
68513         * m4/acosl.m4: New file.
68514         * m4/asinl.m4: New file.
68515         * m4/atanl.m4: New file.
68516         * m4/cosl.m4: New file.
68517         * m4/expl.m4: New file.
68518         * m4/logl.m4: New file.
68519         * m4/sinl.m4: New file.
68520         * m4/sqrtl.m4: New file.
68521         * m4/tanl.m4: New file.
68522         * m4/mathl.m4: Remove file.
68523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
68524         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
68525         Don't initialize GNULIB_MATHL.
68526         * modules/acosl: New file.
68527         * modules/asinl: New file.
68528         * modules/atanl: New file.
68529         * modules/cosl: New file.
68530         * modules/expl: New file.
68531         * modules/logl: New file.
68532         * modules/sinl: New file.
68533         * modules/sqrtl: New file.
68534         * modules/tanl: New file.
68535         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
68536         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
68537         substitute GNULIB_MATHL.
68538         * modules/mathl: Rewritten.
68539         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
68540         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
68541         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
68542         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
68543         * doc/posix-functions/expl.texi: Mention the 'expl' module.
68544         * doc/posix-functions/logl.texi: Mention the 'logl' module.
68545         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
68546         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
68547         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
68549 2010-01-18  Bruno Haible  <bruno@clisp.org>
68551         sqrt: Make gl_FUNC_SQRT requirable.
68552         * m4/sqrt.m4: New file.
68553         * modules/sqrt (Files): Add it.
68554         (configure.ac): Invoke gl_FUNC_SQRT.
68556 2010-01-18  Bruno Haible  <bruno@clisp.org>
68558         New modules for common <math.h> functions.
68559         * m4/mathfunc.m4: New file.
68560         * modules/acos: New file.
68561         * modules/asin: New file.
68562         * modules/atan: New file.
68563         * modules/atan2: New file.
68564         * modules/cbrt: New file.
68565         * modules/copysign: New file.
68566         * modules/cos: New file.
68567         * modules/cosh: New file.
68568         * modules/erf: New file.
68569         * modules/erfc: New file.
68570         * modules/exp: New file.
68571         * modules/fabs: New file.
68572         * modules/fmod: New file.
68573         * modules/hypot: New file.
68574         * modules/j0: New file.
68575         * modules/j1: New file.
68576         * modules/jn: New file.
68577         * modules/ldexp: New file.
68578         * modules/lgamma: New file.
68579         * modules/log: New file.
68580         * modules/log10: New file.
68581         * modules/log1p: New file.
68582         * modules/logb: New file.
68583         * modules/modf: New file.
68584         * modules/nextafter: New file.
68585         * modules/pow: New file.
68586         * modules/remainder: New file.
68587         * modules/rint: New file.
68588         * modules/sin: New file.
68589         * modules/sinh: New file.
68590         * modules/sqrt: New file.
68591         * modules/tan: New file.
68592         * modules/tanh: New file.
68593         * modules/y0: New file.
68594         * modules/y1: New file.
68595         * modules/yn: New file.
68596         * doc/posix-functions/acos.texi: Mention the 'acos' module.
68597         * doc/posix-functions/asin.texi: Mention the 'asin' module.
68598         * doc/posix-functions/atan.texi: Mention the 'atan' module.
68599         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
68600         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
68601         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
68602         * doc/posix-functions/cos.texi: Mention the 'cos' module.
68603         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
68604         * doc/posix-functions/erf.texi: Mention the 'erf' module.
68605         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
68606         * doc/posix-functions/exp.texi: Mention the 'exp' module.
68607         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
68608         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
68609         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
68610         * doc/posix-functions/j0.texi: Mention the 'j0' module.
68611         * doc/posix-functions/j1.texi: Mention the 'j1' module.
68612         * doc/posix-functions/jn.texi: Mention the 'jn' module.
68613         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
68614         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
68615         * doc/posix-functions/log.texi: Mention the 'log' module.
68616         * doc/posix-functions/log10.texi: Mention the 'log10' module.
68617         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
68618         * doc/posix-functions/logb.texi: Mention the 'logb' module.
68619         * doc/posix-functions/modf.texi: Mention the 'modf' module.
68620         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
68621         * doc/posix-functions/pow.texi: Mention the 'pow' module.
68622         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
68623         * doc/posix-functions/rint.texi: Mention the 'rint' module.
68624         * doc/posix-functions/sin.texi: Mention the 'sin' module.
68625         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
68626         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
68627         * doc/posix-functions/tan.texi: Mention the 'tan' module.
68628         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
68629         * doc/posix-functions/y0.texi: Mention the 'y0' module.
68630         * doc/posix-functions/y1.texi: Mention the 'y1' module.
68631         * doc/posix-functions/yn.texi: Mention the 'yn' module.
68633 2010-01-18  Jim Meyering  <meyering@redhat.com>
68635         ignore-value: relax license to LGPLv2+
68636         * modules/ignore-value (License): Relax to LGPLv2+.
68638         getdate: don't leak when TZ contains two or more '"'s
68639         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
68640         double quote in TZ after the first one.
68642         readtokens: do not leak internal token_lengths buffer
68643         * lib/readtokens.c (readtokens): Free the local, lengths,
68644         when the supplied "token_lengths" parameter is NULL.
68646 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68648         Fix a couple of missing LIBTHREAD link failures on AIX.
68649         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
68650         $(LIBTHREAD).
68651         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
68653         Link test-poll against INET_PTON_LIB.
68654         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
68655         for inet_pton on Solaris 10.
68657 2010-01-17  Bruno Haible  <bruno@clisp.org>
68659         unistdio/*-sprintf: Fix typo in module description.
68660         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
68661         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
68662         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
68663         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
68664         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
68665         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
68666         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
68667         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68669 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68671         gnulib-tool: fix filelist for AIX, HP-UX ksh.
68672         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
68673         variables in shell case patterns, for AIX and HP-UX ksh.
68675         Split large sed scripts, for HP-UX sed.
68676         * modules/stdio: Split sed scripts around 50 sed commands,
68677         to avoid HP-UX limit of 99 commands, in the near future.
68678         * modules/string: Likewise.
68679         * modules/unistd: Likewise.
68681         gnulib-tool: avoid writing in the current directory.
68682         * gnulib-tool (func_emit_lib_Makefile_am)
68683         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
68684         not in the current directory, so concurrent gnulib-tool
68685         instances do not interfere.
68687 2010-01-16  Jim Meyering  <meyering@redhat.com>
68689         doc: update users.txt
68690         * users.txt: Add grep.
68691         (diffutils, gzip): Update URLs.
68693 2010-01-12  Bruno Haible  <bruno@clisp.org>
68695         posix_spawn: Avoid test failure on Cygwin.
68696         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
68697         characters.
68698         Reported by Simon Josefsson.
68700 2010-01-12  Bruno Haible  <bruno@clisp.org>
68702         * tests/test-cond.c (main): When skipping the test, show the reason.
68704 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68706         * lib/striconv.c (str_cd_iconv): Avoid if before free.
68708 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68710         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
68711         VC_LIST_ALWAYS_EXCLUDE_REGEX.
68713 2010-01-12  Eric Blake  <ebb9@byu.net>
68715         build: guarantee AS_VAR_IF
68716         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
68717         (gl_AS_VAR_IF): Move...
68718         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
68719         Reported by Simon Josefsson.
68721 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68723         * lib/stdio.in.h: Fix typo.
68725 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68727         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
68728         libgpg-error.
68730 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68732         * tests/test-xalloc-die.sh: Use $EXEEXT.
68734 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68735             Bruno Haible  <bruno@clisp.org>
68737         getlogin, getlogin_r: Avoid test failure.
68738         * tests/test-getlogin.c: Include <stdio.h>.
68739         (main): Skip the test when the function fails because stdin is not a
68740         tty.
68741         * tests/test-getlogin_r.c: Include <stdio.h>.
68742         (main): Skip the test when the function fails because stdin is not a
68743         tty.
68745 2010-01-11  Eric Blake  <ebb9@byu.net>
68747         tests: avoid more large file warnings
68748         * tests/test-fflush.c: Avoid warning about ftell use.
68749         * tests/test-fseek.c: Avoid warning about fseek use.
68751 2010-01-10  Bruno Haible  <bruno@clisp.org>
68753         nproc: Work better on Linux when /proc and /sys are not mounted.
68754         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
68755         as lower bound when, on glibc/Linux systems,
68756         sysconf (_SC_NPROCESSORS_CONF) returns 1.
68757         Suggested by Pádraig Brady <P@draigbrady.com>.
68758         Reported by Dmitry V. Levin <ldv@altlinux.org>.
68760         nproc: Refactor.
68761         * lib/nproc.c (num_processors_via_affinity_mask): New function,
68762         extracted from num_processors.
68763         (num_processors): Call it.
68765 2010-01-11  Jim Meyering  <meyering@redhat.com>
68767         utimecmp: avoid new warning from upcoming gcc-4.5.0
68768         * lib/utimecmp.c (BILLION): Define using #define rather than an
68769         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
68771 2010-01-11  Eric Blake  <ebb9@byu.net>
68773         math: add portability warnings for classification macros
68774         * modules/math (Depends-on): Add warn-on-use.
68775         (Makefile.am): Provide new substitutions.
68776         * m4/math_h.m4 (gl_MATH_H): Require inline.
68777         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
68778         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
68779         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
68780         implement warnings.
68782         unistd: warn on use of environ without module
68783         * modules/unistd (Depends-on): Add warn-on-use.
68784         (Makefile.am): Provide new substitutions.
68785         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
68786         * lib/unistd.in.h (environ): Wrap with a warning helper function.
68788         stdio: warn on suspicious uses
68789         * modules/stdio (Depends-on): Add warn-on-use.
68790         (Makefile.am): Provide new substitutions.
68791         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
68792         fseeko.
68793         * lib/stdio.in.h (gets): Always warn on use.
68794         (fseek, ftell): Adjust when warnings are issued, and honor
68795         _GL_NO_LARGE_FILES as a way to silence the warning.
68796         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
68797         any warning about large file offsets.
68798         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
68799         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
68800         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
68801         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
68802         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
68803         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
68804         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
68805         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
68807         warn-on-use: new module
68808         * modules/warn-on-use: New file.
68809         * build-aux/warn-on-use.h: Likewise.
68810         * m4/warn-on-use.m4: Likewise.
68811         * MODULES.html.sh (Support for building): Mention it.
68813 2010-01-10  Bruno Haible  <bruno@clisp.org>
68815         Tests for module 'unistr/u32-strdup'.
68816         * modules/unistr/u32-strdup-tests: New file.
68817         * tests/unistr/test-u32-strdup.c: New file.
68819         Tests for module 'unistr/u16-strdup'.
68820         * modules/unistr/u16-strdup-tests: New file.
68821         * tests/unistr/test-u16-strdup.c: New file.
68823         Tests for module 'unistr/u8-strdup'.
68824         * modules/unistr/u8-strdup-tests: New file.
68825         * tests/unistr/test-u8-strdup.c: New file.
68826         * tests/unistr/test-strdup.h: New file.
68828         Tests for module 'unistr/u32-strncmp'.
68829         * modules/unistr/u32-strncmp-tests: New file.
68830         * tests/unistr/test-u32-strncmp.c: New file.
68832         Tests for module 'unistr/u16-strncmp'.
68833         * modules/unistr/u16-strncmp-tests: New file.
68834         * tests/unistr/test-u16-strncmp.c: New file.
68836         Tests for module 'unistr/u8-strncmp'.
68837         * modules/unistr/u8-strncmp-tests: New file.
68838         * tests/unistr/test-u8-strncmp.c: New file.
68839         * tests/unistr/test-strncmp.h: New file.
68841         Tests for module 'unistr/u32-strcoll'.
68842         * modules/unistr/u32-strcoll-tests: New file.
68843         * tests/unistr/test-u32-strcoll.c: New file.
68845         Tests for module 'unistr/u16-strcoll'.
68846         * modules/unistr/u16-strcoll-tests: New file.
68847         * tests/unistr/test-u16-strcoll.c: New file.
68849         Tests for module 'unistr/u8-strcoll'.
68850         * modules/unistr/u8-strcoll-tests: New file.
68851         * tests/unistr/test-u8-strcoll.c: New file.
68853         Tests for module 'unistr/u32-strcmp'.
68854         * modules/unistr/u32-strcmp-tests: New file.
68855         * tests/unistr/test-u32-strcmp.c: New file.
68856         * tests/unistr/test-u32-strcmp.h: New file.
68858         Tests for module 'unistr/u16-strcmp'.
68859         * modules/unistr/u16-strcmp-tests: New file.
68860         * tests/unistr/test-u16-strcmp.c: New file.
68861         * tests/unistr/test-u16-strcmp.h: New file.
68863         Tests for module 'unistr/u8-strcmp'.
68864         * modules/unistr/u8-strcmp-tests: New file.
68865         * tests/unistr/test-u8-strcmp.c: New file.
68866         * tests/unistr/test-u8-strcmp.h: New file.
68867         * tests/unistr/test-strcmp.h: New file.
68869         Tests for module 'unistr/u32-strncat'.
68870         * modules/unistr/u32-strncat-tests: New file.
68871         * tests/unistr/test-u32-strncat.c: New file.
68873         Tests for module 'unistr/u16-strncat'.
68874         * modules/unistr/u16-strncat-tests: New file.
68875         * tests/unistr/test-u16-strncat.c: New file.
68877         Tests for module 'unistr/u8-strncat'.
68878         * modules/unistr/u8-strncat-tests: New file.
68879         * tests/unistr/test-u8-strncat.c: New file.
68880         * tests/unistr/test-strncat.h: New file.
68882         Tests for module 'unistr/u32-strcat'.
68883         * modules/unistr/u32-strcat-tests: New file.
68884         * tests/unistr/test-u32-strcat.c: New file.
68886         Tests for module 'unistr/u16-strcat'.
68887         * modules/unistr/u16-strcat-tests: New file.
68888         * tests/unistr/test-u16-strcat.c: New file.
68890         Tests for module 'unistr/u8-strcat'.
68891         * modules/unistr/u8-strcat-tests: New file.
68892         * tests/unistr/test-u8-strcat.c: New file.
68893         * tests/unistr/test-strcat.h: New file.
68895         Tests for module 'unistr/u32-stpncpy'.
68896         * modules/unistr/u32-stpncpy-tests: New file.
68897         * tests/unistr/test-u32-stpncpy.c: New file.
68899         Tests for module 'unistr/u16-stpncpy'.
68900         * modules/unistr/u16-stpncpy-tests: New file.
68901         * tests/unistr/test-u16-stpncpy.c: New file.
68903         Tests for module 'unistr/u8-stpncpy'.
68904         * modules/unistr/u8-stpncpy-tests: New file.
68905         * tests/unistr/test-u8-stpncpy.c: New file.
68906         * tests/unistr/test-stpncpy.h: New file.
68908         Tests for module 'unistr/u32-strncpy'.
68909         * modules/unistr/u32-strncpy-tests: New file.
68910         * tests/unistr/test-u32-strncpy.c: New file.
68912         Tests for module 'unistr/u16-strncpy'.
68913         * modules/unistr/u16-strncpy-tests: New file.
68914         * tests/unistr/test-u16-strncpy.c: New file.
68916         Tests for module 'unistr/u8-strncpy'.
68917         * modules/unistr/u8-strncpy-tests: New file.
68918         * tests/unistr/test-u8-strncpy.c: New file.
68919         * tests/unistr/test-strncpy.h: New file.
68921         Tests for module 'unistr/u32-stpcpy'.
68922         * modules/unistr/u32-stpcpy-tests: New file.
68923         * tests/unistr/test-u32-stpcpy.c: New file.
68925         Tests for module 'unistr/u16-stpcpy'.
68926         * modules/unistr/u16-stpcpy-tests: New file.
68927         * tests/unistr/test-u16-stpcpy.c: New file.
68929         Tests for module 'unistr/u8-stpcpy'.
68930         * modules/unistr/u8-stpcpy-tests: New file.
68931         * tests/unistr/test-u8-stpcpy.c: New file.
68932         * tests/unistr/test-stpcpy.h: New file.
68934         Tests for module 'unistr/u32-strcpy'.
68935         * modules/unistr/u32-strcpy-tests: New file.
68936         * tests/unistr/test-u32-strcpy.c: New file.
68938         Tests for module 'unistr/u16-strcpy'.
68939         * modules/unistr/u16-strcpy-tests: New file.
68940         * tests/unistr/test-u16-strcpy.c: New file.
68942         Tests for module 'unistr/u8-strcpy'.
68943         * modules/unistr/u8-strcpy-tests: New file.
68944         * tests/unistr/test-u8-strcpy.c: New file.
68945         * tests/unistr/test-strcpy.h: New file.
68947         Tests for module 'unistr/u32-strnlen'.
68948         * modules/unistr/u32-strnlen-tests: New file.
68949         * tests/unistr/test-u32-strnlen.c: New file.
68951         Tests for module 'unistr/u16-strnlen'.
68952         * modules/unistr/u16-strnlen-tests: New file.
68953         * tests/unistr/test-u16-strnlen.c: New file.
68955         Tests for module 'unistr/u8-strnlen'.
68956         * modules/unistr/u8-strnlen-tests: New file.
68957         * tests/unistr/test-u8-strnlen.c: New file.
68958         * tests/unistr/test-strnlen.h: New file.
68960         Tests for module 'unistr/u32-strlen'.
68961         * modules/unistr/u32-strlen-tests: New file.
68962         * tests/unistr/test-u32-strlen.c: New file.
68964         Tests for module 'unistr/u16-strlen'.
68965         * modules/unistr/u16-strlen-tests: New file.
68966         * tests/unistr/test-u16-strlen.c: New file.
68968         Tests for module 'unistr/u8-strlen'.
68969         * modules/unistr/u8-strlen-tests: New file.
68970         * tests/unistr/test-u8-strlen.c: New file.
68972         Tests for module 'unistr/u32-prev'.
68973         * modules/unistr/u32-prev-tests: New file.
68974         * tests/unistr/test-u32-prev.c: New file.
68976         Tests for module 'unistr/u16-prev'.
68977         * modules/unistr/u16-prev-tests: New file.
68978         * tests/unistr/test-u16-prev.c: New file.
68980         Tests for module 'unistr/u8-prev'.
68981         * modules/unistr/u8-prev-tests: New file.
68982         * tests/unistr/test-u8-prev.c: New file.
68984         Tests for module 'unistr/u32-next'.
68985         * modules/unistr/u32-next-tests: New file.
68986         * tests/unistr/test-u32-next.c: New file.
68988         Tests for module 'unistr/u16-next'.
68989         * modules/unistr/u16-next-tests: New file.
68990         * tests/unistr/test-u16-next.c: New file.
68992         Tests for module 'unistr/u8-next'.
68993         * modules/unistr/u8-next-tests: New file.
68994         * tests/unistr/test-u8-next.c: New file.
68996         Tests for module 'unistr/u32-strmbtouc'.
68997         * modules/unistr/u32-strmbtouc-tests: New file.
68998         * tests/unistr/test-u32-strmbtouc.c: New file.
69000         Tests for module 'unistr/u16-strmbtouc'.
69001         * modules/unistr/u16-strmbtouc-tests: New file.
69002         * tests/unistr/test-u16-strmbtouc.c: New file.
69004         Tests for module 'unistr/u8-strmbtouc'.
69005         * modules/unistr/u8-strmbtouc-tests: New file.
69006         * tests/unistr/test-u8-strmbtouc.c: New file.
69008         Tests for module 'unistr/u32-strmblen'.
69009         * modules/unistr/u32-strmblen-tests: New file.
69010         * tests/unistr/test-u32-strmblen.c: New file.
69012         Tests for module 'unistr/u16-strmblen'.
69013         * modules/unistr/u16-strmblen-tests: New file.
69014         * tests/unistr/test-u16-strmblen.c: New file.
69016         Tests for module 'unistr/u8-strmblen'.
69017         * modules/unistr/u8-strmblen-tests: New file.
69018         * tests/unistr/test-u8-strmblen.c: New file.
69020         Tests for module 'unistr/u32-cpy-alloc'.
69021         * modules/unistr/u32-cpy-alloc-tests: New file.
69022         * tests/unistr/test-u32-cpy-alloc.c: New file.
69024         Tests for module 'unistr/u16-cpy-alloc'.
69025         * modules/unistr/u16-cpy-alloc-tests: New file.
69026         * tests/unistr/test-u16-cpy-alloc.c: New file.
69028         Tests for module 'unistr/u8-cpy-alloc'.
69029         * modules/unistr/u8-cpy-alloc-tests: New file.
69030         * tests/unistr/test-u8-cpy-alloc.c: New file.
69031         * tests/unistr/test-cpy-alloc.h: New file.
69033         Tests for module 'unistr/u32-mbsnlen'.
69034         * modules/unistr/u32-mbsnlen-tests: New file.
69035         * tests/unistr/test-u32-mbsnlen.c: New file.
69037         Tests for module 'unistr/u16-mbsnlen'.
69038         * modules/unistr/u16-mbsnlen-tests: New file.
69039         * tests/unistr/test-u16-mbsnlen.c: New file.
69041         Tests for module 'unistr/u8-mbsnlen'.
69042         * modules/unistr/u8-mbsnlen-tests: New file.
69043         * tests/unistr/test-u8-mbsnlen.c: New file.
69045         Tests for module 'unistr/u32-chr'.
69046         * modules/unistr/u32-chr-tests: New file.
69047         * tests/unistr/test-u32-chr.c: New file.
69049         Tests for module 'unistr/u16-chr'.
69050         * modules/unistr/u16-chr-tests: New file.
69051         * tests/unistr/test-u16-chr.c: New file.
69053         Tests for module 'unistr/u8-chr'.
69054         * modules/unistr/u8-chr-tests: New file.
69055         * tests/unistr/test-u8-chr.c: New file.
69056         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
69058         Tests for module 'unistr/u32-cmp2'.
69059         * modules/unistr/u32-cmp2-tests: New file.
69060         * tests/unistr/test-u32-cmp2.c: New file.
69062         Tests for module 'unistr/u16-cmp2'.
69063         * modules/unistr/u16-cmp2-tests: New file.
69064         * tests/unistr/test-u16-cmp2.c: New file.
69066         Tests for module 'unistr/u8-cmp2'.
69067         * modules/unistr/u8-cmp2-tests: New file.
69068         * tests/unistr/test-u8-cmp2.c: New file.
69069         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
69071         Tests for module 'unistr/u32-cmp'.
69072         * modules/unistr/u32-cmp-tests: New file.
69073         * tests/unistr/test-u32-cmp.c: New file.
69075         Tests for module 'unistr/u16-cmp'.
69076         * modules/unistr/u16-cmp-tests: New file.
69077         * tests/unistr/test-u16-cmp.c: New file.
69079         Tests for module 'unistr/u8-cmp'.
69080         * modules/unistr/u8-cmp-tests: New file.
69081         * tests/unistr/test-u8-cmp.c: New file.
69082         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
69084         Tests for module 'unistr/u32-set'.
69085         * modules/unistr/u32-set-tests: New file.
69086         * tests/unistr/test-u32-set.c: New file.
69088         Tests for module 'unistr/u16-set'.
69089         * modules/unistr/u16-set-tests: New file.
69090         * tests/unistr/test-u16-set.c: New file.
69092         Tests for module 'unistr/u8-set'.
69093         * modules/unistr/u8-set-tests: New file.
69094         * tests/unistr/test-u8-set.c: New file.
69095         * tests/unistr/test-set.h: New file.
69097         Tests for module 'unistr/u32-move'.
69098         * modules/unistr/u32-move-tests: New file.
69099         * tests/unistr/test-u32-move.c: New file.
69101         Tests for module 'unistr/u16-move'.
69102         * modules/unistr/u16-move-tests: New file.
69103         * tests/unistr/test-u16-move.c: New file.
69105         Tests for module 'unistr/u8-move'.
69106         * modules/unistr/u8-move-tests: New file.
69107         * tests/unistr/test-u8-move.c: New file.
69108         * tests/unistr/test-move.h: New file.
69110         Tests for module 'unistr/u32-cpy'.
69111         * modules/unistr/u32-cpy-tests: New file.
69112         * tests/unistr/test-u32-cpy.c: New file.
69114         Tests for module 'unistr/u16-cpy'.
69115         * modules/unistr/u16-cpy-tests: New file.
69116         * tests/unistr/test-u16-cpy.c: New file.
69118         Tests for module 'unistr/u8-cpy'.
69119         * modules/unistr/u8-cpy-tests: New file.
69120         * tests/unistr/test-u8-cpy.c: New file.
69121         * tests/unistr/test-cpy.h: New file.
69123 2010-01-09  Bruno Haible  <bruno@clisp.org>
69125         Tests for module 'unistr/u32-uctomb'.
69126         * modules/unistr/u32-uctomb-tests: New file.
69127         * tests/unistr/test-u32-uctomb.c: New file.
69129         Tests for module 'unistr/u16-uctomb'.
69130         * modules/unistr/u16-uctomb-tests: New file.
69131         * tests/unistr/test-u16-uctomb.c: New file.
69133         Tests for module 'unistr/u8-uctomb'.
69134         * modules/unistr/u8-uctomb-tests: New file.
69135         * tests/unistr/test-u8-uctomb.c: New file.
69137         Tests for module 'unistr/u32-mbtoucr'.
69138         * modules/unistr/u32-mbtoucr-tests: New file.
69139         * tests/unistr/test-u32-mbtoucr.c: New file.
69141         Tests for module 'unistr/u16-mbtoucr'.
69142         * modules/unistr/u16-mbtoucr-tests: New file.
69143         * tests/unistr/test-u16-mbtoucr.c: New file.
69145         Tests for module 'unistr/u8-mbtoucr'.
69146         * modules/unistr/u8-mbtoucr-tests: New file.
69147         * tests/unistr/test-u8-mbtoucr.c: New file.
69149         Tests for module 'unistr/u32-mbtouc'.
69150         * modules/unistr/u32-mbtouc-tests: New file.
69151         * tests/unistr/test-u32-mbtouc.c: New file.
69153         Tests for module 'unistr/u16-mbtouc'.
69154         * modules/unistr/u16-mbtouc-tests: New file.
69155         * tests/unistr/test-u16-mbtouc.c: New file.
69157         Tests for module 'unistr/u8-mbtouc'.
69158         * modules/unistr/u8-mbtouc-tests: New file.
69159         * tests/unistr/test-u8-mbtouc.c: New file.
69161         Tests for module 'unistr/u32-mbtouc-unsafe'.
69162         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
69163         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
69164         * tests/unistr/test-u32-mbtouc.h: New file.
69166         Tests for module 'unistr/u16-mbtouc-unsafe'.
69167         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
69168         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
69169         * tests/unistr/test-u16-mbtouc.h: New file.
69171         Tests for module 'unistr/u8-mbtouc-unsafe'.
69172         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
69173         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
69174         * tests/unistr/test-u8-mbtouc.h: New file.
69176         Tests for module 'unistr/u32-mblen'.
69177         * modules/unistr/u32-mblen-tests: New file.
69178         * tests/unistr/test-u32-mblen.c: New file.
69180         Tests for module 'unistr/u16-mblen'.
69181         * modules/unistr/u16-mblen-tests: New file.
69182         * tests/unistr/test-u16-mblen.c: New file.
69184         Tests for module 'unistr/u8-mblen'.
69185         * modules/unistr/u8-mblen-tests: New file.
69186         * tests/unistr/test-u8-mblen.c: New file.
69188         Tests for module 'unistr/u32-to-u16'.
69189         * modules/unistr/u32-to-u16-tests: New file.
69190         * tests/unistr/test-u32-to-u16.c: New file.
69192         Tests for module 'unistr/u32-to-u8'.
69193         * modules/unistr/u32-to-u8-tests: New file.
69194         * tests/unistr/test-u32-to-u8.c: New file.
69196         Tests for module 'unistr/u16-to-u32'.
69197         * modules/unistr/u16-to-u32-tests: New file.
69198         * tests/unistr/test-u16-to-u32.c: New file.
69200         Tests for module 'unistr/u16-to-u8'.
69201         * modules/unistr/u16-to-u8-tests: New file.
69202         * tests/unistr/test-u16-to-u8.c: New file.
69204         Tests for module 'unistr/u8-to-u32'.
69205         * modules/unistr/u8-to-u32-tests: New file.
69206         * tests/unistr/test-u8-to-u32.c: New file.
69208         Tests for module 'unistr/u8-to-u16'.
69209         * modules/unistr/u8-to-u16-tests: New file.
69210         * tests/unistr/test-u8-to-u16.c: New file.
69212         Tests for module 'unistr/u32-check'.
69213         * modules/unistr/u32-check-tests: New file.
69214         * tests/unistr/test-u32-check.c: New file.
69216         Tests for module 'unistr/u16-check'.
69217         * modules/unistr/u16-check-tests: New file.
69218         * tests/unistr/test-u16-check.c: New file.
69220         Tests for module 'unistr/u8-check'.
69221         * modules/unistr/u8-check-tests: New file.
69222         * tests/unistr/test-u8-check.c: New file.
69224         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
69225         (category_equals): New function.
69226         (main): Add more tests.
69227         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
69229         * tests/unictype/test-bidi_byname.c (main): Add more tests.
69231 2010-01-10  Bruno Haible  <bruno@clisp.org>
69233         unistr/u*-strcoll: Try harder to distinguish different strings.
69234         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
69235         compare s1 and s2 to see if they are different.
69237 2010-01-10  Bruno Haible  <bruno@clisp.org>
69239         unistr/u*-stpncpy: Fix the return value.
69240         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
69241         description of the return value consistent with stpncpy in glibc.
69242         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
69243         written non-NUL unit.
69245 2010-01-10  Bruno Haible  <bruno@clisp.org>
69247         unistr/u*-next: Add missing dependencies.
69248         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
69249         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
69250         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
69252 2010-01-10  Bruno Haible  <bruno@clisp.org>
69254         unistr/u8-mbsnlen: Fix return value for incomplete character.
69255         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
69256         u8_mblen.
69257         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
69258         Remove unistr/u8-mblen.
69259         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
69260         u16_mblen.
69261         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
69262         Remove unistr/u16-mblen.
69264 2010-01-10  Bruno Haible  <bruno@clisp.org>
69266         wchar: Fix compilation error when <wchar.h> is used from coreutils.
69267         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
69268         Reported by Brian Gough <bjg@gnu.org> and
69269         Chris Clayton <chris2553@googlemail.com> via
69270         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
69272 2010-01-09  Bruno Haible  <bruno@clisp.org>
69274         unistr/u16-to-u32: Reject invalid input.
69275         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
69276         u16_mbtouc.
69277         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
69278         Remove unistr/u16-mbtouc.
69280         unistr/u16-to-u8: Reject invalid input.
69281         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
69282         u16_mbtouc.
69283         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
69284         Remove unistr/u16-mbtouc.
69286         unistr/u8-to-u32: Reject invalid input.
69287         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
69288         u8_mbtouc.
69289         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
69290         Remove unistr/u8-mbtouc.
69292         unistr/u8-to-u16: Reject invalid input.
69293         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
69294         u8_mbtouc.
69295         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
69296         Remove unistr/u8-mbtouc.
69298 2010-01-09  Bruno Haible  <bruno@clisp.org>
69300         Tests for module 'getlogin'.
69301         * modules/getlogin-tests: New file.
69302         * tests/test-getlogin.c: New file.
69304         New module 'getlogin'.
69305         * lib/unistd.in.h (getlogin): New declaration.
69306         * lib/getlogin.c: New file.
69307         * m4/getlogin.m4: New file.
69308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
69309         HAVE_GETLOGIN.
69310         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
69311         HAVE_GETLOGIN.
69312         * modules/getlogin: New file.
69313         * doc/posix-functions/getlogin.texi: Mention the new module.
69314         Reported by John W. Eaton <jwe@gnu.org>.
69316 2010-01-09  Bruno Haible  <bruno@clisp.org>
69318         getlogin_r: Support for native Windows.
69319         * lib/getlogin_r.c: Include <windows.h>
69320         (getlogin_r): Implement for native Windows.
69321         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
69322         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
69323         via John W. Eaton <jwe@gnu.org>.
69325 2010-01-09  Bruno Haible  <bruno@clisp.org>
69327         getlogin_r: Small fixes.
69328         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
69329         succeeds.
69330         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
69331         before testing whether getlogin_r is declared. No need to set
69332         HAVE_DECL_GETLOGIN_R to 1.
69333         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
69335 2010-01-09  Bruno Haible  <bruno@clisp.org>
69337         * lib/unistd.in.h (getlogin_r): Add comment.
69339 2010-01-09  Bruno Haible  <bruno@clisp.org>
69341         Tests for module 'getlogin_r'.
69342         * modules/getlogin_r-tests: New file.
69343         * tests/test-getlogin_r.c: New file.
69345 2010-01-09  Jim Meyering  <meyering@redhat.com>
69347         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
69348         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
69349         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
69351 2010-01-08  Simon Josefsson  <simon@josefsson.org>
69353         * lib/dup2.c (rpl_dup2): Improve comment.
69355 2010-01-08  Eric Blake  <ebb9@byu.net>
69357         maint.mk: allow packages to add makefile @@ exceptions
69358         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
69359         (sc_makefile_check): Rename...
69360         (sc_makefile_at_at_check): ...to this, and use hook.
69362         dup2: work around mingw bug
69363         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
69364         Reported by Simon Josefsson.
69366 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
69368         glob: Fix C++ compilation.
69369         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
69370         C++.
69372 2010-01-07  Bruno Haible  <bruno@clisp.org>
69374         Fix indentation of wctype.in.h, broken since 2007-01-06.
69375         * lib/wctype.in.h: Fix indentation of preprocessor directives.
69377 2010-01-07  Bruno Haible  <bruno@clisp.org>
69379         mbslen: Avoid collision with system function.
69380         * lib/string.in.h [MirBSD]: Include <wchar.h>.
69381         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
69382         * m4/mbslen.m4: New file.
69383         * modules/mbslen (Files): Add it.
69384         (configure.ac): Invoke gl_MBSLEN.
69385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
69386         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
69387         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
69388         via Ian Beckwith <ianb@erislabs.net>.
69390 2010-01-07  Bruno Haible  <bruno@clisp.org>
69392         dirent: Document the last fix.
69393         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
69395 2010-01-07  Bruno Haible  <bruno@clisp.org>
69397         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
69398         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
69399         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
69400         va_list are defined.
69401         * doc/posix-headers/stdio.texi: Document the bug of missing types.
69402         Reported by Eric Blake.
69404 2010-01-07  Bruno Haible  <bruno@clisp.org>
69406         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
69407         * modules/xlist (Depends-on): Add 'list',
69408         * modules/xoset (Depends-on): Add 'oset'.
69409         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69411 2010-01-07  Bruno Haible  <bruno@clisp.org>
69413         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
69414         * doc/posix-functions/strncasecmp.texi: Likewise.
69416 2010-01-07  Bruno Haible  <bruno@clisp.org>
69418         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
69420 2010-01-07  John W. Eaton  <jwe@octave.org>
69422         wctype: allow C++ use
69423         * lib/wctype.in.h: Add extern "C" block for C++.
69425 2010-01-06  Eric Blake  <ebb9@byu.net>
69427         maint.mk: detect incorrect GFDL usage
69428         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
69430 2010-01-06  Jim Meyering  <meyering@redhat.com>
69431         and Eric Blake  <ebb9@byu.net>
69433         maint.mk: ignore multi-line copyright in NEWS
69434         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
69436 2010-01-06  Eric Blake  <ebb9@byu.net>
69438         select: add missing dependency
69439         * modules/select-tests (Depends-on): Move sockets dependency...
69440         * modules/select (Depends-on): ...here.
69441         Reported by Ian Beckwith.
69443         doc: regenerate INSTALL
69444         * doc/INSTALL: Reflect recent autoconf update.
69445         * doc/INSTALL.ISO: Likewise.
69446         * doc/INSTALL.UTF-8: Likewise.
69448         pread: fix compilation on glibc
69449         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
69450         Reported by Ralf Wildenhues.
69452         dirent: fix test failure
69453         * lib/dirent.in.h (includes): Guarantee ino_t.
69454         Reported by Ralf Wildenhues.
69456 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
69458         linkat, renameat: avoid bad free
69459         * lib/at-func2.c (at_func2): Fix typo.
69460         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
69462 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69464         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
69465         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
69466         to avoid failure of symlink test later.
69468 2010-01-06  Eric Blake  <ebb9@byu.net>
69470         stdio, unistd: guarantee ssize_t
69471         * lib/unistd.in.h (includes): Ensure that types required by POSIX
69472         2008 are exposed when needed.
69473         * lib/stdio.in.h (includes): Likewise.
69474         Reported by Ralf Wildenhues.
69476 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
69478         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
69479         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
69480         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
69482 2010-01-06  Jim Meyering  <meyering@redhat.com>
69484         readtokens: this module *does* require xalloc.h
69485         It uses only functions that were omitted by the old syntax-check rule.
69486         * lib/readtokens.c: Include "xalloc.h" once again.
69487         * modules/readtokens (Depends-on): Add xalloc.
69488         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
69490 2010-01-05  Eric Blake  <ebb9@byu.net>
69492         maint: support 'make announcement' from a VPATH build
69493         * top/maint.mk (announcement): Look for correct NEWS file.
69495 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
69497         utimens (fdutimens): ignore a negative FD, per contract
69498         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
69499         when we have a valid file descriptor.  Otherwise, using a brand
69500         new glibc (with just-patched futimens that now fails with EBADF)
69501         would cause this function to fail with ENOSYS.
69502         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
69503         See also http://bugzilla.redhat.com/552320.
69505 2010-01-05  Eric Blake  <ebb9@byu.net>
69507         strcase: document what it provides
69508         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
69509         gnulib module.
69510         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
69511         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
69513 2010-01-05  Jim Meyering  <meyering@redhat.com>
69515         maint: remove useless inclusions of "xalloc.h"
69516         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
69517         * lib/readtokens.c: Likewise.
69518         * lib/same.c: Likewise.
69519         * modules/getloadavg (Depends-on): Remove xalloc.
69520         * modules/readtokens: Likewise.
69521         * modules/same: Likewise.
69523         maint.mk: include 4 more function names in alloca.h-checking regexp
69524         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
69525         regexp.  Before, we would give a false-positive (saying alloca.h
69526         is included unnecessarily) when the only uses involved omitted symbols.
69528         xalloc.h: use consistent formatting
69529         * lib/xalloc.h: Move declarations to start in the first column.
69531 2010-01-05  Eric Blake  <ebb9@byu.net>
69533         mkdir: avoid xalloc
69534         * lib/mkdir.c (includes): Drop unused header.
69535         Reported by John W. Eaton.
69537 2010-01-04  Jim Meyering  <meyering@redhat.com>
69539         nl_langinfo: avoid configure-time syntax error
69540         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
69541         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
69542         the empty string.  Don't let that provoke a shell syntax error.
69544         regcomp, regexec, fnmatch: avoid array bounds read error
69545         * lib/regcomp.c (build_equiv_class): From glibc:
69546         Use only the low 24 bits of a findidx return value as an index
69547         into the weights array.  Patch by Ulrich Drepper:
69548         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
69549         * lib/regexec.c (check_node_accept_bytes): Likewise.
69550         * lib/fnmatch_loop.c (FCT): Likewise.
69552         regcomp: skip collseq lookup when there are no rules
69553         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
69554         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
69556         regcomp: recognize ill-formed { } expressions
69557         * lib/regcomp.c (parse_dup_op): From glibc:
69558         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
69560         regcomp: fix typo in comment
69561         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
69562         s/satisfy/satisfies/.
69564         regcomp: sync from glibc: remove dead store
69565         * lib/regcomp.c (duplicate_node_closure): Remove useless
69566         search_duplicated_node call and dead store.
69568         regcomp: sync from glibc; always use nl_langinfo
69569         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
69570         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
69571         * modules/regex (Depends-on): Add nl_langinfo.
69573 2010-01-04  Eric Blake  <ebb9@byu.net>
69575         fdopendir: fix configure test
69576         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
69578 2010-01-01  Bruno Haible  <bruno@clisp.org>
69580         wchar: Remove unused configure check.
69581         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
69583 2010-01-01  Eric Blake  <ebb9@byu.net>
69585         headers: make check of system header explicit
69586         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
69587         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
69588         ourselves.
69589         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69590         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69591         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69592         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
69593         internals.
69594         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
69595         missing.
69596         Suggested by Bruno Haible.
69598 2010-01-01  Jim Meyering  <meyering@redhat.com>
69600         ChangeLog: tweak to eliminate unnecessary copyright line
69601         * ChangeLog: Remove a copyright line that was mistakenly updated
69602         by today's update-copyright run.  Reported by Eric Blake.
69604         test-update-copyright: don't let envvar setting cause test failure
69605         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
69607 2010-01-01  Bruno Haible  <bruno@clisp.org>
69609         localename: Avoid gcc warning.
69610         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
69611         function if it is not used.
69613 2010-01-01  Jim Meyering  <meyering@redhat.com>
69615         update nearly all FSF copyright year lists to include 2010
69616         Use the same procedure as for 2009, outlined in
69617         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
69619         version-etc: set COPYRIGHT_YEAR to 2010
69620         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
69622 2009-12-31  Eric Blake  <ebb9@byu.net>
69624         doc: correct availability of cygwin 1.5.x getopt
69625         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
69626         variables.
69627         * doc/posix-functions/opterr.texi (opterr): Likewise.
69628         * doc/posix-functions/optind.texi (optind): Likewise.
69629         * doc/posix-functions/optopt.texi (optopt): Likewise.
69630         * doc/posix-functions/tzname.texi (tzname): Likewise.
69632         openat: update maintainer
69633         * modules/openat (Maintainer): Add myself.
69635         utimens: avoid shadowing warning
69636         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
69637         buffers into one, to avoid shadowing, as well as avoiding a
69638         redundant stat.
69639         Reported by Jim Meyering.
69641         test-dup2: avoid compiler warning
69642         * tests/test-dup2.c (is_inheritable): Only define if used.
69644 2010-01-01  Bruno Haible  <bruno@clisp.org>
69646         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
69647         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
69648         defined, use wctomb instead of wcrtomb.
69650 2010-01-01  Bruno Haible  <bruno@clisp.org>
69652         iconv: Reject native Solaris iconv.
69653         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
69654         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
69656 2009-12-31  Bruno Haible  <bruno@clisp.org>
69658         * tests/test-signal.c (main): Remove test of 'SIG'.
69660 2009-12-31  Bruno Haible  <bruno@clisp.org>
69662         spawn: Fix incomplete fix.
69663         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
69664         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
69665         warnings for GNULIB_POSIXCHECK again.
69666         Reported by Eric Blake.
69668 2009-12-31  Bruno Haible  <bruno@clisp.org>
69670         Avoid namespace pollution on glibc systems.
69671         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
69672         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
69673         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
69674         glibc systems.
69676 2009-12-31  Bruno Haible  <bruno@clisp.org>
69678         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
69679         (gl_REPLACE_WCHAR_H): Turn into a no-op.
69680         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
69681         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
69682         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
69683         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
69684         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
69686 2009-12-31  Bruno Haible  <bruno@clisp.org>
69688         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
69689         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
69690         afterwards.
69692 2009-12-31  Bruno Haible  <bruno@clisp.org>
69694         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
69695         SYS_UTSNAME_H.
69697 2009-12-31  Bruno Haible  <bruno@clisp.org>
69699         spawn: Fix misapplied patch.
69700         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
69701         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
69702         warnings for GNULIB_POSIXCHECK.
69704 2009-12-31  Bruno Haible  <bruno@clisp.org>
69706         times: Update after sys_times changed.
69707         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
69708         * modules/times (Files): Add it.
69709         (configure.ac): Invoke gl_FUNC_TIMES.
69711 2009-12-31  Bruno Haible  <bruno@clisp.org>
69713         Use AC_C_INLINE where necessary.
69714         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
69715         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
69716         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69717         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
69718         * m4/mbfile.m4 (gl_MBFILE): Likewise.
69719         * m4/mbiter.m4 (gl_MBITER): Likewise.
69720         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69721         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
69722         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
69723         * modules/u64 (configure.ac): Likewise.
69725 2009-12-31  Bruno Haible  <bruno@clisp.org>
69727         Use AC_C_INLINE instead of module 'inline' where possible.
69728         * modules/inline (Description): Clarify purpose.
69729         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
69730         * modules/count-one-bits (Depends-on): Remove inline.
69731         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
69732         * modules/openat (Depends-on): Remove inline.
69733         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
69734         instead of depending on module 'inline'.
69735         * modules/filevercmp (Depends-on, configure.ac): Likewise.
69736         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
69737         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
69738         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
69739         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
69740         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
69741         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
69742         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
69743         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
69744         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
69745         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
69746         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
69747         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
69748         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
69749         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
69750         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
69751         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
69752         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
69753         Likewise.
69754         * modules/unictype/property-ascii-hex-digit (Depends-on,
69755         configure.ac): Likewise.
69756         * modules/unictype/property-bidi-arabic-digit (Depends-on,
69757         configure.ac): Likewise.
69758         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
69759         configure.ac): Likewise.
69760         * modules/unictype/property-bidi-block-separator (Depends-on,
69761         configure.ac): Likewise.
69762         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
69763         configure.ac): Likewise.
69764         * modules/unictype/property-bidi-common-separator (Depends-on,
69765         configure.ac): Likewise.
69766         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
69767         Likewise.
69768         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
69769         configure.ac): Likewise.
69770         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
69771         configure.ac): Likewise.
69772         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
69773         configure.ac): Likewise.
69774         * modules/unictype/property-bidi-european-digit (Depends-on,
69775         configure.ac): Likewise.
69776         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
69777         configure.ac): Likewise.
69778         * modules/unictype/property-bidi-left-to-right (Depends-on,
69779         configure.ac): Likewise.
69780         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
69781         configure.ac): Likewise.
69782         * modules/unictype/property-bidi-other-neutral (Depends-on,
69783         configure.ac): Likewise.
69784         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
69785         Likewise.
69786         * modules/unictype/property-bidi-segment-separator (Depends-on,
69787         configure.ac): Likewise.
69788         * modules/unictype/property-bidi-whitespace (Depends-on,
69789         configure.ac): Likewise.
69790         * modules/unictype/property-combining (Depends-on, configure.ac):
69791         Likewise.
69792         * modules/unictype/property-composite (Depends-on, configure.ac):
69793         Likewise.
69794         * modules/unictype/property-currency-symbol (Depends-on,
69795         configure.ac): Likewise.
69796         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
69797         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
69798         Likewise.
69799         * modules/unictype/property-default-ignorable-code-point (Depends-on,
69800         configure.ac): Likewise.
69801         * modules/unictype/property-deprecated (Depends-on, configure.ac):
69802         Likewise.
69803         * modules/unictype/property-diacritic (Depends-on, configure.ac):
69804         Likewise.
69805         * modules/unictype/property-extender (Depends-on, configure.ac):
69806         Likewise.
69807         * modules/unictype/property-format-control (Depends-on, configure.ac):
69808         Likewise.
69809         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
69810         Likewise.
69811         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
69812         Likewise.
69813         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
69814         Likewise.
69815         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
69816         Likewise.
69817         * modules/unictype/property-hyphen (Depends-on, configure.ac):
69818         Likewise.
69819         * modules/unictype/property-id-continue (Depends-on, configure.ac):
69820         Likewise.
69821         * modules/unictype/property-id-start (Depends-on, configure.ac):
69822         Likewise.
69823         * modules/unictype/property-ideographic (Depends-on, configure.ac):
69824         Likewise.
69825         * modules/unictype/property-ids-binary-operator (Depends-on,
69826         configure.ac): Likewise.
69827         * modules/unictype/property-ids-trinary-operator (Depends-on,
69828         configure.ac): Likewise.
69829         * modules/unictype/property-ignorable-control (Depends-on,
69830         configure.ac): Likewise.
69831         * modules/unictype/property-iso-control (Depends-on, configure.ac):
69832         Likewise.
69833         * modules/unictype/property-join-control (Depends-on, configure.ac):
69834         Likewise.
69835         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
69836         Likewise.
69837         * modules/unictype/property-line-separator (Depends-on, configure.ac):
69838         Likewise.
69839         * modules/unictype/property-logical-order-exception (Depends-on,
69840         configure.ac): Likewise.
69841         * modules/unictype/property-lowercase (Depends-on, configure.ac):
69842         Likewise.
69843         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
69844         * modules/unictype/property-non-break (Depends-on, configure.ac):
69845         Likewise.
69846         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
69847         Likewise.
69848         * modules/unictype/property-numeric (Depends-on, configure.ac):
69849         Likewise.
69850         * modules/unictype/property-other-alphabetic (Depends-on,
69851         configure.ac): Likewise.
69852         * modules/unictype/property-other-default-ignorable-code-point
69853         (Depends-on, configure.ac): Likewise.
69854         * modules/unictype/property-other-grapheme-extend (Depends-on,
69855         configure.ac): Likewise.
69856         * modules/unictype/property-other-id-continue (Depends-on,
69857         configure.ac): Likewise.
69858         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
69859         Likewise.
69860         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
69861         Likewise.
69862         * modules/unictype/property-other-math (Depends-on, configure.ac):
69863         Likewise.
69864         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
69865         Likewise.
69866         * modules/unictype/property-paired-punctuation (Depends-on,
69867         configure.ac): Likewise.
69868         * modules/unictype/property-paragraph-separator (Depends-on,
69869         configure.ac): Likewise.
69870         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
69871         Likewise.
69872         * modules/unictype/property-pattern-white-space (Depends-on,
69873         configure.ac): Likewise.
69874         * modules/unictype/property-private-use (Depends-on, configure.ac):
69875         Likewise.
69876         * modules/unictype/property-punctuation (Depends-on, configure.ac):
69877         Likewise.
69878         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
69879         Likewise.
69880         * modules/unictype/property-radical (Depends-on, configure.ac):
69881         Likewise.
69882         * modules/unictype/property-sentence-terminal (Depends-on,
69883         configure.ac): Likewise.
69884         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
69885         Likewise.
69886         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
69887         * modules/unictype/property-terminal-punctuation (Depends-on,
69888         configure.ac): Likewise.
69889         * modules/unictype/property-titlecase (Depends-on, configure.ac):
69890         Likewise.
69891         * modules/unictype/property-unassigned-code-value (Depends-on,
69892         configure.ac): Likewise.
69893         * modules/unictype/property-unified-ideograph (Depends-on,
69894         configure.ac): Likewise.
69895         * modules/unictype/property-uppercase (Depends-on, configure.ac):
69896         Likewise.
69897         * modules/unictype/property-variation-selector (Depends-on,
69898         configure.ac): Likewise.
69899         * modules/unictype/property-white-space (Depends-on, configure.ac):
69900         Likewise.
69901         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
69902         Likewise.
69903         * modules/unictype/property-xid-start (Depends-on, configure.ac):
69904         Likewise.
69905         * modules/unictype/property-zero-width (Depends-on, configure.ac):
69906         Likewise.
69907         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
69908         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
69909         Likewise.
69911 2009-12-31  Bruno Haible  <bruno@clisp.org>
69913         Remove unnecessary AC_C_INLINE invocation.
69914         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
69915         since 2009-08-21.
69917 2009-12-31  Jim Meyering  <meyering@redhat.com>
69919         maint.mk: don't require explicit gpg_key_ID in cfg.mk
69920         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
69921         With this change, we can all remove the gpg_key_ID = ... definition
69922         from our respective cfg.mk files.
69924         maint.mk: create announcement template in ~/, not in /tmp
69925         * top/maint.mk (emit_upload_commands): Adjust.
69926         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
69927         Remove temporary file, .ci-msg.
69929 2009-12-31  Eric Blake  <ebb9@byu.net>
69931         link-warning: always build headers with link warnings
69932         * modules/arpa_inet (Makefile.am): Always build replacement
69933         header.
69934         * modules/ctype (Makefile.am): Likewise.
69935         * modules/dirent (Makefile.am): Likewise.
69936         * modules/inttypes (Makefile.am): Likewise.
69937         * modules/langinfo (Makefile.am): Likewise.
69938         * modules/locale (Makefile.am): Likewise.
69939         * modules/spawn (Makefile.am): Likewise.
69940         * modules/sys_file (Makefile.am): Likewise.
69941         * modules/sys_ioctl (Makefile.am): Likewise.
69942         * modules/sys_select (Makefile.am): Likewise.
69943         * modules/sys_socket (Makefile.am): Likewise.
69944         * modules/sys_times (Makefile.am): Likewise.
69945         * modules/sys_utsname (Makefile.am): Likewise.
69946         * modules/sys_wait (Makefile.am): Likewise.
69947         * modules/wchar (Makefile.am): Likewise.
69948         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
69949         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
69950         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
69951         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
69952         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
69953         Likewise.
69954         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69955         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
69956         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
69957         Likewise.
69958         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
69959         Likewise.
69960         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
69961         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
69962         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
69963         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69964         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
69965         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
69966         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
69967         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
69968         (gl_WCHAR_H_DEFAULTS): Likewise.
69970 2009-12-31  Eric Blake  <ebb9@byu.net>
69972         signal, spawn: use link warnings
69973         * lib/signal.in.h (sigset_t): Make unconditional.
69974         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
69975         (sigpending, sigprocmask, sigaction): Add link warnings.
69976         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
69977         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
69978         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
69979         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
69980         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
69981         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
69982         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
69983         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
69984         (posix_spawn_file_actions_destroy)
69985         (posix_spawn_file_actions_addopen)
69986         (posix_spawn_file_actions_addclose)
69987         (posix_spawn_file_actions_adddup2): Likewise.
69988         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
69989         * tests/test-signal.c (main): Enhance test.
69991         spawn: improve wrapper support
69992         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
69993         (gl_SPAWN_H_DEFAULTS): New defaults.
69994         * modules/spawn (Makefile.am): Substitute them.
69995         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
69996         Only declare if missing or broken.
69998         sys_times, sys_utsname: use include_next
69999         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
70000         header.
70001         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
70002         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70003         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70004         * modules/sys_times (Depends-on): Add include_next.
70005         (Makefile.am): Substitute additional values.
70006         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
70007         * lib/sys_times.in.h (includes): Include native header, if
70008         available.
70009         * lib/sys_utsname.in.h (includes): Likewise.
70010         * tests/test-sys_times.c (main): Enhance test.
70012         fdutimensat: revert prior patch
70013         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
70014         utimens.h.
70015         Reported by Bruno Haible.
70017 2009-12-30  Eric Blake  <ebb9@byu.net>
70019         sys_wait: drop link-warning dependency
70020         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
70021         link-warning efforts.
70022         * lib/sys_wait.in.h: Likewise.
70024         fdutimensat: remove bogus dependency
70025         * modules/fdutimensat (Depends-on): Drop inline.
70027         unistd: fix typo
70028         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
70030 2009-12-30  Bruno Haible  <bruno@clisp.org>
70032         Fix compilation error with Solaris cc.
70033         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
70034         * lib/unicase/u16-is-invariant.c: Likewise.
70035         * lib/unicase/u32-is-invariant.c: Likewise.
70036         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70038 2009-12-30  Bruno Haible  <bruno@clisp.org>
70040         Fix test crash.
70041         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
70042         locales.
70043         Reported by Simon Josefsson <simon@josefsson.org>.
70045 2009-12-30  Bruno Haible  <bruno@clisp.org>
70047         Fix compilation error on most platforms.
70048         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
70049         Reported by Simon Josefsson <simon@josefsson.org>
70050         and Nelson H. F. Beebe <beebe@math.utah.edu>.
70052 2009-12-30  Eric Blake  <ebb9@byu.net>
70054         futimens, utimensat: work around ntfs-3g bug
70055         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
70056         a ctime bug is present, and expand workaround to cover ntfs-3g.
70057         * lib/utimens.c (fdutimens, lutimens): Likewise.
70058         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
70059         (validate_timespec): Adjust return value.
70060         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
70061         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
70062         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
70064 2009-12-29  Eric Blake  <ebb9@byu.net>
70066         link-warning: make usage consistent
70067         * modules/ctype (Depends-on): Add link-warning.
70068         (Makefile.am): Update rules accordingly.
70069         * modules/langinfo (Depends-on, Makefile.am): Likewise.
70070         * modules/locale (Depends-on, Makefile.am): Likewise.
70071         * modules/sys_file (Makefile.am): Likewise.
70072         * modules/getopt-posix (Makefile.am): Delete unused link warning
70073         efforts.
70074         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
70075         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
70076         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
70077         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
70079         stdio: remove unused variables
70080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
70081         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
70082         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
70084         tests: test more substitute headers
70085         * modules/ctype-tests: New file.
70086         * modules/dirent-tests: Likewise.
70087         * modules/spawn-tests: Likewise.
70088         * modules/sys_file-tests: Likewise.
70089         * modules/sys_ioctl-tests: Likewise.
70090         * modules/sys_wait-tests: Likewise.
70091         * tests/test-ctype.c: Likewise.
70092         * tests/test-dirent.c: Likewise.
70093         * tests/test-spawn.c: Likewise.
70094         * tests/test-sys_file.c: Likewise.
70095         * tests/test-sys_ioctl.c: Likewise.
70096         * tests/test-sys_wait.c: Likewise.
70097         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
70098         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
70099         whether or not flock is in use.
70101         tests: remove License section from module
70102         * modules/arpa_inet-tests: Remove unneeded section.
70103         * modules/byteswap-tests: Likewise.
70104         * modules/ceilf-tests: Likewise.
70105         * modules/ceill-tests: Likewise.
70106         * modules/crypto/des-tests: Likewise.
70107         * modules/crypto/gc-arcfour-tests: Likewise.
70108         * modules/crypto/gc-arctwo-tests: Likewise.
70109         * modules/crypto/gc-des-tests: Likewise.
70110         * modules/crypto/gc-hmac-md5-tests: Likewise.
70111         * modules/crypto/gc-hmac-sha1-tests: Likewise.
70112         * modules/crypto/gc-md2-tests: Likewise.
70113         * modules/crypto/gc-md4-tests: Likewise.
70114         * modules/crypto/gc-md5-tests: Likewise.
70115         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
70116         * modules/crypto/gc-rijndael-tests: Likewise.
70117         * modules/crypto/gc-sha1-tests: Likewise.
70118         * modules/crypto/gc-tests: Likewise.
70119         * modules/crypto/md2-tests: Likewise.
70120         * modules/crypto/md4-tests: Likewise.
70121         * modules/fcntl-h-tests: Likewise.
70122         * modules/floorf-tests: Likewise.
70123         * modules/floorl-tests: Likewise.
70124         * modules/frexp-nolibm-tests: Likewise.
70125         * modules/frexp-tests: Likewise.
70126         * modules/frexpl-nolibm-tests: Likewise.
70127         * modules/frexpl-tests: Likewise.
70128         * modules/getaddrinfo-tests: Likewise.
70129         * modules/inttypes-tests: Likewise.
70130         * modules/isfinite-tests: Likewise.
70131         * modules/isinf-tests: Likewise.
70132         * modules/ldexpl-tests: Likewise.
70133         * modules/locale-tests: Likewise.
70134         * modules/math-tests: Likewise.
70135         * modules/netdb-tests: Likewise.
70136         * modules/netinet_in-tests: Likewise.
70137         * modules/printf-frexp-tests: Likewise.
70138         * modules/printf-frexpl-tests: Likewise.
70139         * modules/priv-set-tests: Likewise.
70140         * modules/random_r-tests: Likewise.
70141         * modules/round-tests: Likewise.
70142         * modules/roundf-tests: Likewise.
70143         * modules/roundl-tests: Likewise.
70144         * modules/search-tests: Likewise.
70145         * modules/select-tests: Likewise.
70146         * modules/signal-tests: Likewise.
70147         * modules/stdbool-tests: Likewise.
70148         * modules/stddef-tests: Likewise.
70149         * modules/stdint-tests: Likewise.
70150         * modules/stdio-tests: Likewise.
70151         * modules/stdlib-tests: Likewise.
70152         * modules/string-tests: Likewise.
70153         * modules/strings-tests: Likewise.
70154         * modules/sys_select-tests: Likewise.
70155         * modules/sys_socket-tests: Likewise.
70156         * modules/sys_stat-tests: Likewise.
70157         * modules/sys_time-tests: Likewise.
70158         * modules/sys_utsname-tests: Likewise.
70159         * modules/sysexits-tests: Likewise.
70160         * modules/time-tests: Likewise.
70161         * modules/trunc-tests: Likewise.
70162         * modules/truncf-tests: Likewise.
70163         * modules/truncl-tests: Likewise.
70164         * modules/tsearch-tests: Likewise.
70165         * modules/unistd-tests: Likewise.
70166         * modules/wchar-tests: Likewise.
70167         * modules/wctype-tests: Likewise.
70169         tests: fix license on several tests
70170         * tests/test-des.c: Update to GPLv3+.
70171         * tests/test-flock.c: Likewise.
70172         * tests/test-fsync.c: Likewise.
70173         * tests/test-futimens.h: Likewise.
70174         * tests/test-gc-arcfour.c: Likewise.
70175         * tests/test-gc-arctwo.c: Likewise.
70176         * tests/test-gc-des.c: Likewise.
70177         * tests/test-gc-hmac-md5.c: Likewise.
70178         * tests/test-gc-hmac-sha1.c: Likewise.
70179         * tests/test-gc-md2.c: Likewise.
70180         * tests/test-gc-md4.c: Likewise.
70181         * tests/test-gc-md5.c: Likewise.
70182         * tests/test-gc-pbkdf2-sha1.c: Likewise.
70183         * tests/test-gc-rijndael.c: Likewise.
70184         * tests/test-gc-sha1.c: Likewise.
70185         * tests/test-gc.c: Likewise.
70186         * tests/test-getcwd.c: Likewise.
70187         * tests/test-link.c: Likewise.
70188         * tests/test-link.h: Likewise.
70189         * tests/test-lutimens.h: Likewise.
70190         * tests/test-md2.c: Likewise.
70191         * tests/test-md4.c: Likewise.
70192         * tests/test-mkdir.h: Likewise.
70193         * tests/test-rename.c: Likewise.
70194         * tests/test-rename.h: Likewise.
70195         * tests/test-safe-alloc.c: Likewise.
70196         * tests/test-utimens-common.h: Likewise.
70197         * tests/test-utimens.h: Likewise.
70199         maint: sync license texts
70200         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
70201         * doc/gpl-3.0.texi: Revert copyright year update.
70202         * doc/lgpl-3.0.texi: Likewise.
70204 2009-12-29  Jim Meyering  <meyering@redhat.com>
70206         update nearly all FSF copyright year lists to include 2009
70207         The files named by the following are exempted:
70208             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
70209               test -f "$dst" && { echo "$dst"; continue; }
70210               test -d "$dst" || continue
70211               echo "$dst"/$(basename "$src")
70212             done > exempt
70213             git ls-files tests/unictype >> exempt
70214         In the remaining files, convert to all-interval notation if
70215         - there is already at least one year interval like 2000-2003
70216         - the file is maintained by me
70217         - the file is in lib/uni*/, where that style already prevails
70218         Otherwise, use update-copyright's default.
70220 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70221         and Eric Blake  <ebb9@byu.net>
70223         tests: don't require debug system() to pass
70224         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
70225         * tests/test-rmdir.h (test_rmdir_func): Likewise.
70226         * tests/test-unlink.h (test_unlink_func): Likewise.
70227         * tests/test-fstatat.c (main): ...into callers.
70228         * tests/test-lstat.c (main): Likewise.
70229         * tests/test-rmdir.c (main): Likewise.
70230         * tests/test-unlink.c (main): Likewise.
70231         * tests/test-unlinkat.c (main): Likewise.
70232         * tests/test-areadlink-with-size.c (main): Don't require a
70233         debug-only system call to pass, aiding cross-testing to mingw.
70234         * tests/test-areadlink.c (main): Likewise.
70235         * tests/test-areadlinkat-with-size.c (main): Likewise.
70236         * tests/test-areadlinkat.c (main): Likewise.
70237         * tests/test-canonicalize-lgpl.c (main): Likewise.
70238         * tests/test-canonicalize.c (main): Likewise.
70239         * tests/test-chown.c (main): Likewise.
70240         * tests/test-fchownat.c (main): Likewise.
70241         * tests/test-lchown.c (main): Likewise.
70242         * tests/test-fdutimensat.c (main): Likewise.
70243         * tests/test-futimens.c (main): Likewise.
70244         * tests/test-link.c (main): Likewise.
70245         * tests/test-linkat.c (main): Likewise.
70246         * tests/test-mkdir.c (main): Likewise.
70247         * tests/test-mkdirat.c (main): Likewise.
70248         * tests/test-mkfifo.c (main): Likewise.
70249         * tests/test-mkfifoat.c (main): Likewise.
70250         * tests/test-mknod.c (main): Likewise.
70251         * tests/test-readlink.c (main): Likewise.
70252         * tests/test-remove.c (main): Likewise.
70253         * tests/test-rename.c (main): Likewise.
70254         * tests/test-renameat.c (main): Likewise.
70255         * tests/test-symlink.c (main): Likewise.
70256         * tests/test-symlinkat.c (main): Likewise.
70257         * tests/test-utimens.c (main): Likewise.
70258         * tests/test-utimensat.c (main): Likewise.
70260 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70262         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
70263         on $(UNUSED_PARAMETER_H) to avoid build failure.
70265 2009-12-28  Jim Meyering  <meyering@redhat.com>
70267         update-copyright: you may specify a max. line length other than 72
70268         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
70270         maint: use consistent FSF copyright line syntax
70271         * lib/posixtm.c: Add missing comma in FSF copyright line.
70272         * lib/posixtm.h: Likewise.
70273         * lib/getugroups.c: Add missing ", Inc.".
70275         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
70276         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
70277         FSF copyright line.  Remove trailing blanks.
70279 2009-12-28  Eric Blake  <ebb9@byu.net>
70281         test-dup2: reduce dependencies
70282         * modules/cloexec (Configure.ac): Set witness.
70283         * modules/dup2-tests (Depends-on): Drop cloexec.
70284         * tests/test-dup2.c (main): Skip portion of test if cloexec module
70285         not present.
70286         Suggested by Bruno Haible.
70288 2009-12-26  Bruno Haible  <bruno@clisp.org>
70290         Remove an unneeded dependency.
70291         * modules/fseterr (Depends-on): Remove dup2.
70293 2009-12-26  Eric Blake  <ebb9@byu.net>
70295         tests: use macros.h in more places
70296         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
70297         (ASSERT_STREAM): Provide default of stderr.
70298         * tests/test-dirent-safer.c: Include macros.h, using alternate
70299         stream for assertions.
70300         * tests/test-dup-safer.c: Likewise.
70301         * tests/test-freopen-safer.c: Likewise.
70302         * tests/test-getopt.c: Likewise.
70303         * tests/test-openat-safer.c: Likewise.
70304         * tests/test-pipe.c: Likewise.
70305         * tests/test-popen-safer.c: Likewise.
70306         * modules/dirent-safer-tests (Files): Include macros.h.
70307         * modules/unistd-safer-tests (Files): Likewise.
70308         * modules/freopen-safer-tests (Files): Likewise.
70309         * modules/getopt-posix-tests (Files): Likewise.
70310         * modules/openat-safer-tests (Files): Likewise.
70311         * modules/pipe-tests (Files): Likewise.
70313 2009-12-26  Bruno Haible  <bruno@clisp.org>
70315         javacomp-script: Portability fix.
70316         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
70317         that it also works on Solaris.
70319 2009-12-26  Bruno Haible  <bruno@clisp.org>
70321         localename: Fix storage allocation of gl_locale_name_thread's result.
70322         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
70323         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
70324         all platforms that have 'uselocale'.
70325         (gl_locale_name_thread_unsafe): New function, extracted from
70326         gl_locale_name_thread.
70327         (gl_locale_name_thread): Call struniq on all platforms that have
70328         'uselocale'.
70329         * tests/test-localename.c (test_locale_name_thread): Check that the
70330         resulting strings are permanently allocated.
70331         * modules/localename-tests (Depends-on): Add strdup.
70333 2009-12-26  Bruno Haible  <bruno@clisp.org>
70335         * tests/test-localename.c (categories): Fill in the strings.
70337 2009-12-26  Jim Meyering  <meyering@redhat.com>
70339         isdir: complete the removal of m4/isdir.m4
70340         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
70342         isdir: clean up, since at least grep still uses it
70343         * lib/isdir.c: Include "isdir.h".
70344         (S_ISDIR): Remove now-unneeded definition.
70345         * modules/isdir (Files): Add lib/isdir.h.
70346         * lib/isdir.h: New file, with declaration.
70347         * m4/isdir.m4: Remove file -- unneeded.
70349 2009-12-25  Bruno Haible  <bruno@clisp.org>
70351         selinux-h: Make generated .h files standalone.
70352         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
70353         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
70354         * lib/se-selinux.in.h: Likewise.
70355         * modules/selinux-h (Depends-on): Add unused-parameter.
70356         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
70357         selinux/selinux.h and selinux/context.h.
70358         Suggested by Eric Blake.
70360 2009-12-25  Bruno Haible  <bruno@clisp.org>
70362         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
70363         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
70364         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
70365         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
70366         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
70368 2009-12-24  Bruno Haible  <bruno@clisp.org>
70370         openat: Fix warning.
70371         * lib/openat-proc.c: Include <unistd.h>.
70373 2009-12-24  Bruno Haible  <bruno@clisp.org>
70375         New module 'unused-parameter'.
70376         * build-aux/unused-parameter.h: New file, extracted from earlier
70377         gnulib-common.m4.
70378         * modules/unused-parameter: New file.
70379         * lib/unistr.h: Include unused-parameter.h.
70380         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
70381         _GL_UNUSED.
70382         * modules/unistr/base (Depends-on): Add unused-parameter.
70384 2009-12-24  Bruno Haible  <bruno@clisp.org>
70386         Add missing dependencies to 'extensions' module.
70387         * m4/extensions.m4: Add comment.
70388         * modules/accept4 (Depends-on): Add extensions.
70389         * modules/dup3 (Depends-on): Likewise.
70390         * modules/fcntl (Depends-on): Likewise.
70391         * modules/futimens (Depends-on): Likewise.
70392         * modules/mknod (Depends-on): Likewise.
70393         * modules/pipe2 (Depends-on): Likewise.
70394         * modules/stat-time (Depends-on): Likewise.
70395         * modules/strcasestr-simple (Depends-on): Likewise.
70396         * modules/strsignal (Depends-on): Likewise.
70397         * modules/utimensat (Depends-on): Likewise.
70398         * modules/localcharset (Depends-on): Likewise. Needed because of
70399         gl_FCNTL_O_FLAGS.
70400         * modules/wcrtomb (Depends-on): Likewise. Needed because of
70401         AC_TYPE_MBSTATE_T.
70402         * modules/wcsnrtombs (Depends-on): Likewise.
70403         * modules/wcsrtombs (Depends-on): Likewise.
70405 2009-12-24  Bruno Haible  <bruno@clisp.org>
70407         binary-io: Avoid gcc warning due to SET_BINARY.
70408         * lib/binary-io.h (SET_BINARY): Cast the result to void.
70409         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
70411 2009-12-24  Bruno Haible  <bruno@clisp.org>
70413         Avoid future namespace pollution on glibc systems.
70414         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
70415         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
70416         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
70417         glibc systems.
70419 2009-12-24  Bruno Haible  <bruno@clisp.org>
70421         Refactor common macros used in tests.
70422         * tests/macros.h: New file.
70423         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
70424         and/or <stdlib.h>, if appropriate.
70425         (ASSERT, SIZEOF): Remove macros.
70426         * tests/test-areadlink-with-size.c: Likewise.
70427         * tests/test-areadlinkat.c: Likewise.
70428         * tests/test-areadlinkat-with-size.c: Likewise.
70429         * tests/test-argmatch.c: Likewise.
70430         * tests/test-argv-iter.c: Likewise.
70431         * tests/test-array-mergesort.c: Likewise.
70432         * tests/test-array_list.c: Likewise.
70433         * tests/test-array_oset.c: Likewise.
70434         * tests/test-avltree_list.c: Likewise.
70435         * tests/test-avltree_oset.c: Likewise.
70436         * tests/test-avltreehash_list.c: Likewise.
70437         * tests/test-base64.c: Likewise.
70438         * tests/test-binary-io.c: Likewise.
70439         * tests/test-bitrotate.c: Likewise.
70440         * tests/test-btowc.c: Likewise.
70441         * tests/test-byteswap.c: Likewise.
70442         * tests/test-c-ctype.c: Likewise.
70443         * tests/test-c-stack.c: Likewise.
70444         * tests/test-c-strcasecmp.c: Likewise.
70445         * tests/test-c-strcasestr.c: Likewise.
70446         * tests/test-c-strncasecmp.c: Likewise.
70447         * tests/test-c-strstr.c: Likewise.
70448         * tests/test-canonicalize-lgpl.c: Likewise.
70449         * tests/test-canonicalize.c: Likewise.
70450         * tests/test-carray_list.c: Likewise.
70451         * tests/test-ceilf1.c: Likewise.
70452         * tests/test-ceilf2.c: Likewise.
70453         * tests/test-ceill.c: Likewise.
70454         * tests/test-chown.c: Likewise.
70455         * tests/test-cloexec.c: Likewise.
70456         * tests/test-copy-acl.c: Likewise.
70457         * tests/test-copy-file.c: Likewise.
70458         * tests/test-count-one-bits.c: Likewise.
70459         * tests/test-dprintf-posix.c: Likewise.
70460         * tests/test-dup2.c: Likewise.
70461         * tests/test-dup3.c: Likewise.
70462         * tests/test-duplocale.c: Likewise.
70463         * tests/test-fbufmode.c: Likewise.
70464         * tests/test-fchdir.c: Likewise.
70465         * tests/test-fchownat.c: Likewise.
70466         * tests/test-fcntl-safer.c: Likewise.
70467         * tests/test-fcntl.c: Likewise.
70468         * tests/test-fdopendir.c: Likewise.
70469         * tests/test-fdutimensat.c: Likewise.
70470         * tests/test-fflush2.c: Likewise.
70471         * tests/test-file-has-acl.c: Likewise.
70472         * tests/test-filevercmp.c: Likewise.
70473         * tests/test-flock.c: Likewise.
70474         * tests/test-floorf1.c: Likewise.
70475         * tests/test-floorf2.c: Likewise.
70476         * tests/test-floorl.c: Likewise.
70477         * tests/test-fnmatch.c: Likewise.
70478         * tests/test-fopen.h: Likewise.
70479         * tests/test-fpending.c: Likewise.
70480         * tests/test-fprintf-posix.c: Likewise.
70481         * tests/test-fpurge.c: Likewise.
70482         * tests/test-freadable.c: Likewise.
70483         * tests/test-freadahead.c: Likewise.
70484         * tests/test-freading.c: Likewise.
70485         * tests/test-freadptr.c: Likewise.
70486         * tests/test-freadptr2.c: Likewise.
70487         * tests/test-freadseek.c: Likewise.
70488         * tests/test-freopen.c: Likewise.
70489         * tests/test-frexp.c: Likewise.
70490         * tests/test-frexpl.c: Likewise.
70491         * tests/test-fseek.c: Likewise.
70492         * tests/test-fseeko.c: Likewise.
70493         * tests/test-fstatat.c: Likewise.
70494         * tests/test-fstrcmp.c: Likewise.
70495         * tests/test-fsync.c: Likewise.
70496         * tests/test-ftell.c: Likewise.
70497         * tests/test-ftello.c: Likewise.
70498         * tests/test-func.c: Likewise.
70499         * tests/test-futimens.c: Likewise.
70500         * tests/test-fwritable.c: Likewise.
70501         * tests/test-fwriting.c: Likewise.
70502         * tests/test-getcwd.c: Likewise.
70503         * tests/test-getdate.c: Likewise.
70504         * tests/test-getdelim.c: Likewise.
70505         * tests/test-getdtablesize.c: Likewise.
70506         * tests/test-getgroups.c: Likewise.
70507         * tests/test-getline.c: Likewise.
70508         * tests/test-getndelim2.c: Likewise.
70509         * tests/test-glob.c: Likewise.
70510         * tests/test-hash.c: Likewise.
70511         * tests/test-i-ring.c: Likewise.
70512         * tests/test-iconv-utf.c: Likewise.
70513         * tests/test-iconv.c: Likewise.
70514         * tests/test-idpriv-drop.c: Likewise.
70515         * tests/test-idpriv-droptemp.c: Likewise.
70516         * tests/test-inet_ntop.c: Likewise.
70517         * tests/test-inet_pton.c: Likewise.
70518         * tests/test-isblank.c: Likewise.
70519         * tests/test-isfinite.c: Likewise.
70520         * tests/test-isinf.c: Likewise.
70521         * tests/test-isnan.c: Likewise.
70522         * tests/test-isnand.h: Likewise.
70523         * tests/test-isnanf.h: Likewise.
70524         * tests/test-isnanl.h: Likewise.
70525         * tests/test-lchown.c: Likewise.
70526         * tests/test-ldexpl.c: Likewise.
70527         * tests/test-link.c: Likewise.
70528         * tests/test-linkat.c: Likewise.
70529         * tests/test-linked_list.c: Likewise.
70530         * tests/test-linkedhash_list.c: Likewise.
70531         * tests/test-localename.c: Likewise.
70532         * tests/test-lseek.c: Likewise.
70533         * tests/test-lstat.c: Likewise.
70534         * tests/test-mbmemcasecmp.c: Likewise.
70535         * tests/test-mbmemcasecoll.c: Likewise.
70536         * tests/test-mbrtowc.c: Likewise.
70537         * tests/test-mbscasecmp.c: Likewise.
70538         * tests/test-mbscasestr1.c: Likewise.
70539         * tests/test-mbscasestr2.c: Likewise.
70540         * tests/test-mbscasestr3.c: Likewise.
70541         * tests/test-mbscasestr4.c: Likewise.
70542         * tests/test-mbschr.c: Likewise.
70543         * tests/test-mbscspn.c: Likewise.
70544         * tests/test-mbsinit.c: Likewise.
70545         * tests/test-mbsncasecmp.c: Likewise.
70546         * tests/test-mbsnrtowcs.c: Likewise.
70547         * tests/test-mbspbrk.c: Likewise.
70548         * tests/test-mbspcasecmp.c: Likewise.
70549         * tests/test-mbsrchr.c: Likewise.
70550         * tests/test-mbsrtowcs.c: Likewise.
70551         * tests/test-mbsspn.c: Likewise.
70552         * tests/test-mbsstr1.c: Likewise.
70553         * tests/test-mbsstr2.c: Likewise.
70554         * tests/test-mbsstr3.c: Likewise.
70555         * tests/test-memchr.c: Likewise.
70556         * tests/test-memchr2.c: Likewise.
70557         * tests/test-memcmp.c: Likewise.
70558         * tests/test-memmem.c: Likewise.
70559         * tests/test-memrchr.c: Likewise.
70560         * tests/test-mkdir.c: Likewise.
70561         * tests/test-mkdirat.c: Likewise.
70562         * tests/test-mkfifo.c: Likewise.
70563         * tests/test-mkfifoat.c: Likewise.
70564         * tests/test-mknod.c: Likewise.
70565         * tests/test-nanosleep.c: Likewise.
70566         * tests/test-nl_langinfo.c: Likewise.
70567         * tests/test-obstack-printf.c: Likewise.
70568         * tests/test-open.c: Likewise.
70569         * tests/test-openat.c: Likewise.
70570         * tests/test-pipe-filter-gi1.c: Likewise.
70571         * tests/test-pipe-filter-gi2-main.c: Likewise.
70572         * tests/test-pipe-filter-ii1.c: Likewise.
70573         * tests/test-pipe-filter-ii2-main.c: Likewise.
70574         * tests/test-pipe2.c: Likewise.
70575         * tests/test-popen.h: Likewise.
70576         * tests/test-posixtm.c: Likewise.
70577         * tests/test-pread.c: Likewise.
70578         * tests/test-printf-frexp.c: Likewise.
70579         * tests/test-printf-frexpl.c: Likewise.
70580         * tests/test-printf-posix.c: Likewise.
70581         * tests/test-priv-set.c: Likewise.
70582         * tests/test-quotearg.c: Likewise.
70583         * tests/test-random_r.c: Likewise.
70584         * tests/test-rawmemchr.c: Likewise.
70585         * tests/test-rbtree_list.c: Likewise.
70586         * tests/test-rbtree_oset.c: Likewise.
70587         * tests/test-rbtreehash_list.c: Likewise.
70588         * tests/test-readlink.c: Likewise.
70589         * tests/test-remove.c: Likewise.
70590         * tests/test-rename.c: Likewise.
70591         * tests/test-renameat.c: Likewise.
70592         * tests/test-rmdir.c: Likewise.
70593         * tests/test-round1.c: Likewise.
70594         * tests/test-roundf1.c: Likewise.
70595         * tests/test-roundl.c: Likewise.
70596         * tests/test-safe-alloc.c: Likewise.
70597         * tests/test-sameacls.c: Likewise.
70598         * tests/test-set-mode-acl.c: Likewise.
70599         * tests/test-setenv.c: Likewise.
70600         * tests/test-sigaction.c: Likewise.
70601         * tests/test-signbit.c: Likewise.
70602         * tests/test-sleep.c: Likewise.
70603         * tests/test-snprintf-posix.c: Likewise.
70604         * tests/test-snprintf.c: Likewise.
70605         * tests/test-sprintf-posix.c: Likewise.
70606         * tests/test-stat-time.c: Likewise.
70607         * tests/test-stat.c: Likewise.
70608         * tests/test-strcasestr.c: Likewise.
70609         * tests/test-strchrnul.c: Likewise.
70610         * tests/test-strerror.c: Likewise.
70611         * tests/test-striconv.c: Likewise.
70612         * tests/test-striconveh.c: Likewise.
70613         * tests/test-striconveha.c: Likewise.
70614         * tests/test-strsignal.c: Likewise.
70615         * tests/test-strstr.c: Likewise.
70616         * tests/test-strtod.c: Likewise.
70617         * tests/test-strverscmp.c: Likewise.
70618         * tests/test-symlink.c: Likewise.
70619         * tests/test-symlinkat.c: Likewise.
70620         * tests/test-trunc1.c: Likewise.
70621         * tests/test-trunc2.c: Likewise.
70622         * tests/test-truncf1.c: Likewise.
70623         * tests/test-truncf2.c: Likewise.
70624         * tests/test-truncl.c: Likewise.
70625         * tests/test-uname.c: Likewise.
70626         * tests/test-unlink.c: Likewise.
70627         * tests/test-unlinkat.c: Likewise.
70628         * tests/test-unsetenv.c: Likewise.
70629         * tests/test-usleep.c: Likewise.
70630         * tests/test-utimens.c: Likewise.
70631         * tests/test-utimensat.c: Likewise.
70632         * tests/test-vasnprintf-posix.c: Likewise.
70633         * tests/test-vasnprintf-posix2.c: Likewise.
70634         * tests/test-vasnprintf.c: Likewise.
70635         * tests/test-vasprintf-posix.c: Likewise.
70636         * tests/test-vasprintf.c: Likewise.
70637         * tests/test-vdprintf-posix.c: Likewise.
70638         * tests/test-vfprintf-posix.c: Likewise.
70639         * tests/test-vprintf-posix.c: Likewise.
70640         * tests/test-vsnprintf-posix.c: Likewise.
70641         * tests/test-vsnprintf.c: Likewise.
70642         * tests/test-vsprintf-posix.c: Likewise.
70643         * tests/test-wcrtomb.c: Likewise.
70644         * tests/test-wcsnrtombs.c: Likewise.
70645         * tests/test-wcsrtombs.c: Likewise.
70646         * tests/test-wctype.c: Likewise.
70647         * tests/test-wcwidth.c: Likewise.
70648         * tests/test-xfprintf-posix.c: Likewise.
70649         * tests/test-xmemdup0.c: Likewise.
70650         * tests/test-xprintf-posix.c: Likewise.
70651         * tests/test-xvasprintf.c: Likewise.
70652         * tests/unicase/test-locale-language.c: Likewise.
70653         * tests/unicase/test-mapping-part1.h: Likewise.
70654         * tests/unicase/test-predicate-part1.h: Likewise.
70655         * tests/unicase/test-u8-casecmp.c: Likewise.
70656         * tests/unicase/test-u8-casecoll.c: Likewise.
70657         * tests/unicase/test-u8-casefold.c: Likewise.
70658         * tests/unicase/test-u8-is-cased.c: Likewise.
70659         * tests/unicase/test-u8-is-casefolded.c: Likewise.
70660         * tests/unicase/test-u8-is-lowercase.c: Likewise.
70661         * tests/unicase/test-u8-is-titlecase.c: Likewise.
70662         * tests/unicase/test-u8-is-uppercase.c: Likewise.
70663         * tests/unicase/test-u8-tolower.c: Likewise.
70664         * tests/unicase/test-u8-totitle.c: Likewise.
70665         * tests/unicase/test-u8-toupper.c: Likewise.
70666         * tests/unicase/test-u16-casecmp.c: Likewise.
70667         * tests/unicase/test-u16-casecoll.c: Likewise.
70668         * tests/unicase/test-u16-casefold.c: Likewise.
70669         * tests/unicase/test-u16-is-cased.c: Likewise.
70670         * tests/unicase/test-u16-is-casefolded.c: Likewise.
70671         * tests/unicase/test-u16-is-lowercase.c: Likewise.
70672         * tests/unicase/test-u16-is-titlecase.c: Likewise.
70673         * tests/unicase/test-u16-is-uppercase.c: Likewise.
70674         * tests/unicase/test-u16-tolower.c: Likewise.
70675         * tests/unicase/test-u16-totitle.c: Likewise.
70676         * tests/unicase/test-u16-toupper.c: Likewise.
70677         * tests/unicase/test-u32-casecmp.c: Likewise.
70678         * tests/unicase/test-u32-casecoll.c: Likewise.
70679         * tests/unicase/test-u32-casefold.c: Likewise.
70680         * tests/unicase/test-u32-is-cased.c: Likewise.
70681         * tests/unicase/test-u32-is-casefolded.c: Likewise.
70682         * tests/unicase/test-u32-is-lowercase.c: Likewise.
70683         * tests/unicase/test-u32-is-titlecase.c: Likewise.
70684         * tests/unicase/test-u32-is-uppercase.c: Likewise.
70685         * tests/unicase/test-u32-tolower.c: Likewise.
70686         * tests/unicase/test-u32-totitle.c: Likewise.
70687         * tests/unicase/test-u32-toupper.c: Likewise.
70688         * tests/unicase/test-ulc-casecmp.c: Likewise.
70689         * tests/unicase/test-ulc-casecoll.c: Likewise.
70690         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
70691         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
70692         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
70693         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
70694         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
70695         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
70696         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
70697         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
70698         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
70699         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
70700         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
70701         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
70702         * tests/unictype/test-bidi_byname.c: Likewise.
70703         * tests/unictype/test-bidi_name.c: Likewise.
70704         * tests/unictype/test-bidi_of.c: Likewise.
70705         * tests/unictype/test-bidi_test.c: Likewise.
70706         * tests/unictype/test-block_list.c: Likewise.
70707         * tests/unictype/test-block_of.c: Likewise.
70708         * tests/unictype/test-block_test.c: Likewise.
70709         * tests/unictype/test-categ_and.c: Likewise.
70710         * tests/unictype/test-categ_and_not.c: Likewise.
70711         * tests/unictype/test-categ_byname.c: Likewise.
70712         * tests/unictype/test-categ_name.c: Likewise.
70713         * tests/unictype/test-categ_none.c: Likewise.
70714         * tests/unictype/test-categ_of.c: Likewise.
70715         * tests/unictype/test-categ_or.c: Likewise.
70716         * tests/unictype/test-categ_test_withtable.c: Likewise.
70717         * tests/unictype/test-combining.c: Likewise.
70718         * tests/unictype/test-decdigit.c: Likewise.
70719         * tests/unictype/test-digit.c: Likewise.
70720         * tests/unictype/test-mirror.c: Likewise.
70721         * tests/unictype/test-numeric.c: Likewise.
70722         * tests/unictype/test-pr_byname.c: Likewise.
70723         * tests/unictype/test-pr_test.c: Likewise.
70724         * tests/unictype/test-predicate-part1.h: Likewise.
70725         * tests/unictype/test-scripts.c: Likewise.
70726         * tests/unictype/test-sy_c_ident.c: Likewise.
70727         * tests/unictype/test-sy_java_ident.c: Likewise.
70728         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
70729         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
70730         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
70731         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
70732         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
70733         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
70734         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
70735         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
70736         * tests/uninorm/test-canonical-decomposition.c: Likewise.
70737         * tests/uninorm/test-compat-decomposition.c: Likewise.
70738         * tests/uninorm/test-composition.c: Likewise.
70739         * tests/uninorm/test-decomposing-form.c: Likewise.
70740         * tests/uninorm/test-decomposition.c: Likewise.
70741         * tests/uninorm/test-u8-nfc.c: Likewise.
70742         * tests/uninorm/test-u8-nfd.c: Likewise.
70743         * tests/uninorm/test-u8-nfkc.c: Likewise.
70744         * tests/uninorm/test-u8-nfkd.c: Likewise.
70745         * tests/uninorm/test-u8-normcmp.c: Likewise.
70746         * tests/uninorm/test-u8-normcoll.c: Likewise.
70747         * tests/uninorm/test-u16-nfc.c: Likewise.
70748         * tests/uninorm/test-u16-nfd.c: Likewise.
70749         * tests/uninorm/test-u16-nfkc.c: Likewise.
70750         * tests/uninorm/test-u16-nfkd.c: Likewise.
70751         * tests/uninorm/test-u16-normcmp.c: Likewise.
70752         * tests/uninorm/test-u16-normcoll.c: Likewise.
70753         * tests/uninorm/test-u32-nfc.c: Likewise.
70754         * tests/uninorm/test-u32-nfd.c: Likewise.
70755         * tests/uninorm/test-u32-nfkc.c: Likewise.
70756         * tests/uninorm/test-u32-nfkd.c: Likewise.
70757         * tests/uninorm/test-u32-normalize-big.c: Likewise.
70758         * tests/uninorm/test-u32-normcmp.c: Likewise.
70759         * tests/uninorm/test-u32-normcoll.c: Likewise.
70760         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
70761         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
70762         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
70763         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
70764         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
70765         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
70766         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
70767         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
70768         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
70769         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
70770         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
70771         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
70772         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
70773         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
70774         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
70775         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
70776         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
70777         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
70778         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
70779         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
70780         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
70781         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
70782         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
70783         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
70784         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
70785         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
70786         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
70787         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
70788         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
70789         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
70790         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
70791         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
70792         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
70793         * tests/uniwidth/test-u8-strwidth.c: Likewise.
70794         * tests/uniwidth/test-u8-width.c: Likewise.
70795         * tests/uniwidth/test-u16-strwidth.c: Likewise.
70796         * tests/uniwidth/test-u16-width.c: Likewise.
70797         * tests/uniwidth/test-u32-strwidth.c: Likewise.
70798         * tests/uniwidth/test-u32-width.c: Likewise.
70799         * tests/uniwidth/test-uc_width.c: Likewise.
70800         * tests/uniwidth/test-uc_width2.c: Likewise.
70801         * modules/acl-tests (Files): Add tests/macros.h.
70802         * modules/areadlink-tests (Files): Likewise.
70803         * modules/areadlink-with-size-tests (Files): Likewise.
70804         * modules/areadlinkat-tests (Files): Likewise.
70805         * modules/areadlinkat-with-size-tests (Files): Likewise.
70806         * modules/argmatch-tests (Files): Likewise.
70807         * modules/argv-iter-tests (Files): Likewise.
70808         * modules/array-list-tests (Files): Likewise.
70809         * modules/array-mergesort-tests (Files): Likewise.
70810         * modules/array-oset-tests (Files): Likewise.
70811         * modules/avltree-list-tests (Files): Likewise.
70812         * modules/avltree-oset-tests (Files): Likewise.
70813         * modules/avltreehash-list-tests (Files): Likewise.
70814         * modules/base64-tests (Files): Likewise.
70815         * modules/binary-io-tests (Files): Likewise.
70816         * modules/bitrotate-tests (Files): Likewise.
70817         * modules/btowc-tests (Files): Likewise.
70818         * modules/byteswap-tests (Files): Likewise.
70819         * modules/c-ctype-tests (Files): Likewise.
70820         * modules/c-stack-tests (Files): Likewise.
70821         * modules/c-strcase-tests (Files): Likewise.
70822         * modules/c-strcasestr-tests (Files): Likewise.
70823         * modules/c-strstr-tests (Files): Likewise.
70824         * modules/canonicalize-lgpl-tests (Files): Likewise.
70825         * modules/canonicalize-tests (Files): Likewise.
70826         * modules/carray-list-tests (Files): Likewise.
70827         * modules/ceilf-tests (Files): Likewise.
70828         * modules/ceill-tests (Files): Likewise.
70829         * modules/chown-tests (Files): Likewise.
70830         * modules/cloexec-tests (Files): Likewise.
70831         * modules/copy-file-tests (Files): Likewise.
70832         * modules/count-one-bits-tests (Files): Likewise.
70833         * modules/dprintf-posix-tests (Files): Likewise.
70834         * modules/dup2-tests (Files): Likewise.
70835         * modules/dup3-tests (Files): Likewise.
70836         * modules/duplocale-tests (Files): Likewise.
70837         * modules/fbufmode-tests (Files): Likewise.
70838         * modules/fchdir-tests (Files): Likewise.
70839         * modules/fcntl-safer-tests (Files): Likewise.
70840         * modules/fcntl-tests (Files): Likewise.
70841         * modules/fdopendir-tests (Files): Likewise.
70842         * modules/fdutimensat-tests (Files): Likewise.
70843         * modules/fflush-tests (Files): Likewise.
70844         * modules/filevercmp-tests (Files): Likewise.
70845         * modules/flock-tests (Files): Likewise.
70846         * modules/floorf-tests (Files): Likewise.
70847         * modules/floorl-tests (Files): Likewise.
70848         * modules/fnmatch-tests (Files): Likewise.
70849         * modules/fopen-safer-tests (Files): Likewise.
70850         * modules/fopen-tests (Files): Likewise.
70851         * modules/fpending-tests (Files): Likewise.
70852         * modules/fprintf-posix-tests (Files): Likewise.
70853         * modules/fpurge-tests (Files): Likewise.
70854         * modules/freadable-tests (Files): Likewise.
70855         * modules/freadahead-tests (Files): Likewise.
70856         * modules/freading-tests (Files): Likewise.
70857         * modules/freadptr-tests (Files): Likewise.
70858         * modules/freadseek-tests (Files): Likewise.
70859         * modules/freopen-tests (Files): Likewise.
70860         * modules/frexp-nolibm-tests (Files): Likewise.
70861         * modules/frexp-tests (Files): Likewise.
70862         * modules/frexpl-nolibm-tests (Files): Likewise.
70863         * modules/frexpl-tests (Files): Likewise.
70864         * modules/fseek-tests (Files): Likewise.
70865         * modules/fseeko-tests (Files): Likewise.
70866         * modules/fstrcmp-tests (Files): Likewise.
70867         * modules/fsync-tests (Files): Likewise.
70868         * modules/ftell-tests (Files): Likewise.
70869         * modules/ftello-tests (Files): Likewise.
70870         * modules/func-tests (Files): Likewise.
70871         * modules/futimens-tests (Files): Likewise.
70872         * modules/fwritable-tests (Files): Likewise.
70873         * modules/fwriting-tests (Files): Likewise.
70874         * modules/getcwd-tests (Files): Likewise.
70875         * modules/getdate-tests (Files): Likewise.
70876         * modules/getdelim-tests (Files): Likewise.
70877         * modules/getdtablesize-tests (Files): Likewise.
70878         * modules/getgroups-tests (Files): Likewise.
70879         * modules/getline-tests (Files): Likewise.
70880         * modules/getndelim2-tests (Files): Likewise.
70881         * modules/glob-tests (Files): Likewise.
70882         * modules/hash-tests (Files): Likewise.
70883         * modules/i-ring-tests (Files): Likewise.
70884         * modules/iconv-tests (Files): Likewise.
70885         * modules/iconv_open-utf-tests (Files): Likewise.
70886         * modules/idpriv-drop-tests (Files): Likewise.
70887         * modules/idpriv-droptemp-tests (Files): Likewise.
70888         * modules/inet_ntop-tests (Files): Likewise.
70889         * modules/inet_pton-tests (Files): Likewise.
70890         * modules/isblank-tests (Files): Likewise.
70891         * modules/isfinite-tests (Files): Likewise.
70892         * modules/isinf-tests (Files): Likewise.
70893         * modules/isnan-tests (Files): Likewise.
70894         * modules/isnand-nolibm-tests (Files): Likewise.
70895         * modules/isnand-tests (Files): Likewise.
70896         * modules/isnanf-nolibm-tests (Files): Likewise.
70897         * modules/isnanf-tests (Files): Likewise.
70898         * modules/isnanl-nolibm-tests (Files): Likewise.
70899         * modules/isnanl-tests (Files): Likewise.
70900         * modules/lchown-tests (Files): Likewise.
70901         * modules/ldexpl-tests (Files): Likewise.
70902         * modules/link-tests (Files): Likewise.
70903         * modules/linkat-tests (Files): Likewise.
70904         * modules/linked-list-tests (Files): Likewise.
70905         * modules/linkedhash-list-tests (Files): Likewise.
70906         * modules/localename-tests (Files): Likewise.
70907         * modules/lseek-tests (Files): Likewise.
70908         * modules/lstat-tests (Files): Likewise.
70909         * modules/mbmemcasecmp-tests (Files): Likewise.
70910         * modules/mbmemcasecoll-tests (Files): Likewise.
70911         * modules/mbrtowc-tests (Files): Likewise.
70912         * modules/mbscasecmp-tests (Files): Likewise.
70913         * modules/mbscasestr-tests (Files): Likewise.
70914         * modules/mbschr-tests (Files): Likewise.
70915         * modules/mbscspn-tests (Files): Likewise.
70916         * modules/mbsinit-tests (Files): Likewise.
70917         * modules/mbsncasecmp-tests (Files): Likewise.
70918         * modules/mbsnrtowcs-tests (Files): Likewise.
70919         * modules/mbspbrk-tests (Files): Likewise.
70920         * modules/mbspcasecmp-tests (Files): Likewise.
70921         * modules/mbsrchr-tests (Files): Likewise.
70922         * modules/mbsrtowcs-tests (Files): Likewise.
70923         * modules/mbsspn-tests (Files): Likewise.
70924         * modules/mbsstr-tests (Files): Likewise.
70925         * modules/memchr-tests (Files): Likewise.
70926         * modules/memchr2-tests (Files): Likewise.
70927         * modules/memcmp-tests (Files): Likewise.
70928         * modules/memmem-tests (Files): Likewise.
70929         * modules/memrchr-tests (Files): Likewise.
70930         * modules/mkdir-tests (Files): Likewise.
70931         * modules/mkfifo-tests (Files): Likewise.
70932         * modules/mkfifoat-tests (Files): Likewise.
70933         * modules/mknod-tests (Files): Likewise.
70934         * modules/nanosleep-tests (Files): Likewise.
70935         * modules/nl_langinfo-tests (Files): Likewise.
70936         * modules/obstack-printf-tests (Files): Likewise.
70937         * modules/open-tests (Files): Likewise.
70938         * modules/openat-tests (Files): Likewise.
70939         * modules/pipe-filter-gi-tests (Files): Likewise.
70940         * modules/pipe-filter-ii-tests (Files): Likewise.
70941         * modules/pipe2-tests (Files): Likewise.
70942         * modules/popen-safer-tests (Files): Likewise.
70943         * modules/popen-tests (Files): Likewise.
70944         * modules/posixtm-tests (Files): Likewise.
70945         * modules/pread-tests (Files): Likewise.
70946         * modules/printf-frexp-tests (Files): Likewise.
70947         * modules/printf-frexpl-tests (Files): Likewise.
70948         * modules/printf-posix-tests (Files): Likewise.
70949         * modules/priv-set-tests (Files): Likewise.
70950         * modules/quotearg-tests (Files): Likewise.
70951         * modules/random_r-tests (Files): Likewise.
70952         * modules/rawmemchr-tests (Files): Likewise.
70953         * modules/rbtree-list-tests (Files): Likewise.
70954         * modules/rbtree-oset-tests (Files): Likewise.
70955         * modules/rbtreehash-list-tests (Files): Likewise.
70956         * modules/readlink-tests (Files): Likewise.
70957         * modules/remove-tests (Files): Likewise.
70958         * modules/rename-tests (Files): Likewise.
70959         * modules/renameat-tests (Files): Likewise.
70960         * modules/rmdir-tests (Files): Likewise.
70961         * modules/round-tests (Files): Likewise.
70962         * modules/roundf-tests (Files): Likewise.
70963         * modules/roundl-tests (Files): Likewise.
70964         * modules/safe-alloc-tests (Files): Likewise.
70965         * modules/setenv-tests (Files): Likewise.
70966         * modules/sigaction-tests (Files): Likewise.
70967         * modules/signbit-tests (Files): Likewise.
70968         * modules/sleep-tests (Files): Likewise.
70969         * modules/snprintf-posix-tests (Files): Likewise.
70970         * modules/snprintf-tests (Files): Likewise.
70971         * modules/sprintf-posix-tests (Files): Likewise.
70972         * modules/stat-tests (Files): Likewise.
70973         * modules/stat-time-tests (Files): Likewise.
70974         * modules/strcasestr-tests (Files): Likewise.
70975         * modules/strchrnul-tests (Files): Likewise.
70976         * modules/strerror-tests (Files): Likewise.
70977         * modules/striconv-tests (Files): Likewise.
70978         * modules/striconveh-tests (Files): Likewise.
70979         * modules/striconveha-tests (Files): Likewise.
70980         * modules/strsignal-tests (Files): Likewise.
70981         * modules/strstr-tests (Files): Likewise.
70982         * modules/strtod-tests (Files): Likewise.
70983         * modules/strverscmp-tests (Files): Likewise.
70984         * modules/symlink-tests (Files): Likewise.
70985         * modules/symlinkat-tests (Files): Likewise.
70986         * modules/trunc-tests (Files): Likewise.
70987         * modules/truncf-tests (Files): Likewise.
70988         * modules/truncl-tests (Files): Likewise.
70989         * modules/uname-tests (Files): Likewise.
70990         * modules/unicase/cased-tests (Files): Likewise.
70991         * modules/unicase/ignorable-tests (Files): Likewise.
70992         * modules/unicase/locale-language-tests (Files): Likewise.
70993         * modules/unicase/tolower-tests (Files): Likewise.
70994         * modules/unicase/totitle-tests (Files): Likewise.
70995         * modules/unicase/toupper-tests (Files): Likewise.
70996         * modules/unicase/u8-casecmp-tests (Files): Likewise.
70997         * modules/unicase/u8-casecoll-tests (Files): Likewise.
70998         * modules/unicase/u8-casefold-tests (Files): Likewise.
70999         * modules/unicase/u8-is-cased-tests (Files): Likewise.
71000         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
71001         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
71002         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
71003         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
71004         * modules/unicase/u8-tolower-tests (Files): Likewise.
71005         * modules/unicase/u8-totitle-tests (Files): Likewise.
71006         * modules/unicase/u8-toupper-tests (Files): Likewise.
71007         * modules/unicase/u16-casecmp-tests (Files): Likewise.
71008         * modules/unicase/u16-casecoll-tests (Files): Likewise.
71009         * modules/unicase/u16-casefold-tests (Files): Likewise.
71010         * modules/unicase/u16-is-cased-tests (Files): Likewise.
71011         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
71012         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
71013         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
71014         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
71015         * modules/unicase/u16-tolower-tests (Files): Likewise.
71016         * modules/unicase/u16-totitle-tests (Files): Likewise.
71017         * modules/unicase/u16-toupper-tests (Files): Likewise.
71018         * modules/unicase/u32-casecmp-tests (Files): Likewise.
71019         * modules/unicase/u32-casecoll-tests (Files): Likewise.
71020         * modules/unicase/u32-casefold-tests (Files): Likewise.
71021         * modules/unicase/u32-is-cased-tests (Files): Likewise.
71022         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
71023         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
71024         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
71025         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
71026         * modules/unicase/u32-tolower-tests (Files): Likewise.
71027         * modules/unicase/u32-totitle-tests (Files): Likewise.
71028         * modules/unicase/u32-toupper-tests (Files): Likewise.
71029         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
71030         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
71031         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
71032         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
71033         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
71034         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
71035         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
71036         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
71037         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
71038         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
71039         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
71040         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
71041         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
71042         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
71043         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
71044         * modules/unictype/bidicategory-name-tests (Files): Likewise.
71045         * modules/unictype/bidicategory-of-tests (Files): Likewise.
71046         * modules/unictype/bidicategory-test-tests (Files): Likewise.
71047         * modules/unictype/block-list-tests (Files): Likewise.
71048         * modules/unictype/block-of-tests (Files): Likewise.
71049         * modules/unictype/block-test-tests (Files): Likewise.
71050         * modules/unictype/category-C-tests (Files): Likewise.
71051         * modules/unictype/category-Cc-tests (Files): Likewise.
71052         * modules/unictype/category-Cf-tests (Files): Likewise.
71053         * modules/unictype/category-Cn-tests (Files): Likewise.
71054         * modules/unictype/category-Co-tests (Files): Likewise.
71055         * modules/unictype/category-Cs-tests (Files): Likewise.
71056         * modules/unictype/category-L-tests (Files): Likewise.
71057         * modules/unictype/category-Ll-tests (Files): Likewise.
71058         * modules/unictype/category-Lm-tests (Files): Likewise.
71059         * modules/unictype/category-Lo-tests (Files): Likewise.
71060         * modules/unictype/category-Lt-tests (Files): Likewise.
71061         * modules/unictype/category-Lu-tests (Files): Likewise.
71062         * modules/unictype/category-M-tests (Files): Likewise.
71063         * modules/unictype/category-Mc-tests (Files): Likewise.
71064         * modules/unictype/category-Me-tests (Files): Likewise.
71065         * modules/unictype/category-Mn-tests (Files): Likewise.
71066         * modules/unictype/category-N-tests (Files): Likewise.
71067         * modules/unictype/category-Nd-tests (Files): Likewise.
71068         * modules/unictype/category-Nl-tests (Files): Likewise.
71069         * modules/unictype/category-No-tests (Files): Likewise.
71070         * modules/unictype/category-P-tests (Files): Likewise.
71071         * modules/unictype/category-Pc-tests (Files): Likewise.
71072         * modules/unictype/category-Pd-tests (Files): Likewise.
71073         * modules/unictype/category-Pe-tests (Files): Likewise.
71074         * modules/unictype/category-Pf-tests (Files): Likewise.
71075         * modules/unictype/category-Pi-tests (Files): Likewise.
71076         * modules/unictype/category-Po-tests (Files): Likewise.
71077         * modules/unictype/category-Ps-tests (Files): Likewise.
71078         * modules/unictype/category-S-tests (Files): Likewise.
71079         * modules/unictype/category-Sc-tests (Files): Likewise.
71080         * modules/unictype/category-Sk-tests (Files): Likewise.
71081         * modules/unictype/category-Sm-tests (Files): Likewise.
71082         * modules/unictype/category-So-tests (Files): Likewise.
71083         * modules/unictype/category-Z-tests (Files): Likewise.
71084         * modules/unictype/category-Zl-tests (Files): Likewise.
71085         * modules/unictype/category-Zp-tests (Files): Likewise.
71086         * modules/unictype/category-Zs-tests (Files): Likewise.
71087         * modules/unictype/category-and-not-tests (Files): Likewise.
71088         * modules/unictype/category-and-tests (Files): Likewise.
71089         * modules/unictype/category-byname-tests (Files): Likewise.
71090         * modules/unictype/category-name-tests (Files): Likewise.
71091         * modules/unictype/category-none-tests (Files): Likewise.
71092         * modules/unictype/category-of-tests (Files): Likewise.
71093         * modules/unictype/category-or-tests (Files): Likewise.
71094         * modules/unictype/category-test-withtable-tests (Files): Likewise.
71095         * modules/unictype/combining-class-tests (Files): Likewise.
71096         * modules/unictype/ctype-alnum-tests (Files): Likewise.
71097         * modules/unictype/ctype-alpha-tests (Files): Likewise.
71098         * modules/unictype/ctype-blank-tests (Files): Likewise.
71099         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
71100         * modules/unictype/ctype-digit-tests (Files): Likewise.
71101         * modules/unictype/ctype-graph-tests (Files): Likewise.
71102         * modules/unictype/ctype-lower-tests (Files): Likewise.
71103         * modules/unictype/ctype-print-tests (Files): Likewise.
71104         * modules/unictype/ctype-punct-tests (Files): Likewise.
71105         * modules/unictype/ctype-space-tests (Files): Likewise.
71106         * modules/unictype/ctype-upper-tests (Files): Likewise.
71107         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
71108         * modules/unictype/decimal-digit-tests (Files): Likewise.
71109         * modules/unictype/digit-tests (Files): Likewise.
71110         * modules/unictype/mirror-tests (Files): Likewise.
71111         * modules/unictype/numeric-tests (Files): Likewise.
71112         * modules/unictype/property-alphabetic-tests (Files): Likewise.
71113         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
71114         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
71115         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
71116         Likewise.
71117         * modules/unictype/property-bidi-block-separator-tests (Files):
71118         Likewise.
71119         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
71120         Likewise.
71121         * modules/unictype/property-bidi-common-separator-tests (Files):
71122         Likewise.
71123         * modules/unictype/property-bidi-control-tests (Files): Likewise.
71124         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
71125         Likewise.
71126         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
71127         Likewise.
71128         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
71129         Likewise.
71130         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
71131         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
71132         Likewise.
71133         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
71134         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
71135         Likewise.
71136         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
71137         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
71138         * modules/unictype/property-bidi-segment-separator-tests (Files):
71139         Likewise.
71140         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
71141         * modules/unictype/property-byname-tests (Files): Likewise.
71142         * modules/unictype/property-combining-tests (Files): Likewise.
71143         * modules/unictype/property-composite-tests (Files): Likewise.
71144         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
71145         * modules/unictype/property-dash-tests (Files): Likewise.
71146         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
71147         * modules/unictype/property-default-ignorable-code-point-tests (Files):
71148         Likewise.
71149         * modules/unictype/property-deprecated-tests (Files): Likewise.
71150         * modules/unictype/property-diacritic-tests (Files): Likewise.
71151         * modules/unictype/property-extender-tests (Files): Likewise.
71152         * modules/unictype/property-format-control-tests (Files): Likewise.
71153         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
71154         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
71155         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
71156         * modules/unictype/property-hex-digit-tests (Files): Likewise.
71157         * modules/unictype/property-hyphen-tests (Files): Likewise.
71158         * modules/unictype/property-id-continue-tests (Files): Likewise.
71159         * modules/unictype/property-id-start-tests (Files): Likewise.
71160         * modules/unictype/property-ideographic-tests (Files): Likewise.
71161         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
71162         * modules/unictype/property-ids-trinary-operator-tests (Files):
71163         Likewise.
71164         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
71165         * modules/unictype/property-iso-control-tests (Files): Likewise.
71166         * modules/unictype/property-join-control-tests (Files): Likewise.
71167         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
71168         * modules/unictype/property-line-separator-tests (Files): Likewise.
71169         * modules/unictype/property-logical-order-exception-tests (Files):
71170         Likewise.
71171         * modules/unictype/property-lowercase-tests (Files): Likewise.
71172         * modules/unictype/property-math-tests (Files): Likewise.
71173         * modules/unictype/property-non-break-tests (Files): Likewise.
71174         * modules/unictype/property-not-a-character-tests (Files): Likewise.
71175         * modules/unictype/property-numeric-tests (Files): Likewise.
71176         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
71177         * modules/unictype/property-other-default-ignorable-code-point-tests
71178         (Files): Likewise.
71179         * modules/unictype/property-other-grapheme-extend-tests (Files):
71180         Likewise.
71181         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
71182         * modules/unictype/property-other-id-start-tests (Files): Likewise.
71183         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
71184         * modules/unictype/property-other-math-tests (Files): Likewise.
71185         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
71186         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
71187         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
71188         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
71189         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
71190         * modules/unictype/property-private-use-tests (Files): Likewise.
71191         * modules/unictype/property-punctuation-tests (Files): Likewise.
71192         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
71193         * modules/unictype/property-radical-tests (Files): Likewise.
71194         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
71195         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
71196         * modules/unictype/property-space-tests (Files): Likewise.
71197         * modules/unictype/property-terminal-punctuation-tests (Files):
71198         Likewise.
71199         * modules/unictype/property-test-tests (Files): Likewise.
71200         * modules/unictype/property-titlecase-tests (Files): Likewise.
71201         * modules/unictype/property-unassigned-code-value-tests (Files):
71202         Likewise.
71203         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
71204         * modules/unictype/property-uppercase-tests (Files): Likewise.
71205         * modules/unictype/property-variation-selector-tests (Files): Likewise.
71206         * modules/unictype/property-white-space-tests (Files): Likewise.
71207         * modules/unictype/property-xid-continue-tests (Files): Likewise.
71208         * modules/unictype/property-xid-start-tests (Files): Likewise.
71209         * modules/unictype/property-zero-width-tests (Files): Likewise.
71210         * modules/unictype/scripts-tests (Files): Likewise.
71211         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
71212         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
71213         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
71214         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
71215         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
71216         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
71217         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
71218         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
71219         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
71220         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
71221         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
71222         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
71223         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
71224         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
71225         * modules/uninorm/composition-tests (Files): Likewise.
71226         * modules/uninorm/decomposing-form-tests (Files): Likewise.
71227         * modules/uninorm/decomposition-tests (Files): Likewise.
71228         * modules/uninorm/filter-tests (Files): Likewise.
71229         * modules/uninorm/nfc-tests (Files): Likewise.
71230         * modules/uninorm/nfd-tests (Files): Likewise.
71231         * modules/uninorm/nfkc-tests (Files): Likewise.
71232         * modules/uninorm/nfkd-tests (Files): Likewise.
71233         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
71234         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
71235         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
71236         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
71237         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
71238         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
71239         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
71240         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
71241         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
71242         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
71243         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
71244         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
71245         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
71246         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
71247         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
71248         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
71249         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
71250         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
71251         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
71252         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
71253         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
71254         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
71255         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
71256         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
71257         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
71258         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
71259         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
71260         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
71261         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
71262         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
71263         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
71264         * modules/uniwidth/u8-width-tests (Files): Likewise.
71265         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
71266         * modules/uniwidth/u16-width-tests (Files): Likewise.
71267         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
71268         * modules/uniwidth/u32-width-tests (Files): Likewise.
71269         * modules/uniwidth/width-tests (Files): Likewise.
71270         * modules/unlink-tests (Files): Likewise.
71271         * modules/unsetenv-tests (Files): Likewise.
71272         * modules/usleep-tests (Files): Likewise.
71273         * modules/utimens-tests (Files): Likewise.
71274         * modules/utimensat-tests (Files): Likewise.
71275         * modules/vasnprintf-posix-tests (Files): Likewise.
71276         * modules/vasnprintf-tests (Files): Likewise.
71277         * modules/vasprintf-posix-tests (Files): Likewise.
71278         * modules/vasprintf-tests (Files): Likewise.
71279         * modules/vdprintf-posix-tests (Files): Likewise.
71280         * modules/vfprintf-posix-tests (Files): Likewise.
71281         * modules/vprintf-posix-tests (Files): Likewise.
71282         * modules/vsnprintf-posix-tests (Files): Likewise.
71283         * modules/vsnprintf-tests (Files): Likewise.
71284         * modules/vsprintf-posix-tests (Files): Likewise.
71285         * modules/wcrtomb-tests (Files): Likewise.
71286         * modules/wcsnrtombs-tests (Files): Likewise.
71287         * modules/wcsrtombs-tests (Files): Likewise.
71288         * modules/wctype-tests (Files): Likewise.
71289         * modules/wcwidth-tests (Files): Likewise.
71290         * modules/xmemdup0-tests (Files): Likewise.
71291         * modules/xprintf-posix-tests (Files): Likewise.
71292         * modules/xvasprintf-tests (Files): Likewise.
71294 2009-12-24  Eric Blake  <ebb9@byu.net>
71296         test-nanosleep: fix typo
71297         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
71298         patch.
71299         Reported by Bruno Haible.
71301 2009-12-24  Bruno Haible  <bruno@clisp.org>
71303         Reduce namespace pollution on glibc systems.
71304         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
71305         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
71306         systems.
71307         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
71308         <getopt.h> on glibc systems.
71309         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
71310         systems.
71311         * lib/fcntl.c: Include <unistd.h> here instead.
71313 2009-12-24  Bruno Haible  <bruno@clisp.org>
71315         * lib/stdlib.in.h (includes): Fix typo in today's commit.
71317 2009-12-24  Eric Blake  <ebb9@byu.net>
71319         tests: add signature checks
71320         * tests/signature.h (SIGNATURE_CHECK): New file.
71321         * modules/atexit-tests (Files): Use it.
71322         * modules/btowc-tests (Files): Likewise.
71323         * modules/canonicalize-lgpl-tests (Files): Likewise.
71324         * modules/ceilf-tests (Files): Likewise.
71325         * modules/ceill-tests (Files): Likewise.
71326         * modules/chown-tests (Files): Likewise.
71327         * modules/dprintf-posix-tests (Files): Likewise.
71328         * modules/dup2-tests (Files): Likewise.
71329         * modules/dup3-tests (Files): Likewise.
71330         * modules/duplocale-tests (Files): Likewise.
71331         * modules/fchdir-tests (Files): Likewise.
71332         * modules/fcntl-tests (Files): Likewise.
71333         * modules/fdopendir-tests (Files): Likewise.
71334         * modules/fflush-tests (Files): Likewise.
71335         * modules/flock-tests (Files): Likewise.
71336         * modules/floorf-tests (Files): Likewise.
71337         * modules/floorl-tests (Files): Likewise.
71338         * modules/fnmatch-tests (Files): Likewise.
71339         * modules/fopen-tests (Files): Likewise.
71340         * modules/fprintf-posix-tests (Files): Likewise.
71341         * modules/freopen-tests (Files): Likewise.
71342         * modules/frexp-nolibm-tests (Files): Likewise.
71343         * modules/frexp-tests (Files): Likewise.
71344         * modules/frexpl-nolibm-tests (Files): Likewise.
71345         * modules/frexpl-tests (Files): Likewise.
71346         * modules/fseek-tests (Files): Likewise.
71347         * modules/fseeko-tests (Files): Likewise.
71348         * modules/fsync-tests (Files): Likewise.
71349         * modules/ftell-tests (Files): Likewise.
71350         * modules/ftello-tests (Files): Likewise.
71351         * modules/futimens-tests (Files): Likewise.
71352         * modules/getaddrinfo-tests (Files): Likewise.
71353         * modules/getcwd-tests (Files): Likewise.
71354         * modules/getdelim-tests (Files): Likewise.
71355         * modules/getdtablesize-tests (Files): Likewise.
71356         * modules/getgroups-tests (Files): Likewise.
71357         * modules/gethostname-tests (Files): Likewise.
71358         * modules/getline-tests (Files): Likewise.
71359         * modules/getopt-posix-tests (Files): Likewise.
71360         * modules/gettimeofday-tests (Files): Likewise.
71361         * modules/glob-tests (Files): Likewise.
71362         * modules/iconv-tests (Files): Likewise.
71363         * modules/inet_ntop-tests (Files): Likewise.
71364         * modules/inet_pton-tests (Files): Likewise.
71365         * modules/isblank-tests (Files): Likewise.
71366         * modules/lchown-tests (Files): Likewise.
71367         * modules/ldexpl-tests (Files): Likewise.
71368         * modules/link-tests (Files): Likewise.
71369         * modules/linkat-tests (Files): Likewise.
71370         * modules/lseek-tests (Files): Likewise.
71371         * modules/lstat-tests (Files): Likewise.
71372         * modules/mbrtowc-tests (Files): Likewise.
71373         * modules/mbsinit-tests (Files): Likewise.
71374         * modules/mbsnrtowcs-tests (Files): Likewise.
71375         * modules/mbsrtowcs-tests (Files): Likewise.
71376         * modules/memchr-tests (Files): Likewise.
71377         * modules/memcmp-tests (Files): Likewise.
71378         * modules/memmem-tests (Files): Likewise.
71379         * modules/memrchr-tests (Files): Likewise.
71380         * modules/mkdir-tests (Files): Likewise.
71381         * modules/mkfifo-tests (Files): Likewise.
71382         * modules/mkfifoat-tests (Files): Likewise.
71383         * modules/mknod-tests (Files): Likewise.
71384         * modules/nanosleep-tests (Files): Likewise.
71385         * modules/nl_langinfo-tests (Files): Likewise.
71386         * modules/obstack-printf-tests (Files): Likewise.
71387         * modules/open-tests (Files): Likewise.
71388         * modules/openat-tests (Files): Likewise.
71389         * modules/perror-tests (Files): Likewise.
71390         * modules/pipe2-tests (Files): Likewise.
71391         * modules/poll-tests (Files): Likewise.
71392         * modules/popen-tests (Files): Likewise.
71393         * modules/posix_spawn-tests (Files): Likewise.
71394         * modules/posix_spawnp-tests (Files): Likewise.
71395         * modules/pread-tests (Files): Likewise.
71396         * modules/printf-posix-tests (Files): Likewise.
71397         * modules/pty-tests (Files): Likewise.
71398         * modules/random_r-tests (Files): Likewise.
71399         * modules/rawmemchr-tests (Files): Likewise.
71400         * modules/readlink-tests (Files): Likewise.
71401         * modules/remove-tests (Files): Likewise.
71402         * modules/rename-tests (Files): Likewise.
71403         * modules/renameat-tests (Files): Likewise.
71404         * modules/rmdir-tests (Files): Likewise.
71405         * modules/round-tests (Files): Likewise.
71406         * modules/roundf-tests (Files): Likewise.
71407         * modules/roundl-tests (Files): Likewise.
71408         * modules/select-tests (Files): Likewise.
71409         * modules/setenv-tests (Files): Likewise.
71410         * modules/sigaction-tests (Files): Likewise.
71411         * modules/sleep-tests (Files): Likewise.
71412         * modules/snprintf-posix-tests (Files): Likewise.
71413         * modules/snprintf-tests (Files): Likewise.
71414         * modules/sprintf-posix-tests (Files): Likewise.
71415         * modules/stat-tests (Files): Likewise.
71416         * modules/strcasestr-tests (Files): Likewise.
71417         * modules/strchrnul-tests (Files): Likewise.
71418         * modules/strerror-tests (Files): Likewise.
71419         * modules/strsignal-tests (Files): Likewise.
71420         * modules/strstr-tests (Files): Likewise.
71421         * modules/strtod-tests (Files): Likewise.
71422         * modules/strverscmp-tests (Files): Likewise.
71423         * modules/symlink-tests (Files): Likewise.
71424         * modules/symlinkat-tests (Files): Likewise.
71425         * modules/times-tests (Files): Likewise.
71426         * modules/trunc-tests (Files): Likewise.
71427         * modules/truncf-tests (Files): Likewise.
71428         * modules/truncl-tests (Files): Likewise.
71429         * modules/tsearch-tests (Files): Likewise.
71430         * modules/uname-tests (Files): Likewise.
71431         * modules/unlink-tests (Files): Likewise.
71432         * modules/unsetenv-tests (Files): Likewise.
71433         * modules/usleep-tests (Files): Likewise.
71434         * modules/utimensat-tests (Files): Likewise.
71435         * modules/vasprintf-tests (Files): Likewise.
71436         * modules/vdprintf-posix-tests (Files): Likewise.
71437         * modules/vfprintf-posix-tests (Files): Likewise.
71438         * modules/vprintf-posix-tests (Files): Likewise.
71439         * modules/vsnprintf-posix-tests (Files): Likewise.
71440         * modules/vsnprintf-tests (Files): Likewise.
71441         * modules/vsprintf-posix-tests (Files): Likewise.
71442         * modules/wcrtomb-tests (Files): Likewise.
71443         * modules/wcsnrtombs-tests (Files): Likewise.
71444         * modules/wcsrtombs-tests (Files): Likewise.
71445         * modules/wcwidth-tests (Files): Likewise.
71446         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
71447         * tests/test-isinf.c (isinf): Likewise.
71448         * tests/test-isnan.c (isnan): Likewise.
71449         * tests/test-signbit.c (signbit): Likewise.
71450         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
71451         declaration, either as macro or with correct signature.
71452         (select): Ensure function under test is declared with correct
71453         signature in correct header.
71454         * tests/test-atexit.c (atexit): Likewise.
71455         * tests/test-btowc.c (btowc): Likewise.
71456         * tests/test-canonicalize-lgpl.c (realpath)
71457         (canonicalize_file_name): Likewise.
71458         * tests/test-ceilf1.c (ceilf): Likewise.
71459         * tests/test-ceill.c (ceill): Likewise.
71460         * tests/test-chown.c (chown): Likewise.
71461         * tests/test-dprintf-posix.c (dprintf): Likewise.
71462         * tests/test-dup2.c (dup2): Likewise.
71463         * tests/test-dup3.c (dup3): Likewise.
71464         * tests/test-duplocale.c (duplocale): Likewise.
71465         * tests/test-fchdir.c (fchdir): Likewise.
71466         * tests/test-fchownat.c (fchownat): Likewise.
71467         * tests/test-fcntl.c (fcntl): Likewise.
71468         * tests/test-fdopendir.c (fdopendir): Likewise.
71469         * tests/test-fflush.c (fflush): Likewise.
71470         * tests/test-flock.c (flock): Likewise.
71471         * tests/test-floorf1.c (floorf): Likewise.
71472         * tests/test-floorl.c (floorl): Likewise.
71473         * tests/test-fnmatch.c (fnmatch): Likewise.
71474         * tests/test-fopen.c (fopen): Likewise.
71475         * tests/test-fprintf-posix.c (fprintf): Likewise.
71476         * tests/test-freopen.c (freopen): Likewise.
71477         * tests/test-frexp.c (frexp): Likewise.
71478         * tests/test-frexpl.c (frexpl): Likewise.
71479         * tests/test-fseek.c (fseek): Likewise.
71480         * tests/test-fseeko.c (fseeko): Likewise.
71481         * tests/test-fstatat.c (fstatat): Likewise.
71482         * tests/test-fsync.c (fsync): Likewise.
71483         * tests/test-ftell.c (ftell): Likewise.
71484         * tests/test-ftello.c (ftello): Likewise.
71485         * tests/test-futimens.c (futimens): Likewise.
71486         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
71487         (gai_strerror): Likewise.
71488         * tests/test-getcwd.c (getcwd): Likewise.
71489         * tests/test-getdelim.c (getdelim): Likewise.
71490         * tests/test-getdtablesize.c (getdtablesize): Likewise.
71491         * tests/test-getgroups.c (getgroups): Likewise.
71492         * tests/test-gethostname.c (gethostname): Likewise.
71493         * tests/test-getline.c (getline): Likewise.
71494         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
71495         Likewise.
71496         * tests/test-gettimeofday.c (gettimeofday): Likewise.
71497         * tests/test-glob.c (glob, globfree): Likewise.
71498         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
71499         * tests/test-inet_ntop.c (inet_ntop): Likewise.
71500         * tests/test-inet_pton.c (inet_pton): Likewise.
71501         * tests/test-isblank.c (isblank): Likewise.
71502         * tests/test-lchown.c (lchown): Likewise.
71503         * tests/test-ldexpl.c (ldexpl): Likewise.
71504         * tests/test-link.c (link): Likewise.
71505         * tests/test-linkat.c (linkat): Likewise.
71506         * tests/test-lseek.c (lseek): Likewise.
71507         * tests/test-lstat.c (lstat): Likewise.
71508         * tests/test-mbrtowc.c (mbrtowc): Likewise.
71509         * tests/test-mbsinit.c (mbsinit): Likewise.
71510         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
71511         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
71512         * tests/test-memchr.c (memchr): Likewise.
71513         * tests/test-memcmp.c (memcmp): Likewise.
71514         * tests/test-memmem.c (memmem): Likewise.
71515         * tests/test-memrchr.c (memrchr): Likewise.
71516         * tests/test-mkdir.c (mkdir): Likewise.
71517         * tests/test-mkdirat.c (mkdirat): Likewise.
71518         * tests/test-mkfifo.c (mkfifo): Likewise.
71519         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
71520         * tests/test-mknod.c (mknod): Likewise.
71521         * tests/test-nanosleep.c (nanosleep): Likewise.
71522         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
71523         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
71524         Likewise.
71525         * tests/test-open.c (open): Likewise.
71526         * tests/test-openat.c (openat): Likewise.
71527         * tests/test-perror.c (perror): Likewise.
71528         * tests/test-pipe2.c (pipe2): Likewise.
71529         * tests/test-poll.c (poll): Likewise.
71530         * tests/test-popen.c (popen, pclose): Likewise.
71531         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
71532         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
71533         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
71534         (posix_spawn_file_actions_destroy)
71535         (posix_spawn_file_actions_addclose)
71536         (posix_spawn_file_actions_addopen)
71537         (posix_spawn_file_actions_adddup2): Likewise.
71538         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
71539         * tests/test-pread.c (pread): Likewise.
71540         * tests/test-printf-posix.c (printf): Likewise.
71541         * tests/test-pty.c (openpty, forkpty): Likewise.
71542         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
71543         (random_r): Likewise.
71544         * tests/test-rawmemchr.c (rawmemchr): Likewise.
71545         * tests/test-readlink.c (readlink): Likewise.
71546         * tests/test-remove.c (remove): Likewise.
71547         * tests/test-rename.c (rename): Likewise.
71548         * tests/test-renameat.c (renameat): Likewise.
71549         * tests/test-rmdir.c (rmdir): Likewise.
71550         * tests/test-round1.c (round): Likewise.
71551         * tests/test-roundf1.c (roundf): Likewise.
71552         * tests/test-roundl.c (roundl): Likewise.
71553         * tests/test-setenv.c (setenv): Likewise.
71554         * tests/test-sigaction.c (sigaction): Likewise.
71555         * tests/test-sleep.c (sleep): Likewise.
71556         * tests/test-snprintf.c (snprintf): Likewise.
71557         * tests/test-sprintf-posix.c (sprintf): Likewise.
71558         * tests/test-stat.c (stat): Likewise.
71559         * tests/test-stpncpy.c (stpncpy): Likewise.
71560         * tests/test-strcasestr.c (strcasestr): Likewise.
71561         * tests/test-strchrnul.c (strchrnul): Likewise.
71562         * tests/test-strerror.c (strerror): Likewise.
71563         * tests/test-strsignal.c (strsignal): Likewise.
71564         * tests/test-strstr.c (strstr): Likewise.
71565         * tests/test-strtod.c (strtod): Likewise.
71566         * tests/test-strverscmp.c (strverscmp): Likewise.
71567         * tests/test-symlink.c (symlink): Likewise.
71568         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
71569         * tests/test-times.c (times): Likewise.
71570         * tests/test-trunc1.c (trunc): Likewise.
71571         * tests/test-truncf1.c (truncf): Likewise.
71572         * tests/test-truncl.c (truncl): Likewise.
71573         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
71574         Likewise.
71575         * tests/test-uname.c (uname): Likewise.
71576         * tests/test-unlink.c (unlink): Likewise.
71577         * tests/test-unlinkat.c (unlinkat): Likewise.
71578         * tests/test-unsetenv.c (unsetenv): Likewise.
71579         * tests/test-usleep.c (usleep): Likewise.
71580         * tests/test-utimensat.c (utimensat): Likewise.
71581         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
71582         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
71583         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
71584         * tests/test-vprintf-posix.c (vprintf): Likewise.
71585         * tests/test-vsnprintf.c (vsnprintf): Likewise.
71586         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
71587         * tests/test-wcrtomb.c (wcrtomb): Likewise.
71588         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
71589         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
71590         * tests/test-wcwidth.c (wcwidth): Likewise.
71592         build: pull in conditional headers during GNULIB_POSIXCHECK
71593         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
71594         definitions from any conditionally-included headers.
71595         * lib/stdlib.in.h (includes): Likewise.
71596         * lib/unistd.in.h (includes): Likewise.
71598 2009-12-24  Bruno Haible  <bruno@clisp.org>
71600         * tests/test-argv-iter.c: Include header file being tested immediately
71601         after config.h.
71602         * tests/test-base64.c: Likewise.
71603         * tests/test-flock.c: Likewise.
71604         * tests/test-fsync.c: Likewise.
71605         * tests/test-getdate.c: Likewise.
71606         * tests/test-getndelim2.c: Likewise.
71607         * tests/test-isfinite.c: Likewise.
71608         * tests/test-isinf.c: Likewise.
71609         * tests/test-strerror.c: Likewise.
71610         * tests/test-strsignal.c: Likewise.
71612 2009-12-23  Eric Blake  <ebb9@byu.net>
71614         unistd: work around cygwin bug
71615         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
71616         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
71617         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
71619 2009-12-23  Bruno Haible  <bruno@clisp.org>
71621         localename: More tests.
71622         * tests/test-localename.c (SIZEOF): New macro.
71623         (categories): New variable.
71624         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
71625         test_locale_name_default): Add test w.r.t. thread locale.
71626         (test_locale_name_thread): New function.
71627         (main): Invoke it.
71629         localename: Make aware of thread locale.
71630         * lib/localename.h (gl_locale_name_thread): New declaration.
71631         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
71632         behaviour with respect to thread locale.
71633         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
71634         <langinfo.h>, glthread/lock.h.
71635         (SIZE_BITS): New macro.
71636         (string_hash): New function.
71637         (struct hash_node): New type.
71638         (HASH_TABLE_SIZE): New macro.
71639         (struniq_hash_table, struniq_lock): New variables.
71640         (struniq): New function.
71641         (gl_locale_name_thread): New function.
71642         (gl_locale_name): Invoke it.
71643         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
71644         * modules/localename (Depends-on): Add lock.
71645         Reported by Mike Gran <spk121@yahoo.com>.
71647 2009-12-23  Eric Blake  <ebb9@byu.net>
71649         va-args: new module
71650         * modules/va-args: New file.
71651         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
71652         * MODULES.html.sh (Core language properties): Mention it.
71654         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
71655         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
71656         named alias for __attribute__((__unused__)).
71657         * lib/chown.c: Update client.
71658         * lib/fchmodat.c: Likewise.
71659         * lib/fts.c: Likewise.
71660         * lib/getdate.y: Likewise.
71661         * lib/getgroups.c: Likewise.
71662         * lib/getopt.c: Likewise.
71663         * lib/getugroups.c: Likewise.
71664         * lib/mkdir.c: Likewise.
71665         * lib/mkfifo.c: Likewise.
71666         * lib/mkfifoat.c: Likewise.
71667         * lib/mknod.c: Likewise.
71668         * lib/mknodat.c: Likewise.
71669         * lib/readlink.c: Likewise.
71670         * lib/se-context.in.h: Likewise.
71671         * lib/se-selinux.in.h: Likewise.
71672         * lib/sockets.c: Likewise.
71673         * lib/symlink.c: Likewise.
71674         * lib/symlinkat.c: Likewise.
71675         * lib/unicodeio.c: Likewise.
71676         * lib/unistr.h: Likewise.
71677         * tests/test-areadlink.c: Likewise.
71678         * tests/test-areadlinkat.c: Likewise.
71679         * tests/test-filenamecat.c: Likewise.
71680         * tests/test-fseeko.c: Likewise.
71681         * tests/test-ftello.c: Likewise.
71682         * tests/test-getdate.c: Likewise.
71683         * tests/test-getgroups.c: Likewise.
71684         * tests/test-gethostname.c: Likewise.
71685         * tests/test-quotearg.c: Likewise.
71686         * tests/test-version-etc.c: Likewise.
71687         * tests/test-xalloc-die.c: Likewise.
71688         * tests/test-xfprintf-posix.c: Likewise.
71689         * tests/test-xprintf-posix.c: Likewise.
71690         * tests/test-xvasprintf.c: Likewise.
71692         tests: avoid compiler warnings
71693         * tests/test-fcntl.c (main): Delete unused parameters.
71694         * tests/test-freopen-safer.c (main): Likewise.
71695         * tests/test-xalloc-die.c (main): Mark unused parameters.
71696         * tests/test-fseeko.c (main): Likewise.
71697         * tests/test-ftello.c (main): Likewise.
71698         * tests/test-nanosleep.c (main): Avoid declaration warning.
71699         * tests/test-sleep.c (main): Likewise.
71700         * tests/test-unsetenv.c (main): Silence warning about string
71701         literal.
71702         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
71704 2009-12-23  Bruno Haible  <bruno@clisp.org>
71706         * tests/test-localename.c (test_locale_name): New function, extracted
71707         from main. Also test mixed situations.
71708         (test_locale_name_posix, test_locale_name_environ,
71709         test_locale_name_default): New functions.
71710         (main): Invoke them all.
71711         * modules/localename-tests (configure.ac): Test for newlocale.
71713 2009-12-23  Bruno Haible  <bruno@clisp.org>
71715         unistd: Ensure getcwd gets declared before being overridden.
71716         * lib/unistd.in.h: Conditionally include <io.h>.
71718 2009-12-22  Bruno Haible  <bruno@clisp.org>
71720         wchar: Diagnose broken combination of glibc and gcc versions and flags.
71721         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
71722         (gl_WCHAR_H): Invoke it.
71723         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
71724         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
71725         Reported by Karl Berry <karl@freefriends.org>.
71727 2009-12-22  Eric Blake  <ebb9@byu.net>
71729         math, unistd: avoid redundant includes
71730         * lib/math.in.h (isnan): No need to re-include <math.h>.
71731         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
71733         getsubopt: work around cygwin bug
71734         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
71735         avoid conflicting with system getsubopt.
71736         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
71737         bug.
71739         getopt: synchronize from glibc
71740         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
71741         parameter order.  Adjust all callers.
71742         (_getopt_internal_r, main): Adjust quoting in error messages.
71743         Drop considerations for outdated POSIX 1003.2 error message.
71744         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
71745         callers.
71746         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
71748         test-getopt: test stderr behavior
71749         * modules/getopt-posix-tests (Depends-on): Add dup2.
71750         * tests/test-getopt.c (ASSERT): Avoid stderr.
71751         (main): Move stderr to a temporary file.
71752         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
71753         Instead, add parameter to inform caller if output occurred.
71754         (test_getopt): Adjust all existing tests to expect silence, and
71755         add new tests of leading ":".
71756         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
71757         glibc shortcomings with leading "-:" or "+:" in optstring.
71758         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
71759         Likewise.
71760         * doc/posix-functions/getopt.texi (getopt): Likewise.
71762         test-getopt: enhance test
71763         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
71764         supports optind=0.
71765         * tests/test-getopt.c (OPTIND_MIN): Move...
71766         * tests/test-getopt.h (OPTIND_MIN): ...here.
71767         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
71768         Require that optind=0 works, since modern BSD supports it in
71769         addition to optreset, and since coreutils expects it.
71770         (test_getopt_long_only): New test.
71771         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
71772         glibc shortcomings with 'W;', and enforcement of optind=0.
71773         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
71774         Likewise.
71776 2009-12-21  Bruno Haible  <bruno@clisp.org>
71778         localename: Improvements for MacOS X and Cygwin.
71779         * lib/localename.h (gl_locale_name_environ): New declaration.
71780         * lib/localename.c (gl_locale_name_environ): New function, extracted from
71781         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
71782         (gl_locale_name_posix): Invoke it.
71783         (gl_locale_name_default): Add comments. Use Windows native API also on
71784         Cygwin.
71786 2009-12-21  Bruno Haible  <bruno@clisp.org>
71788         Update list of Win32 locale ids.
71789         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
71790         (LANG_SAMI): Renamed from LANG_SAAMI.
71791         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
71792         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
71793         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
71794         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
71795         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
71796         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
71797         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
71798         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
71799         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
71800         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
71801         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
71802         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
71803         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
71804         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
71805         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
71806         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
71807         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
71808         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
71809         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
71810         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
71811         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
71812         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
71813         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
71814         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
71815         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
71816         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
71817         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
71818         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
71819         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
71820         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
71821         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
71822         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
71823         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
71824         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
71825         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
71826         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
71827         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
71828         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
71829         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
71830         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
71831         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
71832         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
71833         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
71834         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
71835         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
71836         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
71837         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
71838         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
71839         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
71840         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
71841         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
71842         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
71843         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
71844         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
71845         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
71846         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
71847         Add more languages and countries for Sami, Sorbian. Add more countries
71848         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
71849         for Pashto. Change country for Syriac, Tswana.
71851 2009-12-21  Eric Blake  <ebb9@byu.net>
71853         test-utimens: avoid spurious failure
71854         * tests/test-chown.h (nap): Factor...
71855         * tests/nap.h: ...into new file.
71856         * tests/test-lchown.h (nap): Avoid duplication.
71857         * tests/test-utimens-common.h (nap): Use shared implementation,
71858         necessary on file systems with 1-second resolution.
71859         * modules/chown-tests (Files): Include new file.
71860         * modules/fdutimensat-tests (Files): Likewise.
71861         * modules/futimens-tests (Files): Likewise.
71862         * modules/lchown-tests (Files): Likewise.
71863         * modules/openat-tests (Files): Likewise.
71864         * modules/utimens-tests (Files): Likewise.
71865         * modules/utimensat-tests (Files): Likewise.
71867 2009-12-19  Eric Blake  <ebb9@byu.net>
71869         futimens, utimensat: work around Linux bug
71870         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
71871         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
71872         * lib/utimensat.c (rpl_utimensat): Work around it.
71873         * lib/futimens.c (rpl_futimens): Adjust comment.
71875         utimens: work around Linux ctime bug
71876         * lib/utimens.c (detect_ctime_bug): New helper function.
71877         (update_timespec): Differentiate between workaround needed for
71878         this bug vs. what is needed for systems that lack utimensat.
71879         (fdutimens, lutimens): Work around bug.
71881         utimens: check for ctime update
71882         * tests/test-utimens-common.h (check_ctime): Define.
71883         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
71884         * tests/test-futimens.h (test_futimens): Likewise.
71885         * tests/test-lutimens.h (test_lutimens): Likewise.
71886         * doc/posix-functions/futimens.texi (futimens): Document the bug.
71887         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
71889 2009-12-19  Bruno Haible  <bruno@clisp.org>
71891         dprintf-posix: Check against memory leak fixed on 2009-12-15.
71892         * tests/test-dprintf-posix2.sh: New file.
71893         * tests/test-dprintf-posix2.c: New file.
71894         * modules/dprintf-posix-tests (Files): Add them.
71895         (configure.ac): Check for getrlimit and setrlimit.
71896         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
71898 2009-12-19  Bruno Haible  <bruno@clisp.org>
71900         fprintf-posix: Check against memory leak fixed on 2009-12-15.
71901         * tests/test-fprintf-posix3.sh: New file.
71902         * tests/test-fprintf-posix3.c: New file.
71903         * modules/fprintf-posix-tests (Files): Add them.
71904         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
71906 2009-12-19  Eric Blake  <ebb9@byu.net>
71908         dirfd: fix prototype
71909         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
71910         * lib/dirfd.c (dirfd): Likewise.
71912         canonicalize: reduce memory usage
71913         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
71914         allocation to size.
71915         Reported by Solar Designer <solar@openwall.com>.
71917 2009-12-19  Bruno Haible  <bruno@clisp.org>
71919         New module attribute 'Applicability'.
71920         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
71921         * gnulib-tool: New option --extract-applicability.
71922         (func_usage): Document it.
71923         (sed_extract_prog): Recognize it.
71924         (func_get_applicability): New function.
71925         (func_import): Generalize handling of 'link-warning' module.
71926         * modules/link-warning (Applicability): New section.
71927         * modules/arg-nonnull (Applicability): New section.
71928         Repoted by Simon Josefsson <simon@josefsson.org>.
71930 2009-12-19  Bruno Haible  <bruno@clisp.org>
71932         fflush: tweak
71933         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
71934         * lib/fseeko.c (rpl_fseeko): Likewise.
71936 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
71938         * lib/gl_list.h: Fix typo in comment.
71940 2009-12-16  Eric Blake  <ebb9@byu.net>
71942         fcntl: use to simplify other modules
71943         * modules/cloexec (Depends-on): Add fcntl.
71944         * modules/fchdir (Depends-on): Likewise.
71945         * modules/fd-safer-flag (Depends-on): Likewise.
71946         * modules/unistd-safer (Depends-on): Likewise.
71947         * modules/dup3 (configure.ac): Set module indicator.
71948         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
71949         missing.
71950         * lib/fchdir.c (_gl_register_dup): Fix comment.
71951         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
71952         * lib/dup-safer.c (dup_safer): Likewise.
71953         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
71954         * lib/dup3.c (dup3): Likewise.
71955         * tests/test-fchdir.c (main): Enhance test.
71956         Fixes a dup_cloexec bug reported by Ondřej Vašík.
71958         fcntl: port portions of fcntl to mingw
71959         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
71960         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
71961         replacement for mingw.
71962         * modules/fcntl (Description): Update.
71963         (Depends-on): Add dup2.
71964         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
71965         * modules/fcntl-h (Makefile.am): Substitute it.
71966         * lib/fcntl.in.h (fcntl): Update declaration.
71967         (F_DUPFD, F_GETFD): New macros, when needed.
71968         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
71969         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
71970         * tests/test-fcntl.c (check_flags, main): Enhance test for items
71971         we now guarantee.
71973         fcntl: work around cygwin bug in F_DUPFD
71974         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
71975         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
71976         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
71977         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
71978         * doc/posix-functions/fcntl.texi (fcntl): Document it.
71980         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
71981         * modules/fcntl (Files): List new files.
71982         (configure.ac): Run a test.
71983         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
71984         * lib/fcntl.c (rpl_fcntl): Likewise.
71985         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
71986         (gl_FCNTL_H): Always replace fcntl.h.
71987         * modules/fcntl-h (Makefile.am): Substitute witnesses.
71988         * lib/fcntl.in.h (fcntl): Declare replacement.
71989         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
71990         needed, plus a witness.
71991         * doc/posix-functions/fcntl.texi (fcntl): Document this.
71992         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
71993         * tests/test-fcntl.c: New file.
71994         * modules/fcntl-tests: Likewise.
71996         binary-io: avoid potential compilation warning
71997         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
71998         directives.
72000         fflush: avoid compilation error on NetBSD
72001         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
72002         between off_t and fpos_t, since the latter is sometimes a struct.
72003         * lib/fseeko.c (rpl_fseeko): Likewise.
72004         Reported by Alexander Nasonov <alnsn@yandex.ru>.
72006 2009-12-15  Eric Blake  <ebb9@byu.net>
72008         fcntl-h, stdio, sys_ioctl: fix declarations
72009         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
72010         function must not take arguments.
72011         * lib/sys_ioctl.in.h (ioctl): Likewise.
72012         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
72013         (open): Add a link warning.
72015 2009-12-15  Jim Meyering  <meyering@redhat.com>
72017         areadlink, areadlink-with-size: relax license to LGPLv2+
72018         * modules/areadlink (License): Relax to LGPLv2+.
72019         * modules/areadlink-with-size (License): Likewise.
72021 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
72022             Bruno Haible  <bruno@clisp.org>
72024         *printf: Fix memory leak.
72025         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
72026         * lib/vfprintf.c (vfprintf): Likewise.
72027         * lib/dprintf.c (dprintf): Likewise.
72028         * lib/vdprintf.c (vdprintf): Likewise.
72030 2009-12-14  Eric Blake  <ebb9@byu.net>
72032         accept4: adjust module dependencies
72033         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
72035         utimens: one more try at avoiding compiler warning
72036         * lib/utimens.c (lutimens): Lower scope of result.
72038 2009-12-13  Bruno Haible  <bruno@clisp.org>
72040         Move the malloc checking from module 'list' to new module 'xlist'.
72041         * modules/xlist: New file.
72042         * lib/gl_xlist.h: New file.
72043         * lib/gl_xlist.c: New file.
72044         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
72045         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
72046         gl_list_add_last, gl_list_add_before, gl_list_add_after,
72047         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
72048         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
72049         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
72050         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
72051         gl_sortedlist_nx_add): New declarations.
72052         (struct gl_list_implementation): Rename and change methods accordingly.
72053         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
72054         (gl_list_nx_create): Renamed from gl_list_create.
72055         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72056         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72057         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72058         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72059         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72060         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72061         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72062         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72063         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
72064         gl_list_create_empty.
72065         (gl_list_nx_create): Renamed from gl_list_create.
72066         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72067         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72068         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72069         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72070         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72071         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72072         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72073         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72074         * lib/gl_array_list.c: Don't include xalloc.h.
72075         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
72076         NULL upon out-of-memory.
72077         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
72078         out-of-memory.
72079         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
72080         Change return type to 'int'.
72081         (gl_array_nx_set_at): Renamed from gl_array_set_at.
72082         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72083         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
72084         upon out-of-memory.
72085         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
72086         upon out-of-memory.
72087         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
72088         upon out-of-memory.
72089         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
72090         upon out-of-memory.
72091         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
72092         out-of-memory.
72093         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
72094         Update.
72095         (gl_array_list_implementation): Update.
72096         * lib/gl_carray_list.c: Don't include xalloc.h.
72097         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
72098         Return NULL upon out-of-memory.
72099         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
72100         out-of-memory.
72101         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
72102         Change return type to 'int'.
72103         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
72104         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72105         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
72106         upon out-of-memory.
72107         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
72108         upon out-of-memory.
72109         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
72110         out-of-memory.
72111         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
72112         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
72113         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
72114         Update.
72115         (gl_carray_list_implementation): Update.
72116         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
72117         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
72118         gl_linked_create_empty. Return NULL upon out-of-memory.
72119         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
72120         out-of-memory.
72121         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
72122         Change return type to 'int'. Return -1 upon out-of-memory.
72123         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
72124         out-of-memory.
72125         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
72126         upon out-of-memory.
72127         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
72128         upon out-of-memory.
72129         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
72130         NULL upon out-of-memory.
72131         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
72132         upon out-of-memory.
72133         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
72134         out-of-memory.
72135         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
72136         Update.
72137         * lib/gl_linked_list.c: Don't include xalloc.h.
72138         (gl_linked_list_implementation): Update.
72139         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
72140         (add_to_bucket): Change return type to 'int'.
72141         (gl_linkedhash_list_implementation): Update.
72142         * lib/gl_anytree_list1.h (free_subtree): New function.
72143         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
72144         gl_tree_create_empty. Return NULL upon out-of-memory.
72145         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
72146         Change return type to 'int'. Return -1 upon out-of-memory.
72147         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
72148         out-of-memory.
72149         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
72150         (gl_tree_remove_node): New function, moved here from
72151         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
72152         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
72153         Update.
72154         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
72155         malloc, not xmalloc. Return NULL upon out-of-memory.
72156         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72157         out-of-memory.
72158         (gl_tree_remove_node_from_tree): New function, extracted from
72159         gl_tree_remove_node.
72160         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72161         upon out-of-memory.
72162         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72163         out-of-memory.
72164         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72165         upon out-of-memory.
72166         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72167         upon out-of-memory.
72168         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72169         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
72170         not xmalloc. Return NULL upon out-of-memory.
72171         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72172         out-of-memory.
72173         (gl_tree_remove_node_from_tree): New function, extracted from
72174         gl_tree_remove_node.
72175         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72176         upon out-of-memory.
72177         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72178         out-of-memory.
72179         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72180         upon out-of-memory.
72181         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72182         upon out-of-memory.
72183         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72184         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
72185         gl_anytree_list1.h before gl_anyavltree_list2.h.
72186         (gl_avltree_list_implementation): Update.
72187         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
72188         gl_anytree_list1.h before gl_anyavltree_list2.h.
72189         (gl_rbtree_list_implementation): Update.
72190         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
72191         Change return type to 'int'. Return -1 upon out-of-memory. Use
72192         __builtin_expect.
72193         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
72194         (gl_avltreehash_list_implementation): Update.
72195         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
72196         (gl_rbtreehash_list_implementation): Update.
72197         * modules/array-list (Depends-on): Remove xalloc.
72198         * modules/carray-list (Depends-on): Likewise.
72199         * modules/linked-list (Depends-on): Likewise.
72200         * modules/linkedhash-list (Depends-on): Likewise.
72201         * modules/avltree-list (Depends-on): Likewise.
72202         * modules/rbtree-list (Depends-on): Likewise.
72203         * modules/avltreehash-list (Depends-on): Likewise.
72204         * modules/rbtreehash-list (Depends-on): Likewise.
72206         * modules/xsublist: New file.
72207         * lib/gl_xsublist.h: New file.
72208         * lib/gl_xsublist.c: New file.
72209         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
72210         (gl_sublist_nx_create): New declaration.
72211         * lib/gl_sublist.c: Don't include xalloc.h.
72212         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
72213         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
72214         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
72215         Change return type to 'int'. Return -1 upon out-of-memory.
72216         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
72217         upon out-of-memory.
72218         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
72219         NULL upon out-of-memory.
72220         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
72221         upon out-of-memory.
72222         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
72223         NULL upon out-of-memory.
72224         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
72225         NULL upon out-of-memory.
72226         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
72227         upon out-of-memory.
72228         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
72229         (gl_sublist_list_implementation): Update.
72230         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
72231         upon out-of-memory.
72232         * modules/sublist (Depends-on): Remove xalloc.
72234         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
72235         * tests/test-carray_list.c: Likewise.
72236         * tests/test-linked_list.c: Likewise.
72237         * tests/test-linkedhash_list.c: Likewise.
72238         * tests/test-avltree_list.c: Likewise.
72239         * tests/test-rbtree_list.c: Likewise.
72240         * tests/test-avltreehash_list.c: Likewise.
72241         * tests/test-rbtreehash_list.c: Likewise.
72242         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
72243         * modules/carray-list-tests (Makefile.am): Likewise.
72244         * modules/linked-list-tests (Makefile.am): Likewise.
72245         * modules/linkedhash-list-tests (Makefile.am): Likewise.
72246         * modules/avltree-list-tests (Makefile.am): Likewise.
72247         * modules/rbtree-list-tests (Makefile.am): Likewise.
72248         * modules/avltreehash-list-tests (Makefile.am): Likewise.
72249         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
72251         * NEWS: Mention the changes.
72253         * lib/clean-temp.c: Include gl_xlist.h.
72254         * modules/clean-temp (Depends-on): Add xlist.
72256         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
72257         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
72259         * tests/test-array_oset.c: Include gl_xlist.h.
72260         * modules/array-oset-tests (Depends-on): Add xlist.
72262         Reported by José E. Marchesi <jemarch@gnu.org>.
72264 2009-12-13  Bruno Haible  <bruno@clisp.org>
72266         Move the malloc checking from module 'oset' to new module 'xoset'.
72267         * modules/xoset: New file.
72268         * lib/gl_xoset.h: New file.
72269         * lib/gl_xoset.c: New file.
72270         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
72271         declarations.
72272         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
72273         (struct gl_oset_implementation): Rename and change methods accordingly.
72274         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
72275         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72276         'int'. Mark as __warn_unused_result__.
72277         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
72278         gl_oset_create_empty.
72279         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72280         'int'.
72281         * lib/gl_array_oset.c: Don't include xalloc.h.
72282         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
72283         malloc, not xmalloc.
72284         (grow): Change return type to 'int'. Don't call xalloc_die.
72285         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
72286         to 'int'.
72287         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
72288         'int'.
72289         (gl_array_oset_implementation): Update.
72290         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
72291         gl_tree_create_empty.
72292         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
72293         'int'.
72294         * lib/gl_avltree_oset.c: Don't include xalloc.h.
72295         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72296         xmalloc.
72297         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72298         not xmalloc.
72299         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72300         xmalloc.
72301         (gl_avltree_oset_implementation): Update.
72302         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
72303         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72304         xmalloc.
72305         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72306         not xmalloc.
72307         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72308         xmalloc.
72309         (gl_rbtree_oset_implementation): Update.
72310         * modules/array-oset (Depends-on): Remove xalloc.
72311         * modules/avltree-oset (Depends-on): Likewise.
72312         * modules/rbtree-oset (Depends-on): Likewise.
72313         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
72314         * tests/test-avltree_oset.c: Likewise.
72315         * tests/test-rbtree_oset.c: Likewise.
72316         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72317         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
72318         * modules/rbtree-oset-tests (Makefile.am): Likewise.
72319         * NEWS: Mention the change.
72321 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
72323         maint.mk: allow a project to override release-prep commands
72324         * top/maint.mk (alpha, beta, stable): Move release-preparatory
72325         commands into a new rule.
72326         (release-prep): New rule.
72327         (release-prep-hook): New overridable variable.
72329 2009-12-13  Bruno Haible  <bruno@clisp.org>
72331         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
72333 2009-12-13  Jim Meyering  <meyering@redhat.com>
72335         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
72336         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
72338 2009-12-12  Bruno Haible  <bruno@clisp.org>
72340         duplocale: Tweak.
72341         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
72343 2009-12-12  Karl Berry  <karl@gnu.org>
72345         * config/srclist.txt (strtoll.c): tab changes, no more sync.
72347 2009-12-12  Bruno Haible  <bruno@clisp.org>
72349         * m4/po.m4: Undo incorrect untabification.
72351 2009-12-12  Bruno Haible  <bruno@clisp.org>
72353         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
72354         * modules/c-strtod (Depends-on): Add locale.
72355         * modules/c-strtold (Depends-on): Likewise.
72357 2009-12-12  Bruno Haible  <bruno@clisp.org>
72359         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
72361 2009-12-11  Eric Blake  <ebb9@byu.net>
72363         setenv: relax requirement in light of POSIX ruling
72364         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
72365         not NULL.
72366         * tests/test-setenv.c (main): Relax test.
72367         * tests/test-unsetenv.c (main): Likewise.
72368         * doc/posix-functions/setenv.texi (setenv): Document this.
72369         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
72371 2009-12-11  Bruno Haible  <bruno@clisp.org>
72373         New module 'fd-safer-flag'.
72374         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
72375         * lib/dup-safer.c (dup_safer_flag): Remove function.
72376         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
72377         * lib/fd-safer.c (fd_safer_flag): Remove function.
72378         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
72379         * modules/cloexec (configure.ac): Drop indicator macro.
72380         * modules/fd-safer-flag: New file.
72381         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
72382         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
72383         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
72385 2009-12-11  Bruno Haible  <bruno@clisp.org>
72387         Tests for module 'nl_langinfo'.
72388         * modules/nl_langinfo-tests: New file.
72389         * tests/test-nl_langinfo.sh: New file.
72390         * tests/test-nl_langinfo.c: New file.
72392         New module 'nl_langinfo'.
72393         * lib/nl_langinfo.c: New file.
72394         * m4/nl_langinfo.m4: New file.
72395         * modules/nl_langinfo: New file.
72396         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
72398 2009-12-11  Bruno Haible  <bruno@clisp.org>
72400         Tests for module 'langinfo'.
72401         * modules/langinfo-tests: New file.
72402         * tests/test-langinfo.c: New file.
72404         New module 'langinfo'.
72405         * lib/langinfo.in.h: New file.
72406         * m4/langinfo_h.m4: New file.
72407         * modules/langinfo: New file.
72408         * doc/posix-headers/langinfo.texi: Mention the new module.
72410 2009-12-11  Bruno Haible  <bruno@clisp.org>
72412         * lib/config.charset: Untabify.
72414 2009-12-11  Bruno Haible  <bruno@clisp.org>
72416         * modules/unistd-safer (configure.ac): Drop indicator macro.
72418 2009-12-11  Bruno Haible  <bruno@clisp.org>
72420         Move pipe2-safer code to its own file.
72421         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
72422         * lib/pipe-safer.c (pipe2_safer): Remove function.
72423         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
72424         (Makefile.am): Add it to lib_SOURCES.
72426 2009-12-10  Bruno Haible  <bruno@clisp.org>
72428         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
72430 2009-12-10  Bruno Haible  <bruno@clisp.org>
72432         Declare which arguments expect non-NULL values, for GCC and clang.
72433         * build-aux/arg-nonnull.h: New file.
72434         * modules/arg-nonnull: New file.
72435         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
72436         (inet_ntop, inet_pton): Use it.
72437         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
72438         (closedir, dirfd, opendir, scandir, alphasort): Use it.
72439         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
72440         (open, openat): Use it.
72441         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
72442         (fnmatch): Use it.
72443         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
72444         (getopt, getopt_long, getopt_long_only): Use it.
72445         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
72446         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
72447         Use it.
72448         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
72449         (iconv_open): Use it.
72450         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
72451         (strtoimax, strtoumax): Use it.
72452         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
72453         (duplocale): Use it.
72454         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
72455         (frexp, frexpl): Use it.
72456         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
72457         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
72458         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
72459         (tsearch, tfind, tdelete, twalk): Use it.
72460         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
72461         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
72462         sigpending): Use it.
72463         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
72464         (posix_spawn, posix_spawnp, posix_spawnattr_init,
72465         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
72466         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
72467         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
72468         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
72469         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
72470         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
72471         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
72472         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
72473         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
72474         Use it.
72475         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
72476         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
72477         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
72478         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
72479         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
72480         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
72481         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
72482         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
72483         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
72484         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
72485         strtoull, unsetenv): Use it.
72486         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
72487         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
72488         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
72489         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
72490         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
72491         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
72492         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
72493         (strcasecmp, strncasecmp): Use it.
72494         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
72495         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
72496         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
72497         rpl_setsockopt): Use it.
72498         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
72499         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
72500         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
72501         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
72502         (gettimeofday): Use it.
72503         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
72504         (times): Use it.
72505         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
72506         (uname): Use it.
72507         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
72508         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
72509         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
72510         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
72511         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
72512         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
72513         unlinkat, write): Use it.
72514         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
72515         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
72516         * lib/argv-iter.h: Include arg-nonnull.h.
72517         (_ATTRIBUTE_NONNULL_): Remove macro.
72518         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
72519         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
72520         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
72521         optimization.
72522         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
72523         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
72524         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
72525         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
72526         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
72527         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
72528         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
72529         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
72530         * modules/arpa_inet (Depends-on): Add arg-nonnull.
72531         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
72532         * modules/dirent (Depends-on): Add arg-nonnull.
72533         (Makefile.am): Insert arg-nonnull.h into dirent.h.
72534         * modules/fcntl-h (Depends-on): Add arg-nonnull.
72535         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
72536         * modules/fnmatch (Depends-on): Add arg-nonnull.
72537         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
72538         * modules/getopt-posix (Depends-on): Add arg-nonnull.
72539         (Makefile.am): Insert arg-nonnull.h into getopt.h.
72540         * modules/glob (Depends-on): Add arg-nonnull.
72541         (Makefile.am): Insert arg-nonnull.h into glob.h.
72542         * modules/iconv_open (Depends-on): Add arg-nonnull.
72543         (Makefile.am): Insert arg-nonnull.h into iconv.h.
72544         * modules/inttypes (Depends-on): Add arg-nonnull.
72545         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
72546         * modules/locale (Depends-on): Add arg-nonnull.
72547         (Makefile.am): Insert arg-nonnull.h into locale.h.
72548         * modules/math (Depends-on): Add arg-nonnull.
72549         (Makefile.am): Insert arg-nonnull.h into math.h.
72550         * modules/netdb (Depends-on): Add arg-nonnull.
72551         (Makefile.am): Insert arg-nonnull.h into netdb.h.
72552         * modules/search (Depends-on): Add arg-nonnull.
72553         (Makefile.am): Insert arg-nonnull.h into search.h.
72554         * modules/signal (Depends-on): Add arg-nonnull.
72555         (Makefile.am): Insert arg-nonnull.h into signal.h.
72556         * modules/spawn (Depends-on): Add arg-nonnull.
72557         (Makefile.am): Insert arg-nonnull.h into spawn.h.
72558         * modules/stdio (Depends-on): Add arg-nonnull.
72559         (Makefile.am): Insert arg-nonnull.h into stdio.h.
72560         * modules/stdlib (Depends-on): Add arg-nonnull.
72561         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
72562         * modules/string (Depends-on): Add arg-nonnull.
72563         (Makefile.am): Insert arg-nonnull.h into string.h.
72564         * modules/strings (Depends-on): Add arg-nonnull.
72565         (Makefile.am): Insert arg-nonnull.h into strings.h.
72566         * modules/sys_socket (Depends-on): Add arg-nonnull.
72567         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
72568         * modules/sys_stat (Depends-on): Add arg-nonnull.
72569         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
72570         * modules/sys_time (Depends-on): Add arg-nonnull.
72571         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
72572         * modules/sys_times (Depends-on): Add arg-nonnull.
72573         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
72574         * modules/sys_utsname (Depends-on): Add arg-nonnull.
72575         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
72576         * modules/time (Depends-on): Add arg-nonnull.
72577         (Makefile.am): Insert arg-nonnull.h into time.h.
72578         * modules/unistd (Depends-on): Add arg-nonnull.
72579         (Makefile.am): Insert arg-nonnull.h into unistd.h.
72580         * modules/wchar (Depends-on): Add arg-nonnull.
72581         (Makefile.am): Insert arg-nonnull.h into wchar.h.
72582         * modules/argv-iter (Depends-on): Add arg-nonnull.
72583         * tests/test-canonicalize.c (null_ptr): New function.
72584         (main): Use it.
72585         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
72586         (main): Use it.
72587         * tests/test-memmem.c (null_ptr): New function.
72588         (main): Use it.
72589         Reported by Jim Meyering.
72591 2009-12-10  Bruno Haible  <bruno@clisp.org>
72593         Use spaces for indentation, not tabs.
72594         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
72595         * m4/*.m4: Untabify.
72596         * build-aux/*.h: Untabify.
72597         * tests/**/*.[hc]: Untabify.
72598         * README: New section "Indent with spaces, not TABs", based on
72599         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
72600         * NEWS: Mention the change.
72602 2009-12-10  Bruno Haible  <bruno@clisp.org>
72604         pty test: Fix link error.
72605         * modules/pty-tests (Makefile.am): Add the default LDADD value to
72606         test_pty_LDADD.
72608 2009-12-07  Simon Josefsson  <simon@josefsson.org>
72610         * modules/pty: New file.
72611         * modules/pty-tests: New file.
72612         * m4/pty.m4: New file.
72613         * tests/test-pty.c: New file.
72614         * doc/glibc-headers/pty.texi: Modified.
72615         * doc/glibc-functions/forkpty.texi: Modified.
72616         * doc/glibc-functions/openpty.texi: Modified.
72618 2009-12-10  Bruno Haible  <bruno@clisp.org>
72620         Avoid syntax error in C++ mode.
72621         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
72623 2009-12-10  Bruno Haible  <bruno@clisp.org>
72625         Use sed with option -e.
72626         * gnulib-tool (func_version, func_emit_copyright_notice,
72627         func_emit_initmacro_end, func_import, func_create_testdir): Pass
72628         option -e to sed.
72629         * modules/link-warning (Makefile.am): Likewise.
72631 2009-12-10  Jim Meyering  <meyering@redhat.com>
72633         mgetgroups: do not write bytes beyond end of malloc'd buffer
72634         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
72635         username, we call getgroups with a one-element-shorter buffer,
72636         but still told it the length was original, max_n_groups.
72638 2009-12-09  Eric Blake  <ebb9@byu.net>
72640         cloexec: relax license
72641         * modules/cloexec (Maintainer): Add myself.
72642         (License): Use LGPL, not GPL.
72644         link-warning: optimize generation
72645         * modules/link-warning (Makefile.am): Reduce process usage.
72647 2009-12-09  Bruno Haible  <bruno@clisp.org>
72649         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
72650         workaround was added on 2009-11-17.
72652 2009-12-09  Jim Meyering  <meyering@redhat.com>
72653             Bruno Haible  <bruno@clisp.org>
72655         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
72656         * modules/link-warning (Makefile.am): Make the comment-removing sed
72657         command more robust in the face of bootstrap-prepended comment lines.
72659 2009-12-09  Bruno Haible  <bruno@clisp.org>
72661         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
72662         most one group.
72664 2009-12-09  Simon Josefsson  <simon@josefsson.org>
72665             Bruno Haible  <bruno@clisp.org>
72667         * build-aux/link-warning.h: Add copyright notice.
72668         * modules/link-warning (Makefile.am): Generate link-warning.h from
72669         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
72670         * NEWS: Mention change in link-warning module.
72671         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
72672         * modules/dirent (Makefile.am): Add dependency to dirent.h.
72673         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
72674         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
72675         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
72676         * modules/math (Makefile.am): Add dependency to math.h.
72677         * modules/search (Makefile.am): Add dependency to search.h.
72678         * modules/signal (Makefile.am): Add dependency to signal.h.
72679         * modules/spawn (Makefile.am): Add dependency to spawn.h.
72680         * modules/stdio (Makefile.am): Add dependency to stdio.h.
72681         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
72682         * modules/string (Makefile.am): Add dependency to string.h.
72683         * modules/strings (Makefile.am): Add dependency to strings.h.
72684         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
72685         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
72686         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
72687         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
72688         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
72689         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
72690         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
72691         * modules/unistd (Makefile.am): Add dependency to unistd.h.
72692         * modules/wchar (Makefile.am): Add dependency to wchar.h.
72694 2009-12-09  Bruno Haible  <bruno@clisp.org>
72696         fchdir: Optimize away rpl_fstat when possible.
72697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
72698         REPLACE_OPEN_DIRECTORY.
72699         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
72701 2009-12-09  Bruno Haible  <bruno@clisp.org>
72703         * lib/fchdir.c: Update comment.
72705 2009-12-09  Bruno Haible  <bruno@clisp.org>
72707         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
72709 2009-12-08  Eric Blake  <ebb9@byu.net>
72711         fchdir: avoid memory leak on re-registration.
72712         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
72714 2009-12-08  Jim Meyering  <meyering@redhat.com>
72716         init.sh: avoid Solaris 10 /bin/sh portability problem
72717         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
72718         sourced script:
72719           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
72720           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
72721           bar
72722         tests/init.sh relied on that, accepting a --set-path=DIR argument,
72723         and two tests used that idiom.
72724         * tests/init.sh: Update suggested usage comments.
72725         (path_prepend_): New function, to be used in place
72726         of the --src-path=DIR option.
72727         (setup_): Move PATH-prepending code into path_prepend_.
72728         * tests/test-pread.sh: Adapt to new usage.
72729         * tests/test-xalloc-die.sh: Likewise.
72731 2009-12-08  Simon Josefsson  <simon@josefsson.org>
72733         * doc/gnulib.texi (Glibc pty.h): Add.
72734         * doc/glibc-functions/forkpty.texi: Add.
72735         * doc/glibc-functions/openpty.texi: Add.
72736         Suggested by Bruno Haible.
72738 2009-12-08  Eric Blake  <ebb9@byu.net>
72740         fchdir: fix logic bugs
72741         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
72742         * tests/test-fchdir.c (main): Enhance test.
72743         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
72744         is in use.
72746         dup2: fix logic bugs
72747         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
72748         REPLACE_DUP2 to decide when rpl_dup2 is needed.
72749         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
72750         exists.
72751         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
72753 2009-12-07  Eric Blake  <ebb9@byu.net>
72755         unlink: fix m4 detection
72756         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
72758         unistd-safer: add unit test
72759         * modules/unistd-safer-tests: New file.
72760         * tests/test-dup-safer.c: Likewise.
72761         * tests/test-cloexec.c (setmode): Avoid compiler warning.
72762         * tests/test-dup2.c (setmode): Likewise.
72763         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
72765         cloexec: preserve text vs. binary across dup_cloexec
72766         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
72767         mode.
72768         * modules/dup2-tests (Depends-on): Add binary-io.
72769         * modules/cloexec-tests (Depends-on): Likewise.
72770         * tests/test-dup2.c (setmode, is_mode): New helpers.
72771         (main): Add tests that translation mode is preserved.
72772         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
72773         Reported by Bruno Haible.
72775         mgetgroups: reduce duplicate listings
72776         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
72777         resulting array.
72778         * tests/test-chown.h (test_chown): Simplify client.
72779         * tests/test-lchown.h (test_lchown): Likewise.
72781 2009-12-06  Bruno Haible  <bruno@clisp.org>
72783         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
72784         value.
72786 2009-12-06  Bruno Haible  <bruno@clisp.org>
72788         * lib/progname.c: Include stdio.h, stdlib.h.
72789         (set_program_name): Reject a NULL argument.
72791 2009-12-05  Eric Blake  <ebb9@byu.net>
72793         pipe2-safer: new module
72794         * modules/pipe2-safer: New file.
72795         * lib/unistd-safer.h (pipe2_safer): New prototype.
72796         * lib/unistd--.h (pipe2): New wrapper.
72797         * lib/pipe-safer.c (pipe2_safer): New function.
72798         * modules/pipe (Depends-on): Add pipe2-safer.
72799         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
72801         stdlib-safer: preserve cloexec flag for mkostemp[s]
72802         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
72803         fd_safer_flag.
72805         unistd-safer: allow preservation of cloexec status via flag
72806         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
72807         prototypes.
72808         * lib/dup-safer.c (dup_safer_flag): New function.
72809         * lib/fd-safer.c (fd_safer_flag): Likewise.
72810         * modules/cloexec (configure.ac): Set witness.
72812         test-dup2: enhance test
72813         * modules/dup2-tests (Depends-on): Add cloexec.
72814         * tests/test-dup2.c (main): Enhance test.
72816         cloexec: add dup_cloexec
72817         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
72818         header and comments.
72819         * lib/cloexec.c (set_cloexec_flag): Add comments.
72820         (dup_cloexec): New function, with mingw implementation borrowed
72821         from...
72822         * lib/w32spawn.h (dup_noinherit): ...here.
72823         * modules/execute (Depends-on): Add cloexec.
72824         * modules/pipe (Depends-on): Likewise.
72825         * modules/cloexec (Depends-on): Add dup2.
72826         * modules/cloexec-tests (Files): New file.
72827         * tests/test-cloexec.c: Likewise.
72829         test-xalloc-die: fix test for mingw
72830         * modules/xalloc-die-tests (Files): Add tests/init.sh.
72831         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
72832         directory and .exe suffix off argv[0] output.
72834         test-fseeko: fix test for mingw
72835         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
72836         than undefining fseek, so test will pass on mingw.
72838 2009-12-05  Bruno Haible  <bruno@clisp.org>
72840         * lib/progname.h (set_program_name): Clarify specification.
72841         * lib/progname.c (set_program_name): Likewise.
72842         Reported by Jim Meyering.
72844 2009-12-05  Jim Meyering  <meyering@redhat.com>
72846         maint.mk: backslash-escape parens in default regexp
72847         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
72848         backslash-escape the literal parentheses.
72850         maint.mk: news-date-check: use grep -E
72851         * top/maint.mk (today): Define a Make variable, not a...
72852         (news-date-check): ...shell variable.
72853         (news-date-regexp): Use the Make variable.
72854         Use grep's -E option.  Change the failing diagnostic to mention
72855         the variable, $(news-date-regexp).
72857 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
72859         maintainer-makefile: allow customization of NEWS entry format
72860         * top/maint.mk (news-date-regexp): New overridable variable.
72861         (news-date-check): Use it.
72863 2009-12-04  Eric Blake  <ebb9@byu.net>
72865         mgetgroups: add xgetgroups, and avoid ENOSYS failures
72866         * lib/mgetgroups.h (xgetgroups): New prototype.
72867         * lib/mgetgroups.c (xgetgroups): New wrapper.
72868         (mgetgroups): Handle ENOSYS.
72869         * modules/mgetgroups (Depends-on): Add realloc.
72870         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
72872         mgetgroups: avoid argument promotion issues with -1
72873         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
72874         for invalid gid_t.
72875         * tests/test-chown.h (getegid, test_chown): Likewise.
72876         * tests/test-lchown.h (getegid, test_lchown): Likewise.
72878 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
72880         exclude: Fix header file problems.
72881         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
72883 2009-12-01  Jim Meyering  <meyering@redhat.com>
72885         fts: fts_open: do not let an empty string cause immediate failure
72886         This is required in support of GNU rm, for which the command
72887         "rm A '' B" must process and remove both A and B, in spite of
72888         the empty string argument.
72889         * lib/fts.c (fts_open): Do not let the presence of an empty string
72890         cause fts_open to fail immediately.  Most fts-using tools must be
72891         able to process all arguments, in order, and can be expected to
72892         diagnose such arguments themselves.
72894 2009-11-30  Eric Blake  <ebb9@byu.net>
72896         utimens: fix compilation error
72897         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
72898         Declare variable at right scope.
72900 2009-11-29  Jim Meyering  <meyering@redhat.com>
72902         bootstrap: handle perl-5.11's changed --version output
72903         * build-aux/bootstrap (get_version): Handle perl separately,
72904         since perl-5.11's --version output is different.
72906 2009-11-28  Jim Meyering  <meyering@redhat.com>
72908         userspec: depend on the inttostr module, too
72909         * modules/userspec (Depends-on): Add inttostr.
72911         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
72912         * lib/userspec.c (parse_with_separator): Do not accept a user ID
72913         number of MAXUID when it evaluates to (uid_t) -1.
72914         Likewise for group ID.  Reported by Matt McCutchen in
72915         <http://savannah.gnu.org/bugs/?28113>
72917         userspec: reformat to use spaces, not TABs
72918         * lib/userspec.c: Expand TABs to spaces.
72919         Add Emacs' "indent-tabs-mode: nil" hint.
72921 2009-11-27  Eric Blake  <ebb9@byu.net>
72923         getopt-gnu: flush out another BSD bug
72924         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
72925         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
72926         flush out BSD bug.
72927         * tests/test-getopt.h (test_getopt): End lists with NULL.
72928         * tests/test-getopt_long.h (test_getopt_long): Likewise.
72929         (test_getopt_long_posix): Enhance test.
72930         * modules/getopt-posix-tests (Depends-on): Add stdbool.
72931         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
72932         getopt-gnu.
72933         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72934         Likewise.
72936 2009-11-27  Simon Josefsson  <simon@josefsson.org>
72938         * modules/idpriv-droptemp-tests (Notice): Fix text.
72940 2009-11-27  Jim Meyering  <meyering@redhat.com>
72942         test-xalloc-die: avoid spurious failure due to libtool argv difference
72943         In a libtool-enabled project, this test would fail due to a difference
72944         in the emitted program name, e.g.,
72945         -test-xalloc-die: memory exhausted
72946         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
72947         Use program to avoid that.
72948         * modules/xalloc-die-tests (Depends-on): Add progname.
72949         * tests/test-xalloc-die.c: Include progname.h".
72950         (program_name): Remove decl.
72951         (main): Call set_program_name.
72952         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
72954 2009-11-26  Richard Jones  <rjones@redhat.com>
72956         w32sock: leave win32 error in place.
72957         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
72959 2009-11-26  Eric Blake  <ebb9@byu.net>
72961         init.sh: suggest to use skip_ and fail_ functions in comments
72962         * tests/init.sh: Add a sentence.
72964 2009-11-25  Bruno Haible  <bruno@clisp.org>
72966         init.sh: add documentation in comments
72967         * tests/init.sh: Add some developer and user documentation.
72969 2009-11-26  Jim Meyering  <meyering@redhat.com>
72971         init.sh: accommodate even those who specify bogus srcdir manually
72972         * tests/init.sh: Normally, srcdir is guaranteed by automake and
72973         configure-time tests to be sanitized, so that there is no need to
72974         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
72975         (with no double quotes) suffices.  However, since tests may be
72976         invoked manually, and since you may explicitly set srcdir to the
72977         name of a directory containing spaces, do quote its uses here.
72978         * tests/test-pread.sh: Likewise.
72979         Suggested by Bruno Haible.
72981         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
72982         * tests/test-pread.sh: Write no data into the pipe, because
72983         test-pread actually reads none.  This avoids a diagnostic,
72984         "bash: echo: write error: Broken pipe", that arises in the unusual
72985         event something is ignoring SIGPIPE, and might be interpreted
72986         as some sort of failure.  Reported by Bruno Haible.
72988 2009-11-25  Jim Meyering  <meyering@redhat.com>
72990         test-pread: cover failure with ESPIPE and EINVAL
72991         * tests/test-pread.c (main): Test for failure, too.
72992         * tests/test-pread.sh: Invoke with stdin on a pipe.
72993         Suggested by Eric Blake.
72995         pread: improvement and fix
72996         * modules/pread (Depends-on): Depend on lseek, for portability to
72997         e.g., mingw.  Suggested by Eric Blake.
72998         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
73000         unistd.in.h: correct declaration of pread
73001         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
73002         Reported by Richard W.M. Jones.
73004         test-pread.sh: distribute the test script
73005         * modules/pread-tests (Files): Include test-pread.sh.
73007         test-pread.sh: clean up
73008         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
73009         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
73010         That is unnecessary, since it's always ".".
73011         Suggestion from Eric Blake.
73013         test-pread.sh: make executable
73014         * tests/test-pread.sh: Set executable bit.
73015         Reported by Eric Blake.
73017         correct typo in test-pread.sh
73018         * tests/test-pread.sh: Add #! line.
73020         test pread
73021         * tests/test-pread.c: New file.
73022         * tests/test-pread.sh: Likewise.
73023         * modules/pread-tests: Likewise.
73025         pread: new module
73026         * modules/pread: New file.
73027         * lib/unistd.in.h (pread): Define/declare.
73028         * lib/pread.c (pread): New file.
73029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
73030         * modules/unistd (Makefile.am): Substitute witnesses.
73031         * doc/posix-functions/pread.texi (pread): Update.
73032         * MODULES.html.sh: Add pread.
73034 2009-11-25  Jim Meyering  <meyering@redhat.com>
73036         tests/init.sh: new file to be used via most *.sh tests
73037         * tests/init.sh: New file.
73039 2009-11-25  Eric Blake  <ebb9@byu.net>
73041         utimens: work around older Linux failure with symlinks
73042         * lib/utimens.c (lutimensat_works_really): New variable.
73043         (fdutimens, lutimens): Use it to manage kernels that support
73044         nanosecond times on files, but not on symlinks.
73045         Reported by Ondřej Vašík.
73047         utimes: fix configure grammar
73048         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
73050 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
73052         regex: Fix fastmap for multibyte character ranges.
73053         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
73054         characters when a multibyte character range is included.
73056 2009-11-22  Andy Wingo  <wingo@pobox.com>
73058         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
73059         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
73061 2009-11-24  Bruno Haible  <bruno@clisp.org>
73063         doc: Most *_l functions exist in MacOS X 10.5.
73064         * doc/posix-functions/duplocale.texi: Update platforms list.
73065         * doc/posix-functions/freelocale.texi: Likewise.
73066         * doc/posix-functions/newlocale.texi: Likewise.
73067         * doc/posix-functions/uselocale.texi: Likewise.
73068         * doc/posix-functions/isalnum_l.texi: Likewise.
73069         * doc/posix-functions/isalpha_l.texi: Likewise.
73070         * doc/posix-functions/isblank_l.texi: Likewise.
73071         * doc/posix-functions/iscntrl_l.texi: Likewise.
73072         * doc/posix-functions/isdigit_l.texi: Likewise.
73073         * doc/posix-functions/isgraph_l.texi: Likewise.
73074         * doc/posix-functions/islower_l.texi: Likewise.
73075         * doc/posix-functions/isprint_l.texi: Likewise.
73076         * doc/posix-functions/ispunct_l.texi: Likewise.
73077         * doc/posix-functions/isspace_l.texi: Likewise.
73078         * doc/posix-functions/isupper_l.texi: Likewise.
73079         * doc/posix-functions/iswalnum_l.texi: Likewise.
73080         * doc/posix-functions/iswalpha_l.texi: Likewise.
73081         * doc/posix-functions/iswblank_l.texi: Likewise.
73082         * doc/posix-functions/iswcntrl_l.texi: Likewise.
73083         * doc/posix-functions/iswctype_l.texi: Likewise.
73084         * doc/posix-functions/iswdigit_l.texi: Likewise.
73085         * doc/posix-functions/iswgraph_l.texi: Likewise.
73086         * doc/posix-functions/iswlower_l.texi: Likewise.
73087         * doc/posix-functions/iswprint_l.texi: Likewise.
73088         * doc/posix-functions/iswpunct_l.texi: Likewise.
73089         * doc/posix-functions/iswspace_l.texi: Likewise.
73090         * doc/posix-functions/iswupper_l.texi: Likewise.
73091         * doc/posix-functions/iswxdigit_l.texi: Likewise.
73092         * doc/posix-functions/isxdigit_l.texi: Likewise.
73093         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
73094         * doc/posix-functions/strcasecmp_l.texi: Likewise.
73095         * doc/posix-functions/strcoll_l.texi: Likewise.
73096         * doc/posix-functions/strfmon_l.texi: Likewise.
73097         * doc/posix-functions/strftime_l.texi: Likewise.
73098         * doc/posix-functions/strncasecmp_l.texi: Likewise.
73099         * doc/posix-functions/strxfrm_l.texi: Likewise.
73100         * doc/posix-functions/tolower_l.texi: Likewise.
73101         * doc/posix-functions/toupper_l.texi: Likewise.
73102         * doc/posix-functions/towctrans_l.texi: Likewise.
73103         * doc/posix-functions/towlower_l.texi: Likewise.
73104         * doc/posix-functions/towupper_l.texi: Likewise.
73105         * doc/posix-functions/wcscoll_l.texi: Likewise.
73106         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
73107         * doc/posix-functions/wctrans_l.texi: Likewise.
73108         * doc/posix-functions/wctype_l.texi: Likewise.
73109         * doc/glibc-functions/strptime_l.texi: Likewise.
73110         * doc/glibc-functions/strtod_l.texi: Likewise.
73111         * doc/glibc-functions/strtof_l.texi: Likewise.
73112         * doc/glibc-functions/strtol_l.texi: Likewise.
73113         * doc/glibc-functions/strtold_l.texi: Likewise.
73114         * doc/glibc-functions/strtoll_l.texi: Likewise.
73115         * doc/glibc-functions/strtoul_l.texi: Likewise.
73116         * doc/glibc-functions/strtoull_l.texi: Likewise.
73117         * doc/glibc-functions/wcsftime_l.texi: Likewise.
73118         * doc/glibc-functions/wcstod_l.texi: Likewise.
73119         * doc/glibc-functions/wcstof_l.texi: Likewise.
73120         * doc/glibc-functions/wcstol_l.texi: Likewise.
73121         * doc/glibc-functions/wcstold_l.texi: Likewise.
73122         * doc/glibc-functions/wcstoll_l.texi: Likewise.
73123         * doc/glibc-functions/wcstoul_l.texi: Likewise.
73124         * doc/glibc-functions/wcstoull_l.texi: Likewise.
73126 2009-11-24  Bruno Haible  <bruno@clisp.org>
73128         duplocale: Fix logic bug.
73129         * lib/duplocale.c: Don't include <langinfo.h>.
73130         (_NL_LOCALE_NAME): Remove macro.
73131         (rpl_duplocale): Use setlocale instead of nl_langinfo.
73132         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
73134 2009-11-23  Jim Meyering  <meyering@redhat.com>
73136         test-update-copyright: don't hard-code /usr/bin/perl
73137         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
73138         perl to print the current year.  Gilles Espinasse reported that
73139         the replaced use of perl was hard-coded as /usr/bin/perl.
73141 2009-11-23  Bruno Haible  <bruno@clisp.org>
73143         duplocale: Add support for glibc 2.3.x.
73144         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
73146 2009-11-22  Bruno Haible  <bruno@clisp.org>
73148         vasnprintf: Tiny optimization.
73149         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
73150         MacOS X.
73152 2009-11-22  Bruno Haible  <bruno@clisp.org>
73154         Tests for module 'duplocale'.
73155         * modules/duplocale-tests: New file.
73156         * tests/test-duplocale.c: New file.
73158         New module 'duplocale'.
73159         * m4/duplocale.m4: New file.
73160         * lib/locale.in.h (duplocale): New declaration.
73161         * lib/duplocale.c: New file.
73162         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
73163         gl_LOCALE_H_DEFAULTS): New macros.
73164         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
73165         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
73166         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
73167         REPLACE_DUPLOCALE.
73168         * modules/duplocale: New file.
73169         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
73171 2009-11-22  Bruno Haible  <bruno@clisp.org>
73173         * modules/locale-tests (configure.ac): Test for newlocale function.
73174         * tests/test-locale.c: When the system has extended locale functions,
73175         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
73177         locale: Make locale_t available when possible.
73178         * lib/locale.in.h: Include <xlocale.h> when it exists.
73179         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
73180         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
73181         * modules/locale (Depends-on): Add extensions.
73182         (Makefile.am): Also substitute HAVE_XLOCALE_H.
73183         * doc/posix-headers/locale.texi: Document the problem with locale_t.
73185 2009-11-22  Bruno Haible  <bruno@clisp.org>
73187         Add comments.
73188         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
73189         invocation.
73190         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
73191         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73192         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73194 2009-11-22  Bruno Haible  <bruno@clisp.org>
73196         error: account for the possibility of freopen (stdout).
73197         * lib/error.c: Include <unistd.h>.
73198         (flush_stdout): New function, extracted from error and error_at_line.
73199         Determine stdout's fd dynamically.
73200         (error, error_at_line): Invoke flush_stdout.
73201         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
73202         * modules/error (Depends-on): Add unistd.
73204 2009-11-22  Bruno Haible  <bruno@clisp.org>
73206         diffseq: Add comment.
73207         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
73209 2009-11-22  Jim Meyering  <meyering@redhat.com>
73211         c-stack: avoid defining an unused static function
73212         * lib/c-stack.c (find_stack_direction): Do not define this function
73213         when it will not be used.
73215         diffseq: avoid spurious gcc warnings
73216         * lib/diffseq.h (IF_LINT2): Define.
73217         (compareseq): Use it to initialize two members of "part".
73218         This avoids two used-uninitialized warnings.
73220 2009-11-21  Jim Meyering  <meyering@redhat.com>
73222         c-stack: avoid "ignoring return value of `write'" warning
73223         * lib/c-stack.c: Include "ignore-value.h".
73224         (die): Explicitly ignore each write return value.
73225         * modules/c-stack (Depends-on): Add ignore-value.
73227 2009-11-21  Bruno Haible  <bruno@clisp.org>
73229         diffseq: reduce scope of variable 'best'.
73230         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
73231         variable, earlier used for two different purposes.
73233 2009-11-21  Jim Meyering  <meyering@redhat.com>
73235         diffseq: remove useless assignment to "best"
73236         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
73237         assignment.  At that point "best" is already guaranteed to be zero.
73239 2009-11-20  Eric Blake  <ebb9@byu.net>
73241         build: mention ftp redirector in release announcements
73242         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
73243         values that used to come from cfg.mk; mention FTP redirect URL.
73244         * build-aux/announce-gen: Mention the mirror list.
73245         Suggested by Karl Berry.
73247         nanosleep: improve port to mingw
73248         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
73249         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
73250         LIB_NANOSLEEP, but only when needed.
73251         * modules/select (Link): Document LIBSOCKET.
73252         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
73253         enough.
73255         nanosleep: work around cygwin bug
73256         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
73257         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
73258         bug.
73259         (getnow): Delete, not needed.
73260         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
73261         LIB_CLOCK_GETTIME.
73262         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
73263         clock-time, gettime.
73264         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
73265         bug.
73266         * modules/nanosleep-tests: New test.
73267         * tests/test-nanosleep.c: New file.
73269         sleep: work around cygwin bug
73270         * lib/sleep.c (rpl_sleep): Work around the bug.
73271         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
73272         (gl_PREREQ_SLEEP): Delete unused macro.
73273         * modules/sleep (Depends-on): Add verify.
73274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
73275         * modules/unistd (Makefile.am): Substitute witness.
73276         * lib/unistd.in.h (sleep): Update prototype.
73277         * doc/posix-functions/sleep.texi (sleep): Document the bug.
73278         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
73279         * modules/sleep-tests (Depends-on): Check for alarm.
73281 2009-11-20  Jim Meyering  <meyering@redhat.com>
73283         maint.mk: improve sc_prohibit_magic_number_exit
73284         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
73285         so it does not match uses like System.exit(1).
73286         Add comments showing how to correct all offenders.
73288 2009-11-19  Eric Blake  <ebb9@byu.net>
73290         xalloc-die-tests: add missing library
73291         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
73293         test-xvasprintf: silence compiler warnings
73294         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
73295         empty string from gcc.
73297 2009-11-19  Jim Meyering  <meyering@redhat.com>
73299         xfreopen: new module, from coreutils
73300         * modules/xfreopen: New module.
73301         * lib/xfreopen.c: New file.
73302         * lib/xfreopen.h: New file.
73303         * MODULES.html.sh (File stream based Input/Output"): Add it.
73305 2009-11-19  Eric Blake  <ebb9@byu.net>
73307         manywarnings: depend on warnings
73308         * modules/manywarnings (Depends-on): Add warnings.
73310         build: avoid compiler warnings
73311         * lib/select.c (rpl_select): Delete unused variable.
73312         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
73314 2009-11-18  Eric Blake  <ebb9@byu.net>
73316         tests: avoid false negative with --with-packager
73317         * tests/test-version-etc.sh: Discard packager information.
73318         * tests/test-argp-version-etc-1.sh: Likewise.
73319         Reported by Mike Frysinger.
73321         utimens: fix regression on Solaris
73322         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
73323         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
73324         can only change fd timestamps via futimesat.  Instead, use an
73325         additional witness macro to avoid BSD bug.
73326         Reported by Jim Meyering.
73328 2009-11-17  Eric Blake  <ebb9@byu.net>
73330         usleep: use it to simplify tests
73331         * modules/stat-time-tests (Depends-on): Add usleep.
73332         (configure.ac): Drop usleep check.
73333         * modules/chown-tests (Depends-on, configure.ac): Likewise.
73334         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
73335         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
73336         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
73337         * modules/openat-tests (Depends-on, configure.ac): Likewise.
73338         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
73339         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
73340         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
73341         Likewise.
73342         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
73343         * tests/test-lchown.h (nap): Likewise.
73344         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
73345         * tests/test-stat-time.c (nap): Likewise.
73346         * tests/test-utimens-common.h (nap): Update comments.
73348         usleep: new module
73349         * modules/usleep: New file.
73350         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
73351         * lib/usleep.c (usleep): Likewise.
73352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
73353         * modules/unistd (Makefile.am): Substitute witnesses.
73354         * lib/unistd.in.h (usleep): Add declaration.
73355         * doc/pastposix-functions/usleep.texi (usleep): Document this.
73356         * MODULES.html.sh (Date and time): Likewise.
73357         * modules/usleep-tests (Depends-on): New test.
73358         * tests/test-usleep.c: New file.
73360         chown: work around OpenBSD bug
73361         * lib/chown.c (rpl_chown): Work around the bug.
73362         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
73363         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
73364         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
73365         * modules/chown (Depends-on): Add stdbool.
73366         * modules/lchown (Depends-on): Likewise.
73367         * doc/posix-functions/chown.texi (chown): Document the bug.
73368         * doc/posix-functions/lchown.texi (lchown): Likewise.
73369         * tests/test-lchown.h (test_chown): Relax test.
73371         mkstemp: avoid conflict with C++ keyword template
73372         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
73373         * lib/mkostemp.c (mkostemp): Likewise.
73374         * lib/mkostemps.c (mkostemps): Likewise.
73375         * lib/mkstemp.c (mkstemp): Likewise.
73376         * lib/mkstemps.c (mkstemps): Likewise.
73378         xalloc-die-tests: optimize
73379         * tests/test-xalloc-die.sh: Reduce number of processes.
73381 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73383         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
73384         patch from ludo@gnu.org (Ludovic Courtès).
73386 2009-11-17  Jim Meyering  <meyering@redhat.com>
73388         version-etc: use proper license string
73389         * modules/version-etc (License): Use LGPL, not LGPLv3+.
73390         * modules/version-etc-fsf: Likewise.
73392 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73394         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
73395         printed to stdout.  Deal with EOL differences.
73397 2009-11-17  Eric Blake  <ebb9@byu.net>
73399         unsetenv: work around Solaris bug
73400         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
73401         * lib/unsetenv.c (rpl_unsetenv): Work around it.
73402         Reported by Jim Meyering.
73404         vasnprintf: avoid compiler warnings
73405         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
73406         variables.
73407         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
73409 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73411         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
73412         settings since xalloc-die is no longer the self test,
73413         xalloc-die.sh is.
73415 2009-11-17  Jim Meyering  <meyering@redhat.com>
73417         test-xalloc-die.sh: make the code agree with the commit log
73418         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
73419         at the end, just in case you happen to have a test-xalloc-die
73420         program in some other PATH directory.
73422         test-xalloc-die.sh: fix a portability bug
73423         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
73424         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
73425         Otherwise, argv[0] (as often seen in diagnostics) would be too
73426         system-dependent, sometimes with, and sometimes without the leading "./".
73428         version-etc-fsf: relax license to LGPLv3+
73429         * modules/version-etc-fsf (License): Relax license.
73431 2009-11-16  Eric Blake  <ebb9@byu.net>
73433         xalloc-die-tests: avoid printing null pointer
73434         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
73435         shell script.
73436         * tests/test-xalloc-die.c (program_name): Declare.
73437         * tests/test-xalloc-die.sh (tmpfiles): New file.
73439         setenv, unsetenv: work around various bugs
73440         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
73441         (setenv) [HAVE_SETENV]: Work around bugs.
73442         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
73443         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
73444         for bugs.
73445         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
73446         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
73447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
73448         * modules/stdlib (Makefile.am): Update substitutions.
73449         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
73450         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
73451         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
73452         * modules/setenv-tests: New test.
73453         * modules/unsetenv-tests: Likewise.
73454         * tests/test-setenv.c: New file.
73455         * tests/test-unsetenv.c: Likewise.
73457 2009-11-16  Jim Meyering  <meyering@redhat.com>
73459         version-etc: relax license to LGPLv3+
73460         * modules/version-etc (License): Relax license.
73462         better AC_REQUIRE expanded-before-required-warning avoidance
73463         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
73464         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
73465         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
73466         which is no longer needed.
73468 2009-11-16  Eric Blake  <ebb9@byu.net>
73470         test-freading: clean up temporary file
73471         * tests/test-freading.c (main): Remove file on success, and use
73472         ASSERT more liberally.
73473         Reported by Jim Meyering.
73475 2009-11-16  Jim Meyering  <meyering@redhat.com>
73477         avoid new AC_REQUIRE expanded-before-required warnings
73478         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
73479         merely using it.
73480         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
73481         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
73483 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73485         * tests/test-xalloc-die.c: New file.
73486         * modules/xalloc-die-tests: New file.
73487         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
73488         XFAIL_TESTS so it can be appended by modules.
73490 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73492         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
73493         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
73495 2009-11-14  Eric Blake  <ebb9@byu.net>
73497         fnmatch: avoid compiler warning
73498         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
73499         to silence compiler warning about mismatch signedness in ?:.
73500         Reported by Robert Millan.
73502         intprops: add double-inclusion guard
73503         * lib/intprops.h: Allow idempotent includes.
73504         Suggested by Bruce Korb.
73506         openat: detect Solaris fchownat bug
73507         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
73508         penalizing glibc chownat when only lchownat is broken.
73509         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
73510         trailing slash bugs.
73511         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
73512         * modules/openat-tests (Files): Include more files.
73513         (Depends-on): Add mgetgroups, sleep, stat-time.
73514         (configure.ac): Add additional checks.
73515         (Makefile.am): Build new test.
73516         * tests/test-fchownat.c: New file.
73518         lchown: detect Solaris and FreeBSD bug
73519         * lib/lchown.c (rpl_lchown): Work around bug.
73520         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
73521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73522         * modules/unistd (Makefile.am): Populate it.
73523         * lib/unistd.in.h (lchown): Update declaration.
73524         * doc/posix-functions/lchown.texi (lchown): Document the bug.
73525         * modules/lchown-tests: New file.
73526         * tests/test-lchown.h (test_lchown): Likewise.
73527         * tests/test-lchown.c (main): Likewise.
73529         chown: detect Solaris and FreeBSD bug
73530         * lib/chown.c (rpl_chown): Work around bug.
73531         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
73532         (gl_PREREQ_CHOWN): Delete.
73533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73534         * modules/unistd (Makefile.am): Populate it.
73535         * lib/unistd.in.h (chown): Update declaration.
73536         * lib/lchown.c (chown): Update client.
73537         * modules/lchown (Depends-on): Add lstat.
73538         * doc/posix-functions/chown.texi (chown): Document the bug.
73539         * doc/posix-functions/getgroups.texi (getgroups): Document
73540         getgroups pitfall.
73541         * modules/chown-tests: New file.
73542         * tests/test-chown.h (test_chown): Likewise.
73543         * tests/test-chown.c (main): Likewise.
73545 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
73547         gnulib-tool: correctly detect absence of m4 directories
73548         * gnulib-tool: Avoid extra newline on data passed to wc -l.
73550 2009-11-14  Jim Meyering  <meyering@redhat.com>
73552         maint.mk: Prohibit inclusion of "xalloc.h" without use.
73553         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
73555 2009-11-14  John W. Eaton  <jwe@gnu.org>
73557         strftime.h: wrap function declaration in extern "C" block
73558         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
73560 2009-11-13  Eric Blake  <ebb9@byu.net>
73562         getgroups: avoid compiler warning
73563         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
73565         getgroups: work around FreeBSD bug
73566         * lib/getgroups.c (rpl_getgroups): Work around the bug.
73567         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
73568         * doc/posix-functions/getgroups.texi (getgroups): Document it.
73569         * tests/test-getgroups.c (main): Fix buffer overrun.
73571         getgroups: avoid compilation failure
73572         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
73573         * modules/getgroups (Depends-on): Add stdint.
73575 2009-11-13  Jim Meyering  <meyering@redhat.com>
73577         test-getgroups: avoid compilation failure
73578         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
73580 2009-11-13  Eric Blake  <ebb9@byu.net>
73582         mgetgroups: new module, taken from coreutils
73583         * modules/mgetgroups: New file.
73584         * lib/mgetgroups.h: Likewise.
73585         * lib/mgetgroups.c (mgetgroups): Likewise.
73586         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
73587         * MODULES.html.sh (Users and groups): Mention it.
73589         getgroups: don't expose GETGROUPS_T to user
73590         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
73591         an element at a time if GETGROUPS_T is wrong size.
73592         * lib/getugroups.h (getugroups): Change signature.
73593         * lib/unistd.in.h (getgroups): Likewise.
73594         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
73595         signature needs fixing.
73596         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
73597         AC_TYPE_GETGROUPS.
73598         * modules/group-member (Depends-on): Add getgroups.
73599         * lib/group-member.c (group_info, get_group_info): Use gid_t.
73600         (group_member): Rely on getgroups replacement.
73601         * lib/getugroups.c (getugroups): Use gid_t.
73602         * tests/test-getgroups.c (main): Likewise.
73603         * NEWS: Mention the signature change.
73604         * doc/posix-functions/getgroups.texi (getgroups): Mention the
73605         problem with signature.
73606         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
73607         GETGROUPS_T is still useful for setgroups.
73609         getgroups, getugroups: provide stubs for mingw
73610         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
73611         * lib/getugroups.c (getugroups): Likewise.
73612         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
73613         function.  Modernize replacement scheme.
73614         (gl_PREREQ_GETGROUPS): Delete.
73615         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
73616         * modules/getgroups (configure.ac): Declare witness.
73617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
73618         * modules/unistd (Depends-on): Substitute witness.
73619         * lib/unistd.in.h (getgroups): Declare replacement.
73621         getgroups: avoid calling exit
73622         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
73623         drop xalloc.
73624         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
73625         dependencies.
73626         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
73627         exiting, in the rare case of malloc failure.
73629         getgroups: fix logic error
73630         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
73631         has more than 20 groups.
73632         * modules/getgroups-tests: New test.
73633         * tests/test-getgroups.c: New file.
73635 2009-11-13  Simon Josefsson  <simon@josefsson.org>
73637         * tests/test-base64.c: Improve.
73639 2009-11-13  Simon Josefsson  <simon@josefsson.org>
73641         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
73642         Blake <ebb9@byu.net>.
73644 2009-11-13  Simon Josefsson  <simon@josefsson.org>
73646         * tests/test-xvasprintf.c: Add %s%s related checks.
73648 2009-11-12  Eric Blake  <ebb9@byu.net>
73650         version-etc: match standards.texi style
73651         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
73652         and use <> only for URLs.
73654 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
73656         fts: do not fail on a submount during traversal
73657         * lib/fts.c (fts_build): Read the stat info again after opening
73658         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
73659         Original report at http://bugzilla.redhat.com/501848.
73661 2009-11-12  Jim Meyering  <meyering@redhat.com>
73663         bootstrap: sync from coreutils
73664         * build-aux/bootstrap (bootstrap_epilogue): New function.
73665         Use git_modules_config in one more place.  This make bootstrap's
73666         --gnulib-srcdir option more useful for testing.
73668         bootstrap: generalize autoheader check
73669         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
73670         AC_CONFIG_HEADERS.
73672 2009-11-11  Eric Blake  <ebb9@byu.net>
73674         mkfifoat: use new modules for Solaris and BSD bugs
73675         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
73676         * lib/mkfifoat.c (mknodat): Split...
73677         * lib/mknodat.c (mknodat): ...into new file.
73678         * modules/mkfifoat (Files): Ship new file.
73679         (Depends-on): Add mkfifo, mknod.
73680         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
73681         (Depends-on): Add symlink.
73682         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
73683         redundant with test_mkfifo.h.
73684         (do_mkfifoat, do_mknodat): New helpers.
73686         mknod: new module
73687         * modules/mknod: New file.
73688         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
73689         * lib/mknod.c (mknod): Likewise.
73690         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
73691         defaults.
73692         * modules/sys_stat (Makefile.am): Substitute them.
73693         * lib/sys_stat.in.h (mknod): Declare replacement.
73694         * MODULES.html.sh (Support for systems lacking POSIX:2008):
73695         Document it.
73696         * doc/posix-functions/mknod.texi (mknod): Likewise.
73697         * modules/mknod-tests: New test.
73698         * tests/test-mknod.c: Likewise.
73700         mkfifo: new module
73701         * modules/mkfifo: New file.
73702         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
73703         * lib/mkfifo.c (mkfifo): Likewise.
73704         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
73705         defaults.
73706         * modules/sys_stat (Makefile.am): Substitute them.
73707         * lib/sys_stat.in.h (mkfifo): Declare replacement.
73708         * MODULES.html.sh (Support for systems lacking POSIX:2008):
73709         Document it.
73710         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
73711         * modules/mkfifo-tests: New test.
73712         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
73713         from test-mkfifoat.c.
73714         * tests/test-mkfifo.c: New file.
73716         readlink: detect FreeBSD bug
73717         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
73718         slash on symlink.
73719         * doc/posix-functions/readlink.texi (readlink): Document the bug.
73720         * tests/test-readlink.h (test_readlink): Enhance test.
73722         symlink: detect FreeBSD bug
73723         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
73724         slash on symlink.
73725         * doc/posix-functions/symlink.texi (symlink): Document the bug.
73726         * tests/test-symlink.h (test_symlink): Enhance test.
73728 2009-11-10  Eric Blake  <ebb9@byu.net>
73730         link: detect FreeBSD bug
73731         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
73732         symlink.
73733         * doc/posix-functions/link.texi (link): Document the bug.
73734         * tests/test-link.h (test_link): Enhance test.
73735         * tests/test-linkat.c (main): Update caller.
73737         unlink, remove: detect FreeBSD bug
73738         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
73739         slash on symlink.
73740         * doc/posix-functions/unlink.texi (unlink): Document the bug.
73741         * doc/posix-functions/remove.texi (remove): Likewise.
73742         * tests/test-unlink.h (test_unlink): Enhance test.
73743         * tests/test-remove.c (main): Likewise.
73745 2009-11-09  Eric Blake  <ebb9@byu.net>
73747         rename: detect FreeBSD bug
73748         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
73749         slash on symlink.
73750         * modules/renameat-tests (Depends-on): Add filenamecat.
73751         * tests/test-rename.h (test_rename): Allow one more errno.
73752         * tests/test-renameat.c (main): Likewise.
73753         * doc/posix-functions/rename.texi (rename): Document the bug.
73755         open: detect FreeBSD bug
73756         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
73757         symlink.
73758         * doc/posix-functions/open.texi (open): Document the bug.
73759         * doc/posix-functions/utimes.texi (utimes): Likewise.
73760         * tests/test-open.h (test_open): Add parameters, and test symlink
73761         handling.
73762         * tests/test-open.c (main): Adjust caller.
73763         * tests/test-fcntl-safer.c (main): Likewise.
73764         * modules/open-tests (Depends-on): Add stdbool, symlink.
73765         * modules/fcntl-safer-tests (Depends-on): Likewise.
73766         * tests/test-openat.c (main): Add test-open tests.
73768         stat: detect FreeBSD bug
73769         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
73770         symlink.
73771         * doc/posix-functions/stat.texi (stat): Document the bug.
73772         * tests/test-stat.h (test_stat_func): Add argument.
73773         * tests/test-stat.c (main): Adjust caller.
73774         * tests/test-fstatat.c (main): Likewise.
73775         * modules/stat-tests (Depends-on): Add stdbool, symlink.
73776         Reported by Jim Meyering.
73778 2009-11-09  James Youngman  <jay@gnu.org>
73780         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
73781         * lib/strftime.c: Correct placement of #include "ignore-value.h".
73783 2009-11-08  Jim Meyering  <meyering@redhat.com>
73785         utimens: remove invalid futimesat call
73786         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
73787         It used the file descriptor of the target file as the DIR_FD
73788         parameter and NULL as the file name.  That caused failure with
73789         errno == EFAULT on FreeBSD-8.0-rc2
73791 2009-11-07  Eric Blake  <ebb9@byu.net>
73793         fflush, freadseek: use fseeko, not fseek
73794         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
73795         (clear_ungetc_buffer): Avoid potential problems on large files.
73796         * lib/freadseek.c (freadseek): Likewise.
73797         * modules/freadseek (Depends-on): Add fseeko.
73798         * modules/fseek (configure.ac): Set a witness.
73799         * tests/test-fflush.c (main): Use fseeko.
73800         * tests/test-fpurge.c (fseek): Disable link warning.
73801         * tests/test-freadable.c (fseek): Likewise.
73802         * tests/test-freading.c (fseek): Likewise.
73803         * tests/test-fseeko.c (fseek): Likewise.
73804         * tests/test-ftell.c (fseek): Likewise.
73805         * tests/test-ftello.c (fseek): Likewise.
73806         * tests/test-fwritable.c (fseek): Likewise.
73807         * tests/test-fwriting.c (fseek): Likewise.
73809 2009-11-06  Simon Josefsson  <simon@josefsson.org>
73811         * modules/memchr (Depends-on): Drop getpagesize dependency.
73813 2009-11-06  Simon Josefsson  <simon@josefsson.org>
73815         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
73816         Reported by Ludovic Courtès.
73817         * build-aux/pmccabe2html: Improve example usage.
73818         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
73820 2009-11-06  Jim Meyering  <meyering@redhat.com>
73822         do-release-commit-and-tag: New module.
73823         Automate the release-commit and tag process.
73824         * build-aux/do-release-commit-and-tag: New script, from coreutils.
73825         * modules/do-release-commit-and-tag: New file.
73826         * MODULES.html.sh (Support for maintaining and releasing): Add it.
73828 2009-11-06  Simon Josefsson  <simon@josefsson.org>
73830         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
73831         because test-select.c uses inet_pton.
73833 2009-11-06  Simon Josefsson  <simon@josefsson.org>
73835         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
73836         GETADDRINFO_LIB.  Bump serial number.
73837         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
73838         Suggested by Eric Blake <ebb9@byu.net>.
73840 2009-11-05  Eric Blake  <ebb9@byu.net>
73842         strtod: detect darwin bug
73843         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
73844         Reported by Leo Davis.
73846         freopen-safer: new module
73847         * modules/freopen-safer: New module.
73848         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
73849         * lib/freopen-safer.c (freopen_safer): New file.
73850         * lib/stdio-safer.h (freopen_safer): New declaration.
73851         * lib/stdio--.h (freopen): New override.
73852         * MODULES.html.sh (File stream based Input/Output): Mention it.
73853         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
73854         freopen-safer module.
73855         * doc/posix-functions/stderr.texi (stderr): Likewise.
73856         * doc/posix-functions/stdin.texi (stdin): Likewise.
73857         * doc/posix-functions/stdout.texi (stdout): Likewise.
73858         * modules/freopen-safer-tests: New test.
73859         * tests/test-reopen-safer.c: New file.
73861 2009-11-05  Jim Meyering  <meyering@redhat.com>
73863         maint.mk: Prohibit inclusion of "close-stream.h" without use.
73864         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
73866 2009-11-05  Simon Josefsson  <simon@josefsson.org>
73868         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
73870 2009-11-05  Simon Josefsson  <simon@josefsson.org>
73872         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
73874 2009-11-05  Simon Josefsson  <simon@josefsson.org>
73876         Fix link error.
73877         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
73878         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
73880 2009-11-05  Simon Josefsson  <simon@josefsson.org>
73882         * tests/test-func.c: Also test value of __func__.
73884 2009-11-05  Simon Josefsson  <simon@josefsson.org>
73886         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
73887         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
73889 2009-11-05  Bruno Haible  <bruno@clisp.org>
73891         Fix link error.
73892         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
73893         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
73894         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
73896 2009-11-05  Bruno Haible  <bruno@clisp.org>
73898         Tests for module 'inet_pton'.
73899         * modules/inet_pton-tests: New file.
73900         * tests/test-inet_pton.c: New file.
73902 2009-11-05  Bruno Haible  <bruno@clisp.org>
73904         Tests for module 'inet_ntop'.
73905         * modules/inet_ntop-tests: New file.
73906         * tests/test-inet_ntop.c: New file.
73908 2009-11-04  Eric Blake  <ebb9@byu.net>
73910         stdlib-safer: wrap all mkstemp variants
73911         * modules/mkostemp (configure.ac): Set witness.
73912         * modules/mkostemps (configure.ac): Likewise.
73913         * modules/mkstemps (configure.ac): Likewise.
73914         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
73915         (mkstemps_safer): Wrap more functions.
73916         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
73917         wrapping.
73918         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
73919         (mkstemps_safer): Implement the wrappers.
73921         mkstemps, mkostemps: new modules
73922         * modules/mkostemps: New module.
73923         * modules/mkstemps: Likewise.
73924         * lib/mkostemps.c (mkostemps): New file.
73925         * lib/mkstemps.c (mkstemps): Likewise.
73926         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
73927         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
73928         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
73929         * modules/stdlib (Makefile.am): Substitute them.
73930         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
73931         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
73932         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
73933         * doc/gnulib.texi (Glibc stdlib.h): Include them.
73934         * MODULES.html.sh (File system functions): Mention them.
73936         tempname: resync from glibc
73937         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
73938         same values for __GT_FILE as glibc.  Abort even when assertions
73939         are disabled.
73940         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
73941         match its value otherwise.  Allow idempotent inclusion.
73942         * lib/mkdtemp.c (mkdtemp): Adjust caller.
73943         * lib/mkostemp.c (mkostemp): Likewise.
73944         * lib/mkstemp.c (mkstemp): Likewise.
73945         * lib/tmpfile.c (tmpfile): Likewise.
73946         * NEWS: Document this.
73948         utimens: fix use of futimens on older Linux
73949         * lib/utimens.c (fdutimens): Use updated, rather than original,
73950         timespec to avoid bug in older Linux kernel.
73951         Reported by Simon Josefsson.
73953 2009-11-04  Bruno Haible  <bruno@clisp.org>
73955         Make num_processors more flexible and consistent.
73956         * lib/nproc.h (enum nproc_query): New type.
73957         (num_processors): Add a 'query' argument.
73958         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
73959         (num_processors): Add a 'query' argument. Test the value of the
73960         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
73961         mingw, count the number of CPUs available for the current process.
73962         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
73963         Check for sched_getaffinity and sched_getaffinity_np.
73964         * modules/nproc (Depends-on): Add c-ctype, extensions.
73965         * NEWS: Mention the change.
73967 2009-11-03  Bruno Haible  <bruno@clisp.org>
73969         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
73971 2009-11-03  Jim Meyering  <meyering@redhat.com>
73973         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
73974         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
73975         if it is defined.
73977 2009-11-02  Eric Blake  <ebb9@byu.net>
73979         mktime, timegm: share common declaration
73980         * lib/mktime-internal.h: New file.
73981         * lib/mktime.c: Use it rather than open-coding a declaration.
73982         * lib/timegm.c: Likewise.
73983         * modules/mktime (Files): Ship it.
73984         * modules/timegm (Files): Likewise.
73985         Suggested by Bruno Haible.
73987         test-update-copyright: update test to match script changes
73988         * tests/test-update-copyright.sh: Avoid hard-coding perl
73989         location.  Don't update *.bak created by earlier runs.
73991 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73992             Simon Josefsson  <simon@josefsson.org>
73993             Bruno Haible  <bruno@clisp.org>
73995         Fix link error on Solaris 8.
73996         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
73997         also in libnsl. Define also INET_PTON_LIB.
73998         * modules/inet_pton (Link): New section.
74000 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74001             Bruno Haible  <bruno@clisp.org>
74003         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
74004         * modules/inet_ntop (Link): New section.
74005         Reported by Boyan Kasarov <bkasarov@gmail.com>.
74007 2009-11-02  Eric Blake  <ebb9@byu.net>
74009         maint: avoid compiler warnings in m4 macros
74010         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
74011         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
74013 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74015         * m4/pmccabe2html.m4: Remove file.
74016         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
74017         function.  Change maintainer.
74018         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
74019         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
74020         Courtès).
74022 2009-10-31  Eric Blake  <ebb9@byu.net>
74024         fseeko: fix m4 regression
74025         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
74026         regression from 2009-10-27.
74027         Reported by Ralf Wildenhues.
74029 2009-10-31  Jim Meyering  <meyering@redhat.com>
74031         inttostr: aesthetics and improved (compile-time) safety
74032         Define inttype_is_signed rather than inttype_is_unsigned,
74033         since the sole use is via "#if inttype_is_signed".
74034         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
74035         inttype_is_unsigned.
74036         * lib/offtostr.c (inttype_is_signed): Likewise.
74037         * lib/uinttostr.c (inttype_is_signed): Likewise.
74038         * lib/umaxtostr.c (inttype_is_signed): Likewise.
74039         * lib/inttostr.c (inttostr): Use verify to cross-check the
74040         inttype_is_signed value and the signedness of the actual type.
74041         * modules/inttostr (Depends-on): Add verify.
74043 2009-10-30  Eric Blake  <ebb9@byu.net>
74045         build: avoid compiler warnings
74046         * lib/fchmodat.c (lchmod): Mark unused variables.
74047         * lib/getopt.c (_getopt_initialize): Likewise.
74048         * lib/mktime.c (__mktime_internal): Provide prototype.
74049         * lib/inttostr.c (inttostr): Avoid compiler warning even with
74050         older gcc that do not understand #pragma GCC diagnostic.
74051         * lib/uinttostr.c (inttype_is_unsigned): Define.
74052         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
74054 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
74056         stat: fix compilation on AIX
74057         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
74058         only see struct stat64.
74060 2009-10-30  Eric Blake  <ebb9@byu.net>
74062         exclude: make more robust
74063         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
74064         rather than masking a coding bug.
74065         Suggested by Bruno Haible.
74067 2009-10-30  Jim Meyering  <meyering@redhat.com>
74069         perl scripts: remove #!/usr/bin/perl in favor of more portable...
74070         Rather than putting #!/usr/bin/perl on the first line,
74071         start with a variant of what's recommended by "man perlrun" that
74072         invokes the first "perl" program from your shell's search path.
74073         * build-aux/gitlog-to-changelog: Replace #!... as above.
74074         Add a "Local Variables" perl mode setting.
74075         Prompted by a patch from Ludovic Courtès.
74076         Improved by Eric Blake.
74077         * build-aux/useless-if-before-free: Likewise.
74078         * build-aux/announce-gen: Likewise.
74079         * build-aux/update-copyright: Likewise.
74081 2009-10-29  Eric Blake  <ebb9@byu.net>
74083         filenamecat-lgpl: adjust clients
74084         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
74085         filenamecat.
74086         * modules/renameat (Depends-on): Likewise.
74088         filenamecat: split into filenamecat-lgpl
74089         * modules/filenamecat-lgpl: New module.
74090         * modules/filenamecat (Files): Move library-safe files into
74091         filenamecat-lgpl.
74092         (Depends-on): Add filenamecat-lgpl.
74093         (configure.ac): Declare witness.
74094         * lib/filenamecat.h (file_name_concat): Only declare when using
74095         GPL module.
74096         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
74097         Move...
74098         * lib/filenamecat-lgpl.c: ...into new file.
74099         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
74100         (gl_FILE_NAME_CONCAT): Use it.
74101         * MODULES.html.sh (File system functions): Mention new module.
74103         argp: avoid memory leak
74104         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
74105         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
74106         base_name, since the latter malloc()s and can call exit().
74107         Leak introduced 2006-07-03.
74109         dirname-lgpl: adjust clients that don't need full dirname
74110         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
74111         * modules/filenamecat (Depends-on): Likewise.
74112         * modules/linkat (Depends-on): Likewise.
74113         * modules/mkancesdirs (Depends-on): Likewise.
74114         * modules/mkdir (Depends-on): Likewise.
74115         * modules/openat (Depends-on): Likewise.
74116         * modules/savewd (Depends-on): Likewise.
74117         * modules/rename (Depends-on): Likewise.
74118         (License): Relax license.
74119         * modules/mkdir-tests (Depends-on): Drop progname.
74120         (Makefile.am): Delete unneeded LDADD.
74121         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
74123         dirname: split into dirname-lgpl
74124         * modules/dirname-lgpl: New module.
74125         * modules/dirname (Files): Move library-safe files into
74126         dirname-lgpl.
74127         (Depends-on): Add dirname-lgpl.
74128         (configure.ac): Declare witness.
74129         * modules/double-slash-root (License): Relax license.
74130         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
74131         module.
74132         * lib/dirname.c (dir_len, mdir_name): Move...
74133         * lib/dirname-lgpl.c: ...into new file.
74134         * lib/basename.c (last_component, base_len): Move...
74135         * lib/basename-lgpl.c: ...into new file.
74136         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
74137         (gl_DIRNAME): Use it.
74138         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
74139         Mention new module.
74140         * modules/dirname-tests (Depends-on): Add progname.
74141         * tests/test-dirname.c (program_name): Delete.
74143         mkdir: make safe for libraries
74144         * modules/mkdir (Depends-on): Drop xalloc.
74145         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
74146         exit.
74148         tests: avoid some compiler warnings
74149         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
74150         literals.
74151         * tests/test-memchr.c (main): Avoid type mismatch.
74152         * tests/test-arpa_inet.c (main): Avoid unused parameters.
74153         * tests/test-base64.c (main): Likewise.
74154         * tests/test-getdelim.c (main): Likewise.
74155         * tests/test-gethostname.c (main): Likewise.
74156         * tests/test-getline.c (main): Likewise.
74157         * tests/test-netinet_in.c (main): Likewise.
74158         * tests/test-select.c (open_server_socket, main): Likewise.
74159         * tests/test-select-stdin.c (main): Likewise.
74160         * tests/test-sockets.c (main): Likewise.
74161         * tests/test-strsignal.c (main): Likewise.
74162         * tests/test-sys_select.c (main): Likewise.
74163         * tests/test-sys_socket.c (main): Likewise.
74164         * tests/test-u64.c (main): Likewise.
74165         * tests/test-xfprintf-posix.c (main): Likewise.
74166         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
74168         sockets: avoid compiler warning
74169         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
74171         maint: detect usage(1) and other suspicious exits
74172         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
74174 2009-10-29  Jim Meyering  <meyering@redhat.com>
74176         timespec: long-to-int truncation could make timespec_cmp malfunction
74177         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
74178         a multiple of 2^32 nanoseconds as no difference.
74180 2009-10-28  Jim Meyering  <meyering@redhat.com>
74182         fprintftime: wrap macro code argument in "do {...} while(0)"
74183         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
74184         cpy macro must be a statement that can be followed by a semicolon.
74185         Now that the else clause contains a comment and is hence longer
74186         than one line, I require curly braces.  That in turn requires
74187         that we wrap this code block in the standard do...while(0).
74189         fprintftime: remove stray semicolon from previous change
74190         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
74192         fprintftime: avoid a warning about ignored fwrite return value
74193         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
74194         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
74195         that is unsafe.
74196         * modules/fprintftime (Depends-on): Add ignore-value.
74198         exclude: avoid an unwarranted warning
74199         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
74201 2009-10-27  Eric Blake  <ebb9@byu.net>
74203         fseek: avoid compilation failure when fflush is replaced
74204         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
74205         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
74206         module is in use.
74207         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
74208         module is not in use; since REPLACE_FSEEK worked otherwise.
74209         (GNULIB_FTELLO): Likewise for ftell.
74210         Reported by Ian Beckwith and others.
74212 2009-10-27  Bruno Haible  <bruno@clisp.org>
74214         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
74215         Reported by Jim Meyering.
74217 2009-10-27  Jim Meyering  <jim@meyering.net>
74218             Bruno Haible  <bruno@clisp.org>
74220         Avoid warning despite dropping the return value of fwrite.
74221         * lib/unicodeio.c: Include ignore-value.h.
74222         (fwrite_success_callback): Explicitly ignore fwrite's return value.
74223         * modules/unicodeio (Depends-on): Add ignore-value.
74225 2009-10-26  Eric Blake  <ebb9@byu.net>
74227         areadlinkat: fix fallback path
74228         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
74229         pointer and zero.
74231 2009-10-22  Pádraig Brady  <P@draigBrady.com>
74233         Use a better IO block size for modern systems
74234         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
74235         * lib/md2.c: Likewise.
74236         * lib/md4.c: Likewise.
74237         * lib/md5.c: Likewise.
74238         * lib/sha1.c: Likewise.
74239         * lib/sha256.c: Likewise.
74240         * lib/sha512.c: Likewise.
74242 2009-10-22  Eric Blake  <ebb9@byu.net>
74244         tests: avoid several compiler warnings
74245         * tests/test-getcwd.c (main): Avoid buffer underflow.
74246         * tests/test-getdate.c (main): String literals are not safe with
74247         putenv, so use setenv.  Declare unused argument.
74248         * modules/getdate-tests (Depends-on): Add setenv.
74249         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
74250         problems with string literals in char *.
74251         * tests/test-hash.c (main): Avoid shadowing declaration.
74252         (insert_new): Treat string literals as char const *.
74253         * tests/test-getopt.h (test_getopt): Likewise.
74254         (getopt_loop): Alter types to minimize casting elsewhere.
74255         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
74256         (test_getopt_long_posix): Likewise.
74257         (do_getopt_long): Add wrapper to minimize casting.
74258         * tests/test-atexit.c (clear_temp_file): Use void.
74259         * tests/test-areadlink-with-size.c (main): Declare unused
74260         arguments.
74261         * tests/test-areadlink.c (main): Likewise.
74262         * tests/test-areadlinkat-with-size.c (main): Likewise.
74263         * tests/test-areadlinkat.c (main): Likewise.
74264         * tests/test-canonicalize-lgpl.c (main): Likewise.
74265         * tests/test-canonicalize.c (main): Likewise.
74266         * tests/test-dirent-safer.c (main): Likewise.
74267         * tests/test-dirname.c (main): Likewise.
74268         * tests/test-dup2.c (main): Likewise.
74269         * tests/test-fchdir.c (main): Likewise.
74270         * tests/test-fcntl-h.c (main): Likewise.
74271         * tests/test-fcntl-safer.c (main): Likewise.
74272         * tests/test-fdopendir.c (main): Likewise.
74273         * tests/test-fdutimensat.c (main): Likewise.
74274         * tests/test-fflush.c (main): Likewise.
74275         * tests/test-filenamecat.c (main): Likewise.
74276         * tests/test-filevercmp.c (main): Likewise.
74277         * tests/test-fopen-safer.c (main): Likewise.
74278         * tests/test-fopen.c (main): Likewise.
74279         * tests/test-fpending.c (main): Likewise.
74280         * tests/test-fpurge.c (main): Likewise.
74281         * tests/test-freading.c (main): Likewise.
74282         * tests/test-fstatat.c (main): Likewise.
74283         * tests/test-fsync.c (main): Likewise.
74284         * tests/test-futimens.c (main): Likewise.
74285         * tests/test-getndelim2.c (main): Likewise.
74286         * tests/test-gettimeofday.c (main): Likewise.
74287         * tests/test-getopt.c (main): Likewise.
74288         * tests/test-i-ring.c (main): Likewise.
74289         * tests/test-inttypes.c (main): Likewise.
74290         * tests/test-link.c (main): Likewise.
74291         * tests/test-lstat.c (main): Likewise.
74292         * tests/test-math.c (main): Likewise.
74293         * tests/test-md5.c (main): Likewise.
74294         * tests/test-memchr2.c (main): Likewise.
74295         * tests/test-memrchr.c (main): Likewise.
74296         * tests/test-mkdir.c (main): Likewise.
74297         * tests/test-mkdirat.c (main): Likewise.
74298         * tests/test-mkfifoat.c (main): Likewise.
74299         * tests/test-open.c (main): Likewise.
74300         * tests/test-openat-safer.c (main): Likewise.
74301         * tests/test-openat.c (main): Likewise.
74302         * tests/test-quotearg.c (main): Likewise.
74303         * tests/test-rawmemchr.c (main): Likewise.
74304         * tests/test-readlink.c (main): Likewise.
74305         * tests/test-remove.c (main): Likewise.
74306         * tests/test-rename.c (main): Likewise.
74307         * tests/test-renameat.c (main): Likewise.
74308         * tests/test-rmdir.c (main): Likewise.
74309         * tests/test-sha1.c (main): Likewise.
74310         * tests/test-signal.c (main): Likewise.
74311         * tests/test-sigaction.c (main): Likewise.
74312         * tests/test-stat.c (main): Likewise.
74313         * tests/test-stat-time.c (main): Likewise.
74314         * tests/test-stddef.c (main): Likewise.
74315         * tests/test-stdint.c (main): Likewise.
74316         * tests/test-stdio.c (main): Likewise.
74317         * tests/test-stdlib.c (main): Likewise.
74318         * tests/test-strchrnul.c (main): Likewise.
74319         * tests/test-strerror.c (main): Likewise.
74320         * tests/test-string.c (main): Likewise.
74321         * tests/test-strtod.c (main): Likewise.
74322         * tests/test-strverscmp.c (main): Likewise.
74323         * tests/test-symlink.c (main): Likewise.
74324         * tests/test-symlinkat.c (main): Likewise.
74325         * tests/test-sys_stat.c (main): Likewise.
74326         * tests/test-sys_time.c (main): Likewise.
74327         * tests/test-time.c (main): Likewise.
74328         * tests/test-unistd.c (main): Likewise.
74329         * tests/test-unlink.c (main): Likewise.
74330         * tests/test-unlinkat.c (main): Likewise.
74331         * tests/test-utimens.c (main): Likewise.
74332         * tests/test-utimensat.c (main): Likewise.
74333         * tests/test-version-etc.c (main): Likewise.
74334         * tests/test-wchar.c (main): Likewise.
74335         * tests/test-wctype.c (main): Likewise.
74336         * tests/test-xprintf-posix.c (main): Likewise.
74337         * tests/test-posixtm.c (main): Likewise.
74338         (STREQ): Delete unused macro.
74339         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
74340         shadowed variables.
74341         * tests/test-memchr.c (main): Likewise.
74343 2009-10-21  Eric Blake  <ebb9@byu.net>
74345         areadlinkat: avoid failure on older glibc
74346         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
74347         rather than mis-comparing 0 against FUNC_RESULT of char*.
74349 2009-10-21  Bruno Haible  <bruno@clisp.org>
74351         * modules/stpncpy (License): Relicense under LGPLv2+.
74352         Reported by David Lutterkort <lutter@redhat.com>.
74354 2009-10-20  Eric Blake  <ebb9@byu.net>
74356         utimensat: work around Solaris 9 bug
74357         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
74358         has trailing slash bugs.
74359         * tests/test-lutimens.h (test_lutimens): Enhance test.
74360         * tests/test-utimens.h (test_utimens): Likewise.
74361         * doc/posix-functions/utime.texi (utime): Enhance documentation.
74362         * doc/posix-functions/utimes.texi (utimes): Likewise.
74363         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74364         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
74365         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
74366         * doc/posix-functions/futimens.texi (futimens): Likewise.
74368         fdutimensat: new module
74369         * modules/fdutimensat: New file.
74370         * lib/fdutimensat.c (fdutimensat): Likewise.
74371         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
74372         * MODULES.html.sh (File system functions): Mention module.
74373         * modules/fdutimensat-tests: New test.
74374         * tests/test-fdutimensat.c: Likewise.
74376         doc: regenerate INSTALL
74377         * doc/INSTALL: Reflect recent autoconf update.
74378         * doc/INSTALL.ISO: Likewise.
74379         * doc/INSTALL.UTF-8: Likewise.
74381 2009-10-20  Pádraig Brady  <P@draigBrady.com>
74383         acl: warn if ACL support is not detected
74384         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
74386 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
74388         * lib/nproc.h: Add extern "C" block for C++.
74390 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
74391             Bruno Haible  <bruno@clisp.org>
74393         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
74394         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
74395         * doc/posix-functions/isalpha.texi: Likewise.
74396         * doc/posix-functions/isblank.texi: Likewise.
74397         * doc/posix-functions/iscntrl.texi: Likewise.
74398         * doc/posix-functions/isdigit.texi: Likewise.
74399         * doc/posix-functions/isgraph.texi: Likewise.
74400         * doc/posix-functions/islower.texi: Likewise.
74401         * doc/posix-functions/isprint.texi: Likewise.
74402         * doc/posix-functions/ispunct.texi: Likewise.
74403         * doc/posix-functions/isspace.texi: Likewise.
74404         * doc/posix-functions/isupper.texi: Likewise.
74405         * doc/posix-functions/isxdigit.texi: Likewise.
74407 2009-10-18  Bruno Haible  <bruno@clisp.org>
74409         Tests for module 'isblank'.
74410         * modules/isblank-tests: New file.
74411         * tests/test-isblank.c: New file.
74413         New module 'isblank'.
74414         * lib/isblank.c: New file.
74415         * m4/isblank.m4: New file.
74416         * modules/isblank: New file.
74417         * doc/posix-functions/isblank.texi: Mention the new module.
74419 2009-10-18  Bruno Haible  <bruno@clisp.org>
74421         New module 'ctype'.
74422         * lib/ctype.in.h: New file.
74423         * m4/ctype.m4: New file.
74424         * modules/ctype: New file.
74425         * doc/posix-headers/ctype.texi: Mention the new module.
74427 2009-10-18  Jim Meyering  <meyering@redhat.com>
74429         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
74430         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
74431         right after its initialization, rather than farther down.
74432         Keeping these in close proximity makes it easier to ensure
74433         that each such variable is initialized.  E.g.,
74435             LIB_CLOCK_GETTIME=
74436             AC_SUBST([LIB_CLOCK_GETTIME])
74438         This change also increments these serial numbers.
74439         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
74440         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74443 2009-10-18  Bruno Haible  <bruno@clisp.org>
74445         Don't let environment variables perturb build.
74446         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
74447         (gl_PREREQ_GETHRXTIME): ... not here.
74449 2009-10-18  Bruno Haible  <bruno@clisp.org>
74451         Avoid symlink attack in localcharset module.
74452         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
74453         (O_NOFOLLOW): Define fallback.
74454         (get_charset_aliases): Don't open the file if it is a symbolic link.
74455         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
74456         gl_FCNTL_H.
74457         (gl_FCNTL_H): Require it.
74458         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
74459         * modules/localcharset (Files): Add m4/fcntl_h.m4.
74460         Reported by Fergal Glynn <fglynn@veracode.com>.
74462 2009-10-18  Bruno Haible  <bruno@clisp.org>
74464         Implement nproc for mingw.
74465         * lib/nproc.c: Include <windows.h>
74466         (num_processors): On native Windows platforms, try GetSystemInfo.
74468 2009-10-18  Bruno Haible  <bruno@clisp.org>
74470         Implement nproc for IRIX.
74471         * lib/nproc.c: Include <sys/sysmp.h>.
74472         (num_processors): On IRIX systems, try sysmp.
74473         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
74475 2009-10-18  Bruno Haible  <bruno@clisp.org>
74477         Implement nproc for HP-UX.
74478         * lib/nproc.c: Include <sys/pstat.h>
74479         (num_processors): On HP-UX systems, try pstat_getdynamic.
74480         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
74481         pstat_getdynamic.
74483 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
74484             Bruno Haible  <bruno@clisp.org>
74486         Implement nproc for NetBSD, OpenBSD.
74487         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
74488         (ARRAY_SIZE): New macro.
74489         (num_processors): On BSD systems, try sysctl of HW_NCPU.
74490         * m4/nproc.m4: New file.
74491         * modules/nproc (Files): Add m4/nproc.m4.
74492         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
74493         (Makefile.am): Instead, augment lib_SOURCES.
74495 2009-10-18  Bruno Haible  <bruno@clisp.org>
74497         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
74498         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
74499         sys/param.h.
74501 2009-10-16  Eric Blake  <ebb9@byu.net>
74503         utimensat: new module
74504         * modules/utimensat: New file.
74505         * lib/utimensat.c (utimensat): Likewise.
74506         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74507         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
74508         so we can work around Linux bugs.
74509         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74510         * modules/sys_stat (Makefile.am): Substitute them.
74511         * lib/sys_stat.in.h (utimensat): Declare it.
74512         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74513         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74514         * modules/utimensat-tests: New test.
74515         * tests/test-utimensat.c: Likewise.
74517         utimens: let lutimens work on non-symlinks
74518         * lib/utimens.c (lutimens): Fall back to utimens rather than
74519         failing with ENOSYS, when file is not a symlink.
74520         (utimens): Reduce redirection.
74521         * tests/test-lutimens.h (test_lutimens): Update test to cover
74522         non-symlinks.
74523         * tests/test-utimens.h (test_utimens): Update test to cover
74524         symlinks.
74525         * tests/test-utimens.c (main): Update caller.
74527         utimens: cache whether utimensat syscall works
74528         * lib/utimens.c (utimensat_works_really): New cache variable.
74529         (fdutimens, lutimens): Use it to avoid failing syscall.
74531         test-stat-time, test-utimens: improve portability
74532         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
74533         ext4 on alpha, and for cygwin.
74534         * tests/test-utimens-common.h: New file.
74535         (nap): Factor delays into single function.
74536         * tests/test-lutimens.h (test_lutimens): Use new header.
74537         * tests/test-futimens.h (test_futimens): Likewise.
74538         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
74539         timestamps to occur from same machine, as was done previously for
74540         test_utimens.
74541         * modules/utimens-tests (Files): Ship new file.
74542         * modules/futimens-tests (Files): Likewise.
74543         Reported in part by Jim Meyering.
74545         sys_stat: sort replacement declarations
74546         * lib/sys_stat.in.h: Sort declarations.
74547         * lib/futimens.c (futimens): Fix typo.
74549 2009-10-15  Jim Meyering  <meyering@redhat.com>
74551         don't let environment settings perturb build
74552         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
74553         could cause a configure-time and/or build-time malfunction.
74554         Typically, a configure-time function-in-library test is performed
74555         via code like this:
74557           LIB_VAR=
74558           AC_SUBST([LIB_VAR])
74559           prefix_saved_LIBS=$LIBS
74560             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
74561                        [test "$ac_cv_search_FUNC" = "none required" ||
74562                         LIB_VAR=$ac_cv_search_FUNC])
74563           LIBS=$prefix_saved_LIBS
74565         However, in each of the files affected by this change, the LIB_VAR=
74566         initialization was omitted.  Thus, when set in the environment, its
74567         value would propagate into generated Makefiles when FUNC is not found
74568         in LIB_NAME.
74569         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
74570         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74573 2009-10-14  Eric Blake  <ebb9@byu.net>
74575         fchdir: avoid infinite recursion in mingw
74576         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
74577         recursing.
74579         test-stat-time: port to mingw
74580         * tests/test-stat-time.c (force_unlink): Return a value.
74581         (test_ctime) [W32]: Fix compilation error.
74582         (nap): Don't call usleep with too large an argument.  Use
74583         force_unlink.
74584         * doc/pastposix-functions/usleep.texi (usleep): Document the
74585         portability issue.
74587 2009-10-13  Jim Meyering  <meyering@redhat.com>
74589         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
74590         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
74591         * modules/pipe-filter-ii: Likewise.
74592         * modules/sys_socket-tests: Likewise.
74593         * modules/tsearch-tests: Likewise.
74594         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
74595         (check): Depend on it.
74597 2009-10-12  Eric Blake  <ebb9@byu.net>
74599         utimens-tests: port to NFS file systems
74600         * tests/test-utimens.h (test_utimens): Refactor utimecmp
74601         comparisons to avoid spurious failures from timestamp drift
74602         between NFS machines.
74604 2009-10-12  Eric Blake  <ebb9@byu.net>
74606         stat-time-tests: minor cleanups
74607         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
74608         * tests/test-stat-time.c (nap): Separate assignment from call.
74609         Suggested by Paolo Bonzini and Bruno Haible.
74611         sys_stat: guarantee struct timespec
74612         * lib/sys_stat.in.h (includes): Always include <time.h>
74613         * modules/sys_stat (Depends-on): Add time.
74614         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
74615         mode_t permission values.
74616         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
74617         get at subsecond timestamps.
74619 2009-10-10  Eric Blake  <ebb9@byu.net>
74621         futimens: new module
74622         * modules/futimens: New file.
74623         * lib/futimens.c (futimens): Likewise.
74624         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
74625         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
74626         we can work around Linux bugs.
74627         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74628         * modules/sys_stat (Makefile.am): Substitute them.
74629         * lib/sys_stat.in.h (futimens): Declare it.
74630         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74631         * doc/posix-functions/futimens.texi (futimens): Likewise.
74632         * modules/futimens-tests: New test.
74633         * tests/test-futimens.c: Likewise.
74635         utimens: introduce fdutimens
74636         * lib/utimens.h (fdutimens): New prototype.
74637         * lib/utimens.c (gl_futimens): Move guts...
74638         (fdutimens): ...to new interface.
74639         * tests/test-utimens.c (do_fdutimens): Use it.
74641         utimens: add UTIME_NOW and UTIME_OMIT support
74642         * lib/utimens.c (validate_timespec, update_timespec): New helper
74643         functions.
74644         (gl_futimens, lutimens): Use them.
74645         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
74646         stdbool, sys_stat.
74647         (Link): Mention resulting library dependency.
74648         * modules/utimecmp (Link): Likewise.
74649         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
74650         (Makefile.am): Pick up library dependency.
74651         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
74652         definition.
74653         * tests/test-sys_stat.c: Test the definitions.
74654         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
74655         * NEWS: Document library dependency.
74657         utimecmp: support symlink timestamps
74658         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
74659         hashing when possible.  Use pathconf when available.
74660         (SYSCALL_RESOLUTION): Recognize tighter resolution.
74661         * modules/utimecmp (Depends-on): Add lstat.
74663         utimens: add lutimens interface
74664         * lib/utimens.c (lutimens): New function.
74665         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
74666         * lib/utimens.h (lutimens): Declare new interface.
74667         * tests/test-utimens.c (main): Enhance test.
74668         * tests/test-lutimens.h (test_lutimens): New file.
74669         * modules/utimens-tests (Files): Distribute it.
74670         (Depends-on): Add symlink.
74671         (configure.ac): Check for usleep.
74673         utimens: validate futimens usage
74674         * lib/utimens.c (gl_futimens): Require valid fd up front, using
74675         fewer syscalls on failure later on.  Avoid compiler warning on
74676         mingw.
74677         * modules/utimens (Depends-on): Add dup2.
74679         utimens: add test
74680         * modules/utimens-tests: New test.
74681         * tests/test-utimens.h: New file.
74682         * tests/test-futimens.h: Likewise.
74683         * tests/test-utimens.c: Likewise.
74685         doc: mention timestamp portability issues
74686         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
74687         instead.
74688         * doc/posix-functions/utime.texi (utime): Likewise.
74689         * doc/posix-functions/utimes.texi (utimes): Likewise.
74690         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
74691         instead.
74692         * doc/posix-functions/futimens.texi (futimens): Mention utimens
74693         module.
74694         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74695         Mention weakness with symlink timestamps.
74696         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
74697         to utimensat/futimens instead.
74698         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
74700         test-dup2: enhance test
74701         * tests/test-dup2.c (main): Also check AT_FDCWD.
74703         test-stat-time: avoid more spurious failures
74704         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
74705         xfs; and avoid race if the two timestamps cross quantization edge.
74707         relocatable: prefer 'file system' over 'filesystem'
74708         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
74709         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
74710         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
74711         * doc/relocatable.texi (Enabling Relocatability): Likewise.
74712         * lib/relocatable.c (compute_curr_prefix): Likewise.
74714 2009-10-10  Jim Meyering  <meyering@redhat.com>
74716         stat-time-tests: check for the usleep function
74717         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
74719 2009-10-10  Bruno Haible  <bruno@clisp.org>
74721         * modules/xnanosleep: Put the Link section after the Include section.
74723 2009-10-09  Eric Blake  <ebb9@byu.net>
74725         dup2: work around FreeBSD 6.1 bug
74726         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
74727         * doc/posix-functions/dup2.texi (dup2): Document it.
74728         Reported by Nelson H. F. Beebe and Jim Meyering.
74730         test-stat-time: port to buggy NFS clients
74731         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
74732         (test_ctime): Also skip test if mtime and ctime are skewed.
74734         maint: prefer 'file system' over 'filesystem'
74735         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
74736         * doc/posix-functions/lstat.texi (lstat): Likewise.
74737         * lib/file-has-acl.c (file_has_acl): Likewise.
74738         * lib/fwriteerror.c [TEST]: Likewise.
74739         * tests/test-areadlink.h (test_areadlink): Likewise.
74740         * tests/test-areadlinkat-with-size.c (main): Likewise.
74741         * tests/test-areadlinkat.c (main): Likewise.
74742         * tests/test-canonicalize-lgpl.c (main): Likewise.
74743         * tests/test-canonicalize.c (main): Likewise.
74744         * tests/test-fstatat.c (main): Likewise.
74745         * tests/test-linkat.c (main): Likewise.
74746         * tests/test-lstat.h (test_lstat_func): Likewise.
74747         * tests/test-mkdir.h (test_mkdir): Likewise.
74748         * tests/test-readlink.h (test_readlink): Likewise.
74749         * tests/test-remove.c (main): Likewise.
74750         * tests/test-rename.h (test_rename): Likewise.
74751         * tests/test-renameat.c (main): Likewise.
74752         * tests/test-rmdir.h (test_rmdir_func): Likewise.
74753         * tests/test-symlink.h (test_symlink): Likewise.
74754         * tests/test-symlinkat.c (main): Likewise.
74755         * tests/test-unlink.h (test_unlink_func): Likewise.
74756         * tests/test-unlinkat.c (main): Likewise.
74758         maint: make realtime library usage explicit
74759         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
74760         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
74761         * modules/settime (Link): Likewise.
74762         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
74764         test-stat-time: speed up execution
74765         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
74766         warning on mingw.
74767         (nap): New helper function.
74768         (prepare_test): Use it to reduce sleep time.
74769         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
74770         execution.
74771         * modules/stat-time-tests (configure.ac): Check for usleep.
74773 2009-10-09  Jim Meyering  <meyering@redhat.com>
74775         selinux-h: always use getfilecon wrappers
74776         * lib/getfilecon.c: New file.
74777         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
74778         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
74779         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
74780         (fgetfilecon): Provide a stub.
74781         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
74782         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
74783         file unconditionally.
74784         When <selinux/selinux.h> is found, arrange to use wrappers.
74785         * modules/selinux-h (Files): Add getfilecon.c.
74786         (Makefile.am): Substitute include-next-related bits
74787         into the now-always-generated selinux/selinux.h file.
74788         * doc/glibc-functions/lgetfilecon.texi: New file.
74789         * doc/glibc-functions/fgetfilecon.texi: New file.
74790         * doc/glibc-functions/getfilecon.texi: New file.
74791         * doc/glibc-functions/getfilecon-desc.texi: New file.
74792         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
74793         which to pull in the new files.
74794         * MODULES.html.sh (Misc): Add selinux-h.
74796 2009-10-08  Jim Meyering  <meyering@redhat.com>
74798         unistd: fix comment typo
74799         * lib/unistd.in.h (euidaccess): Fix a comment typo.
74801 2009-10-08  Eric Blake  <ebb9@byu.net>
74803         areadlink: use SIZE_MAX consistently
74804         * modules/areadlink (Depends-on): Add stdint.
74805         * modules/areadlink-with-size (Depends-on): Likewise.
74806         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
74807         gives NULL; drop sys/types, since unistd gives size_t; and add
74808         stdint for SIZE_MAX.
74809         (SIZE_MAX): Rely on headers.
74810         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
74811         and add stdint.
74812         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
74813         (SIZE_MAX): Likewise.
74814         (INITIAL_BUF_SIZE): Turn into enum.
74815         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
74817 2009-10-08  Jim Meyering  <meyering@redhat.com>
74819         areadlinkat: avoid compilation failure
74820         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
74821         Fix typo in comment.
74823 2009-10-07  Eric Blake  <ebb9@byu.net>
74825         areadlinkat-with-size: new module
74826         * modules/areadlinkat-with-size: New module.
74827         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
74828         * lib/areadlink.h (areadlinkat): Declare it.
74829         * MODULES.html.sh (File system functions): Mention it.
74830         * modules/areadlinkat-with-size-tests: New test.
74831         * tests/test-areadlinkat-with-size.c: New file.
74833         xreadlinkat: new module
74834         * modules/xreadlinkat: New module.
74835         * lib/xreadlinkat.c (xreadlinkat): New file.
74836         * lib/xreadlink.h (xreadlinkat): Declare it.
74837         * MODULES.html.sh (File system functions): Mention it.
74839         areadlinkat: new module
74840         * lib/at-func.c (FUNC_FAIL): New define.
74841         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
74842         * modules/areadlinkat: New module.
74843         * lib/linkat.c (areadlinkat): Move...
74844         * lib/areadlinkat.c (areadlinkat): ...to new file.
74845         * lib/areadlink.h (areadlinkat): Declare it.
74846         * modules/linkat (Depends-on): Add areadlinkat.
74847         * MODULES.html.sh (File system functions): Mention it.
74848         * modules/areadlinkat-tests: New test.
74849         * tests/test-areadlinkat.c: New file.
74851         areadlink, areadlink-with-size: add tests
74852         * modules/areadlink-tests: New test.
74853         * modules/areadlink-with-size-tests: Likewise.
74854         * tests/test-areadlink.h: New file.
74855         * tests/test-areadlink.c: Likewise.
74856         * tests/test-areadlink-with-size.c: Likewise.
74858         maint: minor cleanups
74859         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
74860         _UNUSED_PARAMETER_ instead.
74861         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
74862         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
74863         * modules/linkat-tests (Files): Distribute test-link.h.
74865         openat, utimens: whitespace cleanup
74866         * lib/openat.c: Prefer space throughout, rather than mix of 8
74867         spaces vs. tabs.
74868         * lib/at-func.c: Likewise.
74869         * lib/utimens.c: Likewise.
74871         openat: avoid using wrong fd
74872         * lib/openat.c (openat_permissive): Reject user's fd if saving the
74873         working directory chooses same fd.
74874         * lib/at-func.c (AT_FUNC_NAME): Likewise.
74876         mkdir, mkdirat: fix cygwin 1.5.x bug
74877         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
74878         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
74879         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
74880         bug.
74881         (gl_PREREQ_MKDIR): Delete unused macro.
74882         * modules/mkdir (Files): Track file rename.
74883         (configure.ac): Update macro name.
74884         * modules/openat (Depends-on): Add mkdir.
74885         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
74887         mkdir, mkdirat: add tests
74888         * modules/mkdir-tests: New test.
74889         * tests/test-mkdir.h: New file.
74890         * tests/test-mkdir.c: Likewise.
74891         * tests/test-mkdirat.c: Likewise.
74892         * modules/openat-tests (Files): Add new files.
74893         (Makefile.am): Run new test.
74895 2009-10-06  Eric Blake  <ebb9@byu.net>
74897         doc: tweak *at function documentation
74898         * doc/posix-functions/faccessat.texi (faccessat): Mention
74899         known issue with replacement.
74900         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
74901         * doc/posix-functions/linkat.texi (linkat): Likewise.
74902         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
74903         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
74904         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
74905         * doc/posix-functions/renameat.texi (renameat): Likewise.
74906         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
74908         openat: fix GNU/Hurd bug in unlinkat
74909         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
74910         broken.
74911         * doc/posix-functions/unlink.texi (unlink): Document this.
74912         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
74914         fdopendir: fix GNU/Hurd bug
74915         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
74916         allowing non-directory fds.
74917         * lib/fdopendir.c (rpl_fdopendir): Work around it.
74918         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
74919         * modules/dirent (Makefile.am): Substitute it.
74920         * lib/dirent.in.h (fdopendir): Declare replacement.
74921         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
74922         * tests/test-fdopendir.c (main): Test something other than
74923         /dev/null, since on Hurd that behaves like a directory.
74925         test-symlink: port to GNU/Hurd
74926         * tests/test-symlink.h (test_symlink): Relax expected errno.
74928         doc: tweak more cygwin information
74929         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
74930         now compatible with glibc.
74931         * doc/posix-functions/getopt.texi (getopt): Likewise.
74933         getopt-gnu: add another test
74934         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
74935         guarantee behavior relied on by m4.
74936         * tests/test-getopt.c (main): Use it.
74937         * modules/getopt-posix-tests (Depends-on): Add setenv.
74938         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
74940         getopt: fix compilation on darwin
74941         * lib/getopt.in.h (includes): Leave breadcrumbs during system
74942         include.
74943         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
74944         Reported by Ludovic Courtès.
74946 2009-10-06  Bruno Haible  <bruno@clisp.org>
74948         * modules/size_max (Description): Discourage its use.
74949         Reported by Simon Josefsson.
74951 2009-10-06  Jim Meyering  <meyering@redhat.com>
74953         linkat: avoid compilation failure
74954         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
74956 2009-10-05  Eric Blake  <ebb9@byu.net>
74958         linkat: support Linux 2.6.17
74959         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
74960         linkat on Linux, but allow cache variable override.
74961         * lib/linkat.c (rpl_linkat): Define override.
74962         * modules/linkat (Depends-on): Add symlinkat.
74963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
74964         * modules/unistd (Makefile.am): Substitute it.
74965         * lib/unistd.in.h (linkat): Declare replacement.
74966         Reported by Pádraig Brady.
74968         quotearg: port test to systems with C.UTF-8 locale
74969         * tests/test-quotearg.c (struct result_strings): Add another
74970         member, differentiating between C.ASCII and C.UTF-8 handling.
74971         (compare_strings): Add parameter.
74972         (main): Adjust all callers.
74974         getopt: avoid clash with FreeBSD _getopt_internal
74975         * lib/getopt.in.h (_getopt_internal): Override the name.
74976         * lib/getopt_int.h (includes): Pick up any overrides.
74977         Reported by Reuben Thomas.
74979         hash: allow C89 compilation
74980         * lib/hash.c (check_tuning): Move declaration before statement.
74981         Reported by Reuben Thomas.
74983 2009-10-05  Karl Berry  <karl@gnu.org>
74985         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
74987 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
74988             Bruno Haible  <bruno@clisp.org>
74990         * lib/uname.c (uname): Use a table-driven algorithm to compute
74991         Windows NT versions.
74993 2009-10-04  Bruno Haible  <bruno@clisp.org>
74995         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
74996         program_invocation_short_name.
74997         * modules/progname (configure.ac): Test for presence of
74998         program_invocation_short_name.
74999         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
75001 2009-10-04  Bruno Haible  <bruno@clisp.org>
75003         * lib/progname.c (set_program_name): Fix comment.
75004         Reported by Jim Meyering.
75006 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75007             Bruno Haible  <bruno@clisp.org>
75009         * lib/uname.c: Include <string.h>.
75010         (uname): Do only one call to GetVersionEx in the common case.
75012 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75013             Bruno Haible  <bruno@clisp.org>
75015         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
75016         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
75017         (uname): Add support for Windows CE and various non-x86 CPU types.
75019 2009-10-03  Bruno Haible  <bruno@clisp.org>
75021         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
75022         invocation to tests/configure.ac.
75023         Reported by Ian Beckwith <ianb@erislabs.net>.
75025 2009-10-02  Eric Blake  <ebb9@byu.net>
75027         fchdir: avoid compiler warning
75028         * lib/fchdir.c (canonicalize_file_name)
75029         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
75031         test-open: support mingw errno values
75032         * tests/test-open.h (test_open): Relax test.
75033         * tests/test-fopen.h (test_fopen): Likewise.
75034         * tests/test-openat-safer.c (main): Likewise.
75036         open: fix opening directory on mingw
75037         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
75039         test-open: on GNU/Hurd, /dev/null is a directory
75040         * tests/test-fopen.h (main): Rename...
75041         (test_fopen): ...to this.  Use a guaranteed non-directory when
75042         confirming open behavior on trailing slash.
75043         * tests/test-openat-safer.c (main): Likewise.
75044         * tests/test-open.h (main): Likewise....
75045         (test_open): ...to this.
75046         * tests/test-fopen.c (main): Adjust caller.
75047         * tests/test-fopen-safer.c (main): Likewise.
75048         * tests/test-open.c (main): Likewise.
75049         * tests/test-fcntl-safer.c (main): Likewise.
75050         Reported by Samuel Thibault.
75052         rename, fchdir: don't ignore chdir failure
75053         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
75054         * lib/rename.c (rpl_rename) [W32]: Likewise.
75055         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
75056         an empty destination directory if source cannot be renamed,
75057         although there is still possibility for failure.
75058         * doc/posix-functions/rename.texi (rename): Document the race.
75059         Reported by Jim Meyering.
75061         maint: cleanup whitespace in recent commits
75062         * lib/rename.c (rpl_rename): Remove tabs.
75063         * tests/test-link.h (test_link): Likewise.
75064         * lib/fchdir.c (get_name): Likewise.
75065         Reported by Jim Meyering.
75067 2009-10-02  Ben Pfaff  <blp@gnu.org>
75069         relocatable-prog-wrapper: Add missing dependency on
75070         double-slash-root.
75071         * modules/relocatable-prog-wrapper: Add dependency.
75072         Reported by Ian Beckwith <ianb@erislabs.net>.
75074 2009-10-02  Eric Blake  <ebb9@byu.net>
75076         renameat: fix Solaris bugs
75077         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
75078         needed fixing.
75079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
75080         * modules/stdio (Makefile.am): Substitute it.
75081         * lib/stdio.in.h (renameat): Declare replacement.
75082         * lib/renameat.c (rpl_renameat): Implement fix.
75084         renameat: new module
75085         * modules/renameat: New file.
75086         * lib/renameat.c (renameat): Likewise.
75087         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
75088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
75089         * modules/stdio (Makefile.am): Substitute them.
75090         * lib/stdio.in.h (renameat): Declare it.
75091         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75092         * doc/posix-functions/renameat.texi (renameat): Likewise.
75093         * modules/renameat-tests: New test.
75094         * tests/test-renameat.c: Likewise.
75096         rename: fix mingw bugs
75097         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
75098         directory overwrite bugs.
75100         rename: fix another cygwin 1.5 bug
75101         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
75102         checks.
75103         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
75104         unnecessary cygwin workarounds.  Also work around bug with moving
75105         full directory onto an empty one.
75106         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
75108         rename-dest-slash: merge into rename module
75109         * modules/rename-dest-slash (Status): Mark obsolete.
75110         (Depends-on): Add rename.
75111         (Files): Let rename do it all.
75112         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
75113         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
75114         * m4/rename-dest-slash.m4: ...so this file can be deleted.
75115         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
75116         * lib/rename.c (rpl_rename): Update comments.
75118         rename: fix cygwin 1.5.x bugs
75119         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
75120         * lib/rename.c (rpl_rename): Work around them.
75121         * modules/rename (Depends-on): Add same-inode.
75123         rename: fix Solaris 10 bug
75124         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75125         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
75126         was the only bug.
75128         rename: fix Solaris 9 bug
75129         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
75130         on non-directory.  Avoid calling exit.
75131         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
75132         strdup.
75133         * modules/rename-tests (Depends-on): Drop lstat.
75134         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75135         (gl_PREREQ_RENAME): Delete unused macro.
75137         rename-dest-slash: fix NetBSD bug
75138         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
75139         links.
75140         * modules/rename-dest-slash (Depends-on): Add same-inode.
75142         rename-tests: new test, exposes several platform bugs
75143         * modules/rename-tests: New file.
75144         * tests/test-rename.h: Likewise.
75145         * tests/test-rename.c: Likewise.
75146         * doc/posix-functions/rename.texi (rename): Improve documentation,
75147         including bugs that will eventually be fixed in gnulib.
75149 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
75151         * lib/uname.c: Include <stdlib.h>
75152         (uname): Assume version info is available.
75154 2009-10-02  Jim Meyering  <meyering@redhat.com>
75156         gnu-web-doc-update: correct --help output
75157         * build-aux/gnu-web-doc-update: Make --help output relevant.
75159         gnu-web-doc-update: add standard options
75160         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
75162         gnu-web-doc-update: New module.
75163         Use this script to automatically update the on-line web documentation
75164         for your GNU project at http://www.gnu.org/software/$pkg/manual/
75165         * modules/gnu-web-doc-update: New file, from coreutils.
75166         * build-aux/gnu-web-doc-update: New script.
75168 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
75170         link: LoadLibrary is not needed.
75171         * lib/link.c: Use GetModuleHandle.
75173 2009-10-01  Eric Blake  <ebb9@byu.net>
75175         getopt: bump serial number
75176         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
75177         change.
75179         tests: tighten link, rmdir, and remove tests
75180         * tests/test-link.h (includes): No need to use <config.h> here.
75181         Clean up if directory hard link was created, otherwise test for
75182         trailing '.'.
75183         * tests/test-linkat.c (main): Simplify.
75184         * tests/test-remove.c (main): Enhance test for trailing '.'.
75185         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75187 2009-10-01  Jim Meyering  <meyering@redhat.com>
75189         maint.mk: requiring "make major" was annoying, for a "minor" release.
75190         What is intended is "stable", to contrast with alpha and beta,
75191         so require "make stable", not "make major".
75192         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
75193         (get_tool_versions): Likewise.
75194         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
75196 2009-09-30  Ben Pfaff  <blp@gnu.org>
75198         Fix broken build of replacement for Windows tmpfile().
75199         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
75200         flags argument added along with the 'mkostemp' module.
75202 2009-09-28  Bruno Haible  <bruno@clisp.org>
75204         Avoid identifier clash with POSIX function 'remove' defined as a macro.
75205         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
75206         to 'remove_elt'.
75207         (gl_list_remove): Update.
75208         * lib/gl_list.c (gl_list_remove): Update.
75209         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
75210         to 'remove_elt'.
75211         (gl_oset_remove): Update.
75212         * lib/gl_list.c (gl_oset_remove): Update.
75213         Reported by Eric Blake.
75215 2009-09-28  Eric Blake  <ebb9@byu.net>
75217         doc: mention yet more cygwin 1.7 status
75218         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
75219         cygwin.
75220         * doc/glibc-functions/execvpe.texi (execvpe): New file.
75221         * doc/gnulib.texi (Glibc unistd.h): Mention it.
75223         argp: fix test failure
75224         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
75225         that are not upper-case.  Pass correct range to tolower.
75227 2009-09-27  Jim Meyering  <meyering@redhat.com>
75229         test-yesno: work around sparc-dash here-document infelicity
75230         Without this change, the literal \177 byte in a here document
75231         would make dash 0.5.5.1-3 access uninitialized memory.
75232         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
75233         Instead, use a marker, "@", and filter through tr to create the desired
75234         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
75236 2009-09-27  Bruno Haible  <bruno@clisp.org>
75238         Disable untested support for new flavours of ACLs on AIX.
75239         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
75240         progress.
75241         * lib/set-mode-acl.c (qset_acl): Likewise.
75243 2008-12-07  Bruno Haible  <bruno@clisp.org>
75245         Add support for new flavours of ACLs on AIX. (Untested.)
75246         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
75247         (file_has_acl): Add support for newer AIX.
75248         * lib/set-mode-acl.c (qset_acl): Likewise.
75249         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
75250         Rainer Tammer <tammer@tammer.net>.
75252 2009-09-26  Eric Blake  <ebb9@byu.net>
75254         argp: fix compilation of getopt
75255         * lib/getopt.in.h (includes): Use different guard than glibc.
75256         Reported by Sergey Poznyakoff.
75258         doc: mention more cygwin 1.7 status
75259         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
75260         bug.
75261         * doc/posix-functions/execl.texi (execl): Likewise.
75262         * doc/posix-functions/execle.texi (execle): Likewise.
75263         * doc/posix-functions/execlp.texi (execlp): Likewise.
75264         * doc/posix-functions/execv.texi (execv): Likewise.
75265         * doc/posix-functions/execve.texi (execve): Likewise.
75266         * doc/posix-functions/execvp.texi (execvp): Likewise.
75267         * doc/glibc-functions/canonicalize_file_name.texi
75268         (canonicalize_file_name): Cygwin 1.7 now provides this.
75269         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
75270         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
75271         on AT_SYMLINK_NOFOLLOW.
75273 2009-09-24  Eric Blake  <ebb9@byu.net>
75275         test-linkat: make test more robust
75276         * tests/test-linkat.c (main): Avoid collision with EEXIST.
75278         getopt: fix inclusion guards for cygwin
75279         * modules/getopt-posix (Depends-on): Add include-next.
75280         (Makefile.am): Substitute more items in replacement header.
75281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
75282         <getopt.h>.
75283         * lib/getopt.in.h (includes): Use split inclusion guard, and
75284         prefer <getopt.h> over include <unistd.h> when one is present.
75285         (option): Also override name of 'struct option'.
75287         same-inode: revert prior change; it is not yet ready
75288         * NEWS: Undo mention of this change.
75289         * lib/same-inode.h (same-inode.h): Undo tri-state change.
75290         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75291         * lib/cycle-check.c (cycle_check): Likewise.
75292         * lib/same.c (same_name): Likewise.
75293         * lib/at-func2.c (at_func2): Likewise.
75295 2009-09-23  Eric Blake  <ebb9@byu.net>
75297         linkat: new module
75298         * modules/linkat: New file.
75299         * lib/at-func2.c (at_func2): Likewise.
75300         * lib/linkat.c (linkat): Likewise.
75301         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
75302         * lib/openat-priv.h (at_func2): Add declaration.
75303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
75304         * modules/unistd (Makefile.am): Substitute them.
75305         * lib/unistd.in.h (linkat): Declare it.
75306         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75307         * doc/posix-functions/linkat.texi (linkat): Likewise.
75308         * doc/posix-functions/link.texi (link): Tweak wording.
75309         * tests/test-link.c (main): Move guts...
75310         * tests/test-link.h (test_link): ...into new file.
75311         * modules/linkat-tests: New test.
75312         * tests/test-linkat.c: Likewise.
75313         * modules/link-tests (Files): Ship new file.
75314         (Depends-on): Add stdbool.
75316         dirname: add library-safe mdir_name
75317         * lib/dirname.h (mdir_name): New prototype.
75318         * lib/dirname.c (dir_name): Move guts...
75319         (mdir_name): ...to new function that avoids xalloc_die.
75321         fchdir: another mingw fix
75322         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
75323         * lib/fchdir.c (get_name): New helper method; skips canonicalize
75324         on mingw (where it has not yet been ported), and make it optional
75325         elsewhere.
75326         (_gl_register_fd): Use it.
75328         same-inode: make SAME_INODE tri-state, to port to mingw
75329         * NEWS: Mention this change.
75330         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
75331         st_ino always being 0.
75332         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75333         * lib/cycle-check.c (cycle_check): Likewise.
75334         * lib/same.c (same_name): Likewise.
75336         lstat: avoid mingw compilation error
75337         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
75338         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
75339         lstat ourselves.
75340         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
75341         was adequate.
75342         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
75343         the checks for lstat.
75344         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
75346         link: fix test failure on Solaris 9
75347         * lib/link.c (rpl_link): Don't assume link will catch bogus
75348         trailing slash on source.
75350         test-symlinkat: enhance test
75351         * tests/test-readlink.c (main): Move guts...
75352         * tests/test-readlink.h (test_readlink): ...into new file.
75353         * tests/test-symlink.c (main): Move guts...
75354         * tests/test-symlink.h (test_symlink): ...into new file.
75355         * tests/test-symlinkat.c (main): Use new files for further
75356         coverage.
75357         (do_symlink, do_readlink): New helper functions.
75358         * modules/symlink-tests (Files): Ship new file.
75359         (Depends-on): Add stdbool.
75360         * modules/readlink-tests (Files): Ship new file.
75361         (Depends-on): Add stdbool.
75362         * modules/symlinkat-tests (Files): Use new files.
75364 2009-09-23  Eric Blake  <ebb9@byu.net>
75366         readlink: document portability issue with symlink length
75367         * doc/posix-functions/lstat.texi (lstat): Mention that some file
75368         systems have bogus st_size on symlinks, and mention the
75369         areadlink-with-size module.
75370         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75371         * doc/posix-functions/readlink.texi (readlink): Mention the
75372         areadlink module, and ERANGE failure.
75373         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75374         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
75376         readlink: fix Solaris 9 bug with trailing slash
75377         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
75378         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
75379         * doc/posix-functions/readlink.texi (readlink): Document this.
75380         * modules/readlink-tests: New test.
75381         * tests/test-readlink.c: Likewise.
75383         readlink: fix cygwin 1.5.x bug with return type
75384         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
75385         * lib/unistd.in.h (readlink): Use ssize_t.
75386         * lib/readlink.c (readlink): Likewise.
75387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75388         * modules/unistd (Makefile.am): Substitute it.
75389         * lib/unistd.in.h (readlink): Declare replacement.
75390         * doc/posix-functions/readlink.texi (readlink): Document this.
75392         symlink: use throughout gnulib
75393         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
75394         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
75395         symlink is not used.
75396         * modules/symlinkat (Depends-on): Add symlink.
75397         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
75398         * modules/canonicalize-tests (Depends-on): Likewise.
75399         * modules/lstat-tests (Depends-on): Likewise.
75400         * modules/openat-tests (Depends-on): Likewise.
75401         * modules/remove-tests (Depends-on): Likewise.
75402         * modules/rmdir-tests (Depends-on): Likewise.
75403         * modules/unlink-tests (Depends-on): Likewise.
75404         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
75405         * tests/test-canonicalize.c (symlink): Likewise.
75406         * tests/test-fstatat.c (symlink): Likewise.
75407         * tests/test-lstat.c (symlink): Likewise.
75408         * tests/test-remove.c (symlink): Likewise.
75409         * tests/test-rmdir.c (symlink): Likewise.
75410         * tests/test-unlink.c (symlink): Likewise.
75411         * tests/test-unlinkat.c (symlink): Likewise.
75413         symlink: new module, for Solaris 9 bug
75414         * modules/symlink: New file.
75415         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
75416         * lib/symlink.c: Likewise.
75417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
75418         * modules/unistd (Makefile.am): Substitute them.
75419         * lib/unistd.in.h (symlink): Declare replacement.
75420         * MODULES.html.sh (File system functions): Mention it.
75421         * doc/posix-functions/symlink.texi (symlink): Likewise.
75422         * modules/symlink-tests: New test.
75423         * tests/test-symlink.c: Likewise.
75425 2009-09-23  Bruno Haible  <bruno@clisp.org>
75427         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
75428         when needed.
75429         Test case: gnulib-tool --import --with-tests atexit inttypes.
75430         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
75432 2009-09-23  Bruno Haible  <bruno@clisp.org>
75434         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
75435         subcommand, not in a subshell.
75437 2009-09-22  Eric Blake  <ebb9@byu.net>
75439         unistd: sort replacement declarations
75440         * lib/unistd.in.h: Sort declarations.
75442         open, openat: minor optimization
75443         * lib/open.c (open): If open succeeded, len is non-zero.
75444         * lib/openat.c (rpl_openat): Likewise.
75446         link-follow: ensure correct result
75447         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
75448         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
75449         distinguish between possible failures.
75451 2009-09-21  Eric Blake  <ebb9@byu.net>
75453         fts: avoid compiler warning
75454         * lib/fts.c (dirent_inode_sort_may_be_useful)
75455         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
75457 2009-09-19  Bruno Haible  <bruno@clisp.org>
75459         * lib/progreloc.c (canonicalize_file_name): New declaration.
75461 2009-09-19  Eric Blake  <ebb9@byu.net>
75463         link: fix quoting
75464         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
75466         openat: fix openat bugs on Solaris 9
75467         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
75468         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
75469         * modules/openat (Depends-on): Add open.
75470         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
75471         * modules/fcntl-h (Makefile.am): Substitute it.
75472         * lib/fcntl.in.h (openat): Declare replacement.
75473         * doc/posix-functions/openat.texi (openat): Document this.
75475         openat: move fstatat and unlinkat into correct files
75476         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
75477         compiled.
75478         * lib/openat.c (fstatat, unlinkat): Move...
75479         * lib/fstatat.c (fstatat): ...into correct files.
75480         * lib/unlinkat.c (unlinkat): Likewise.
75482         openat: fix unlinkat bugs on Solaris 9
75483         * lib/unlinkat.c (unlinkat): New file.
75484         * modules/openat (Depends-on): Add unlink.
75485         (Files): Distribute it.
75486         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
75487         trailing slash behavior is broken.
75488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75489         * modules/unistd (Makefile.am): Substitute it.
75490         * lib/unistd.in.h (unlinkat): Declare replacement.
75491         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
75493         openat: fix fstatat bugs on Solaris 9
75494         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
75495         stat.
75496         * doc/posix-functions/fstatat.texi (fstatat): Document this.
75498         test-unlinkat: enhance test, to expose Solaris 9 bug
75499         * tests/test-unlink.c (main): Factor guts...
75500         * tests/test-unlink.h (test_rmdir_func): ...into new file.
75501         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
75502         * tests/test-rmdir.c (main): Adjust caller.
75503         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
75504         (unlinker): New helper function.
75505         (rmdirat): Enhance check.
75506         * modules/rmdir-tests (Depends-on): Add stdbool.
75507         * modules/unlink-tests (Depends-on): Likewise.
75508         (Files): Add test-unlink.h.
75509         * modules/openat-tests (Files): Likewise.
75510         (Depends-on): Add unlinkdir.
75512         test-fstatat: new test, to expose Solaris 9 bugs
75513         * tests/test-stat.c (main): Factor guts...
75514         * tests/test-stat.h (test_stat_func): ...into new file.
75515         * tests/test-lstat.c (main): Factor guts...
75516         * tests/test-lstat.h (test_lstat_func): ...into new file.
75517         * tests/test-fstatat.c: New file.
75518         * modules/stat-tests (Files): Add test-stat.h.
75519         * modules/lstat-tests (Files): Add test-lstat.h.
75520         (Depends-on): Add stdbool.
75521         * modules/openat-tests (Depends-on): Add pathmax.
75522         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
75523         (Makefile.am): Run new test.
75525         remove: new module, for mingw and Solaris 9 bugs
75526         * modules/remove: New file.
75527         * lib/remove.c: Likewise.
75528         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
75529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
75530         * modules/stdio (Makefile.am): Use them.
75531         * lib/stdio.in.h (remove): Declare replacement.
75532         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75533         * doc/posix-functions/remove.texi (remove): Likewise.
75534         * modules/remove-tests: New test.
75535         * tests/test-remove.c: Likewise.
75537         unlink: new module, for Solaris 9 bug
75538         * modules/unlink: New file.
75539         * lib/unlink.c: Likewise.
75540         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
75541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
75542         * modules/unistd (Makefile.am): Use them.
75543         * lib/unistd.in.h (stat): Declare replacement.
75544         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75545         * doc/posix-functions/unlink.texi (unlink): Likewise.
75546         * modules/unlink-tests: New test.
75547         * tests/test-unlink.c: Likewise.
75549         lstat: fix Solaris 9 bug
75550         * lib/lstat.c (lstat): Also check for trailing slash on
75551         non-symlink, non-directories.  Use stat module to simplify logic.
75552         * doc/posix-functions/lstat.texi (lstat): Document it.
75553         * modules/lstat-tests (Depends-on): Add errno, same-inode.
75554         (configure.ac): Check for symlink.
75555         * tests/test-lstat.c (main): Add more tests.
75557         stat: add as dependency to other modules
75558         * modules/chown (Depends-on): Add stat.
75559         * modules/euidaccess (Depends-on): Likewise.
75560         * modules/fchdir (Depends-on): Likewise.
75561         * modules/isdir (Depends-on): Likewise.
75562         * modules/link (Depends-on): Likewise.
75563         * modules/lstat (Depends-on): Likewise.
75564         * modules/mkdir-p (Depends-on): Likewise.
75565         * modules/modechange (Depends-on): Likewise.
75566         * modules/open (Depends-on): Likewise.
75567         * modules/readlink (Depends-on): Likewise.
75568         * modules/same (Depends-on): Likewise.
75570         stat: fix Solaris 9 bug
75571         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
75572         slash.
75573         * lib/stat.c (rpl_stat): Work around it.
75574         * doc/posix-functions/stat.texi (stat): Update documentation.
75576         stat: new module, for mingw bug
75577         * modules/stat: New file.
75578         * lib/stat.c: Likewise.
75579         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
75580         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75581         * modules/sys_stat (Makefile.am): Use them.
75582         * lib/sys_stat.in.h (stat): Declare replacement.
75583         * lib/openat.c (fstatat): Deal with lstat and stat being function
75584         macros.
75585         * modules/openat (Depends-on): Add inline.
75586         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75587         * doc/posix-functions/stat.texi (stat): Likewise.
75588         * modules/stat-tests: New test.
75589         * tests/test-stat.c: Likewise.
75591 2009-09-19  Jim Meyering  <meyering@redhat.com>
75593         syntax-check: detect unnecessary inclusion of canonicalize.h
75594         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
75596 2009-09-19  Eric Blake  <ebb9@byu.net>
75598         canonicalize-lgpl: adjust clients to use correct header
75599         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
75600         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
75601         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
75602         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
75603         * lib/progreloc.c (includes): Likewise.
75605 2009-09-19  Jim Meyering  <meyering@redhat.com>
75607         test-posixtm.c: correct a comment
75608         * tests/test-posixtm.c: Correct first-line comment.
75609         Spotted by Eric Blake.
75611 2009-09-16  Jim Meyering  <meyering@redhat.com>
75613         posixtm-tests: make T const-correct; add a test case
75614         * tests/test-posixtm.c (T): Declare const.
75615         Add a test for -(2^31+1).
75616         Remove useless can-succeed-only-in-2002 test.
75618         posixtm-tests: adjust the sole failing test
75619         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
75620         expected output matches what mktime now produces.  Cross-checked via
75621         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
75623         posixtm: move #ifdef'd tests into a new module
75624         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
75625         * tests/test-posixtm.c: ... this new file.
75626         * modules/posixtm-tests: New module.
75628 2009-09-19  Eric Blake  <ebb9@byu.net>
75630         openat: simplify use of at-func.c
75631         * lib/at-func.c (includes): Include prerequisites here, to
75632         simplify requirements on client files.
75633         * lib/openat-priv.h: Add double-inclusion guard.
75634         * lib/faccessat.c (includes): Simplify.
75635         * lib/fchmodat.c (includes): Likewise.
75636         * lib/fchownat.c (includes): Likewise.
75637         * lib/mkdirat.c (includes): Likewise.
75638         * lib/mkfifoat.c (includes): Likewise.
75639         * lib/symlinkat.c (includes): Likewise.
75641         openat: allow return of fd 0
75642         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
75643         * modules/save-cwd (Depends-on): Replace fcntl-safer with
75644         unistd-safer.
75645         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
75646         <fcntl.h>; this module does not leak fds.
75647         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
75648         must be allowed to return 0, leaving openat_safer to add the
75649         safety.
75650         (openat_permissive): Avoid writing to just-opened fd 2 if
75651         restoring the current directory fails.
75652         * lib/openat-die.c (openat_restore_fail): Add comment.
75653         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
75654         (save_cwd): Guarantee safe fd, but without use of open_safer.
75655         * tests/test-openat.c: New test.
75656         * modules/openat-tests (Files, Makefile.am): Distribute and build
75657         new file.
75659         relocatable-prog-wrapper: fix build
75660         * modules/relocatable-prog-wrapper (Files): Update name of
75661         canonicalize m4 file, broken on 2009-09-17.
75662         Reported by emad hajjar <aleppos@hotmail.com>.
75664 2009-09-19  Bruno Haible  <bruno@clisp.org>
75666         * lib/safe-alloc.h: Use the standard header with GPL copyright.
75667         * lib/safe-alloc.c: Likewise.
75668         Reported by Ian Beckwith <ianb@erislabs.net>.
75670 2009-09-18  Bruno Haible  <bruno@clisp.org>
75672         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
75673         Reported by <erobles@sensacd.com.mx>.
75675 2009-09-17  Eric Blake  <ebb9@byu.net>
75677         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
75678         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
75679         slashes when checking if last component is missing.
75680         * tests/test-canonicalize.c (main): Test this.
75682         canonicalize, canonicalize-lgpl: honor // if distinct from /
75683         * modules/canonicalize (Files): Add double-slash-root.m4.
75684         * modules/canonicalize-lgpl (Files): Likewise.
75685         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
75686         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
75687         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
75688         fallback definition.
75689         (canonicalize_filename_mode): Use it to protect //.
75690         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
75691         (__realpath): Likewise.
75692         * tests/test-canonicalize.c (main): Test this.
75693         * tests/test-canonicalize-lgpl.c (main): Likewise.
75694         * modules/canonicalize-tests (Depends-on): Add same-inode.
75695         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
75697         canonicalize-lgpl: fix glibc bug with trailing slash
75698         * m4/canonicalize-lgpl.m4: Move contents...
75699         * m4/canonicalize.m4: ...here.
75700         (gl_CANONICALIZE_LGPL): Factor realpath check...
75701         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
75702         glibc 2.3.5 bug, fixed 2005-04-27.
75703         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
75704         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
75705         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
75706         * modules/canonicalize-lgpl (Files): Manage file rename.
75707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
75708         * modules/stdlib (Makefile.am): Substitute witness.
75709         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
75710         is needed.
75711         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
75712         replacement is required.
75713         * lib/canonicalize.c (canonicalize_file_name): Likewise.
75714         * doc/glibc-functions/canonicalize_file_name.texi
75715         (canonicalize_file_name): Document this.
75716         * doc/posix-functions/realpath.texi (realpath): Likewise.
75718         canonicalize-lgpl: reject non-directory with trailing slash
75719         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
75720         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
75721         catches failures in glibc 2.3.5.
75722         * tests/test-canonicalize.c (main): Likewise.
75724         canonicalize-lgpl: use native realpath if it works
75725         * lib/canonicalize-lgpl.c (realpath): Guard with
75726         FUNC_REALPATH_WORKS.
75727         * lib/stdlib.in.h (realpath): Make declaration optional based on
75728         HAVE_REALPATH.
75729         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
75730         native realpath works.
75731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
75732         * modules/stdlib (Makefile.am): Substitute witness.
75734         canonicalize, canonicalize-lgpl: use <stdlib.h>
75735         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
75736         (Include): Mention <stdlib.h>.
75737         (configure.ac): Mention functions we provide.
75738         * modules/canonicalize (configure.ac): Likewise.
75739         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
75740         realpath if canonicalize_file_name is missing.
75741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
75742         * modules/stdlib (Makefile.am): Substitute witnesses.
75743         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
75744         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
75745         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
75746         * NEWS: Document this.
75747         * doc/glibc-functions/canonicalize_file_name.texi
75748         (canonicalize_file_name): Likewise.
75749         * doc/posix-functions/realpath.texi (realpath): Likewise.
75750         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
75752         test-canonicalize: consolidate into single C program
75753         * tests/test-canonicalize.sh: Delete; move setup into...
75754         * tests/test-canonicalize.c (main): ...the program, making it
75755         easier to run in debugger.  Add some tests.
75756         * modules/canonicalize-tests (Files): Remove unused file.
75757         (Depends-on): Add progname.
75758         (configure.ac, Makefile.am): Simplify.
75760         test-canonicalize-lgpl: consolidate into single C program
75761         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
75762         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
75763         easier to run in debugger.  Add some tests.
75764         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
75765         (configure.ac, Makefile.am): Simplify.
75767         canonicalize: avoid resolvepath
75768         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
75769         unnecessary checks.
75770         * lib/canonicalize.c (includes): Simplify.
75771         (canonicalize_file_name): Drop resolvepath implementation.
75772         * modules/canonicalize (Depends-on): Drop filenamecat.
75774         canonicalize: don't lose errno
75775         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
75776         over calls to free.
75778         canonicalize: simplify errno handling
75779         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
75780         assignment.
75782         canonicalize, canonicalize-lgpl: update module dependencies
75783         * modules/canonicalize (Depends-on): Add extensions, lstat,
75784         pathmax, stdlib.
75785         (Files): Drop pathmax.h.
75786         (configure.ac): Adjust macro name.
75787         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
75788         lstat, stdlib, sys_stat.
75789         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
75790         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
75791         extensions.
75792         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
75793         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
75794         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
75795         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
75796         declaration, if available.
75797         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
75798         we can rely on the readlink module.
75799         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
75800         (includes): Use <unistd.h> unconditionally.
75802 2009-09-17  Eric Blake  <ebb9@byu.net>
75804         maint: make Include sections of modules consistent
75805         * modules/alloca: Use only header name; no need to list #include.
75806         * modules/alloca-opt: Likewise.
75807         * modules/arpa_inet: Likewise.
75808         * modules/canon-host: Likewise.
75809         * modules/configmake: Likewise.
75810         * modules/dirent: Likewise.
75811         * modules/eealloc: Likewise.
75812         * modules/environ: Likewise.
75813         * modules/fchdir: Likewise.
75814         * modules/fcntl: Likewise.
75815         * modules/fcntl-h: Likewise.
75816         * modules/gethrxtime: Likewise.
75817         * modules/gettime: Likewise.
75818         * modules/ignore-value: Likewise.
75819         * modules/inet_ntop: Likewise.
75820         * modules/inet_pton: Likewise.
75821         * modules/inttypes: Likewise.
75822         * modules/isnand-nolibm: Likewise.
75823         * modules/isnanf-nolibm: Likewise.
75824         * modules/mbchar: Likewise.
75825         * modules/mbfile: Likewise.
75826         * modules/mbiter: Likewise.
75827         * modules/mbuiter: Likewise.
75828         * modules/netdb: Likewise.
75829         * modules/netinet_in: Likewise.
75830         * modules/nproc: Likewise.
75831         * modules/pagealign_alloc: Likewise.
75832         * modules/poll: Likewise.
75833         * modules/printf-frexp: Likewise.
75834         * modules/pthread: Likewise.
75835         * modules/putenv: Likewise.
75836         * modules/random_r: Likewise.
75837         * modules/relocatable-prog: Likewise.
75838         * modules/search: Likewise.
75839         * modules/select: Likewise.
75840         * modules/selinux-h: Likewise.
75841         * modules/settime: Likewise.
75842         * modules/signal: Likewise.
75843         * modules/size_max: Likewise.
75844         * modules/socklen: Likewise.
75845         * modules/ssize_t: Likewise.
75846         * modules/stdarg: Likewise.
75847         * modules/stdbool: Likewise.
75848         * modules/stddef: Likewise.
75849         * modules/stdint: Likewise.
75850         * modules/stdio: Likewise.
75851         * modules/stdlib: Likewise.
75852         * modules/string: Likewise.
75853         * modules/strings: Likewise.
75854         * modules/sys_file: Likewise.
75855         * modules/sys_ioctl: Likewise.
75856         * modules/sys_select: Likewise.
75857         * modules/sys_socket: Likewise.
75858         * modules/sys_stat: Likewise.
75859         * modules/sys_time: Likewise.
75860         * modules/sys_times: Likewise.
75861         * modules/sys_utsname: Likewise.
75862         * modules/sys_wait: Likewise.
75863         * modules/sysexits: Likewise.
75864         * modules/time: Likewise.
75865         * modules/times: Likewise.
75866         * modules/tmpfile: Likewise.
75867         * modules/trim: Likewise.
75868         * modules/unistd: Likewise.
75869         * modules/wchar: Likewise.
75870         * modules/wctype: Likewise.
75872 2009-09-17  Bruno Haible  <bruno@clisp.org>
75874         Make getdate.y compile on QNX and NetBSD 5 / i386.
75875         * m4/getdate.m4 (gl_GETDATE): Conditionally define
75876         TIME_T_FITS_IN_LONG_INT.
75877         * lib/getdate.y (long_time_t): New type.
75878         (relative_time): Change type of 'seconds' field to long_time_t.
75879         (get_date): Update types of local variables. Check against overflow
75880         during conversion from long_time_t to time_t.
75881         Reported by Matt Kraai <kraai@ftbfs.org>
75882         and Hasso Tepper <hasso@netbsd.org>.
75884 2009-09-17  Bruno Haible  <bruno@clisp.org>
75886         * modules/COPYING: Update copyright years.
75887         * modules/README: Likeiwse.
75888         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
75889         Reported by Ian Beckwith <ianb@erislabs.net>.
75891 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
75893         * users.txt: Update references for gnuit package.
75895 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
75897         * m4/getdelim.m4: Fix typo in copyright line.
75899 2009-09-17  Bruno Haible  <bruno@clisp.org>
75901         * lib/atoll.c: Use the standard header with GPL copyright.
75902         * lib/argz.in.h: Likewise.
75903         * lib/glob.c: Likewise.
75904         * lib/glob-libc.h: Likewise.
75905         * lib/random_r.c: Likewise.
75906         * lib/siglist.h: Likewise.
75907         * lib/strsignal.c: Likewise.
75908         Reported by Ian Beckwith <ianb@erislabs.net>.
75910 2009-09-17  Eric Blake  <ebb9@byu.net>
75912         rmdir: ensure correct dependency order
75913         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
75915 2009-09-17  Bruno Haible  <bruno@clisp.org>
75917         Disable assertion that fails on NetBSD 5 / i386.
75918         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
75919         Reported by Sam Steingold <sds@gnu.org>
75920         and Hasso Tepper <hasso@netbsd.org>.
75922 2009-09-16  Eric Blake  <ebb9@byu.net>
75924         unlinkdir: port to mingw
75925         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
75926         on which no one can unlink a directory.
75928         stdlib: sort witness names
75929         * modules/stdlib (Makefile.am): Sort replacements.
75930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
75931         * lib/stdlib.in.h: Likewise.
75933         parse-duration-tests: avoid link failure
75934         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
75935         LIBINTL.
75936         Reported by Tom G. Christensen.
75938         openat-tests: ensure unlinkat behaves like rmdir
75939         * tests/test-rmdir.c (main): Factor guts...
75940         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
75941         * modules/rmdir-tests (Files): Ship new file.
75942         * modules/openat-tests: New test.
75943         * tests/test-unlinkat.c: Likewise.
75945         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
75946         * modules/rmdir-errno (Status, Notice): Now obsolete.
75948         rmdir: work around cygwin 1.5.x and mingw bugs
75949         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
75950         * lib/rmdir.c (rmdir): Work around it.
75951         * modules/rmdir (Status, Notice): No longer obsolete.
75952         (Files): Add dos.m4.
75953         (Depends-on): Add unistd.
75954         (configure.ac): Set witnesses.
75955         (License): Relax to LGPLv2+.
75956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
75957         * modules/unistd (Makefile.am): Substitute witnesses.
75958         * lib/unistd.in.h (rmdir): Declare replacement.
75959         * doc/posix-functions/rmdir.texi (rmdir): Document this.
75960         * modules/rmdir-tests: New tests.
75961         * tests/test-rmdir.c: Likewise.
75963 2009-09-15  Eric Blake  <ebb9@byu.net>
75965         fchdir: improve use of replacement functions
75966         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
75967         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
75968         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
75969         REPLACE_CLOSEDIR.
75970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
75971         * modules/sys_stat (Makefile.am): Substitute correct witness.
75972         * modules/dirent (Makefile.am): Likewise.
75973         * modules/unistd (Makefile.am): Likewise.
75974         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
75975         * lib/unistd.in.h (dup): Likewise.
75976         * lib/sys_stat.in.h (fstat): Likewise.
75978         maint: ignore gnulib-tool temp files
75979         * .gitignore: Ignore files created during gnulib-tool --test.
75981 2009-09-13  Jim Meyering  <meyering@redhat.com>
75983         posixtm: don't reject a time that specify "60" as the number of seconds
75984         * lib/posixtm.c (posixtime): The code to reject invalid dates
75985         would also reject a time specified with the .60 suffix.
75986         But POSIX allows that, in order to accommodate leap seconds.
75987         So don't reject it.
75988         (main): Adjust tests accordingly.
75989         * modules/posixtm (Depends-on): Add stpcpy.
75991 2009-09-11  Jim Meyering  <meyering@redhat.com>
75993         announce-gen: include [$release_type] in emitted Subject:
75994         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
75995         e.g., [stable] in the emitted Subject: line.
75997 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75999         Remove obsolete macros from several modules.
76000         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
76001         obsolete Autoconf macros with their modern counterparts.
76002         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
76003         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
76004         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
76005         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76006         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
76007         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
76008         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
76009         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
76010         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
76011         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
76012         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
76013         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
76014         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
76015         * m4/sockets.m4 (gl_SOCKETS): Likewise.
76016         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
76017         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
76018         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
76019         * m4/time_r.m4 (gl_TIME_R): Likewise.
76020         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
76021         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
76022         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76024         Fix copyright header in build-aux scripts.
76025         * build-aux/git-version-gen: Fix copyright header to match GPLv3
76026         recommendation.
76027         * build-aux/ncftpput-ftp: Likewise.
76028         * build-aux/update-copyright: Likewise.
76030 2009-09-09  Eric Blake  <ebb9@byu.net>
76032         test-link: allow Linux choice of errno
76033         * tests/test-link.c (main): Relax test for alternate error.
76035         strndup: fix improper m4 caching
76036         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
76037         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
76038         (gl_PREREQ_STRNDUP): Delete.
76039         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
76040         * modules/string (Makefile.am): Substitute it.
76041         * lib/string.in.h (strndup): Modernize prototype.
76043         getcwd: port to mingw
76044         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
76045         different from the POSIX assumptions made throughout the getcwd
76046         module; fortunately, the mingw getcwd does not need replacement.
76047         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
76048         * modules/getcwd-tests: New test.
76049         * tests/test-getcwd.c: Likewise.
76051         link: fix platform bugs
76052         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
76053         * lib/link.c (link): Work around them.  Fix related mingw bug.
76054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
76055         * modules/unistd (Makefile.am): Substitute it.
76056         * lib/unistd.in.h (link): Declare replacement.
76057         * doc/posix-functions/link.texi (link): Document this.
76058         * modules/link (Depends-on): Add strdup-posix, sys_stat.
76060         test-link: consolidate into single C program, test more cases
76061         * tests/test-link.sh: Delete.
76062         * tests/test-link.c: Test more error conditions.  Exposes bugs on
76063         at least Cygwin and Solaris.
76064         * modules/link-tests (Files): Remove unused file.
76065         (Depends-on): Add errno, sys_stat.
76066         (Makefile.am): Simplify.
76068 2009-09-08  Bruno Haible  <bruno@clisp.org>
76070         Work around towlower, towupper bug on mingw.
76071         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
76072         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
76073         * doc/posix-functions/towlower.texi: Mention the mingw bug.
76074         * doc/posix-functions/towupper.texi: Likewise.
76075         Reported by Eric Blake.
76077 2009-09-08  Jim Meyering  <meyering@redhat.com>
76079         build: don't try to run autoheader if we don't use it
76080         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
76081         is not used in configure.ac.
76083 2009-09-08  Eric Blake  <ebb9@byu.net>
76085         euidaccess: fix compilation error
76086         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
76088         rawmemchr: relax license
76089         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
76090         okay.
76091         Reported by Jim Meyering.
76093         mkfifoat: new module
76094         * modules/mkfifoat: New file.
76095         * lib/mkfifoat.c: Likewise.
76096         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
76097         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76098         * modules/sys_stat (Makefile.am): Use them.
76099         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
76100         * MODULES.html.sh (File system functions): Mention module.
76101         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
76102         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
76103         * modules/mkfifoat-tests: New test.
76104         * tests/test-mkfifoat.c: Likewise.
76106         strchrnul: relax license
76107         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
76108         okay.
76109         Reported by Jim Meyering.
76111 2009-09-08  Eric Blake  <ebb9@byu.net>
76113         fstatat: fix compilation on Solaris
76114         * lib/fstatat.c (includes): Add fcntl.h.
76115         Reported by Pádraig Brady.
76117 2009-09-07  Eric Blake  <ebb9@byu.net>
76119         rename: modernize replacement
76120         * modules/rename (Depends-on): Add stdio.
76121         (configure.ac): Declare witness.
76122         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
76123         stdio take care of replacement.
76124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
76125         * modules/stdio (Makefile.am): Substitute them.
76126         * lib/stdio.in.h (rename): Declare replacement.
76127         * lib/rename.c (includes): Allow cross-compilation to non-windows
76128         machines.
76129         * doc/posix-functions/rename.texi (rename): Improve
76130         documentation.
76132         stdio: sort witness names
76133         * modules/stdio (Makefile.am): Sort replacements.
76134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
76135         * lib/stdio.in.h: Likewise.
76137         getcwd: minor cleanups
76138         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
76139         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
76141         openat: provide more convenience names
76142         * modules/faccessat (configure.ac): Add C witness.
76143         * lib/unistd.in.h (readlinkat): Fix typo.
76144         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
76145         convenience wrappers.
76146         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
76147         wrappers in syntax checks.
76149 2009-09-06  Eric Blake  <ebb9@byu.net>
76151         doc: fix comments in recent patches
76152         * lib/faccessat.c: Mention correct function.
76153         * lib/fchmodat.c: Likewise.
76154         * lib/fchownat.c: Likewise.
76155         * lib/symlinkat.c: Likewise.
76156         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
76157         constants.
76159         faccessat, symlinkat: continue cleanup of previous patch
76160         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
76161         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76162         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
76163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
76164         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
76165         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
76166         set.
76168 2009-09-06  Bruno Haible  <bruno@clisp.org>
76170         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
76171         (fstatat): Declare if GNULIB_FSTATAT is set.
76172         (mkdirat): Declare if GNULIB_MKDIRAT is set.
76173         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
76174         (unlinkat): Declare if GNULIB_UNLINKAT is set.
76175         * modules/fcntl-h (Files): Remove m4/openat.m4.
76176         * modules/sys_stat (Files): Remove m4/openat.m4.
76177         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
76178         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
76179         * modules/unistd (Files): Remove m4/openat.m4.
76180         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
76181         GNULIB_OPENAT.
76182         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
76183         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
76184         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
76185         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
76186         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
76187         gl_OPENAT_DEFAULTS.
76188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
76189         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
76190         Don't require gl_OPENAT_DEFAULTS.
76191         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
76192         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
76193         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
76194         (gl_OPENAT_DEFAULTS): Remove macro.
76196 2009-09-06  Bruno Haible  <bruno@clisp.org>
76198         * modules/openat (configure.ac): Remove unneeded witness.
76200 2009-09-06  Bruno Haible  <bruno@clisp.org>
76202         Set errno to ENOSYS when a function is entirely unsupported.
76203         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
76204         EOPNOTSUPP.
76205         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
76206         * modules/chown (Depends-on): Remove errno.
76208 2009-09-06  Bruno Haible  <bruno@clisp.org>
76210         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
76212 2009-09-06  Bruno Haible  <bruno@clisp.org>
76214         * lib/sys_stat.in.h: Fix preprocessor command indentation.
76216 2009-09-06  Ben Pfaff  <blp@gnu.org>
76217             Bruno Haible  <bruno@clisp.org>
76219         Work around a glibc bug in strtok_r.
76220         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
76221         Undefine if UNDEFINE_STRTOK_R is set.
76222         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
76223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76224         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
76225         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
76226         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
76227         UNDEFINE_STRTOK_R.
76228         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
76230 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
76232         exclude: minor fix
76233         * lib/exclude.c: Include wctype.h
76235 2009-09-06  Akim Demaille  <demaille@gostai.com>
76237         bootstrap: improve error message
76238         * build-aux/bootstrap (find_tool): Upon failure, report the list
76239         of candidates.
76240         Honor the initial value of the envvar.
76242 2009-09-05  Eric Blake  <ebb9@byu.net>
76244         symlinkat: new module
76245         * modules/symlinkat: New file.
76246         * lib/symlinkat.c: Likewise.
76247         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
76248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76249         * modules/unistd (Makefile.am): Use them.
76250         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
76251         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
76252         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
76253         * MODULES.html.sh (File system functions): Mention module.
76254         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76255         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76256         * modules/symlinkat-tests: New test.
76257         * tests/test-symlinkat.c: Likewise.
76259         test-openat-safer: add more checks
76260         * tests/test-openat-safer.c (main): Check more code paths.
76262 2009-09-05  Jim Meyering  <meyering@redhat.com>
76264         syntax-check: detect unnecessary inclusion of openat.h
76265         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
76267 2009-09-05  Bruno Haible  <bruno@clisp.org>
76269         Support towlower, towupper.
76270         * doc/posix-functions/towlower.texi: Mention module wctype.
76271         * doc/posix-functions/towupper.texi: Likewise.
76272         * lib/wctype.in.h (towlower, towupper): New functions.
76273         * tests/test-wctype.c: Include stdio.h, stdlib.h.
76274         (ASSERT): New macro.
76275         (e): New variable.
76276         (main): Test also towlower, towupper. Test WEOF argument.
76277         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
76279 2009-09-05  Bruno Haible  <bruno@clisp.org>
76281         Fix conversion behaviour when the input is invalid.
76282         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
76283         mark occurring in first pass of indirect conversion.
76284         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
76285         input.
76286         Found by clang's static analyzer.
76288 2009-09-05  Bruno Haible  <bruno@clisp.org>
76290         * tests/test-striconveh.c (main): Test indirect conversion on platforms
76291         where direct conversion is possible.
76293 2009-09-04  Eric Blake  <ebb9@byu.net>
76295         openat: fail with ENOENT on empty name
76296         * lib/openat-proc.c (openat_proc_name): Special-case the empty
76297         buffer.
76299         link-follow: fix logic bug in prior patch
76300         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
76301         reversed sense of yes and no in prior patch.  Avoid confusing
76302         compilation failure with desired semantics.
76304         link-follow: accommodate mingw and cross-compilation
76305         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
76306         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
76307         cross-compilation results to -1, to make linkat easier to
76308         implement when cross-compiling.  Trivially support mingw.
76309         * modules/link-follow (configure.ac): Call new name.
76310         * NEWS: Mention this.
76312 2009-09-03  Eric Blake  <ebb9@byu.net>
76314         faccessat: compile replacement
76315         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
76316         needed.
76318         fts: fix compilation error
76319         * lib/fts.c (includes): Re-add "openat.h", for
76320         openat_needs_fchdir.
76322         faccessat: new module
76323         * modules/faccessat: New file.
76324         * lib/faccessat.c: Likewise.
76325         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76327         * modules/unistd (Makefile.am): Use it.
76328         * lib/unistd.in.h (faccessat): Declare it.
76329         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
76330         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
76331         * MODULES.html.sh (File system functions): Mention it.
76332         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
76333         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76335         euidaccess: prefer POSIX over non-standard implementation
76336         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
76337         * lib/euidaccess.c (euidaccess): Use it if available.
76339         openat: make template easier to use
76340         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
76341         AT_FUNC_F2 to be undefined.
76342         (VALIDATE_FLAG): New macro; use it to reject bad flags.
76343         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
76344         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
76345         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
76346         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
76347         Likewise.
76348         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
76349         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
76350         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
76351         Likewise.
76353         openat: declare in POSIX headers
76354         * NEWS: Mention this.
76355         * modules/openat (configure.ac): Declare witnesses.
76356         (Depends-on): Add fcntl-h, sys_stat, unistd.
76357         (Include): Mention correct headers.
76358         * modules/fcntl-h (Depends-on): Add link-warning.
76359         (Files): Add openat.m4.
76360         (Makefile.am): Substitute witnesses.
76361         * modules/sys_stat (Files, Makefile.am): Likewise.
76362         * modules/unistd (Files, Makefile.am): Likewise.
76363         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
76364         (gl_OPENAT_DEFAULTS): New macro.
76365         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
76366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
76367         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
76368         (SYS_STAT_H): Remove unused variable.
76369         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
76370         * lib/fcntl--.h (includes): Remove unneeded header.
76371         * lib/openat-safer.c (includes): Likewise.
76372         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
76373         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
76374         appropriate headers.
76375         (__OPENAT_PREFIX): Delete.
76376         * lib/fcntl.in.h (openat): Provide declaration.
76377         (AT_FDCWD): Fix Solaris bug.
76378         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
76379         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
76380         * lib/fchmodat.c (includes):  Adjust to find declaration.
76381         * lib/fchownat.c (includes): Likewise.
76382         * lib/mkdirat.c (includes): Likewise.
76383         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
76384         still visible.
76386 2009-09-02  Eric Blake  <ebb9@byu.net>
76388         errno: use consistently
76389         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
76390         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
76391         * lib/canonicalize.c (ELOOP): Likewise.
76392         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
76393         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
76394         * lib/lchown.c (EOPNOTSUPP): Likewise.
76395         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
76396         * lib/savewd.c (ESTALE): Likewise.
76397         * lib/settime.c (ENOSYS): Likewise.
76398         * lib/utimens.c (ENOSYS): Likewise.
76399         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
76400         * lib/chdir-safer.c (ELOOP): Likewise.
76401         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
76402         * modules/c-stack (Depends-on): Add errno.
76403         * modules/canonicalize (Depends-on): Likewise.
76404         * modules/chdir-safer (Depends-on): Likewise.
76405         * modules/fdopendir (Depends-on): Likewise.
76406         * modules/inet_ntop (Depends-on): Likewise.
76407         * modules/inet_pton (Depends-on): Likewise.
76408         * modules/lchown (Depends-on): Likewise.
76409         * modules/openat (Depends-on): Likewise.
76410         * modules/savewd (Depends-on): Likewise.
76411         * modules/settime (Depends-on): Likewise.
76412         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
76414         fts: avoid leaking fds
76415         * modules/fts (Depends-on): Add cloexec.
76416         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
76417         flag.
76419         fts: make directory fds more robust
76420         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
76421         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
76423         backupfile, chdir-long, fts, savedir: make safer
76424         * lib/backupfile.c (includes): Use "dirent--.h", since
76425         numbered_backup can write to stderr during readdir.
76426         * lib/savedir.c (includes): Likewise.
76427         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
76428         emulation can write to stderr on failure.
76429         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
76430         * lib/getcwd.c: Document why opendir_safer is unused.
76431         * lib/glob.c: Likewise.
76432         * lib/scandir.c: Likewise.
76433         * lib/openat-proc.c: Likewise, for open_safer.
76434         * modules/backupfile (Depends-on): Add dirent-safer.
76435         * modules/savedir (Depends-on): Likewise.
76436         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
76437         * modules/chdir-long (Depends-on): Add openat-safer.
76439         openat-safer: new module
76440         * modules/openat-safer: New file.
76441         * lib/openat-safer.c: Likewise.
76442         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
76443         * lib/fcntl-safer.h (openat_safer): Declare.
76444         * lib/fcntl--.h (openat): Override.
76445         * MODULES.html.sh (File descriptor based I/O): Mention it.
76446         * lib/openat.h: Add double-inclusion guards.
76447         * lib/openat.c (includes): Only include "fcntl-safer.h", not
76448         "fcntl--.h", so we can implement openat.
76449         * modules/openat-safer-tests: New test.
76450         * tests/test-openat-safer.c: New file.
76452         dirent-safer: new module
76453         * modules/dirent-safer: New file.
76454         * lib/dirent--.h: Likewise.
76455         * lib/dirent-safer.h: Likewise.
76456         * lib/opendir-safer.c: Likewise.
76457         * m4/dirent-safer.m4: Likewise.
76458         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
76459         * modules/dirent-safer-tests: New test.
76460         * tests/test-dirent-safer.c: New file.
76461         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
76463         fdopendir: optimize on mingw
76464         * lib/unistd.in.h (_gl_directory_name): New prototype.
76465         * lib/fchdir.c (_gl_directory_name): Implement it.
76466         (fchdir): Use it to simplify implementation.
76467         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
76468         fchdir, when available, to avoid calling [f]chdir().
76470         fdopendir: split into its own module
76471         * lib/openat.c (fdopendir): Move...
76472         * lib/fdopendir.c: ...into new file.
76473         * modules/fdopendir: New module.
76474         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
76475         * modules/openat (Depends-on): Add fdopendir.
76476         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
76477         fdopendir here.
76478         * modules/savedir (Depends-on): Only need fdopendir, not full
76479         openat.
76480         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
76481         * lib/openat.h (fdopendir): Drop prototype.
76482         * lib/dirent.in.h (fdopendir): Provide prototype.
76483         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
76484         * modules/dirent (Makefile.am): Substitute them.
76485         * MODULES.html.sh (File system functions): Mention it.
76486         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
76487         * modules/fdopendir-tests: New file.
76488         * tests/test-fdopendir.c: Likewise.
76490         fchdir: use more consistent macro convention
76491         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
76492         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
76493         REPLACE_FCHDIR, rather than relying on config.h macros.
76494         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
76495         inside a single make-time REPLACE_FCHDIR block, rather than using
76496         the config.h FCHDIR_REPLACEMENT.
76497         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
76498         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
76499         Manage fstat replacement.
76500         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
76501         REPLACE_FCHDIR.
76502         * modules/sys_stat (Files): Add m4/unistd_h.m4.
76503         (Makefile.am): Substitute REPLACE_FCHDIR.
76504         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
76505         FCHDIR_REPLACEMENT.
76506         * lib/dup-safer.c (dup_safer): Likewise.
76507         * lib/dup2.c (rpl_dup2): Likewise.
76508         * lib/dup3.c (rpl_dup3): Likewise.
76509         * lib/open.c (rpl_open): Likewise.
76511         fchdir: simplify error handling, and support dup3
76512         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
76513         stdbool, malloc-posix, realloc-posix.
76514         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
76515         (ensure_dirs_slot): Return false on allocation failure.
76516         (rpl_dup2): Delete.
76517         (_gl_register_dup): New function.
76518         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
76519         (_gl_register_fd): Close fd on allocation failure.
76520         * lib/fcntl.in.h (_gl_register_fd): Update signature.
76521         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
76522         prototype.
76523         (rpl_dup2_fchdir): Delete prototype.
76524         * lib/open.c (open): Update caller.
76525         * lib/dup2.c (dup2): Track fchdir metadata.
76526         * lib/dup3.c (dup3): Likewise.
76527         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
76528         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
76530 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76532         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
76533         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
76534         don't pass arguments to AC_OUTPUT.
76536 2009-09-02  Bruno Haible  <bruno@clisp.org>
76538         * modules/mkdtemp (License): Relicense under LGPLv2+.
76539         Reported by Paolo Bonzini.
76541 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76543         Replace uses of obsolete autoconf macros in Jim's modules.
76544         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
76545         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
76546         can evoke a warning from autoconf when run with -Wobsolete
76547         enabled.  They were declared obsolete for good reasons (see
76548         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
76549         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
76550         should not continue using the deprecated macros.
76551         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
76552         obsolete Autoconf macros with modern counterparts.
76553         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76554         * m4/dos.m4 (gl_AC_DOS): Likewise.
76555         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
76556         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
76557         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
76558         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
76559         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
76560         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
76561         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
76562         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
76563         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76564         Likewise.
76565         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
76566         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76567         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
76568         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
76569         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
76570         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76572 2009-09-01  Eric Blake  <ebb9@byu.net>
76574         fchdir: fix off-by-one bug in previous patch
76575         * lib/fchdir.c (rpl_fstat): Use correct bounds.
76576         (_gl_unregister_fd): Delete useless if.
76578 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
76580         maint.mk: sort the list of syntax-check rules
76581         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
76582         easier to get a sense of progress when the rules are run sequentially
76583         and take a long time.
76585 2009-09-01  Simon Josefsson  <simon@josefsson.org>
76587         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
76588         * modules/netinet_in: Likewise.
76589         * modules/sys_file: Likewise.
76590         * modules/sys_ioctl: Likewise.
76591         * modules/sys_select: Likewise.
76592         * modules/sys_socket: Likewise.
76593         * modules/sys_stat: Likewise.
76594         * modules/sys_time: Likewise.
76595         * modules/sys_times: Likewise.
76596         * modules/sys_utsname: Likewise.
76597         * modules/sys_wait: Likewise.
76599 2009-09-01  Jim Meyering  <meyering@redhat.com>
76601         fts: help ensure that return values are not ignored
76602         * lib/fts_.h (__GNUC_PREREQ): Define.
76603         (__attribute_warn_unused_result__): Define.
76604         (fts_children, fts_close, fts_open, fts_read): Declare with
76605         __attribute_warn_unused_result__.
76607         fts: fts_close now fails also when closing a dir file descriptor fails
76608         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
76609         and propagate to caller, along with errno.
76611         announce-gen: correct formatting in --help output
76612         * build-aux/announce-gen (usage): Move the one-line description in
76613         --help output "up", to where it belongs, just after Usage:.
76615 2009-08-31  Eric Blake  <ebb9@byu.net>
76617         fchdir: port to mingw
76618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
76619         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
76620         opened, then use a substitute.
76621         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
76622         replacement.
76623         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
76624         (_gl_register_fd): No need to check stat if open already filters
76625         all directories.
76626         (fchdir): Fix error condition to match POSIX.
76627         * modules/fchdir (Depends-on): Add sys_stat.
76628         * doc/posix-functions/open.texi (open): Document the limitation.
76629         * modules/fchdir-tests: New file.
76630         * tests/test-fchdir.c: Likewise.
76632         canonicalize: allow cross-testing from cygwin to mingw
76633         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
76634         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
76635         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
76636         Likewise.
76637         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
76638         target does not support symlinks.
76639         * tests/test-canonicalize-lgpl.sh: Likewise.
76641         chown: avoid compilation warning on mingw
76642         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
76643         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
76644         mingw.
76645         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
76646         * modules/chown (Depends-on): Add errno.
76648 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
76650         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
76651         command.
76653 2009-08-31  Jim Meyering  <meyering@redhat.com>
76655         canonicalize: remove useless initialization
76656         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
76657         initialization of local, "end".
76659 2009-08-30  Bruno Haible  <bruno@clisp.org>
76661         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
76662         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
76663         ENOSYS.
76665 2009-08-30  Bruno Haible  <bruno@clisp.org>
76667         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
76668         /usr/xpg4/bin/tr when it exists.
76669         * tests/test-pipe-filter-gi1.sh: Likewise.
76671 2009-08-30  Bruno Haible  <bruno@clisp.org>
76673         Work around deficient /usr/bin/id program on Solaris.
76674         * tests/test-file-has-acl.sh (ID): New variable.
76675         * tests/test-set-mode-acl.sh (ID): Likewise.
76676         * tests/test-copy-acl.sh (ID): Likewise.
76677         * tests/test-copy-file.sh (ID): Likewise.
76679 2009-08-30  Bruno Haible  <bruno@clisp.org>
76681         New module 'xstriconveh'.
76682         * lib/xstriconveh.h: New file.
76683         * lib/xstriconveh.c: New file.
76684         * modules/xstriconveh: New file.
76686 2009-08-30  Bruno Haible  <bruno@clisp.org>
76688         Make it easier to use mem_cd_iconveh.
76689         * lib/striconveh.h (iconveh_t): New type.
76690         (iconveh_open, iconveh_close): New declarations.
76691         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
76692         with a single 'const iconveh_t *' argument.
76693         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
76694         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
76695         with a single 'const iconveh_t *' argument.
76696         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
76697         * tests/test-striconveh.c (main): Update.
76698         * NEWS: Mention the change.
76700 2009-08-30  Bruno Haible  <bruno@clisp.org>
76702         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
76703         problem.
76705 2009-08-30  Bruno Haible  <bruno@clisp.org>
76707         Work around iconv_open problem on Solaris.
76708         * lib/iconv_open-solaris.gperf: New file.
76709         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
76710         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
76711         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
76712         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
76713         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
76714         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
76716 2009-08-29  Jim Meyering  <meyering@redhat.com>
76718         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
76719         * top/maint.mk (cvs-check): Remove target; it was just an alias
76720         to the better-named vc-diff-check.
76721         (maintainer-distcheck): Remove rule.  It was used only from
76722         the (alpha/beta/major) target, and all of its commands but one
76723         were coreutils-specific.
76724         (vc-dist): Remove rule.
76725         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
76726         Run vc-diff-check, not vc-dist.
76727         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
76729 2009-08-27  Bruno Haible  <bruno@clisp.org>
76731         * tests/test-bitrotate.c (main): Remove test that uses a shift count
76732         of 0.
76734 2009-08-27  Bruno Haible  <bruno@clisp.org>
76736         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
76737         compilers.
76738         * doc/func.texi: Document the SunPRO C bug.
76740 2009-08-27  Bruno Haible  <bruno@clisp.org>
76742         Fix link error on Solaris.
76743         * tests/test-parse-duration.c (xstrdup): Remove function.
76745 2009-08-26  Pádraig Brady  <P@draigbrady.com>
76747         ignore-value: handle pointer types, too
76748         * lib/ignore-value.h (__attribute__): Remove definition.
76749         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
76750         of a more concise and more-often effective "(void) i" statement.
76751         (ignore_ptr): New function to suppress warnings from functions that
76752         return pointers, and to make it explicit that one function doesn't
76753         handle all cases.
76755 2009-08-25  Bruno Haible  <bruno@clisp.org>
76757         dup2: work around a Linux bug.
76758         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
76759         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
76760         * doc/posix-functions/dup2.texi: Mention the Linux bug.
76761         Reported by Simon Josefsson.
76763 2009-08-25  Jim Meyering  <meyering@redhat.com>
76765         libguestfs uses gnulib
76766         * users.txt: Add libguestfs.
76768 2009-08-24  Eric Blake  <ebb9@byu.net>
76770         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
76771         * lib/pipe2.c (includes): Add binary-io.h.
76772         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
76774 2009-08-24  Bruno Haible  <bruno@clisp.org>
76776         Tolerate declared but missing accept4 syscall.
76777         * lib/accept4.c (accept4): Invoke original accept4 function first, if
76778         available.
76779         * lib/sys_socket.in.h (accept4): If the function is already present,
76780         override it.
76781         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
76782         * modules/accept4 (Makefile.am): Compile accept4.c always.
76783         Reported by Paolo Bonzini and Eric Blake.
76785 2009-08-23  Bruno Haible  <bruno@clisp.org>
76787         New module 'accept4'.
76788         * lib/sys_socket.in.h (accept4): New declaration.
76789         * lib/accept4.c: New file.
76790         * m4/accept4.m4: New file.
76791         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
76792         GNULIB_ACCEPT4, HAVE_ACCEPT4.
76793         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
76794         HAVE_ACCEPT4.
76795         * modules/accept4: New file.
76796         * doc/glibc-functions/accept4.texi: Mention the new module.
76798 2009-08-24  Jim Meyering  <meyering@redhat.com>
76800         progname: also set global program_invocation_name, when possible
76801         Before this change, a libtool-enabled program that calls glibc's
76802         error function would report the program name as
76803         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
76804         * modules/progname (configure.ac): Check for a declaration of
76805         program_invocation_name.
76806         * lib/progname.c:  Include <errno.h>.
76807         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
76808         Set program_invocation_name.
76810 2009-08-23  Bruno Haible  <bruno@clisp.org>
76812         * lib/dup3.c: Include <string.h>.
76814 2009-08-23  Bruno Haible  <bruno@clisp.org>
76816         * lib/dup3.c (dup3): Test only once whether the system actually exists.
76817         * lib/pipe2.c (pipe2): Likewise.
76818         Suggested by Eric Blake.
76820 2009-08-23  Bruno Haible  <bruno@clisp.org>
76822         Tolerate declared but missing dup3 syscall.
76823         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
76824         * lib/unistd.in.h (dup3): If the function is already present,
76825         override it.
76826         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
76827         * modules/dup3 (Makefile.am): Compile dup3.c always.
76828         Reported by Paolo Bonzini.
76830 2009-08-23  Bruno Haible  <bruno@clisp.org>
76832         Tolerate declared but missing pipe2 syscall.
76833         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
76834         available.
76835         * lib/unistd.in.h (pipe2): If the function is already present,
76836         override it.
76837         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
76838         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
76839         Reported by Paolo Bonzini.
76841 2009-08-23  Bruno Haible  <bruno@clisp.org>
76843         * lib/pipe2.c (pipe2): Move #ifs inside function.
76845 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
76847         quotearg: document limitations of quote_these_too
76848         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
76849         those limitations are created.
76850         * lib/quotearg.h (set_char_quoting): Document that digits and
76851         letters that are special after backslash are not permitted.
76852         (quotearg_char): Cross-reference set_char_quoting documentation.
76854 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
76856         quotearg: implement custom_quoting_style
76857         * lib/quotearg.c: (struct quoting_options): Add left_quote and
76858         right_quote fields.
76859         (set_custom_quoting): New public function.
76860         (quotearg_buffer_restyled): Add left_quote and right_quote
76861         arguments, handle them very much like locale quoting, and update
76862         all uses.
76863         (quotearg_n_custom): New public function.
76864         (quotearg_n_custom_mem): New public function.
76865         (quotearg_custom): New public function.
76866         (quotearg_custom_mem): New public function.
76867         * lib/quotearg.h: Prototype and document new public functions.
76868         (enum quoting_style): For escape_quoting_style and
76869         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
76870         ignored even though they're otherwise like c_quoting_style.
76871         Add custom_quoting_style member and document with comparison to
76872         clocale_quoting_style.
76873         * tests/test-quotearg.c (custom_quotes): New array.
76874         (custom_results): New array.
76875         (main): Extend to test custom quoting.
76877 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
76879         quotearg: fix right quote escaping when it's in quote_these_too
76880         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
76881         quote, be sure to prepend only one backslash.
76882         * tests/test-quotearg.c (use_quote_double_quotes): New function.
76883         (main): Test it.
76885 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
76887         quotearg-tests: test escaping of embedded locale quotes
76888         * tests/test-quotearg.c (struct result_strings): Add member for
76889         new input.
76890         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
76891         (inputs): Add new input.
76892         (results_g): Add expected results.
76893         (flag_results): Likewise.
76894         (locale_results): Likewise.
76895         (compare_strings): Check those.
76897 2009-08-23  Bruno Haible  <bruno@clisp.org>
76899         Tests for module 'dup3'.
76900         * modules/dup3-tests: New file.
76901         * tests/test-dup3.c: New file.
76903         New module 'dup3'.
76904         * lib/unistd.in.h (dup3): New declaration.
76905         * lib/dup3.c: New file.
76906         * m4/dup3.m4: New file.
76907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
76908         HAVE_DUP3.
76909         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
76910         * modules/dup3: New file.
76911         * doc/glibc-functions/dup3.texi: Mention the new module.
76913 2009-08-23  Bruno Haible  <bruno@clisp.org>
76915         Tweak the dup2 test.
76916         * tests/test-dup2.c (main): Create the test file empty. Verify that an
76917         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
76918         the test file is still empty. Fix argument order of lseek.
76920 2009-08-23  Bruno Haible  <bruno@clisp.org>
76922         Avoid test link errors when the modules getopt-gnu, gettext are used.
76923         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
76924         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
76926 2009-08-23  Bruno Haible  <bruno@clisp.org>
76928         Fix getdtablesize() on mingw.
76929         * lib/getdtablesize.c (getdtablesize): Implement differently.
76930         * lib/unistd.in.h (getdtablesize): Improve comment.
76932 2009-08-23  Bruno Haible  <bruno@clisp.org>
76934         New module 'mkostemp'.
76935         Based on Ulrich Drepper's 2007-08-10 change in glibc.
76936         * lib/stdlib.in.h (mksotemp): New declaration.
76937         * lib/mkostemp.c: New file, from glibc with modifications.
76938         * lib/tempname.h (GT_FILE): Remove outdated comment.
76939         (gen_tempname): Add flags argument.
76940         * lib/tempname.c (__GT_BIGFILE): Remove macro.
76941         (__GT_FILE): Map to 1.
76942         (small_open, large_open): Remove macros.
76943         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
76944         * lib/mkstemp.c (mkstemp): Update.
76945         * lib/mkdtemp.c (mkdtemp): Likewise.
76946         * m4/mkostemp.m4: New file.
76947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
76948         HAVE_MKOSTEMP.
76949         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
76950         HAVE_MKOSTEMP.
76951         * modules/mkostemp: New file, based on modules/mkstemp.
76952         * doc/glibc-functions/mkostemp.texi: Mention the new module.
76953         * NEWS: Mention the change.
76955 2009-08-23  Bruno Haible  <bruno@clisp.org>
76957         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
76958         Reported by Eric Blake.
76960 2009-08-23  Bruno Haible  <bruno@clisp.org>
76962         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
76963         Reported by Eric Blake.
76965 2009-08-23  Bruno Haible  <bruno@clisp.org>
76967         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
76968         * modules/pipe2 (Depends-on): Likewise.
76970 2009-08-23  Eric Blake  <ebb9@byu.net>
76972         fcntl-h: add O_TTY_INIT support
76973         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
76974         * tests/test-fcntl-h.c (o): Test it.
76975         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
76977         fcntl-h: rename from fcntl, in preparation for fcntl(2)
76978         * modules/fcntl: Move <fcntl.h> header replacement...
76979         * modules/fcntl-h: ...to new name, so as not to collide with
76980         like-named function.
76981         * tests/test-fcntl.c: Rename...
76982         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
76983         * modules/fcntl-tests: Rename...
76984         * modules/fcntl-h-tests: ...to this.  Update test file name.
76985         * modules/chdir-long (Depends-on): Update clients.
76986         * modules/chdir-safer (Depends-on): Likewise.
76987         * modules/fcntl-safer (Depends-on): Likewise.
76988         * modules/fts (Depends-on): Likewise.
76989         * modules/mkancesdirs (Depends-on): Likewise.
76990         * modules/mkdir-p (Depends-on): Likewise.
76991         * modules/open (Depends-on): Likewise.
76992         * modules/savewd (Depends-on): Likewise.
76993         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
76994         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
76996 2009-08-22  Bruno Haible  <bruno@clisp.org>
76998         * modules/binary-io (License): Relicense under LGPL.
76999         * modules/pipe2 (License): Likewise.
77001 2009-08-22  Bruno Haible  <bruno@clisp.org>
77003         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
77004         return value.
77005         * lib/pipe-filter-gi.c (filter_init): Likewise.
77006         Reported by Eric Blake.
77008 2009-08-22  Bruno Haible  <bruno@clisp.org>
77010         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
77011         * modules/pipe (Depends-on): Add pipe2.
77013 2009-08-22  Bruno Haible  <bruno@clisp.org>
77015         Tests for module 'pipe2'.
77016         * modules/pipe2-tests: New file.
77017         * tests/test-pipe2.c: New file.
77019         New module 'pipe2'.
77020         * lib/unistd.in.h (pipe2): New declaration.
77021         * lib/pipe2.c: New file.
77022         * m4/pipe2.m4: New file.
77023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
77024         HAVE_PIPE2.
77025         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
77026         * modules/pipe2: New file.
77027         * doc/glibc-functions/pipe2.texi: Mention the new module.
77029 2009-08-22  Bruno Haible  <bruno@clisp.org>
77031         Reference some new glibc functions.
77032         * doc/glibc-functions/accept4.texi: New file.
77033         * doc/glibc-functions/dup3.texi: New file.
77034         * doc/glibc-functions/mkostemp.texi: New file.
77035         * doc/glibc-functions/pipe2.texi: New file.
77036         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
77037         (Glibc sys/socket.h): Refer to accept4.
77038         (Glibc unistd.h): Refer to dup3, pipe2.
77039         Reported by Eric Blake.
77041 2009-08-22  Jim Meyering  <meyering@redhat.com>
77042             Bruno Haible  <bruno@clisp.org>
77044         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
77045         This makes it so packages using automake-1.11's silent-rules option
77046         can print e.g., a single "GEN    configmake.h" line, rather than
77047         the 30+ statements that perform the job.  If you want to see the
77048         actual commands, you can still run "make V=1".
77049         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
77050         so that make output is abbreviated when those variables are defined
77051         appropriately.
77052         * modules/argz: Likewise.
77053         * modules/arpa_inet: Likewise.
77054         * modules/byteswap: Likewise.
77055         * modules/configmake: Likewise.
77056         * modules/dirent: Likewise.
77057         * modules/errno: Likewise.
77058         * modules/fcntl: Likewise.
77059         * modules/float: Likewise.
77060         * modules/fnmatch: Likewise.
77061         * modules/getopt-posix: Likewise.
77062         * modules/glob: Likewise.
77063         * modules/iconv_open: Likewise.
77064         * modules/inttypes: Likewise.
77065         * modules/localcharset: Likewise.
77066         * modules/locale: Likewise.
77067         * modules/math: Likewise.
77068         * modules/netdb: Likewise.
77069         * modules/netinet_in: Likewise.
77070         * modules/poll: Likewise.
77071         * modules/posix_spawnp-tests: Likewise.
77072         * modules/sched: Likewise.
77073         * modules/search: Likewise.
77074         * modules/selinux-h: Likewise.
77075         * modules/signal: Likewise.
77076         * modules/spawn: Likewise.
77077         * modules/stdarg: Likewise.
77078         * modules/stdbool: Likewise.
77079         * modules/stddef: Likewise.
77080         * modules/stdint: Likewise.
77081         * modules/stdio: Likewise.
77082         * modules/stdlib: Likewise.
77083         * modules/string: Likewise.
77084         * modules/strings: Likewise.
77085         * modules/sys_file: Likewise.
77086         * modules/sys_ioctl: Likewise.
77087         * modules/sys_select: Likewise.
77088         * modules/sys_socket: Likewise.
77089         * modules/sys_stat: Likewise.
77090         * modules/sys_time: Likewise.
77091         * modules/sys_times: Likewise.
77092         * modules/sys_utsname: Likewise.
77093         * modules/sys_wait: Likewise.
77094         * modules/sysexits: Likewise.
77095         * modules/time: Likewise.
77096         * modules/unistd: Likewise.
77097         * modules/wchar: Likewise.
77098         * modules/wctype: Likewise.
77100 2009-08-22  Jim Meyering  <meyering@redhat.com>
77102         announce-gen: detect write failure
77103         * build-aux/announce-gen: Add Coda at end.
77104         Remove equivalent-but-more-verbose block at top.
77106 2009-08-19  Akim Demaille  <demaille@gostai.com>
77108         bootstrap: --help to stdout.
77109         * bootstrap (usage): Don't send --help to stderr.
77110         Use a here doc instead of a long string.
77112 2009-08-21  Eric Blake  <ebb9@byu.net>
77114         test-popen-safer: split from test-popen
77115         * tests/test-popen.c (main): Move...
77116         * tests/test-popen.h: ...into new file.
77117         * tests/test-popen-safer2.c: New file.
77118         * modules/popen-tests (Files): Add test-popen.h.
77119         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
77120         Suggested by Bruno Haible.
77122         test-fcntl-safer: split from test-open
77123         * tests/test-open.c (main): Move...
77124         * tests/test-open.h: ...into new file.
77125         * tests/test-fcntl-safer.c: New file.
77126         * modules/open-tests (Files): Add test-open.h.
77127         * modules/fcntl-safer-tests: New file.
77128         Suggested by Bruno Haible.
77130         test-fopen-safer: split from test-fopen
77131         * tests/test-fopen.c (main): Move...
77132         * tests/test-fopen.h: ...into new file.
77133         * tests/test-fopen-safer.c: New file.
77134         * modules/fopen-tests (Files): Add test-fopen.h.
77135         * modules/fopen-safer-tests: New file.
77136         Suggested by Bruno Haible.
77138 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77140         popen-safer: test O_CLOEXEC at run-time.
77141         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
77143 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77145         fcntl: move more flags to the header
77146         * lib/cloexec.c: Do not define FD_CLOEXEC here.
77147         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
77148         * lib/fcntl.in.h: Do both things here.
77150 2009-08-21  Jim Meyering  <meyering@redhat.com>
77152         consistently remove $@-t before redirecting to it
77153         * modules/argz: Remove $@-t and $@ before redirecting to the former.
77154         * modules/alloca-opt: Likewise.
77155         * modules/byteswap: Likewise.
77156         * modules/fnmatch: Likewise.
77157         * modules/getopt-posix: Likewise.
77158         * modules/glob: Likewise.
77159         * modules/poll: Likewise.
77160         * modules/posix_spawnp-tests: Likewise.
77161         * modules/sys_socket: Likewise.
77162         * modules/sysexits: Likewise.
77164 2009-08-21  Eric Blake  <ebb9@byu.net>
77166         popen: simplify access to original popen
77167         * lib/popen.c (rpl_popen): No need to worry about popen being a
77168         macro.
77169         Reported by Bruno Haible.
77171 2009-08-20  Eric Blake  <ebb9@byu.net>
77173         build: avoid some compiler warnings
77174         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
77175         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
77176         type.
77177         (new_exclude_segment, excluded_file_pattern_p)
77178         (excluded_file_name_p): Reduce scope.
77179         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
77180         old-style declaration.
77182 2009-08-20  Simon Josefsson  <simon@josefsson.org>
77184         * tests/test-exclude1.sh: Handle Windows EOL.
77185         * tests/test-exclude2.sh: Likewise.
77186         * tests/test-exclude3.sh: Likewise.
77187         * tests/test-exclude4.sh: Likewise.
77188         * tests/test-exclude5.sh: Likewise.
77189         * tests/test-exclude6.sh: Likewise.
77190         * tests/test-exclude7.sh: Likewise.
77192 2009-08-19  Akim Demaille  <demaille@gostai.com>
77194         bootstrap: find sha1sum when named gsha1sum.
77195         * bootstrap (find_tool): New.
77196         ($SHA1SUM): New.
77197         Use it.
77199 2009-08-20  Jim Meyering  <meyering@redhat.com>
77201         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
77202         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
77203         expression that converts "." in a file name to "\." in the resulting
77204         regexp.  Start with a dummy statement, so that prior shell variable
77205         definitions are expanded portably.  Reported by Simon Josefsson.
77207 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
77209         Fix polling for writeability of a screen buffer.
77210         * lib/poll.c: Distinguish input and screen buffers for the
77211         Win32 implementation.
77212         * lib/select.c: Likewise.
77214 2009-08-19  Eric Blake  <ebb9@byu.net>
77216         popen-safer: prevent popen from clobbering std descriptors
77217         * modules/popen-safer: New file.
77218         * lib/popen-safer.c: Likewise.
77219         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
77220         * lib/stdio--.h (popen): Provide override.
77221         * lib/stdio-safer.h (popen_safer): Provide declaration.
77222         * tests/test-popen.c (includes): Partially test this.
77223         * modules/popen-safer-tests: New file, for more tests.
77224         * tests/test-popen-safer.c: Likewise.
77225         * MODULES.html.sh (file stream based Input/Output): Mention it.
77227         tests: test some of the *-safer modules
77228         * modules/fopen-safer (Depends-on): Add fopen.
77229         * modules/fcntl-safer (Depends-on): Add fcntl.
77230         * modules/stdlib-safer (Depends-on): Add stdlib.
77231         (configure.ac): Set indicator.
77232         * modules/unistd-safer (configure.ac): Likewise.
77233         * modules/tmpfile-safer (configure.ac): Likewise.
77234         (Depends-on): Add tmpfile.
77235         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
77236         active.
77237         * tests/test-fopen.c (includes): Test safer versions when they are
77238         in use.
77239         * tests/test-open.c (includes): Likewise.
77241         popen: fix cygwin 1.5 bug when stdin closed
77242         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
77243         * modules/popen: New file.
77244         * modules/popen-tests: Likewise.
77245         * tests/test-popen.c: Likewise.
77246         * m4/popen.m4: Likewise.
77247         * lib/popen.c: Likewise.
77248         * lib/stdio.in.h (popen): New declaration.
77249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
77250         * modules/stdio (Makefile.am): Likewise.
77251         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
77253 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
77255         maint.mk: give full control over update-copyright exclusions
77256         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
77257         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
77258         (update-copyright): Don't force inclusion of top-level
77259         ChangeLog.  Don't force exclusion of all COPYING files, but make
77260         them the default exclusion instead.
77262 2009-08-16  Bruno Haible  <bruno@clisp.org>
77264         Fix test failures on Solaris 10.
77265         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
77266         tests when Solaris iconv() is used.
77267         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
77268         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
77269         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
77270         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
77271         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
77273 2009-08-16  Bruno Haible  <bruno@clisp.org>
77275         Fix test failures on Solaris 10.
77276         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
77277         'tr' program and pass it as first argument.
77278         * tests/test-pipe-filter-gi1.sh: Likewise.
77279         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
77280         program as first argument.
77281         * tests/test-pipe-filter-gi1.c (main): Likewise.
77283 2009-08-16  Eric Blake  <ebb9@byu.net>
77285         fpurge: fix previous commits
77286         * modules/fpurge (Makefile.am): Make replacement conditional,
77287         partially reverting 2007-04-29 change; missed in previous
77288         attempt.
77289         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
77290         is missing.
77292 2009-08-16  Bruno Haible  <bruno@clisp.org>
77294         Clarify fpurge's effect on the file position.
77295         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
77296         * tests/test-fpurge.c (main): Make a second pass for checking the file
77297         position.
77299 2009-08-16  Bruno Haible  <bruno@clisp.org>
77301         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
77302         declaration of fpurge is missing.
77303         * tests/test-fpurge.c (main): Check that the file has not more contents
77304         than expected. Close the file before removing it.
77306 2009-08-15  Eric Blake  <ebb9@byu.net>
77308         fpurge: don't wrap working cygwin implementation
77309         * lib/fpurge.c (fpurge): Fix comment typo.
77310         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
77311         1.7 to avoid replacement.
77312         * tests/test-fpurge.c (main): Enhance test.
77314 2009-08-15  Eric Blake  <ebb9@byu.net>
77315         and Jim Meyering  <meyering@redhat.com>
77317         test-update-copyright: skip if perl is insufficient
77318         * tests/test-update-copyright.sh: Failure to run maintainer tool
77319         should not cause testsuite failure on cygwin 1.5.
77321 2009-08-14  Eric Blake  <ebb9@byu.net>
77323         doc: mention more functions added in cygwin 1.7.0
77324         * doc/posix-headers/limits.texi (limits.h): Update for recent
77325         cygwin additions.
77326         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
77327         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
77328         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
77329         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
77330         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
77332 2009-08-14  Eric Blake  <ebb9@byu.net>
77334         maint.mk: simplify update-copyright rule
77335         * top/maint.mk (update-copyright-local): Delete, and document how
77336         to do it in cfg.mk instead.
77337         (update-copyright-exclude-regexp): Delete, and document how to do
77338         it in .x-update-copyright instead.
77339         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
77340         exclude ChangeLog.
77342 2009-08-14  Bruno Haible  <bruno@clisp.org>
77344         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
77346 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77348         maint.mk: support update-copyright-env
77349         * top/maint.mk (update-copyright-env): Define place-holder.
77350         (update-copyright): Expand $(update-copyright-env) before
77351         invoking update-copyright.
77353 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77355         update-copyright: implement forced reformatting
77356         * build-aux/update-copyright: Implement and document
77357         UPDATE_COPYRIGHT_FORCE.
77358         * tests/test-update-copyright.sh: Test it.
77360 2009-08-14  Eric Blake  <ebb9@byu.net>
77361         and Bruno Haible  <bruno@clisp.org>
77363         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
77364         * tests/test-locale.c: Revert previous patch related to NULL.
77365         * tests/test-stdio.c: Likewise.
77366         * tests/test-stdlib.c: Likewise.
77367         * tests/test-string.c: Likewise.
77368         * tests/test-unistd.c: Likewise.
77369         * modules/time-tests (Depends-on): Add verify.
77370         * modules/wchar-tests (Depends-on): Likewise.
77371         * tests/test-time.c: Test for NULL compliance.
77372         * tests/test-wchar.c: Likewise.
77373         * modules/locale (Depends-on): Add stddef.
77374         * modules/stdio (Depends-on): Likewise.
77375         * modules/stdlib (Depends-on): Likewise.
77376         * modules/string (Depends-on): Likewise.
77377         * modules/time (Depends-on): Likewise.
77378         * modules/unistd (Depends-on): Likewise.
77379         * modules/wchar (Depends-on): Likewise.
77380         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
77381         * lib/stdlib.in.h (includes): Likewise.
77382         * lib/string.in.h (includes): Likewise.
77383         * lib/time.in.h (includes): Likewise.
77384         * lib/unistd.in.h (includes): Likewise.
77385         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
77386         replaced.
77387         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77388         * m4/stddef_h.m4: New file.
77389         * modules/stddef: Likewise.
77390         * lib/stddef.in.h: Likewise.
77391         * modules/stddef-tests: Likewise.
77392         * tests/test-stddef.c: Likewise.
77393         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
77394         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
77395         * doc/posix-headers/locale.texi (locale.h): Likewise.
77396         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
77397         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
77398         * doc/posix-headers/string.texi (string.h): Likewise.
77399         * doc/posix-headers/time.texi (time.h): Likewise.
77400         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
77401         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
77403 2009-08-14  Eric Blake  <ebb9@byu.net>
77405         doc: improve git diff of texinfo files
77406         * .gitattributes: Add rule for *.texi files, with hint on how to
77407         use it.
77408         Copied from m4, and based on a report by Bruno Haible.
77410 2009-08-14  Bruno Haible  <bruno@clisp.org>
77412         Disable multithread support by default on Cygwin 1.5.x for real.
77413         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
77415 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77417         update-copyright: much ado about intervals
77418         * build-aux/update-copyright: Implement and document
77419         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
77420         of copyright year intervals.
77421         Also, document UPDATE_COPYRIGHT_YEAR.
77422         * tests/test-update-copyright.sh: Test it.
77424         update-copyright: convert 2-digit to 4-digit years
77425         * build-aux/update-copyright: Implement and document.
77426         * tests/test-update-copyright.sh: Update.
77428 2009-08-14  Jim Meyering  <meyering@redhat.com>
77430         test-exclude: avoid coreutils "make check" failure
77431         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
77432         just as in test-argmatch.c.
77434 2009-08-13  Eric Blake  <ebb9@byu.net>
77436         test-dup2: fix bad assumption
77437         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
77438         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
77440         test-version-etc: fix CRLF portability issue
77441         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
77442         recognize \r.
77443         * tests/test-argp-version-etc-1.sh: Likewise.
77445         getopt: update client modules
77446         * modules/argp (Depends-on): Use getopt-gnu.
77447         * modules/git-merge-changelog (Depends-on): Likewise.
77448         * modules/long-options (Depends-on): Likewise.
77449         * modules/xstrtol (Depends-on): Likewise.
77451 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77453         * tests/test-version-etc.sh: Don't fail on different
77454         project/version.  Don't fail on CRLF differences.  Rewrite to use
77455         multiple -e instead of multiple sed forks, suggested by Eric Blake
77456         <ebb9@byu.net>.
77457         * tests/test-argp-version-etc-1.sh: Likewise.
77459 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77461         * tests/test-version-etc.sh: Don't fail on different
77462         project/version.
77464 2009-08-12  Bruno Haible  <bruno@clisp.org>
77466         Tests for modules 'getopt-posix', 'getopt-gnu'.
77467         * modules/getopt-posix-tests: New file.
77468         * tests/test-getopt.c: New file.
77469         * tests/test-getopt.h: New file.
77470         * tests/test-getopt_long.h: New file.
77472         New modules 'getopt-posix', 'getopt-gnu'.
77473         * modules/getopt-gnu: New file, renamed from modules/getopt.
77474         * modules/getopt-posix: New file.
77475         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
77476         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
77477         (gl_GETOPT): Remove macro.
77478         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
77479         Disable the test against BSD systems that declare optreset. Test
77480         against mingw bug. Test against lack of support of optional arguments
77481         on many platforms.
77482         * doc/glibc-headers/getopt.texi: Update module name and list of
77483         relevant platforms.
77484         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
77485         'getopt-gnu' and more portability problems.
77486         * NEWS: Mention the changes.
77488 2009-08-12  Bruno Haible  <bruno@clisp.org>
77490         Ensure that optarg etc. get declared by <unistd.h>.
77491         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
77492         AC_USE_SYSTEM_EXTENSIONS.
77493         * modules/getopt (Depends-on): Add 'extensions'.
77495 2009-08-12  Bruno Haible  <bruno@clisp.org>
77497         Avoid test link errors.
77498         * modules/pipe-filter-ii-tests (Makefile.am): Define
77499         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
77500         * modules/pipe-filter-gi-tests (Makefile.am): Define
77501         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
77502         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77504 2009-08-12  Bruno Haible  <bruno@clisp.org>
77506         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
77507         gl_GETOPT_SUBSTITUTE before.
77508         (gl_GETOPT): Use it.
77509         * m4/argp.m4 (gl_ARGP): Update.
77510         Reported by Sergey Poznyakoff.
77512         * m4/getopt.m4: Reorder macros.
77513         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
77514         (gl_GETOPT_SUBSTITUTE): Remove macro.
77516 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77518         Minor improvement in gitlog-to-changelog
77520         * build-aux/gitlog-to-changelog: New option `--format' makes
77521         output format string configurable.
77523 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77525         Optimize exclude: use hash tables for non-wildcard patterns.
77527         * lib/exclude.c: Include hash.h and mbuiter.h
77528         (struct exclude_pattern, exclude_segment): New data types.
77529         (struct exclude): Rewrite.
77530         (fnmatch_pattern_has_wildcards): New function.
77531         (new_exclude_segment, free_exclude_segment): New functions.
77532         (excluded_file_pattern_p, excluded_file_name_p): New functions.
77533         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
77534         * lib/exclude.h (is_fnmatch_pattern): New prototype.
77535         * modules/exclude: Depend on hash and mbuiter.
77537         * modules/exclude-tests: New file.
77538         * tests/test-exclude.c: New file.
77539         * tests/test-exclude1.sh: New file.
77540         * tests/test-exclude2.sh: New file.
77541         * tests/test-exclude3.sh: New file.
77542         * tests/test-exclude4.sh: New file.
77543         * tests/test-exclude5.sh: New file.
77544         * tests/test-exclude6.sh: New file.
77545         * tests/test-exclude7.sh: New file.
77547 2009-08-12  Bruno Haible  <bruno@clisp.org>
77549         Ensure that getopt() gets declared by <unistd.h>.
77550         * lib/unistd.in.h: Conditionally include getopt.h.
77551         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
77552         Set GNULIB_UNISTD_H_GETOPT.
77553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
77554         GNULIB_UNISTD_H_GETOPT.
77555         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
77557 2009-08-12  Bruno Haible  <bruno@clisp.org>
77559         Clarify logic.
77560         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
77561         gl_replace_getopt instead of GETOPT_H.
77563 2009-08-12  Bruno Haible  <bruno@clisp.org>
77565         * m4/getopt.m4: Add comments.
77567 2009-08-12  Bruno Haible  <bruno@clisp.org>
77569         Disable multithread support by default on Cygwin 1.5.x.
77570         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
77571         set gl_use_threads=no if not specified otherwise.
77573 2009-08-11  Bruno Haible  <bruno@clisp.org>
77575         Avoid compilation error on NetBSD 5.0.
77576         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
77577         * tests/test-stdio.c: Likewise.
77578         * tests/test-stdlib.c: Likewise.
77579         * tests/test-string.c: Likewise.
77580         * tests/test-unistd.c: Likewise.
77581         Reported by Greg Troxel <gdt@ir.bbn.com>
77582         at <https://savannah.gnu.org/support/?106973>.
77584 2009-08-11  Bruno Haible  <bruno@clisp.org>
77586         * modules/dup2-tests (Depends-on): Remove close.
77588         Undo 2009-07-19 commit.
77589         * modules/acl-tests (Depends-on): Remove close.
77590         * modules/binary-io-tests (Depends-on): Likewise.
77591         * modules/closein-tests (Depends-on): Likewise.
77592         * modules/flock-tests (Depends-on): Likewise.
77593         * modules/fsync-tests (Depends-on): Likewise.
77594         * modules/lseek-tests (Depends-on): Likewise.
77595         * modules/pipe-tests (Depends-on): Likewise.
77596         * modules/posix_spawn-tests (Depends-on): Likewise.
77597         * modules/posix_spawnp-tests (Depends-on): Likewise.
77598         * modules/stat-time-tests (Depends-on): Likewise.
77599         * modules/yesno-tests (Depends-on): Likewise.
77601 2009-08-10  Bruno Haible  <bruno@clisp.org>
77603         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
77605 2009-08-10  Bruno Haible  <bruno@clisp.org>
77607         Fix a gcc warning.
77608         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
77610 2009-08-10  Bruno Haible  <bruno@clisp.org>
77612         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
77613         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
77614         not only the first time.
77615         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
77616         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
77617         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
77618         is 1, not only the first time.
77620 2009-08-10  Bruno Haible  <bruno@clisp.org>
77622         Make it possible to use module 'gethostname' without module 'close'.
77623         * lib/unistd.in.h (close): Evoke a link error only if
77624         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
77625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
77626         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77627         * modules/unistd (Makefile.am): Substitute
77628         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77629         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
77630         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
77631         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
77632         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77633         * modules/sys_ioctl (Makefile.am): Substitute
77634         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77635         * modules/socket (configure.ac): On native Windows, set
77636         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
77637         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77638         Reported by Sam Steingold <sds@gnu.org>.
77640 2009-08-10  Bruno Haible  <bruno@clisp.org>
77642         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
77643         * modules/ioctl (configure.ac): Likewise.
77645 2009-08-10  Bruno Haible  <bruno@clisp.org>
77647         Avoid collision between gnulib wrapper and libintl wrapper.
77648         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
77649         already defined in intl/printf.c.
77650         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
77651         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
77653 2009-08-09  Bruno Haible  <bruno@clisp.org>
77655         Make <sys/select.h> really self-contained, also on Solaris 10.
77656         * lib/sys_select.in.h: Include <string.h>.
77657         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
77658         Solaris 10 problem.
77659         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
77660         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
77661         Reported by Jim Meyering.
77663 2009-08-09  Bruno Haible  <bruno@clisp.org>
77665         Avoid warnings from 'aclocal' that are due to a use of macro name
77666         AM_XGETTEXT_OPTION that is not defined in automake.
77667         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
77668         automake.
77669         * modules/error (configure.ac): Likewise.
77670         * modules/propername (configure.ac): Likewise.
77671         * modules/vasprintf (configure.ac): Likewise.
77672         * modules/verror (configure.ac): Likewise.
77673         * modules/xprintf (configure.ac): Likewise.
77674         * modules/xvasprintf (configure.ac): Likewise.
77676 2009-08-08  Bruno Haible  <bruno@clisp.org>
77678         Avoid compilation error in C++ mode.
77679         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
77680         Reported by Sam Steingold <sds@gnu.org>.
77682 2009-08-08  Bruno Haible  <bruno@clisp.org>
77684         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
77685         for the various Unix platforms.
77686         * doc/posix-headers/limits.texi: Update platforms list regarding
77687         HOST_NAME_MAX.
77688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77690 2009-08-07  Jim Meyering  <meyering@redhat.com>
77692         selinux-at: fix typo in a comment
77693         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
77694         Spotted by Paolo Bonzini.
77696         selinux-at: remove redundant m4 code, add documentation
77697         * modules/selinux-at (configure.ac): Remove redundant code.
77698         LIB_SELINUX is already set via the dependent module, selinux-h.
77699         (Include): Add quotes around selinux-at.h.
77700         * lib/selinux-at.h: Add documentation.
77701         Reported by Bruno Haible in
77702         http://marc.info/?l=gnulib-bug&m=124958988300749
77704 2009-08-07  Bruno Haible  <bruno@clisp.org>
77706         Avoid link error on MacOS X 10.3 and 10.4.
77707         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
77708         on non-ELF systems.
77709         * lib/argp-pv.c (argp_program_version): Likewise.
77710         Reported by Simon Josefsson.
77712 2009-08-07  Simon Josefsson  <simon@josefsson.org>
77714         * tests/test-version-etc.sh: Use $EXEEXT.
77716 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
77718         update-copyright: update documentation to point to maint.mk
77719         * build-aux/update-copyright: Here.
77721 2009-08-06  Jim Meyering  <meyering@redhat.com>
77723         maint.mk: support update-copyright-local
77724         * top/maint.mk (update-copyright-local): Define place-holder.
77725         (update-copyright): Depend on $(update-copyright-local).
77727 2009-08-06  Jim Meyering  <meyering@redhat.com>
77729         selinux-at: new module
77730         Initially written for coreutils, this module will soon be
77731         used by findutils, too.
77732         * MODULES.html.sh [Misc]: Add selinux-at.
77733         * lib/selinux-at.h: New file, from coreutils.
77734         * lib/selinux-at.c: Likewise.
77735         * modules/selinux-at: Likewise.
77736         (License): Change from LGPL to GPL, since it depends
77737         on the GPL'd openat module.
77739         doc: update README
77740         * README: Remove references to cogito.
77741         Remove cvs-repo-updating instructions from 2007.
77742         Don't imply that CVS is better if you have limited disk space.
77744 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77746         update-copyright: support C-style comments
77747         * build-aux/update-copyright: Implement and document.
77748         * tests/test-update-copyright.sh: Test.
77750 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77752         update-copyright: support omitted "(C)"
77753         * build-aux/update-copyright: Implement and document.  Also,
77754         allow variable whitespace before "(C)".
77755         * tests/test-update-copyright.sh: Test.
77757 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77759         update-copyright: don't trip on non-FSF copyright statements
77760         * build-aux/update-copyright: Fix so that the first correctly
77761         formatted FSF copyright statement is recognized no matter what
77762         appears before it.  Update documentation.
77763         * tests/test-update-copyright.sh: Test that.
77765 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77767         update-copyright: clean up code a little
77768         * build-aux/update-copyright: Append "_re" to the name of any
77769         variable holding a regular expression.
77770         Replace "old" and "new" with "stmt" in variable names.
77771         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
77772         handled correctly.
77773         Format code more consistently.
77775 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77777         update-copyright-tests: improve portability
77778         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
77779         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
77781 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
77783         update-copyright: support @copyright{} and &copy;
77784         * build-aux/update-copyright: Implement and document.
77785         * tests/test-update-copyright.sh: Test.
77787 2009-08-04  Jim Meyering  <meyering@redhat.com>
77789         update-copyright-tests: correctly test EOL=\r\n handling
77790         * tests/test-update-copyright.sh: Put \r at the end of some lines
77791         for the dos-eol tests.  Based on a patch by Joel E. Denny.
77793         maint.mk: make update-copyright exclusion list more configurable
77794         * top/maint.mk (update-copyright): Default to excluding COPYING,
77795         but allow an override, in case someone does want to update that file.
77797         maint.mk: don't update copyright date in COPYING
77798         * top/maint.mk (update-copyright): Exclude COPYING.
77800         maint.mk: add a copyright-updating rule
77801         * top/maint.mk (update-copyright): New rule.
77802         Derived from coreutils/Makefile.am.
77804         update-copyright: rename some variables
77805         * build-aux/update-copyright: Rename a few variables for clarity.
77806         Tweak syntax.  List Joel E. Denny as coauthor.
77808 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
77810         update-copyright: fix bug for 2-digit last year and add tests
77811         * build-aux/update-copyright: Fix bug.
77812         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
77813         specified.
77814         * modules/update-copyright-tests: New
77815         * tests/test-update-copyright.sh: New.
77817 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
77819         update-copyright: handle leading tabs in line prefix
77820         * build-aux/update-copyright: Count leading tabs as 8 spaces
77821         when computing margin.  This helps with the formatting of
77822         ChangeLogs, for example.
77823         Fix documentation a little.
77825 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
77827         update-copyright: support EOL=\r\n
77828         * build-aux/update-copyright: Implement that.
77830 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
77832         update-copyright: automatically format copyright statements
77833         * build-aux/update-copyright: Implement that.
77834         Also, be a little more predictable and safer by always failing
77835         when the full copyright format is not perfectly recognized as an
77836         unbroken whole.  Discussed at
77837         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
77838         Rewrite documentation.
77840 2009-08-03  Bruno Haible  <bruno@clisp.org>
77842         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
77844 2009-08-02  Bruno Haible  <bruno@clisp.org>
77846         Tests for module 'uname'.
77847         * modules/uname-tests: New file.
77848         * tests/test-uname.c: New file.
77850         New module 'uname'.
77851         * lib/uname.c: New file.
77852         * m4/uname.m4: New file.
77853         * modules/uname: New file.
77854         * doc/posix-functions/uname.texi: Mention the new module.
77856 2009-08-02  Bruno Haible  <bruno@clisp.org>
77858         Tests for module 'sys_utsname'.
77859         * modules/sys_utsname-tests: New file.
77860         * tests/test-sys_utsname.c: New file.
77862         New module 'sys_utsname'.
77863         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
77864         * m4/sys_utsname_h.m4: New file.
77865         * modules/sys_utsname: New file.
77866         * doc/posix-headers/sys_utsname.texi: Mention the new module.
77868 2009-08-02  Bruno Haible  <bruno@clisp.org>
77870         Implicitly initialize the sockets library.
77871         * lib/gethostname.c: Include sockets.h.
77872         (rpl_gethostname): Invoke gl_sockets_startup.
77873         * lib/socket.c: Include sockets.h.
77874         (rpl_socket): Invoke gl_sockets_startup.
77875         * modules/gethostname (Depends-on): Add sockets.
77876         * modules/socket (Depends-on): Likewise.
77877         * tests/test-poll.c: Don't include sockets.h.
77878         (main): Don't invoke gl_sockets_startup.
77879         * tests/test-select.c: Don't include sockets.h.
77880         (main): Don't invoke gl_sockets_startup.
77882 2009-08-02  Bruno Haible  <bruno@clisp.org>
77884         Allow multiple calls to gl_sockets_startup.
77885         * lib/sockets.c (initialized_sockets_version): New variable.
77886         (gl_sockets_startup): Do nothing if already called for this or a higher
77887         version.
77888         (gl_sockets_cleanup): Reset initialized_sockets_version.
77890 2009-08-03  Simon Josefsson  <simon@josefsson.org>
77892         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
77893         different project/version.
77895 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
77896             Bruno Haible  <bruno@clisp.org>
77898         Tests for module 'pipe-filter-gi'.
77899         * modules/pipe-filter-gi-tests: New file.
77900         * tests/test-pipe-filter-gi1.sh: New file.
77901         * tests/test-pipe-filter-gi1.c: New file.
77902         * tests/test-pipe-filter-gi2.sh: New file.
77903         * tests/test-pipe-filter-gi2-main.c: New file.
77904         * tests/test-pipe-filter-gi2-child.c: New file.
77906         New module 'pipe-filter-gi'.
77907         * lib/pipe-filter-gi.c: New file.
77908         * modules/pipe-filter-gi: New file.
77910 2009-08-02  Bruno Haible  <bruno@clisp.org>
77911             Paolo Bonzini  <bonzini@gnu.org>
77913         Tests for module 'pipe-filter-ii'.
77914         * modules/pipe-filter-ii-tests: New file.
77915         * tests/test-pipe-filter-ii1.sh: New file.
77916         * tests/test-pipe-filter-ii1.c: New file.
77917         * tests/test-pipe-filter-ii2.sh: New file.
77918         * tests/test-pipe-filter-ii2-main.c: New file.
77919         * tests/test-pipe-filter-ii2-child.c: New file.
77921         New module 'pipe-filter-ii'.
77922         * lib/pipe-filter.h: New file.
77923         * lib/pipe-filter-ii.c: New file.
77924         * lib/pipe-filter-aux.h: New file.
77925         * modules/pipe-filter-ii: New file.
77927 2009-08-02  Simon Josefsson  <simon@josefsson.org>
77929         * lib/gc-libgcrypt.c: Change copyright to FSF.
77930         * lib/gc-gnulib.c: Likewise.
77932 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
77934         * lib/gethostname.c: Include limits.h.
77936 2009-08-02  Simon Josefsson  <simon@josefsson.org>
77937             Bruno Haible  <bruno@clisp.org>
77939         Ensure HOST_NAME_MAX as part of the gethostname module.
77940         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
77941         define also HOST_NAME_MAX.
77942         * tests/test-gethostname.c: Include <limits.h>.
77943         (main): Check also HOST_NAME_MAX.
77944         * doc/posix-headers/limits.texi: Document the mingw problem.
77946 2009-08-02  Bruno Haible  <bruno@clisp.org>
77948         * lib/gethostname.c (gethostname): Fix handling of large len argument.
77949         Add comments.
77951 2009-03-31  Simon Josefsson  <simon@josefsson.org>
77953         * lib/gethostname.c: Add Windows wrapper.
77954         * m4/gethostname.m4: Look for gethostname in -lws2_32.
77955         * modules/gethostname: Depend on sys_socket & errno, for also
77956         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
77957         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
77959 2009-07-31  Jim Meyering  <meyering@redhat.com>
77961         getloadavg: fix symbol name in comment
77962         * lib/getloadavg.c: Correct a typo I introduced when adding
77963         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
77964         Matt Kraai spotted the problem.
77966 2009-07-29  Matt Kraai  <mkraai@beckman.com>
77968         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
77969         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
77970         code also if ! defined N_NAME_POINTER.
77971         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
77972         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
77973         but the n_name member is a 12-byte array.
77975 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
77977         update-copyright: generalize comment handling
77978         * build-aux/update-copyright: Handle copyright statements
77979         within more comment styles.
77980         Document usage.
77981         Report any file with an external copyright holder or parse failure.
77983 2009-07-29  Jim Meyering  <meyering@redhat.com>
77985         mktime: correct setting of REPLACE_MKTIME
77986         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
77988         update-copyright: new module
77989         * modules/update-copyright: New file.
77990         * build-aux/update-copyright: New file.
77991         * MODULES.html.sh (maint+release support): Add update-copyright.
77993 2009-07-27  Bruno Haible  <bruno@clisp.org>
77995         Fix compilation error when <ctime> is used and mktime is replaced.
77996         * lib/time.in.h (mktime): New declaration.
77997         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
77998         REPLACE_MKTIME instead of defining mktime in config.h.
77999         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
78000         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
78001         Reported by Ross McFarland <rwmcfa1@neces.com>.
78003 2009-07-27  Bruno Haible  <bruno@clisp.org>
78005         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
78006         Reported by Matt Kraai <mkraai@beckman.com>.
78008 2009-07-25  Jim Meyering  <meyering@redhat.com>
78010         maint.mk: avoid warnings about missing files
78011         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
78012         diagnostic when .prev-version does not exist.
78013         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
78014         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
78015         nonexistent cfg.mk.
78016         Suggestions from Simon Josefsson.
78018 2009-07-25  Bruno Haible  <bruno@clisp.org>
78020         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
78021         defined as macros. Needed on QNX 6.4.1.
78022         Reported by Matt Kraai <mkraai@beckman.com>.
78024 2009-07-23  Jim Meyering  <meyering@redhat.com>
78026         maint.mk: invoke "make dist" with a working value of XZ_OPT
78027         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
78029 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
78031         Make fseeko.c compile on QNX.
78032         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
78034 2009-07-22  Peter Simons  <simons@cryp.to>
78036         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
78037         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
78038         * lib/md4.h: Likewise.
78039         * lib/md5.h: Likewise.
78040         * lib/sha1.h: Likewise.
78041         * lib/sha256.h: Likewise.
78042         * lib/sha512.h: Likewise.
78044         tests-sha1: don't assign literal string to 'char *' variable
78045         * tests/test-sha1.c (main): Declare locals with "const" to match
78046         attributes of the right hand side.
78048 2009-07-21  Eric Blake  <ebb9@byu.net>
78050         dup2: fix more mingw problems
78051         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
78052         fd to itself.
78053         * doc/posix-functions/dup2.texi (dup2): Document the bug.
78054         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
78055         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
78056         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
78057         care of mingw bugs.
78059 2009-07-21  Jim Meyering  <meyering@redhat.com>
78061         vc-list-files: avoid failure when /bin/sh is dash
78062         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
78063         On some Debian based systems, /bin/sh is a symlink to dash, and running
78064         this command would omit the "/" following each 'tests' prefix:
78065           dash -x build-aux/vc-list-files -C . tests
78066         That is because bash and dash work differently:
78067           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
78068           bash ok
78069           dash odd
78071 2009-07-21  Eric Blake  <ebb9@byu.net>
78073         dup2-tests: test previous patch
78074         * modules/dup2-tests: New file.
78075         * tests/test-dup2.c: Likewise.
78076         * tests/test-open.c (main): Avoid unspecified behavior.
78077         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
78078         test.
78080         dup2: work around mingw and cygwin 1.5 bug
78081         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
78082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78083         * modules/unistd (Makefile.am): Substitute it.
78084         * lib/unistd.in.h (dup2): Declare the replacement.
78085         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
78086         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
78087         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
78088         * modules/execute (Depends-on): Add dup2.
78089         * modules/fseterr (Depends-on): Likewise.
78090         * modules/pipe (Depends-on): Likewise.
78091         * modules/posix_spawn-internal (Depends-on): Likewise.
78093 2009-07-21  Bruno Haible  <bruno@clisp.org>
78095         * modules/.gitattributes: New file.
78097 2009-07-20  Bruno Haible  <bruno@clisp.org>
78099         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
78100         (main): Use it.
78102 2009-07-20  Eric Blake  <ebb9@byu.net>
78104         test-pipe: make a bit more robust.
78105         * tests/test-pipe.c (myerr): Allow error messages regardless of
78106         what we do to stderr.
78107         (test_pipe): Rearrange to avoid deadlock.
78108         (child_main): Try a larger read, to ensure we avoided deadlock.
78109         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
78110         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
78111         if misused.
78113 2009-07-19  Jim Meyering  <meyering@redhat.com>
78115         fts: avoid false-positive cycle-detection
78116         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
78117         for each new command line argument.
78119 2009-07-19  Bruno Haible  <bruno@clisp.org>
78121         Fix build error on mingw with the modules sys_select and unistd.
78122         * modules/acl-tests (Depends-on): Add close.
78123         * modules/binary-io-tests (Depends-on): Likewise.
78124         * modules/closein-tests (Depends-on): Likewise.
78125         * modules/flock-tests (Depends-on): Likewise.
78126         * modules/fsync-tests (Depends-on): Likewise.
78127         * modules/lseek-tests (Depends-on): Likewise.
78128         * modules/pipe-tests (Depends-on): Likewise.
78129         * modules/posix_spawn-tests (Depends-on): Likewise.
78130         * modules/posix_spawnp-tests (Depends-on): Likewise.
78131         * modules/stat-time-tests (Depends-on): Likewise.
78132         * modules/yesno-tests (Depends-on): Likewise.
78134 2009-07-19  Bruno Haible  <bruno@clisp.org>
78136         Unify conditionals.
78137         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
78138         macros, not at the compiler macros.
78139         * lib/pipe.c: Likewise.
78140         * lib/execute.c: Likewise.
78141         * lib/spawni.c: Likewise.
78143 2009-07-19  Bruno Haible  <bruno@clisp.org>
78145         Fix handling of closed stdin/stdout/stderr on mingw.
78146         * lib/w32spawn.h: Include unistd.h.
78147         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
78148         file descriptor with O_NOINHERIT flag.
78149         (fd_safer_noinherit): New function, based on fd-safer.c.
78150         (dup_safer_noinherit): New function, based on dup-safer.c.
78151         (undup_safer_noinherit): New function.
78152         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
78153         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
78154         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
78155         instead of fd_safer.
78156         * tests/test-pipe.c: Include <windows.h>.
78157         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
78158         result.
78160         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
78161         from main.
78162         (test_pipe): Pass an extra argument for disambiguation.
78163         (main): Invoke parent_main or child_main.
78165         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
78166         consistently.
78168 2009-07-18  Eric Blake  <ebb9@byu.net>
78170         test-pipe: fix mingw build
78171         * tests/test-pipe.c (main): Avoid fcntl on mingw.
78173 2009-07-18  Bruno Haible  <bruno@clisp.org>
78175         * modules/pipe-tests (Makefile.am): Fix typo.
78177 2009-07-18  Eric Blake  <ebb9@byu.net>
78179         error: fix mingw build
78180         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
78181         Reported by Bruno Haible.
78183         error: avoid undefined use of stdout
78184         * lib/error.c (error, error_at_line): Check that fd 1 is open
78185         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
78186         is handling faults and the close_stdout module wants to report the
78187         detection of closed stdout as an error.
78189 2009-07-17  Eric Blake  <ebb9@byu.net>
78191         pipe: be robust in face of closed fds
78192         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
78193         should cause child to misbehave.
78194         * modules/pipe-tests: New module.
78195         * tests/test-pipe.c: New file.
78196         * tests/test-pipe.sh: New file.
78197         Reported by Akim Demaille.
78199 2009-07-14  Bruno Haible  <bruno@clisp.org>
78201         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
78202         Reported by anonymous kc.
78204 2009-07-07  Jim Meyering  <meyering@redhat.com>
78206         maint.mk: don't look for translatable strings in *.m4 or *.mk
78207         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
78208         when searching for translatable strings.
78210 2009-07-05  Jim Meyering  <meyering@redhat.com>
78212         remove superfluous parentheses in STREQ definition
78213         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
78214         * lib/getugroups.c (STREQ): Likewise.
78215         * lib/fnmatch.c (STREQ): Likewise.
78216         Spotted by Bruno Haible.
78218 2009-07-04  Jim Meyering  <meyering@redhat.com>
78220         argv-iter: new module
78221         * MODULES.html.sh: Add argv-iter.
78222         * lib/argv-iter.c, lib/argv-iter.h: New files.
78223         * modules/argv-iter: New file.
78224         * modules/argv-iter-tests: New file.
78225         * tests/test-argv-iter.c: Test it.
78227 2009-07-04  Bruno Haible  <bruno@clisp.org>
78229         Fix assertion.
78230         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
78231         contains more exact copies of a given entry than file2, leave the extra
78232         copies unpaired rather than aborting.
78233         Reported by Eric Blake.
78235 2009-07-02  Bruno Haible  <bruno@clisp.org>
78237         Speedup git-merge-changelog for git cherry-pick.
78238         * lib/git-merge-changelog.c (struct entries_mapping): New type.
78239         (entries_mapping_get): New function, extracted from compute_mapping.
78240         (entries_mapping_reverse_get): New function.
78241         (compute_mapping): Add a 'full' argument. Return the result in a
78242         'struct entries_mapping'.
78243         (main): Update. Access the mappings through entries_mapping_get.
78244         Reported by Eric Blake.
78246 2009-07-02  Bruno Haible  <bruno@clisp.org>
78248         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
78249         best_i.
78251 2009-07-02  Bruno Haible  <bruno@clisp.org>
78253         Speed up approximate search for matching ChangeLog entries.
78254         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
78255         argument. Call fstrcmp_bounded instead of fstrcmp.
78256         (compute_mapping, try_split_merged_entry, main): Update callers.
78258 2009-07-02  Bruno Haible  <bruno@clisp.org>
78260         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
78262 2009-06-30  Bruno Haible  <bruno@clisp.org>
78264         Reduce the number of uc_is_cased calls.
78265         * lib/unicase.h (casing_suffix_context_t): Add
78266         'first_char_except_ignorable' field.
78267         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
78268         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
78269         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
78270         Update initializer.
78271         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
78272         case-ignorable characters.
78273         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
78274         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
78275         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
78276         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
78277         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
78279 2009-06-30  Bruno Haible  <bruno@clisp.org>
78281         Tests for module 'unicase/ignorable'.
78282         * modules/unicase/ignorable-tests: New file.
78283         * tests/unicase/test-ignorable.c: New file, generated by
78284         gen-uni-tables.
78286         Tests for module 'unicase/cased'.
78287         * modules/unicase/cased-tests: New file.
78288         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
78289         * tests/unicase/test-predicate-part1.h: New file, derived from
78290         tests/unictype/test-predicate-part1.h.
78291         * tests/unicase/test-predicate-part2.h: New file, same as
78292         tests/unictype/test-predicate-part2.h.
78294         Fix evaluation of "Before C" condition of FINAL_SIGMA.
78295         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
78296         (output_casing_properties): New function.
78297         (main): Call it.
78298         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
78299         * lib/unicase/cased.c: Include unictype/bitmap.h.
78300         (uc_is_cased): Define through a bitmap lookup.
78301         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
78302         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
78303         (uc_is_case_ignorable): Define through a bitmap lookup.
78304         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
78305         lib/unictype/bitmap.h.
78306         (Depends-on): Add inline. Clean up.
78307         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
78308         lib/unictype/bitmap.h.
78309         (Depends-on): Add inline. Clean up.
78310         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
78311         recognition.
78312         * tests/unicase/test-u16-tolower.c (main): Likewise.
78313         * tests/unicase/test-u32-tolower.c (main): Likewise.
78315 2009-06-30  Bruno Haible  <bruno@clisp.org>
78317         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
78318         * lib/unicase/u16-casemap.c: Likewise.
78319         * lib/unicase/u32-casemap.c: Likewise.
78321 2009-06-29  Bruno Haible  <bruno@clisp.org>
78323         Define u32_casefold as a wrapper around u32_ct_casefold.
78324         * lib/unicase/u32-casefold.c: Update.
78325         * modules/unicase/u32-casefold (Depends-on): Add
78326         unicase/u32-ct-casefold, unicase/empty-prefix-context,
78327         unicase/empty-suffix-context. Clean up.
78329         Define u16_casefold as a wrapper around u16_ct_casefold.
78330         * lib/unicase/u16-casefold.c: Update.
78331         * modules/unicase/u16-casefold (Depends-on): Add
78332         unicase/u16-ct-casefold, unicase/empty-prefix-context,
78333         unicase/empty-suffix-context. Clean up.
78335         Define u8_casefold as a wrapper around u8_ct_casefold.
78336         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
78337         * lib/unicase/u8-casefold.c: Update.
78338         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
78339         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78341         Define u32_totitle as a wrapper around u32_ct_totitle.
78342         * lib/unicase/u32-totitle.c: Update.
78343         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
78344         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78346         Define u16_totitle as a wrapper around u16_ct_totitle.
78347         * lib/unicase/u16-totitle.c: Update.
78348         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
78349         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78351         Define u8_totitle as a wrapper around u8_ct_totitle.
78352         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
78353         functions.
78354         (FUNC): Delegate to U_CT_TOTITLE.
78355         * lib/unicase/u8-totitle.c: Update.
78356         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
78357         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78359         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
78360         invocation.
78361         * modules/unicase/u32-tolower (Depends-on): Add
78362         unicase/empty-prefix-context, unicase/empty-suffix-context.
78364         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
78365         invocation.
78366         * modules/unicase/u16-tolower (Depends-on): Add
78367         unicase/empty-prefix-context, unicase/empty-suffix-context.
78369         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
78370         * modules/unicase/u8-tolower (Depends-on): Add
78371         unicase/empty-prefix-context, unicase/empty-suffix-context.
78373         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
78374         invocation.
78375         * modules/unicase/u32-toupper (Depends-on): Add
78376         unicase/empty-prefix-context, unicase/empty-suffix-context.
78378         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
78379         invocation.
78380         * modules/unicase/u16-toupper (Depends-on): Add
78381         unicase/empty-prefix-context, unicase/empty-suffix-context.
78383         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
78384         * modules/unicase/u8-toupper (Depends-on): Add
78385         unicase/empty-prefix-context, unicase/empty-suffix-context.
78387         New module 'unicase/u32-ct-casefold'.
78388         * lib/unicase/u32-ct-casefold.c: New file.
78389         * modules/unicase/u32-ct-casefold: New file.
78391         New module 'unicase/u16-ct-casefold'.
78392         * lib/unicase/u16-ct-casefold.c: New file.
78393         * modules/unicase/u16-ct-casefold: New file.
78395         New module 'unicase/u8-ct-casefold'.
78396         * lib/unicase/u8-ct-casefold.c: New file.
78397         * lib/unicase/u-ct-casefold.h: New file, derived from
78398         lib/unicase/u-casefold.h.
78399         * modules/unicase/u8-ct-casefold: New file.
78401         New module 'unicase/u32-ct-totitle'.
78402         * lib/unicase/u32-ct-totitle.c: New file.
78403         * modules/unicase/u32-ct-totitle: New file.
78405         New module 'unicase/u16-ct-totitle'.
78406         * lib/unicase/u16-ct-totitle.c: New file.
78407         * modules/unicase/u16-ct-totitle: New file.
78409         New module 'unicase/u8-ct-totitle'.
78410         * lib/unicase/u8-ct-totitle.c: New file.
78411         * lib/unicase/u-ct-totitle.h: New file, derived from
78412         lib/unicase/u-totitle.h.
78413         * modules/unicase/u8-ct-totitle: New file.
78415         New module 'unicase/u32-ct-tolower'.
78416         * lib/unicase/u32-ct-tolower.c: New file.
78417         * modules/unicase/u32-ct-tolower: New file.
78419         New module 'unicase/u16-ct-tolower'.
78420         * lib/unicase/u16-ct-tolower.c: New file.
78421         * modules/unicase/u16-ct-tolower: New file.
78423         New module 'unicase/u8-ct-tolower'.
78424         * lib/unicase/u8-ct-tolower.c: New file.
78425         * modules/unicase/u8-ct-tolower: New file.
78427         New module 'unicase/u32-ct-toupper'.
78428         * lib/unicase/u32-ct-toupper.c: New file.
78429         * modules/unicase/u32-ct-toupper: New file.
78431         New module 'unicase/u16-ct-toupper'.
78432         * lib/unicase/u16-ct-toupper.c: New file.
78433         * modules/unicase/u16-ct-toupper: New file.
78435         New module 'unicase/u8-ct-toupper'.
78436         * lib/unicase/u8-ct-toupper.c: New file.
78437         * modules/unicase/u8-ct-toupper: New file.
78439         Add context arguments to u*_casemap functions.
78440         * lib/unicase/unicasemap.h: Include unicase.h.
78441         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
78442         suffix_context arguments.
78443         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
78444         functions.
78445         (FUNC): Add prefix_context and suffix_context arguments. Use
78446         uc_is_cased and uc_is_case_ignorable.
78447         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
78448         * lib/unicase/u16-casemap.c: Likewise.
78449         * lib/unicase/u32-casemap.c: Likewise.
78450         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
78451         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78452         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
78453         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78454         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
78455         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78457         New module 'unicase/u32-suffix-context'.
78458         * lib/unicase/u32-suffix-context.c: New file.
78459         * modules/unicase/u32-suffix-context: New file.
78461         New module 'unicase/u16-suffix-context'.
78462         * lib/unicase/u16-suffix-context.c: New file.
78463         * modules/unicase/u16-suffix-context: New file.
78465         New module 'unicase/u8-suffix-context'.
78466         * lib/unicase/u8-suffix-context.c: New file.
78467         * lib/unicase/u-suffix-context.h: New file.
78468         * modules/unicase/u8-suffix-context: New file.
78470         New module 'unicase/empty-suffix-context'.
78471         * lib/unicase/empty-suffix-context.c: New file.
78472         * modules/unicase/empty-suffix-context: New file.
78474         New module 'unicase/u32-prefix-context'.
78475         * lib/unicase/u32-prefix-context.c: New file.
78476         * modules/unicase/u32-prefix-context: New file.
78478         New module 'unicase/u16-prefix-context'.
78479         * lib/unicase/u16-prefix-context.c: New file.
78480         * modules/unicase/u16-prefix-context: New file.
78482         New module 'unicase/u8-prefix-context'.
78483         * lib/unicase/u8-prefix-context.c: New file.
78484         * lib/unicase/u-prefix-context.h: New file.
78485         * lib/unicase/context.h: New file.
78486         * modules/unicase/u8-prefix-context: New file.
78488         New module 'unicase/empty-prefix-context'.
78489         * lib/unicase/empty-prefix-context.c: New file.
78490         * modules/unicase/empty-prefix-context: New file.
78492         New module 'unicase/ignorable'.
78493         * lib/unicase/ignorable.c: New file.
78494         * modules/unicase/ignorable: New file.
78496         New module 'unicase/cased'.
78497         * lib/unicase/caseprop.h: New file.
78498         * lib/unicase/cased.c: New file.
78499         * modules/unicase/cased: New file.
78501         New functions for case mapping of substrings.
78502         * lib/unicase.h (casing_prefix_context_t): New type.
78503         (unicase_empty_prefix_context): New variable.
78504         (u8_casing_prefix_context, u16_casing_prefix_context,
78505         u32_casing_prefix_context, u8_casing_prefixes_context,
78506         u16_casing_prefixes_context, u32_casing_prefixes_context): New
78507         declarations.
78508         (casing_suffix_context_t): New type.
78509         (unicase_empty_suffix_context): New variable.
78510         (u8_casing_suffix_context, u16_casing_suffix_context,
78511         u32_casing_suffix_context, u8_casing_suffixes_context,
78512         u16_casing_suffixes_context, u32_casing_suffixes_context,
78513         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
78514         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
78515         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
78516         declarations.
78518 2009-06-28  Jim Meyering  <meyering@redhat.com>
78520         boostrap: indent only with spaces
78521         * build-aux/bootstrap: Indent only with spaces, never TABs.
78523         bootstrap: split long lines
78524         * build-aux/bootstrap: Keep line length < 80.
78526         bootstrap: sync from coreutils
78527         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
78528         just as autoreconf does.  Verify a list of prerequisite
78529         package-name,version-number pairs if defined in bootstrap.conf.
78530         Refer to README-prereq, if prerequisites are not satisfied.
78532 2009-06-27  Eric Blake  <ebb9@byu.net>
78534         tests: add test for bogus NULL definition
78535         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
78536         * tests/test-stdlib.c: Likewise.
78537         * tests/test-string.c: Likewise.
78538         * tests/test-locale.c: Likewise.
78539         * tests/test-unistd.c: Likewise.
78540         * modules/stdio-tests (Depends-on): Add verify.
78541         * modules/stdlib-tests (Depends-on): Likewise.
78542         * modules/string-tests (Depends-on): Likewise.
78543         * modules/locale-tests (Depends-on): Likewise.
78544         * modules/unistd-tests (Depends-on): Likewise.
78546 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
78548         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
78549         self-explaining comment.
78550         * m4/selinux-selinux-h: Update serial.
78551         (gl_LIBSELINUX): New macro, adding a warning for missing development
78552         packages to code extracted from...
78553         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
78554         Add warning for missing development packages here, too.
78556 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
78558         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
78560 2009-06-25  Eric Blake  <ebb9@byu.net>
78562         version-etc: fix regression
78563         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
78564         gcc.
78565         (version_etc): Use it, to catch bugs with trailing NULL.
78566         * lib/version-etc.c (version_etc_arn): Delete unused argument.
78567         (version_etc_va): Fix logic bug.
78568         * modules/version-etc-tests: Add test.
78569         * tests/test-version-etc.c: New file.
78570         * tests/test-version-etc.sh: Likewise.
78572 2009-06-25  Sam Steingold  <sds@gnu.org>
78574         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
78575         mbtowc declaration.
78577 2009-06-25  Eric Blake  <ebb9@byu.net>
78579         fpurge: migrate into <stdio.h>
78580         * lib/fpurge.h: Delete...
78581         * lib/stdio.in.h (fpurge): ...and declare here, instead.
78582         * lib/fpurge.c (fpurge): Change declaring header.
78583         * modules/fpurge (Files): Drop deleted file.
78584         (Depends-on): Add stdio.
78585         (configure.ac): Set witness.
78586         * modules/stdio (Makefile.am): Support fpurge macros.
78587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
78588         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
78589         * lib/fflush.c: Update client.
78590         * tests/test-fpurge.c: Likewise.
78591         * NEWS: Mention the change.
78593 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78595         * lib/argp-version-etc.c (program_authors): Add const
78596         qualifier.
78597         * lib/version-etc.c: Fix typos in the comments.
78598         * modules/argp-version-etc: Depends on version-etc.
78600 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78602         argp-version-etc: new module.
78604         * lib/argp-version-etc.c: New file.
78605         * lib/argp-version-etc.h: New file.
78606         * modules/argp-version-etc: New file.
78607         * modules/argp-version-etc-tests: New file.
78608         * tests/test-argp-version-etc.c: New test.
78609         * tests/test-argp-version-etc-1.sh: New test.
78611 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78613         Provide additional interfaces and documentation for version-etc
78614         module.
78616         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
78617         interfaces.
78618         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
78619         prototypes.
78621 2009-06-24  Bruno Haible  <bruno@clisp.org>
78623         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
78624         HAVE_LIB${NAME} macro.
78625         Reported by Sam Steingold <sds@gnu.org>.
78627 2009-06-23  Simon Josefsson  <simon@josefsson.org>
78629         * modules/hash-tests (test_hash_LDADD): Link to libintl when
78630         needed.
78632 2009-06-21  Bruno Haible  <bruno@clisp.org>
78634         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
78635         work.
78636         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
78637         together with LIB${NAME}, LTLIB${NAME}.
78638         Reported by Sam Steingold <sds@gnu.org>.
78640 2009-06-20  Jim Meyering  <meyering@redhat.com>
78642         tests: make sc_require_test_exit_idiom more generic
78643         * top/maint.mk (Exit_witness_file): New overridable variable.
78644         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
78645         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
78647 2009-06-19  Jim Meyering  <meyering@redhat.com>
78649         hash: reverse order of src/dst parameters in an internal interface
78650         * lib/hash.c (transfer_entries): Reverse order of parameters to
78651         put DST before SRC.  Adjust callers.
78653         tests: test-hash: avoid wholesale duplication
78654         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
78655         Instead, use a loop and add a single conditional.
78657         tests: test-hash: allow seed selection via a command line argument
78658         * tests/test-hash.c (get_seed): New function.
78659         (main): Use it.
78661 2009-06-19  Eric Blake  <ebb9@byu.net>
78663         hash: avoid memory leak on allocation failure
78664         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
78665         failure.  Factor repeated algorithm...
78666         (transfer_entries): ...into new helper routine.
78667         (hash_delete): React to hash_rehash return value.
78669         hash: reduce memory pressure in hash_rehash no-op case
78670         * lib/hash.c (next_prime): Avoid overflow.
78671         (hash_initialize): Factor bucket size computation...
78672         (compute_bucket_size): ...into new helper function.
78673         (hash_rehash): Use new function and open coding to reduce memory
78674         pressure, and avoid a memory leak in USE_OBSTACK code.
78675         Reported by Jim Meyering.
78677 2009-06-18  Eric Blake  <ebb9@byu.net>
78679         hash: make rotation more obvious
78680         * modules/hash (Depends-on): Add bitrotate and stdint.
78681         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
78682         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
78683         (SIZE_MAX): Rely on headers for definition.
78684         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
78685         (raw_hasher): Use rotr_sz.
78686         Suggested by Jim Meyering.
78688         hash: fix memory leak in last patch
78689         * lib/hash.c (hash_rehash): Avoid memory leak.
78691         hash: avoid no-op rehashing
78692         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
78694         hash: provide default callback functions
78695         * lib/hash.c (raw_hasher, raw_comparator): New functions.
78696         (hash_initialize): Use them as defaults.
78697         * tests/test-hash.c (main): Test this.
78699         hash: minor optimization
78700         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
78701         when possible.
78702         (hash_initialize): Document this promise.
78703         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
78704         * tests/test-hash.c (hash_compare_strings): Test this.
78706 2009-06-18  Bruno Haible  <bruno@clisp.org>
78708         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
78709         going to be replaced anyway.
78711 2009-06-18  Bruno Haible  <bruno@clisp.org>
78713         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
78714         in one place.
78715         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
78716         be replaced anyway.
78718 2009-06-18  Eric Blake  <ebb9@byu.net>
78720         hash: check for resize before insertion
78721         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
78722         threshold before insertion, so that a pathological hash_rehash
78723         that fills every bucket can still trigger another rehash.
78725 2009-06-18  Jim Meyering  <meyering@redhat.com>
78727         hash-tests: add a loop around the small tests
78728         * tests/test-hash.c (main): Repeat small tests with selected
78729         small initial table sizes.
78731 2009-06-17  Eric Blake  <ebb9@byu.net>
78733         hash: minor cleanups
78734         * lib/hash.h (hash_entry): Make opaque, by moving...
78735         * lib/hash.c (hash_entry): ...here.
78736         (hash_insert): Clarify restrictions on what can be inserted.
78737         (hash_get_next): Clarify when it is safe to remove an element
78738         during traversal.
78739         (check_tuning): Skip verification when tuning is known safe.
78740         (hash_initialize): Clarify restrictions on tuning.
78742 2009-06-17  Jim Meyering  <jim@meyering.net>
78743         and Eric Blake  <ebb9@byu.net>
78745         hash-tests: new module
78746         * modules/hash-tests: New file.
78747         * tests/test-hash.c: New file.
78749 2009-06-17  Eric Blake  <ebb9@byu.net>
78751         strstr-simple: document new module
78752         * MODULES.html.sh: Document new module.
78754         strstr, strcasestr: replace on platforms with broken memchr
78755         * modules/strstr: Split into...
78756         * modules/strstr-simple: ...new module that does not care about
78757         performance, but does care about glibc bug.
78758         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
78759         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
78760         if platform memchr is broken, per Debian bug 521737.
78761         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
78762         memchr.
78763         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
78764         * doc/posix-functions/strstr.texi (strstr): Document the fix.
78765         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
78766         * modules/mountlist (Depends-on): Add strstr-simple.
78767         * modules/gen-uni-tables (Depends-on): Likewise.
78768         * modules/argz (Depends-on): Add strstr.
78770 2009-06-17  Bruno Haible  <bruno@clisp.org>
78772         * modules/posix_spawn-internal (Depends-on): Add errno.
78774 2009-06-17  Bruno Haible  <bruno@clisp.org>
78776         Define missing ESTALE on Interix 3.5.
78777         * lib/errno.in.h (ESTALE): Assign a value if missing.
78778         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
78779         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
78780         missing.
78781         * doc/posix-headers/errno.texi: Mention the Interix bug.
78782         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
78784 2009-06-15  Eric Blake  <ebb9@byu.net>
78786         memchr, memchr2: add valgrind exception
78787         * lib/memchr.valgrind: New file.
78788         * lib/memchr2.valgrind: New file.
78789         * modules/memchr (Files): Distribute valgrind file.
78790         * modules/memchr2 (Files): Likewise.
78792         docs: memchr is no longer obsolete
78793         * MODULES.html.sh: Move memchr from obsolete to string.h section.
78794         * lib/string.in.h (memchr): Simplify logic.
78796 2009-06-14  Jim Meyering  <meyering@redhat.com>
78798         link-follow: fix the "checking..." message to not mention trailing slash
78799         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
78800         never considered trailing slashes.
78802 2009-06-14  Bruno Haible  <bruno@clisp.org>
78804         * m4/memchr.m4: Mention also the bug on IA-64.
78805         * doc/posix-functions/memchr.texi: Likewise.
78807 2009-06-12  Eric Blake  <ebb9@byu.net>
78809         memchr: detect broken x86_64 and alpha implementations
78810         * modules/memchr-tests (Depends-on): Move mmap detection...
78811         * modules/memchr (Depends-on): ...here.
78812         (configure.ac): Set indicator.
78813         * lib/string.in.h (memchr): Declare replacement.
78814         * modules/string (Makefile.am): Trigger replacement.
78815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
78816         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
78817         bugs.
78818         * doc/posix-functions/memchr.texi (memchr): Document the bug.
78819         * modules/getpagesize (License): Relax license.
78821 2009-06-11  Bruno Haible  <bruno@clisp.org>
78823         * lib/idpriv.h: Add more references.
78825 2009-06-08  Bruno Haible  <bruno@clisp.org>
78827         Tests for module 'idpriv-droptemp'.
78828         * modules/idpriv-droptemp-tests: New file.
78829         * tests/test-idpriv-droptemp.sh: New file.
78830         * tests/test-idpriv-droptemp.su.sh: New file.
78831         * tests/test-idpriv-droptemp.c: New file.
78833         New module 'idpriv-droptemp'.
78834         * lib/idpriv-droptemp.c: New file.
78835         * modules/idpriv-droptemp: New file.
78837 2009-06-08  Bruno Haible  <bruno@clisp.org>
78839         Tests for module 'idpriv-drop'.
78840         * modules/idpriv-drop-tests: New file.
78841         * tests/test-idpriv-drop.sh: New file.
78842         * tests/test-idpriv-drop.su.sh: New file.
78843         * tests/test-idpriv-drop.c: New file.
78845         New module 'idpriv-drop'.
78846         * lib/idpriv.h: New file.
78847         * lib-idpriv-drop.c: New file.
78848         * m4/idpriv.m4: New file.
78849         * modules/idpriv-drop: New file.
78851 2009-06-08  Bruno Haible  <bruno@clisp.org>
78853         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
78854         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
78855         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
78856         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
78857         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
78858         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
78859         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
78861 2009-06-08  Eric Blake  <ebb9@byu.net>
78863         test-strstr: use memory fence, when possible
78864         * tests/test-strstr.c (main): Use memory fence, in order to be
78865         more likely to trigger Debian bug 521737.
78866         * modules/strstr-tests (Files): Pull in additional files.
78868         memchr: no longer obsolete, for wider field testing
78869         * modules/memchr (Status, Notice): Delete, this module is no
78870         longer obsolete.
78871         * modules/vasnprintf (Depends-on): Add memchr.
78873 2009-06-07  Jim Meyering  <meyering@redhat.com>
78875         hash: declare some functions with the warn_unused_result attribute
78876         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
78878 2009-06-07  Bruno Haible  <bruno@clisp.org>
78880         * tests/test-alignof.c: Don't test int64_t if it does not exist.
78881         Reported by Eric Blake.
78883 2009-06-06  Eric Blake  <ebb9@byu.net>
78885         test-alignof: fix typo with long double
78886         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
78887         compiler error.
78889 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
78891         Escape non-texinfo { and }s.
78892         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
78893         markup error.
78895 2009-06-04  Jim Meyering  <meyering@redhat.com>
78897         gitlog-to-changelog: don't infloop on an empty commit log
78898         * build-aux/gitlog-to-changelog: Warn about an empty log message.
78899         Reported by Boris Petersen <transacid@centerim.org>.
78901 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
78903         version-etc: extend for packagers
78904         Add three new configure options, intended for packagers:
78905           --with-packager="packager name"
78906           --with-packager-version="packager-specific version"
78907           --with-packager-bug-reports="packager bug reporting"
78908         An example with coreutils:
78909           $ ./configure \
78910             --with-packager=Gentoo \
78911             --with-packager-bug-report=http://bugs.gentoo.org/ \
78912             --with-packager-version="patchset 1.6"
78913           $ ./src/ls --version | head -n2
78914           ls (GNU coreutils) 7.1-dirty
78915           Packaged by Gentoo (patchset 1.6)
78916         Note that the bug reporting info via --help doesn't show up because
78917         coreutils uses its own custom emit_bug_reporting_address() implementation
78918         in src/system.h.  If it didn't, it'd look like:
78919           $ ./src/ls --help | tail -n4
78920           Report bugs to <bug-coreutils@gnu.org>.
78921           Report Gentoo bugs to <http://bugs.gentoo.org/>.
78922           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
78923           General help using GNU software: <http://www.gnu.org/gethelp/>.
78924         * lib/version-etc.c: Print new information, if provided.
78925         * m4/version-etc.m4: New file.
78926         * modules/version-etc (Files): Add m4/version-etc.m4.
78927         (configure.ac): Add gl_VERSION_ETC.
78929 2009-05-31  Bruno Haible  <bruno@clisp.org>
78931         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
78932         and 'int64_t'.
78933         * modules/alignof-tests (Dependencies): Add stdint.
78934         Reported by Eric Blake.
78936 2009-05-31  Bruno Haible  <bruno@clisp.org>
78938         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
78939         restriction due to compiler bugs.
78940         Reported by Eric Blake.
78942 2009-05-31  Simon Josefsson  <simon@josefsson.org>
78943             Bruno Haible  <bruno@clisp.org>
78945         Fix test-alignof failure.
78946         * lib/alignof.h (alignof_slot): New macro.
78947         (alignof_type): New macro, with the same semantics as the previous
78948         'alignof'.
78949         (alignof): Alias to alignof_slot.
78950         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
78951         check that the results are usable as constant expressions.
78953 2009-05-31  Bruno Haible  <bruno@clisp.org>
78955         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
78956         * tests/test-memchr.c (main): Check that memchr does not read past the
78957         first occurrence of the byte.
78958         * tests/test-strstr.c (main): Update comment.
78959         Suggested by Eric Blake.
78961 2009-05-30  Bruno Haible  <bruno@clisp.org>
78963         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
78964         detail how to use dumpbin.
78965         Reported by David Byron <dbyron@dbyron.com>.
78967 2009-06-02  Simon Josefsson  <simon@josefsson.org>
78969         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
78971 2009-06-02  Simon Josefsson  <simon@josefsson.org>
78973         * m4/manywarnings.m4: Add GCC 4.4 warnings.
78975 2009-05-28  Bruno Haible  <bruno@clisp.org>
78977         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
78978         build-aux/ files.
78980 2009-05-28  Simon Josefsson  <simon@josefsson.org>
78982         * gnulib-tool (func_import): Transform license on build-aux/ files too.
78984 2009-05-27  Simon Josefsson  <simon@josefsson.org>
78986         * gnulib-tool (sed_transform_main_lib_file)
78987         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
78988         regexps.
78990 2009-05-26  Simon Josefsson  <simon@josefsson.org>
78992         * tests/test-strstr.c: Add another self-test.
78993         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
78994         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
78996 2009-05-23  Bruno Haible  <bruno@clisp.org>
78998         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
78999         change.
79001 2009-05-21  Bruno Haible  <bruno@clisp.org>
79003         Simplify use of mode_t varargs.
79004         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
79005         uses 'mode_t' or 'int'.
79006         * lib/openat.c (openat): Likewise.
79007         * lib/open-safer.c (open_safer): Likewise.
79008         * m4/mode_t.m4: New file.
79009         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
79010         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
79011         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
79012         * modules/open (Files): Add m4/mode_t.m4.
79013         * modules/openat (Files): Likewise.
79014         * modules/fcntl-safer (Files): Likewise.
79015         Suggested by Eric Blake.
79017 2009-05-21  Pádraig Brady  <P@draigbrady.com>
79019         * doc/glibc-functions/fallocate.texi: New file.
79020         * doc/gnulib.texi: Include it.
79022 2009-05-21  Eric Blake  <ebb9@byu.net>
79023             Bruno Haible  <bruno@clisp.org>
79025         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
79026         invocations.
79027         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79029 2009-05-21  Eric Blake  <ebb9@byu.net>
79030             Bruno Haible  <bruno@clisp.org>
79032         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
79033         include_next. Fix of 2008-11-20 commit.
79034         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
79035         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
79036         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
79037         NEXT_MATH_H.
79038         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
79039         instead of NEXT_MATH_H.
79041 2009-05-21  Bruno Haible  <bruno@clisp.org>
79043         Avoid redefinition warnings for SIZE_MAX.
79044         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
79045         Reported by Simon Josefsson.
79047 2009-05-21  Bruno Haible  <bruno@clisp.org>
79049         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
79050         AC_CACHE_VAL.
79052 2009-05-20  Bruno Haible  <bruno@clisp.org>
79054         Make zeroptr.h work on mingw.
79055         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
79056         mprotect.
79057         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
79058         * modules/memchr2-tests (configure.ac): Likewise.
79059         * modules/memcmp-tests (configure.ac): Likewise.
79060         * modules/memmem-tests (configure.ac): Likewise.
79061         * modules/memrchr-tests (configure.ac): Likewise.
79062         Reported by Simon Josefsson.
79064 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79066         * tests/test-glob.c: Include string.h for strcmp prototype.
79068 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79070         * modules/getdelim (Depends-on): Add explicit stdint, although it
79071         was implicitly already pulled in via realloc-posix.
79072         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
79074 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79076         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
79077         G. Christensen" <tgc@jupiterrise.com>.
79078         * m4/sys_socket_h.m4: Check for sa_family_t.
79079         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
79080         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
79081         * tests/test-sys_socket.c: Check that sa_family_t works.
79083 2009-05-18  Eric Blake  <ebb9@byu.net>
79085         maint.mk: allow gnulib_dir in VPATH build
79086         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
79088 2009-05-15  Jim Meyering  <meyering@redhat.com>
79090         maint.mk: Give gnulib_dir a default definition.
79091         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
79092         Thus, most packages no longer need to specify this variable in cfg.mk
79094 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
79096         rename.m4: fix typos that would make non-mingw cross-configure fail
79097         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
79099 2009-05-13  Eric Blake  <ebb9@byu.net>
79101         mmap-anon: avoid out-of-order autoconf expansion
79102         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
79103         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
79104         * modules/memchr-tests (Depends-on): Add extensions.
79105         * modules/memchr2-tests (Depends-on): Add extensions.
79106         * modules/memcmp-tests (Depends-on): Add extensions.
79107         * modules/memmem-tests (Depends-on): Add extensions.
79108         * modules/memrchr-tests (Depends-on): Add extensions.
79110 2009-05-13  Bruno Haible  <bruno@clisp.org>
79112         Make some tests ISO C 99 compliant.
79113         * tests/zerosize-ptr.h: New file.
79114         * tests/test-memchr.c: Include zerosize-ptr.h.
79115         (main): Use a zero-size object pointer instead of NULL.
79116         * tests/test-memchr2.c: Include zerosize-ptr.h.
79117         (main): Use a zero-size object pointer instead of NULL.
79118         * tests/test-memcmp.c: Include zerosize-ptr.h.
79119         (main): Use a zero-size object pointer instead of NULL.
79120         * tests/test-memmem.c: Include zerosize-ptr.h.
79121         (main): Use a zero-size object pointer instead of NULL.
79122         * tests/test-memrchr.c: Include zerosize-ptr.h.
79123         (main): Use a zero-size object pointer instead of NULL.
79124         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
79125         m4/mmap-anon.m4.
79126         (Depends-on): Add getpagesize.
79127         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79128         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
79129         m4/mmap-anon.m4.
79130         (Depends-on): Add getpagesize.
79131         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79132         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
79133         m4/mmap-anon.m4.
79134         (Depends-on): Add getpagesize.
79135         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79136         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
79137         m4/mmap-anon.m4.
79138         (Depends-on): Add getpagesize.
79139         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79140         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
79141         m4/mmap-anon.m4.
79142         (Depends-on): Add getpagesize.
79143         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79145 2009-05-12  Bruno Haible  <bruno@clisp.org>
79147         Tests for module 'alignof'.
79148         * modules/alignof-tests: New file.
79149         * tests/test-alignof.c: New file.
79151 2009-05-12  Bruno Haible  <bruno@clisp.org>
79153         Fix alignof macro.
79154         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
79155         vendor compilers that are always correct.
79157 2009-05-12  Bruno Haible  <bruno@clisp.org>
79159         Make the MAP_ANONYMOUS detection work on HP-UX 11.
79160         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
79161         not whether its fully works.
79163 2009-05-12  Bruno Haible  <bruno@clisp.org>
79165         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
79167 2009-05-12  Jim Meyering  <meyering@redhat.com>
79169         * top/maint.mk: Adjust backslash alignment.
79171 2009-05-11  Simon Josefsson  <simon@josefsson.org>
79173         * top/maint.mk: Make $(srcdir)/build-aux configurable.
79175 2009-05-11  Eric Blake  <ebb9@byu.net>
79177         argp: avoid undefined behavior
79178         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
79179         macros.
79181 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79183         * tests/test-vc-list-files-git.sh: Do git config of user.email and
79184         user.name to prevent git commit from complaining.
79186 2009-05-10  Bruno Haible  <bruno@clisp.org>
79188         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
79189         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
79190         it rewrites every file name only once.
79191         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
79193 2009-05-08  Bruno Haible  <bruno@clisp.org>
79195         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
79196         instead of 'max'.
79198 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79200         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
79201         sockaddr_storage test.
79203 2009-05-07  Simon Josefsson  <simon@josefsson.org>
79205         * modules/sys_socket (Makefile.am): Substitute
79206         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
79207         * m4/sys_socket_h.m4: Check for sockaddr_storage.
79208         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
79209         * tests/test-sys_socket.c: Check sockaddr_storage.
79211 2009-05-08  Bruno Haible  <bruno@clisp.org>
79213         New module 'alignof'.
79214         * lib/alignof.h: New file.
79215         * modules/alignof: New file.
79217 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79218             Bruno Haible  <bruno@clisp.org>
79220         Fix test-file-has-acl on FreeBSD.
79221         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
79222         mask is implicitly added.
79223         * tests/test-file-has-acl.c: Include <signal.h>.
79224         (main): Terminate the test after 5 seconds.
79225         * modules/acl-tests (configure.ac): Check for alarm function.
79227 2009-05-04  Bruno Haible  <bruno@clisp.org>
79229         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
79230         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
79231         * modules/errno (configure.ac): Drop AC_REQUIRE.
79232         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
79233         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
79235 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79237         * modules/glob-tests: New module.
79238         * tests/test-glob.c: Add.
79240 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79242         * modules/fnmatch-tests: New module.
79243         * tests/test-fnmatch.c: Add.
79245 2009-05-04  Eric Blake  <ebb9@byu.net>
79247         maint: make the new no-submodule-changes rule VPATH-safe
79248         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
79250 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79251             Bruno Haible  <bruno@clisp.org>
79253         acl: Fix infinite loop on FreeBSD.
79254         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
79255         of return value from acl_get_entry.
79256         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
79257         Likewise.
79259 2009-05-03  Bruno Haible  <bruno@clisp.org>
79261         * lib/acl-internal.h (acl_entries): Clarify return value.
79262         * lib/acl_entries.c (acl_entries): Likewise.
79264 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79266         Bug fix in acl module.
79267         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
79269 2009-05-03  Bruno Haible  <bruno@clisp.org>
79271         Create gperf-generated file in the source dir, not in the build dir.
79272         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
79273         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
79274         * modules/unicase/locale-language (unicase/locale-languages.h):
79275         Likewise.
79276         * modules/unicase/special-casing (unicase/special-casing-table.h):
79277         Likewise.
79278         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
79279         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
79280         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
79281         Reported by Ralf Wildenhues.
79283 2009-05-03  Bruno Haible  <bruno@clisp.org>
79285         * modules/fnmatch (Description, configure.ac): Taken from
79286         fnmatch-posix.
79287         * modules/fnmatch-posix: Turn into a symbolic reference to the
79288         'fnmatch' module, and deprecate.
79289         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
79291 2009-05-03  Bruno Haible  <bruno@clisp.org>
79293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
79294         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
79295         Reported by Ralf Wildenhues.
79297 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79299         * m4/fnmatch.m4: Fix fnmatch re-define.
79301 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79303         priv-set: new module and tests; adapt write-any-file
79304         * lib/priv-set.c: New file.
79305         * lib/priv-set.h: New file.
79306         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
79307         * lib/write-any-file.c: Simplify by using priv-set module.
79308         * m4/priv-set.m4: New file.
79309         * modules/priv-set: New file.
79310         * modules/unlinkdir: Add dependency on priv-set module.
79311         * modules/write-any-file: Likewise.
79313         Tests for module 'priv-set'.
79314         * modules/priv-set-tests: New file.
79315         * tests/test-priv-set.c: New file.
79317 2009-05-03  Jim Meyering  <meyering@redhat.com>
79318             Bruno Haible  <bruno@clisp.org>
79320         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
79321         use the converted UTF-8 variant of the name instead.
79323 2009-05-03  Jim Meyering  <meyering@redhat.com>
79325         tests: tighten some getdate tests
79326         * tests/test-getdate.c (main): Tighten tests: require equality,
79327         not just greater than.  Set TZ envvar to UTC0.
79329 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
79331         getdate: correctly interpret "next monday" when run on a Monday
79332         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
79333         that e.g., "next tues" (when run on a tuesday) results in a date
79334         that is one week in the future, and not today's date.
79335         I.e., add a week when the wday is the same as the current one.
79336         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
79337         and earlier by Martin Bernreuther and Jan Minář.
79338         * tests/test-getdate.c (main): Check that "next DAY" is always in
79339         the future and that "last DAY" is always in the past.
79341 2009-05-02  Jim Meyering  <meyering@redhat.com>
79343         build: ensure that a release build fails when a submodule is unclean
79344         * top/maint.mk (no-submodule-changes): New rule.
79345         (alpha beta major): Depend on it.
79347 2009-05-02  Bruno Haible  <bruno@clisp.org>
79349         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
79350         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
79351         shell variable gl_fnmatch_required to detect which variant is
79352         requested.
79353         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
79354         gl_FUNC_FNMATCH_POSIX.
79355         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
79356         exclude fnmatch-posix.
79358 2009-05-02  Bruno Haible  <bruno@clisp.org>
79360         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
79361         * modules/mbsrtowcs (License): Change to LGPLv2+.
79362         * modules/strnlen1 (License): Likewise.
79363         Reported by Simon Josefsson.
79365 2009-05-02  Bruno Haible  <bruno@clisp.org>
79367         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
79368         "cross".
79369         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
79370         gnulib-tool was called with option --source-base=lib.
79372 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79374         Use automake *-local hooks without commands, for extensibility.
79375         * modules/localcharset (Makefile.am): Rename install-exec-local
79376         rule to install-exec-localcharset, and make it a prerequisite of
79377         install-exec-local.  Likewise, rename the uninstall-local rule to
79378         uninstall-localcharset, and make it a prerequisite of the former.
79380 2009-05-01  Bruno Haible  <bruno@clisp.org>
79382         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
79383         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79384         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
79385         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
79386         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
79387         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79388         m4/locale-zh.m4, m4/codeset.m4.
79390         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79391         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
79392         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79393         m4/locale-zh.m4.
79395         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
79396         REPLACE_WCRTOMB if mbstate_t must be replaced.
79397         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
79398         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
79400 2009-05-01  Bruno Haible  <bruno@clisp.org>
79402         Avoid compiler warnings when redefining macros defined by <libintl.h>.
79403         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
79404         dngettext, dcngettext, textdomain, bindtextdomain,
79405         bind_textdomain_codeset): Undefine before redefining.
79407 2009-04-30  Bruno Haible  <bruno@clisp.org>
79409         Fix bug introduced on 2009-04-25.
79410         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
79411         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
79412         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
79413         is defined.
79414         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
79415         is defined.
79416         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
79417         is defined.
79418         Reported by Elbert_Pol <elbert.pol@gmail.com>.
79420 2009-04-28  Bruno Haible  <bruno@clisp.org>
79422         Comment tweaks.
79423         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
79424         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
79425         * lib/unicase.h (u*_casexfrm): Likewise.
79426         Reported by Paolo Bonzini.
79428 2009-04-28  Bruno Haible  <bruno@clisp.org>
79430         Fix a compilation error.
79431         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
79432         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
79433         Reported by Jim Meyering.
79435 2009-04-27  Bruno Haible  <bruno@clisp.org>
79437         New module 'libunistring'.
79438         * modules/libunistring: New file.
79439         * m4/libunistring.m4: New file.
79440         * MODULES.html.sh (Unicode string functions): Add it.
79442 2009-04-27  Eric Blake  <ebb9@byu.net>
79444         maint.mk: allow package-specific header to provide <config.h>
79445         * top/maint.mk (sc_require_config_h): New variable.
79446         (sc_require_config_h, sc_require_config_h_first): Use it.
79448 2009-04-27  Simon Josefsson  <simon@josefsson.org>
79450         * top/maint.mk (sc_avoid_if_before_free): Except
79451         useless-if-before-free script.
79453 2009-04-27  Eric Blake  <ebb9@byu.net>
79455         maintainer-makefile: depend on all required helper scripts
79456         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
79457         useless-if-before-free.
79458         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
79459         version, rather than assuming gnulib checkout is available.
79460         Reported by Simen Josefsson.
79462 2009-04-26  Bruno Haible  <bruno@clisp.org>
79464         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
79465         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
79466         "../" or "..".
79468 2009-04-26  Bruno Haible  <bruno@clisp.org>
79470         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
79471         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
79472         AC_LIB_HAVE_LINKFLAGS.
79474 2009-04-26  Bruno Haible  <bruno@clisp.org>
79476         Simplify calling convention of u*_conv_from_encoding.
79477         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
79478         u32_conv_from_encoding): Expect a resultbuf argument and return the
79479         result directly as a pointer.
79480         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
79481         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
79482         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
79483         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
79484         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
79485         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
79486         Update.
79487         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
79488         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
79489         * lib/vasnprintf.c (VASNPRINTF): Update.
79490         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
79491         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
79492         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
79493         * NEWS: Mention the change.
79495 2009-04-26  Bruno Haible  <bruno@clisp.org>
79497         Simplify calling convention of u*_conv_to_encoding.
79498         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
79499         u32_conv_to_encoding): Expect a resultbuf argument and return the
79500         result directly as a pointer.
79501         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
79502         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
79503         freeing scaled_offsets if mem_iconveha failed.
79504         * lib/unicase/u-casexfrm.h (FUNC): Update.
79505         * lib/uninorm/u-normxfrm.h (FUNC): Update.
79506         * lib/vasnprintf.c (VASNPRINTF): Update.
79507         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
79508         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
79509         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
79510         * NEWS: Mention the change.
79512 2009-04-26  Bruno Haible  <bruno@clisp.org>
79514         Avoid test failures on AIX and OSF/1.
79515         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
79516         malloc(0).
79517         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
79518         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
79519         Likewise.
79520         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
79521         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
79522         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
79523         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
79524         * doc/posix-functions/malloc.texi: Document the portability problem
79525         related to malloc(0).
79527 2009-04-26  Bruno Haible  <bruno@clisp.org>
79529         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
79530         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
79531         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
79533 2009-04-25  Bruno Haible  <bruno@clisp.org>
79535         Avoid link error when creating a namespace clean library.
79536         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
79537         as macro with arguments if already defined as an alias.
79538         * lib/signbitf.c (gl_signbitf): Don't undefine.
79539         * lib/signbitd.c (gl_signbitd): Don't undefine.
79540         * lib/signbitl.c (gl_signbitl): Don't undefine.
79542 2009-04-25  Jim Meyering  <meyering@redhat.com>
79544         vc-list-files: fix another quoting bug
79545         * build-aux/vc-list-files: Avoid sed backslash expansion
79546         of pathological directory names.
79548 2009-04-25  Eric Blake  <ebb9@byu.net>
79550         vc-list-files: fix shell quoting error
79551         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
79552         timestamp.
79554 2009-04-25  Jim Meyering  <meyering@redhat.com>
79556         vc-list-files: restore lost functionality with subdir argument
79557         * build-aux/vc-list-files: When given a non-"." sub-directory
79558         argument, substitute the $dir/ prefix back onto each resulting name.
79559         Otherwise, coreutils' root_tests check would fail.
79561 2009-04-24  Eric Blake  <ebb9@byu.net>
79563         vc-list-files: ignore git symlinks
79564         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
79565         than ls-files, to ignore git symlinks.
79567         maint.mk: import improvements from m4
79568         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
79569         (move_if_change): Delete unused macro.
79570         (news-date-check, vc-diff-check): Support VPATH builds.
79571         (announcement): Likewise.  Split --bootstrap-tools list...
79572         (boostrap-tools): ...into separate list, which can be overridden
79573         in cfg.mk.
79574         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
79575         requiring dependency on useless-if-before-free module.
79576         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
79577         Support VPATH builds.
79579 2009-04-24  Jim Meyering  <meyering@redhat.com>
79581         maint.mk: remove coreutils-specific rules and variables
79582         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
79583         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
79584         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
79586         maint.mk: remove obsolete rule
79587         * top/maint.mk (rel-check): Remove rule.
79588         (WGET, WGETFLAGS): Remove now-unused variables.
79590 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79592         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
79593         consistency.
79595         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
79596         '$(PATH_SEPARATOR)' instead of ':'.
79598 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79600         * lib/getopt1.c (main): Use 'const' for static array.
79602 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79604         * top/maint.mk: Sync with coreutils.
79605         * NEWS: Explain incompatibilities.
79607 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79608             Bruno Haible  <bruno@clisp.org>
79610         Fix cross-compilation results.
79611         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
79612         statement, as third argument of AC_TRY_RUN.
79613         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
79614         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
79615         Likewise.
79616         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
79617         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
79618         Likewise.
79619         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
79620         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
79621         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
79623 2009-04-20  Bruno Haible  <bruno@clisp.org>
79625         Avoid test failure on mingw.
79626         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
79628 2009-04-20  Bruno Haible  <bruno@clisp.org>
79630         Avoid compilation error on mingw.
79631         * modules/localename-tests (Depends-on): Add locale.
79633 2009-04-19  Bruno Haible  <bruno@clisp.org>
79635         Support for building a shared library on Windows platforms.
79636         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
79637         (main): Test the presence of UNINORM_NFC here.
79638         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
79639         (main): Test the presence of UNINORM_NFD here.
79640         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
79641         (main): Test the presence of UNINORM_NFKC here.
79642         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
79643         (main): Test the presence of UNINORM_NFKD here.
79645 2009-04-19  Bruno Haible  <bruno@clisp.org>
79647         Avoid a compiler warning.
79648         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
79649         Change type of variable 'sequence'.
79651 2009-04-19  Bruno Haible  <bruno@clisp.org>
79653         * modules/configmake (Makefile.am): When the contents of configmake.h
79654         does not change, arrange to preserve its modification time.
79656 2009-04-17  Simon Josefsson  <simon@josefsson.org>
79658         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
79659         gettext domain.
79661 2009-04-16  Jim Meyering  <meyering@redhat.com>
79663         useless-if-before-free: improve conversion code
79664         * build-aux/useless-if-before-free: Adjust code-in-comment to match
79665         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
79667 2009-04-14  Bruno Haible  <bruno@clisp.org>
79669         * modules/fcntl (Depends-on): Add extensions.
79670         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
79672 2009-04-12  Ben Pfaff  <blp@gnu.org>
79674         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
79675         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
79677 2009-03-20  Ben Pfaff  <blp@gnu.org>
79679         Make rename replace existing destinations on Windows.
79680         * m4/rename.m4: Add test for Mingw.
79681         * lib/rename.c: Add rename replacement that uses MoveFileEx with
79682         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
79683         * doc/posix-functions/rename.texi: Document.
79685 2009-04-10  Bruno Haible  <bruno@clisp.org>
79687         New include file "iconveh.h".
79688         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
79689         * lib/striconveh.h: Include it.
79690         (enum iconv_ilseq_handler): Remove definition.
79691         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
79692         striconveh.h.
79693         * lib/striconveha.c: Include striconveh.h.
79694         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
79695         * modules/striconveh (Files): Add lib/iconveh.h.
79696         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
79697         lib/striconveh.h.
79699 2009-04-10  Bruno Haible  <bruno@clisp.org>
79701         * lib/uniconv.h: Update comment.
79703 2009-04-10  Bruno Haible  <bruno@clisp.org>
79705         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
79706         always.
79707         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
79708         * lib/unistr/u16-mbtouc-aux.c: Likewise.
79709         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
79710         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
79711         "unistring-notinline.h", so that the function gets defined always.
79712         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
79713         * lib/unistr/u8-uctomb.c: Likewise.
79714         * lib/unistr/u16-mbtouc.c: Likewise.
79715         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
79716         * lib/unistr/u16-uctomb.c: Likewise.
79717         * lib/unistr/u32-mbtouc.c: Likewise.
79718         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
79719         * lib/unistr/u32-uctomb.c: Likewise.
79721 2009-04-10  Bruno Haible  <bruno@clisp.org>
79723         Mark 'utime' obsolete.
79724         * modules/utime (Status, Notice): New sections.
79725         Suggested by Jim Meyering.
79727         Fix cross-compile guess for utime test.
79728         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
79729         autoconf.
79730         * doc/posix-functions/utime.texi: Give more precisions.
79731         Reported by Jan <ipif@ymail.com>.
79733 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
79735         filevercmp: correct today's change
79736         * lib/filevercmp.c: Also handle coreutils' test inputs.
79737         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
79739         Fix regression in 'filevercmp' module. Thanks Sven Joachim
79740         for reporting it.
79741         * lib/filevercmp.c: Special handle for "", "." and "..".
79742         * tests/test-filevercmp.c: Enlarge the set suite.
79744 2009-04-07  Jim Meyering  <meyering@redhat.com>
79746         useless-if-before-free: show how to remove braced useless free, too
79747         * build-aux/useless-if-before-free: still only in a comment, though.
79749 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
79751         maint.mk: import changes to syntax-check macros from coreutils
79752         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
79753         Use them in the relevant macros.
79755 2009-04-06  Bruno Haible  <bruno@clisp.org>
79757         Fix unportable use of bit-fields.
79758         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
79759         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
79760         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
79762 2009-04-06  Bruno Haible  <bruno@clisp.org>
79764         Avoid test failures on AIX and OSF/1.
79765         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
79766         that malloc(0) = NULL.
79767         * tests/unicase/test-u8-tolower.c (check): Likewise.
79768         * tests/unicase/test-u8-totitle.c (check): Likewise.
79769         * tests/unicase/test-u8-toupper.c (check): Likewise.
79770         * tests/unicase/test-u16-casefold.c (check): Likewise.
79771         * tests/unicase/test-u16-tolower.c (check): Likewise.
79772         * tests/unicase/test-u16-totitle.c (check): Likewise.
79773         * tests/unicase/test-u16-toupper.c (check): Likewise.
79774         * tests/unicase/test-u32-casefold.c (check): Likewise.
79775         * tests/unicase/test-u32-tolower.c (check): Likewise.
79776         * tests/unicase/test-u32-totitle.c (check): Likewise.
79777         * tests/unicase/test-u32-toupper.c (check): Likewise.
79778         * tests/uninorm/test-u8-nfc.c (check): Likewise.
79779         * tests/uninorm/test-u8-nfd.c (check): Likewise.
79780         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
79781         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
79782         * tests/uninorm/test-u16-nfc.c (check): Likewise.
79783         * tests/uninorm/test-u16-nfd.c (check): Likewise.
79784         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
79785         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
79786         * tests/uninorm/test-u32-nfc.c (check): Likewise.
79787         * tests/uninorm/test-u32-nfd.c (check): Likewise.
79788         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
79789         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
79791 2009-04-05  Bruno Haible  <bruno@clisp.org>
79793         Work around an autoconf limitation.
79794         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
79795         comment line if it would be longer than 3 KB.
79797 2009-04-05  Bruno Haible  <bruno@clisp.org>
79799         Avoid test failure with libiconv-1.13.
79800         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
79801         of the expected test results.
79803 2009-04-05  Bruno Haible  <bruno@clisp.org>
79805         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
79806         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
79807         that it should be installed.
79809 2009-04-05  Bruno Haible  <bruno@clisp.org>
79811         * gnulib-tool: New option --copy-file.
79812         (func_usage): Document it.
79813         (func_dest_tmpfilename): Moved out of func_import.
79814         (func_add_file, func_update_file): New functions, extracted from
79815         func_import.
79816         (func_import): Update.
79818 2009-04-05  Karl Berry  <karl@gnu.org>
79820         * README: prominently mention gnulib-tool.
79821         Rearrange sections so getting the code is near the top.
79823 2009-04-05  Bruno Haible  <bruno@clisp.org>
79825         * lib/unicase.h: Mention u*_cmp2.
79826         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
79827         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
79828         * lib/unicase/ulc-casecmp.c: Likewise.
79829         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
79830         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
79831         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
79832         unistr/u8-cmp.
79833         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
79834         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
79835         unistr/u16-cmp.
79836         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
79837         unistr/u32-cmp.
79839         * lib/uninorm.h: Mention u*_cmp2.
79840         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
79841         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
79842         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
79843         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
79844         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
79845         unistr/u8-cmp.
79846         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
79847         unistr/u16-cmp.
79848         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
79849         unistr/u32-cmp.
79851         New module 'unistr/u32-cmp2'.
79852         * lib/unistr/u32-cmp2.c: New file.
79853         * modules/unistr/u32-cmp2: New file.
79855         New module 'unistr/u16-cmp2'.
79856         * lib/unistr/u16-cmp2.c: New file.
79857         * modules/unistr/u16-cmp2: New file.
79859         New module 'unistr/u8-cmp2'.
79860         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
79861         * lib/unistr/u8-cmp2.c: New file.
79862         * lib/unistr/u-cmp2.h: New file.
79863         * modules/unistr/u8-cmp2: New file.
79865 2009-04-05  Bruno Haible  <bruno@clisp.org>
79867         * lib/unictype.h (uc_property_is_valid): New macro.
79868         * tests/unictype/test-pr_byname.c (main): Use it.
79870         * lib/unistr.h: Doc fixes.
79871         * lib/uniconv.h: Doc fixes.
79872         * lib/unictype.h: Doc fixes.
79874 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
79876         Port coreutils 7.2 to Solaris 8.
79878         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
79879         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
79880         for Solaris 8.  This is a bit of a hack, as it means it's the
79881         caller's responsibility to add -lnsl if needed, but most likely it
79882         won't be needed since only getaddrinfo uses this and getaddrinfo
79883         isn't needed on Solaris 8.
79885         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
79886         problem to Solaris 8 encountered with coreutils 7.2, which
79887         resulted in a message "fnmatch.c:292: warning: passing argument 4
79888         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
79889         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
79891 2009-04-03  Simon Josefsson  <simon@josefsson.org>
79893         * m4/ld-version-script.m4: Add FIXME comment.
79895 2009-04-02  Simon Josefsson  <simon@josefsson.org>
79897         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
79898         SOVERSION variable.
79900 2009-04-02  Bruno Haible  <bruno@clisp.org>
79902         * Makefile (info, html, dvi, pdf): Combine the rules.
79903         Suggested by Jim Meyering.
79905 2009-04-01  Bruno Haible  <bruno@clisp.org>
79907         * Makefile (info, html, dvi, pdf): New targets.
79908         Reported by Reuben Thomas <rrt@sc3d.org>.
79910 2009-04-01  Bruno Haible  <bruno@clisp.org>
79912         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
79913         can be put into PATH.
79914         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
79916 2009-04-01  Bruno Haible  <bruno@clisp.org>
79918         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
79920 2009-04-01  Bruno Haible  <bruno@clisp.org>
79922         Rename module 'visibility'.
79923         * modules/lib-symbol-visibility: Renamed from modules/visibility.
79924         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
79925         * doc/gnulib.texi: Update.
79926         * MODULES.html.sh (Misc): Update.
79927         * NEWS: Mention the change.
79929 2009-04-01  Simon Josefsson  <simon@josefsson.org>
79931         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
79932         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
79933         Eric Blake <ebb9@byu.net> for review.
79934         * MODULES.html.sh: Add lib-msvc-compat.
79935         * doc/gnulib.texi: Link to new section.
79936         * m4/ld-output-def.m4: New file.
79937         * doc/ld-output-def.texi: New file.
79939 2009-04-01  Simon Josefsson  <simon@josefsson.org>
79941         Rename ld-version-script to lib-symbol-versions.  Suggested by
79942         Bruno Haible <bruno@clisp.org>.
79943         * modules/ld-version-script: Renamed to lib-symbol-versions.
79944         * doc/ld-version-script.texi: Fix module name.
79945         * MODULES.html.sh: Add lib-symbol-versions.
79947 2009-03-31  Simon Josefsson  <simon@josefsson.org>
79949         * modules/u64-tests: New file.
79950         * tests/test-u64.c: New file.
79952 2009-03-04  Simon Josefsson  <simon@josefsson.org>
79954         * MODULES.html.sh: Mention u64.
79955         * modules/u64: New module.
79956         * modules/crypto/sha512: Depend on u64 module instead of providing
79957         u64.h.
79959 2009-03-27  Eric Blake  <ebb9@byu.net>
79961         test-strerror: make debugging EAI_SYSTEM easier
79962         * modules/getaddrinfo-tests (Depends-on): Add strerror.
79963         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
79964         failure was EAI_SYSTEM.
79966 2009-03-25  Bruno Haible  <bruno@clisp.org>
79968         Fix a problem with --enable-relocatable on Solaris 7.
79969         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
79970         since 2008-02-24.
79972 2009-03-25  Eric Blake  <ebb9@byu.net>
79974         test-sockets: avoid gcc warning
79975         * tests/test-sockets.c (main): Silence compiler warning.
79977 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79979         New modules nproc, pthread, contributed by Glen Lenker.
79981         * MODULES.html.sh: Add pthread, nproc.
79982         * lib/nproc.c: New file.
79983         * lib/nproc.h: New file.
79984         * lib/pthread.in.h: New file.
79985         * m4/pthread.m4: New file.
79986         * modules/nproc: New file.
79987         * modules/pthread: New file.
79989 2009-03-24  Simon Josefsson  <simon@josefsson.org>
79991         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
79992         New variable.
79994 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
79996         filevercmp: handle simple~ and numbered.~3~ backup suffixes
79997         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
79998         * tests/test-filevercmp.c: Add tests for backup suffixes.
80000 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80002         * modules/stdlib (Depends-on): Add stdint, needed when defining
80003         struct random_data on, for example, HP-UX 10.20.  Reported by
80004         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
80006 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80008         * lib/readline.c (readline): Call fflush on stdout after printing
80009         prompt.
80011 2009-03-20  Bruno Haible  <bruno@clisp.org>
80013         Remove dependency from 'close' module to -lws2_32 on native Windows.
80014         * lib/close-hook.h: New file.
80015         * lib/close-hook.c: New file.
80016         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
80017         w32sock.h.
80018         (_gl_close_fd_maybe_socket): Remove function.
80019         (rpl_close): Invoke execute_all_close_hooks instead of
80020         _gl_close_fd_maybe_socket.
80021         * lib/sockets.c: Include close-hook.h, w32sock.h.
80022         (close_fd_maybe_socket): New function, essentially from lib/close.c.
80023         (close_sockets_hook): New variable.
80024         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
80025         (gl_sockets_cleanup): Unregister it.
80026         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
80027         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
80028         * modules/close-hook: New file.
80029         * modules/close (Files): Remove lib/w32sock.h.
80030         (Depends-on): Add close-hook.
80031         (Link): Remove section.
80032         * modules/sockets (Files): Add lib/w32sock.h.
80033         (Depends-on): Add close-hook.
80034         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
80035         invocation.
80036         * NEWS: Mention that LIB_CLOSE is gone.
80038 2009-03-23  Eric Blake  <ebb9@byu.net>
80040         signal-tests: test previous patch
80041         * tests/test-signal.c: New file.
80042         * modules/signal-tests: Likewise.
80044         signal.h: always support 'volatile sig_atomic_t'
80045         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
80046         (gl_SIGNAL_H_DEFAULTS): Add a default.
80047         * modules/signal (Makefile.am): Substitute if needed.
80048         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
80049         users can blindly add volatile.
80050         * doc/posix-headers/signal.texi (signal.h): Document it.
80051         Reported by Matthew Woehlke.
80053 2009-03-23  Jim Meyering  <meyering@redhat.com>
80055         pathmax: PATH_MAX: use pathconf only when available
80056         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
80057         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
80058         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
80059         This avoids a link failure in a PSP cross-compilation environment
80060         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
80062         * lib/vasnprintf.c (divide): Fix typo in comment.
80064 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80066         * gnulib-tool (func_filter_filelist): Fix comment.
80068 2009-03-20  Bruno Haible  <bruno@clisp.org>
80070         Make sockets.h self-contained.
80071         * lib/sockets.c: Include sockets.h first.
80072         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
80074 2009-03-19  Eric Blake  <ebb9@byu.net>
80076         doc: mention more functions added in cygwin 1.7.0
80077         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
80078         addition.
80079         * doc/posix-functions/log2f.texi: Likewise.
80081 2009-03-19  Jim Meyering  <meyering@redhat.com>
80083         fsusage: avoid syntax error due to statement-before-declaration
80084         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
80085         after all declarations.  Reported by Matthew Woehlke in
80086         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
80088 2009-03-18  Eric Blake  <ebb9@byu.net>
80090         build-aux/compile: sync from automake
80091         * build-aux/compile: New file, from automake.
80092         * config/srclist.txt: Mention build-aux/compile.
80094 2009-03-17  Bruno Haible  <bruno@clisp.org>
80096         * lib/git-merge-changelog.c: Fix typo in comment.
80097         Reported by Reuben Thomas <rrt@sc3d.org>.
80099 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
80101         * m4/regex.m4: update and improve help for
80102         --without-included-regex.
80104 2009-03-17  Simon Josefsson  <simon@josefsson.org>
80106         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
80107         failure on missing include files.
80109 2009-03-17  Eric Blake  <ebb9@byu.net>
80111         doc: mention more functions added in cygwin 1.7.0
80112         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
80113         addition.
80114         * doc/posix-functions/fwscanf.texi: Likewise.
80115         * doc/posix-functions/swprintf.texi: Likewise.
80116         * doc/posix-functions/swscanf.texi: Likewise.
80117         * doc/posix-functions/vfwprintf.texi: Likewise.
80118         * doc/posix-functions/vfwscanf.texi: Likewise.
80119         * doc/posix-functions/vswprintf.texi: Likewise.
80120         * doc/posix-functions/vswscanf.texi: Likewise.
80121         * doc/posix-functions/vwprintf.texi: Likewise.
80122         * doc/posix-functions/vwscanf.texi: Likewise.
80123         * doc/posix-functions/wcscasecmp.texi: Likewise.
80124         * doc/posix-functions/wcsdup.texi: Likewise.
80125         * doc/posix-functions/wcsftime.texi: Likewise.
80126         * doc/posix-functions/wcsncasecmp.texi: Likewise.
80127         * doc/posix-functions/wprintf.texi: Likewise.
80128         * doc/posix-functions/wscanf.texi: Likewise.
80129         * doc/glibc-functions/gethostbyname2.texi: Likewise.
80131 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80133         maint.mk: really add $(AM_MAKEFLAGS)
80134         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
80135         was inadvertently omitted in the last commit.
80136         Spotted by Bruno Haible.
80138         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
80139         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
80140         $(AM_MAKEFLAGS)' rather than plain `make'.
80142         gnulib-tool: execute $MAKE not make
80143         * gnulib-tool: Default $MAKE to 'make'.
80144         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
80145         than make.  Initialize $MAKE in the do-autobuild script.
80147         gnulib-tool: use $MAKE not make in generated files
80148         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
80149         make, in generated files.  Initialize $MAKE in the do-autobuild
80150         script.
80152         * top/GNUmakefile (_have-git-version-gen): Fix typo.
80154         GNUmakefile: disable parallelism only for multiple, recursive targets
80155         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
80156         additions in the Makefile.
80157         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
80158         by Automake.
80159         (.NOTPARALLEL): Only disable parallel builds if multiple targets
80160         are listed on the command line and at least one of them is
80161         listed in $(ALL_RECURSIVE_TARGETS).
80163 2009-03-14  Bruno Haible  <bruno@clisp.org>
80165         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
80166         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
80167         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
80168         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
80169         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
80170         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
80171         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
80172         unistr/u8-uctomb.
80173         * modules/unistr/u8-strchr (Depends-on): Likewise.
80174         * modules/unistr/u8-strrchr (Depends-on): Likewise.
80175         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
80176         unistr/u16-uctomb.
80177         * modules/unistr/u16-strchr (Depends-on): Likewise.
80178         * modules/unistr/u16-strrchr (Depends-on): Likewise.
80180 2009-03-12  Bruno Haible  <bruno@clisp.org>
80182         Work around select() bug on Interix 3.5.
80183         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
80184         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
80185         * m4/select.m4: New file.
80186         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
80187         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
80188         * modules/select (Files): Add m4/select.m4.
80189         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
80190         * modules/nanosleep (Depends-on): Add select.
80191         * modules/poll (Depends-on): Likewise.
80192         * doc/posix-functions/select.texi: Mention the Interix bug.
80193         Reported by Markus Duft <mduft@gentoo.org>.
80195         * lib/select.c: Renamed from lib/winsock-select.c.
80196         * modules/select (Files): Add lib/select.c, remove
80197         lib/winsock-select.c.
80198         (configure.ac): Update.
80200 2009-03-12  Jim Meyering  <meyering@redhat.com>
80202         avoid gcc warnings about unused macro definitions
80203         * lib/readtokens.c (STREQ): Remove unused definition.
80204         * lib/xmalloc.c (SIZE_MAX): Likewise.
80205         * lib/openat-die.c (N_): Likewise.
80206         * lib/mountlist.c (SIZE_MAX): Remove definition.
80207         Instead, include <stdint.h>.
80208         * lib/readutmp.c: Likewise.
80209         * modules/readutmp (Depends-on): Add stdint.
80210         * modules/mountlist (Depends-on): Add stdint.
80211         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
80213 2009-03-10  Bruno Haible  <bruno@clisp.org>
80215         Tests for module 'mbmemcasecoll'.
80216         * modules/mbmemcasecoll-tests: New file.
80217         * tests/test-mbmemcasecoll1.sh: New file.
80218         * tests/test-mbmemcasecoll2.sh: New file.
80219         * tests/test-mbmemcasecoll3.sh: New file.
80220         * tests/test-mbmemcasecoll.c: New file.
80222         New module 'mbmemcasecoll'.
80223         * lib/mbmemcasecoll.h: New file.
80224         * lib/mbmemcasecoll.c: New file.
80225         * modules/mbmemcasecoll: New file.
80227         * tests/test-mbmemcasecmp.h: New file, extracted from
80228         tests/test-mbmemcasecmp.c.
80229         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
80230         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
80231         (main): Update.
80232         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
80234 2009-03-09  Bruno Haible  <bruno@clisp.org>
80236         Tests for module 'mbmemcasecmp'.
80237         * modules/mbmemcasecmp-tests: New file.
80238         * tests/test-mbmemcasecmp1.sh: New file.
80239         * tests/test-mbmemcasecmp2.sh: New file.
80240         * tests/test-mbmemcasecmp3.sh: New file.
80241         * tests/test-mbmemcasecmp.c: New file.
80243         New module 'mbmemcasecmp'.
80244         * lib/mbmemcasecmp.h: New file.
80245         * lib/mbmemcasecmp.c: New file.
80246         * modules/mbmemcasecmp: New file.
80248 2009-03-09  Bruno Haible  <bruno@clisp.org>
80250         Tests for module 'unicase/ulc-casecoll'.
80251         * modules/unicase/ulc-casecoll-tests: New file.
80252         * tests/unicase/test-ulc-casecoll1.sh: New file.
80253         * tests/unicase/test-ulc-casecoll2.sh: New file.
80254         * tests/unicase/test-ulc-casecoll.c: New file.
80256         New module 'unicase/ulc-casecoll'.
80257         * lib/unicase.h (ulc_casecoll): New declaration.
80258         * lib/unicase/ulc-casecoll.c: New file.
80259         * modules/unicase/ulc-casecoll: New file.
80261         New module 'unicase/ulc-casexfrm'.
80262         * lib/unicase.h (ulc_casexfrm): New declaration.
80263         * lib/unicase/ulc-casexfrm.c: New file.
80264         * modules/unicase/ulc-casexfrm: New file.
80266 2009-03-09  Bruno Haible  <bruno@clisp.org>
80268         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
80269         invocations.
80271         * m4/mbscasecmp.m4: Remove file.
80272         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
80273         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
80275         * m4/mbscasestr.m4: Remove file.
80276         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
80277         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
80279         * m4/mbschr.m4: Remove file.
80280         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
80281         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
80283         * m4/mbscspn.m4: Remove file.
80284         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
80285         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
80287         * m4/mbslen.m4: Remove file.
80288         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
80289         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
80291         * m4/mbsncasecmp.m4: Remove file.
80292         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
80293         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
80295         * m4/mbsnlen.m4: Remove file.
80296         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
80297         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
80299         * m4/mbspbrk.m4: Remove file.
80300         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
80301         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
80303         * m4/mbspcasecmp.m4: Remove file.
80304         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
80305         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
80307         * m4/mbsrchr.m4: Remove file.
80308         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
80309         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
80311         * m4/mbssep.m4: Remove file.
80312         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
80313         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
80315         * m4/mbsspn.m4: Remove file.
80316         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
80317         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
80319         * m4/mbsstr.m4: Remove file.
80320         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
80321         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
80323         * m4/mbstok_r.m4: Remove file.
80324         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
80325         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
80327         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
80329         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
80330         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
80332         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
80334 2009-03-08  Bruno Haible  <bruno@clisp.org>
80336         Tests for module 'unicase/ulc-casecmp'.
80337         * modules/unicase/ulc-casecmp-tests: New file.
80338         * tests/unicase/test-ulc-casecmp1.sh: New file.
80339         * tests/unicase/test-ulc-casecmp2.sh: New file.
80340         * tests/unicase/test-ulc-casecmp.c: New file.
80342         New module 'unicase/ulc-casecmp'.
80343         * lib/unicase.h (ulc_casecmp): New declaration.
80344         * lib/unicase/ulc-casecmp.c: New file.
80345         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
80346         'const SRC_UNIT *'.
80347         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
80348         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
80349         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
80350         * modules/unicase/ulc-casecmp: New file.
80352         Tests for module 'unicase/u32-is-cased'.
80353         * modules/unicase/u32-is-cased-tests: New file.
80354         * tests/unicase/test-u32-is-cased.c: New file.
80356         Tests for module 'unicase/u16-is-cased'.
80357         * modules/unicase/u16-is-cased-tests: New file.
80358         * tests/unicase/test-u16-is-cased.c: New file.
80360         Tests for module 'unicase/u8-is-cased'.
80361         * modules/unicase/u8-is-cased-tests: New file.
80362         * tests/unicase/test-u8-is-cased.c: New file.
80363         * tests/unicase/test-is-cased.h: New file.
80365         New module 'unicase/u32-is-cased'.
80366         * lib/unicase/u32-is-cased.c: New file.
80367         * modules/unicase/u32-is-cased: New file.
80369         New module 'unicase/u16-is-cased'.
80370         * lib/unicase/u16-is-cased.c: New file.
80371         * modules/unicase/u16-is-cased: New file.
80373         New module 'unicase/u8-is-cased'.
80374         * lib/unicase/u8-is-cased.c: New file.
80375         * lib/unicase/u-is-cased.h: New file.
80376         * modules/unicase/u8-is-cased: New file.
80378         Tests for module 'unicase/u32-is-casefolded'.
80379         * modules/unicase/u32-is-casefolded-tests: New file.
80380         * tests/unicase/test-u32-is-casefolded.c: New file.
80382         Tests for module 'unicase/u16-is-casefolded'.
80383         * modules/unicase/u16-is-casefolded-tests: New file.
80384         * tests/unicase/test-u16-is-casefolded.c: New file.
80386         Tests for module 'unicase/u8-is-casefolded'.
80387         * modules/unicase/u8-is-casefolded-tests: New file.
80388         * tests/unicase/test-u8-is-casefolded.c: New file.
80389         * tests/unicase/test-is-casefolded.h: New file.
80391         New module 'unicase/u32-is-casefolded'.
80392         * lib/unicase/u32-is-casefolded.c: New file.
80393         * modules/unicase/u32-is-casefolded: New file.
80395         New module 'unicase/u16-is-casefolded'.
80396         * lib/unicase/u16-is-casefolded.c: New file.
80397         * modules/unicase/u16-is-casefolded: New file.
80399         New module 'unicase/u8-is-casefolded'.
80400         * lib/unicase/u8-is-casefolded.c: New file.
80401         * modules/unicase/u8-is-casefolded: New file.
80403         Tests for module 'unicase/u32-is-titlecase'.
80404         * modules/unicase/u32-is-titlecase-tests: New file.
80405         * tests/unicase/test-u32-is-titlecase.c: New file.
80407         Tests for module 'unicase/u16-is-titlecase'.
80408         * modules/unicase/u16-is-titlecase-tests: New file.
80409         * tests/unicase/test-u16-is-titlecase.c: New file.
80411         Tests for module 'unicase/u8-is-titlecase'.
80412         * modules/unicase/u8-is-titlecase-tests: New file.
80413         * tests/unicase/test-u8-is-titlecase.c: New file.
80414         * tests/unicase/test-is-titlecase.h: New file.
80416         New module 'unicase/u32-is-titlecase'.
80417         * lib/unicase/u32-is-titlecase.c: New file.
80418         * modules/unicase/u32-is-titlecase: New file.
80420         New module 'unicase/u16-is-titlecase'.
80421         * lib/unicase/u16-is-titlecase.c: New file.
80422         * modules/unicase/u16-is-titlecase: New file.
80424         New module 'unicase/u8-is-titlecase'.
80425         * lib/unicase/u8-is-titlecase.c: New file.
80426         * modules/unicase/u8-is-titlecase: New file.
80428         Tests for module 'unicase/u32-is-lowercase'.
80429         * modules/unicase/u32-is-lowercase-tests: New file.
80430         * tests/unicase/test-u32-is-lowercase.c: New file.
80432         Tests for module 'unicase/u16-is-lowercase'.
80433         * modules/unicase/u16-is-lowercase-tests: New file.
80434         * tests/unicase/test-u16-is-lowercase.c: New file.
80436         Tests for module 'unicase/u8-is-lowercase'.
80437         * modules/unicase/u8-is-lowercase-tests: New file.
80438         * tests/unicase/test-u8-is-lowercase.c: New file.
80439         * tests/unicase/test-is-lowercase.h: New file.
80441         New module 'unicase/u32-is-lowercase'.
80442         * lib/unicase/u32-is-lowercase.c: New file.
80443         * modules/unicase/u32-is-lowercase: New file.
80445         New module 'unicase/u16-is-lowercase'.
80446         * lib/unicase/u16-is-lowercase.c: New file.
80447         * modules/unicase/u16-is-lowercase: New file.
80449         New module 'unicase/u8-is-lowercase'.
80450         * lib/unicase/u8-is-lowercase.c: New file.
80451         * modules/unicase/u8-is-lowercase: New file.
80453         Tests for module 'unicase/u32-is-uppercase'.
80454         * modules/unicase/u32-is-uppercase-tests: New file.
80455         * tests/unicase/test-u32-is-uppercase.c: New file.
80457         Tests for module 'unicase/u16-is-uppercase'.
80458         * modules/unicase/u16-is-uppercase-tests: New file.
80459         * tests/unicase/test-u16-is-uppercase.c: New file.
80461         Tests for module 'unicase/u8-is-uppercase'.
80462         * modules/unicase/u8-is-uppercase-tests: New file.
80463         * tests/unicase/test-u8-is-uppercase.c: New file.
80464         * tests/unicase/test-is-uppercase.h: New file.
80466         New module 'unicase/u32-is-uppercase'.
80467         * lib/unicase/u32-is-uppercase.c: New file.
80468         * modules/unicase/u32-is-uppercase: New file.
80470         New module 'unicase/u16-is-uppercase'.
80471         * lib/unicase/u16-is-uppercase.c: New file.
80472         * modules/unicase/u16-is-uppercase: New file.
80474         New module 'unicase/u8-is-uppercase'.
80475         * lib/unicase/u8-is-uppercase.c: New file.
80476         * modules/unicase/u8-is-uppercase: New file.
80478         New module 'unicase/u32-is-invariant'.
80479         * lib/unicase/u32-is-invariant.c: New file.
80480         * modules/unicase/u32-is-invariant: New file.
80482         New module 'unicase/u16-is-invariant'.
80483         * lib/unicase/u16-is-invariant.c: New file.
80484         * modules/unicase/u16-is-invariant: New file.
80486         New module 'unicase/u8-is-invariant'.
80487         * lib/unicase/u8-is-invariant.c: New file.
80488         * lib/unicase/invariant.h: New file.
80489         * lib/unicase/u-is-invariant.h: New file.
80490         * modules/unicase/u8-is-invariant: New file.
80492         Tests for module 'unicase/u32-casecoll'.
80493         * modules/unicase/u32-casecoll-tests: New file.
80494         * tests/unicase/test-u32-casecoll.c: New file.
80496         Tests for module 'unicase/u16-casecoll'.
80497         * modules/unicase/u16-casecoll-tests: New file.
80498         * tests/unicase/test-u16-casecoll.c: New file.
80500         Tests for module 'unicase/u8-casecoll'.
80501         * modules/unicase/u8-casecoll-tests: New file.
80502         * tests/unicase/test-u8-casecoll.c: New file.
80504         New module 'unicase/u32-casecoll'.
80505         * lib/unicase/u32-casecoll.c: New file.
80506         * modules/unicase/u32-casecoll: New file.
80508         New module 'unicase/u16-casecoll'.
80509         * lib/unicase/u16-casecoll.c: New file.
80510         * modules/unicase/u16-casecoll: New file.
80512         New module 'unicase/u8-casecoll'.
80513         * lib/unicase/u8-casecoll.c: New file.
80514         * lib/unicase/u-casecoll.h: New file.
80515         * modules/unicase/u8-casecoll: New file.
80517         New module 'unicase/u32-casexfrm'.
80518         * lib/unicase/u32-casexfrm.c: New file.
80519         * modules/unicase/u32-casexfrm: New file.
80521         New module 'unicase/u16-casexfrm'.
80522         * lib/unicase/u16-casexfrm.c: New file.
80523         * modules/unicase/u16-casexfrm: New file.
80525         New module 'unicase/u8-casexfrm'.
80526         * lib/unicase/u8-casexfrm.c: New file.
80527         * lib/unicase/u-casexfrm.h: New file.
80528         * modules/unicase/u8-casexfrm: New file.
80530         Tests for module 'unicase/u32-casecmp'.
80531         * modules/unicase/u32-casecmp-tests: New file.
80532         * tests/unicase/test-u32-casecmp.c: New file.
80534         Tests for module 'unicase/u16-casecmp'.
80535         * modules/unicase/u16-casecmp-tests: New file.
80536         * tests/unicase/test-u16-casecmp.c: New file.
80538         Tests for module 'unicase/u8-casecmp'.
80539         * modules/unicase/u8-casecmp-tests: New file.
80540         * tests/unicase/test-u8-casecmp.c: New file.
80541         * tests/unicase/test-casecmp.h: New file.
80543         New module 'unicase/u32-casecmp'.
80544         * lib/unicase/u32-casecmp.c: New file.
80545         * modules/unicase/u32-casecmp: New file.
80547         New module 'unicase/u16-casecmp'.
80548         * lib/unicase/u16-casecmp.c: New file.
80549         * modules/unicase/u16-casecmp: New file.
80551         New module 'unicase/u8-casecmp'.
80552         * lib/unicase/u8-casecmp.c: New file.
80553         * lib/unicase/u-casecmp.h: New file.
80554         * modules/unicase/u8-casecmp: New file.
80556         Tests for module 'unicase/u32-casefold'.
80557         * modules/unicase/u32-casefold-tests: New file.
80558         * tests/unicase/test-u32-casefold.c: New file.
80560         Tests for module 'unicase/u16-casefold'.
80561         * modules/unicase/u16-casefold-tests: New file.
80562         * tests/unicase/test-u16-casefold.c: New file.
80564         Tests for module 'unicase/u8-casefold'.
80565         * modules/unicase/u8-casefold-tests: New file.
80566         * tests/unicase/test-u8-casefold.c: New file.
80568         New module 'unicase/u32-casefold'.
80569         * lib/unicase/u32-casefold.c: New file.
80570         * modules/unicase/u32-casefold: New file.
80572         New module 'unicase/u16-casefold'.
80573         * lib/unicase/u16-casefold.c: New file.
80574         * modules/unicase/u16-casefold: New file.
80576         New module 'unicase/u8-casefold'.
80577         * lib/unicase/u8-casefold.c: New file.
80578         * lib/unicase/u-casefold.h: New file.
80579         * modules/unicase/u8-casefold: New file.
80581         New module 'unicase/tocasefold'.
80582         * lib/unicase/casefold.h: New file.
80583         * lib/unicase/tocasefold.c: New file.
80584         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
80585         * modules/unicase/tocasefold: New file.
80587         Tests for module 'unicase/u32-totitle'.
80588         * modules/unicase/u32-totitle-tests: New file.
80589         * tests/unicase/test-u32-totitle.c: New file.
80591         Tests for module 'unicase/u16-totitle'.
80592         * modules/unicase/u16-totitle-tests: New file.
80593         * tests/unicase/test-u16-totitle.c: New file.
80595         Tests for module 'unicase/u8-totitle'.
80596         * modules/unicase/u8-totitle-tests: New file.
80597         * tests/unicase/test-u8-totitle.c: New file.
80599         New module 'unicase/u32-totitle'.
80600         * lib/unicase/u32-totitle.c: New file.
80601         * modules/unicase/u32-totitle: New file.
80603         New module 'unicase/u16-totitle'.
80604         * lib/unicase/u16-totitle.c: New file.
80605         * modules/unicase/u16-totitle: New file.
80607         New module 'unicase/u8-totitle'.
80608         * lib/unicase/u8-totitle.c: New file.
80609         * lib/unicase/u-totitle.h: New file.
80610         * modules/unicase/u8-totitle: New file.
80612         Tests for module 'unicase/u32-tolower'.
80613         * modules/unicase/u32-tolower-tests: New file.
80614         * tests/unicase/test-u32-tolower.c: New file.
80616         Tests for module 'unicase/u16-tolower'.
80617         * modules/unicase/u16-tolower-tests: New file.
80618         * tests/unicase/test-u16-tolower.c: New file.
80620         Tests for module 'unicase/u8-tolower'.
80621         * modules/unicase/u8-tolower-tests: New file.
80622         * tests/unicase/test-u8-tolower.c: New file.
80624         New module 'unicase/u32-tolower'.
80625         * lib/unicase/u32-tolower.c: New file.
80626         * modules/unicase/u32-tolower: New file.
80628         New module 'unicase/u16-tolower'.
80629         * lib/unicase/u16-tolower.c: New file.
80630         * modules/unicase/u16-tolower: New file.
80632         New module 'unicase/u8-tolower'.
80633         * lib/unicase/u8-tolower.c: New file.
80634         * modules/unicase/u8-tolower: New file.
80636         Tests for module 'unicase/u32-toupper'.
80637         * modules/unicase/u32-toupper-tests: New file.
80638         * tests/unicase/test-u32-toupper.c: New file.
80640         Tests for module 'unicase/u16-toupper'.
80641         * modules/unicase/u16-toupper-tests: New file.
80642         * tests/unicase/test-u16-toupper.c: New file.
80644         Tests for module 'unicase/u8-toupper'.
80645         * modules/unicase/u8-toupper-tests: New file.
80646         * tests/unicase/test-u8-toupper.c: New file.
80648         New module 'unicase/u32-toupper'.
80649         * lib/unicase/u32-toupper.c: New file.
80650         * modules/unicase/u32-toupper: New file.
80652         New module 'unicase/u16-toupper'.
80653         * lib/unicase/u16-toupper.c: New file.
80654         * modules/unicase/u16-toupper: New file.
80656         New module 'unicase/u8-toupper'.
80657         * lib/unicase/u8-toupper.c: New file.
80658         * modules/unicase/u8-toupper: New file.
80660         New module 'unicase/u32-casemap'.
80661         * lib/unicase/u32-casemap.c: New file.
80662         * modules/unicase/u32-casemap: New file.
80664         New module 'unicase/u16-casemap'.
80665         * lib/unicase/u16-casemap.c: New file.
80666         * modules/unicase/u16-casemap: New file.
80668         New module 'unicase/u8-casemap'.
80669         * lib/unicase/unicasemap.h: New file.
80670         * lib/unicase/u8-casemap.c: New file.
80671         * lib/unicase/u-casemap.h: New file.
80672         * modules/unicase/u8-casemap: New file.
80674         New module 'unicase/special-casing'.
80675         * lib/unicase/special-casing.h: New file.
80676         * lib/unicase/special-casing.c: New file.
80677         * lib/unicase/special-casing-table.gperf: New file, generated by
80678         gen-uni-tables.c.
80679         * modules/unicase/special-casing: New file.
80681         Tests for module 'unicase/locale-language'.
80682         * modules/unicase/locale-language-tests: New file.
80683         * tests/unicase/test-locale-language.sh: New file.
80684         * tests/unicase/test-locale-language.c: New file.
80686         New module 'unicase/locale-language'.
80687         * lib/unicase/locale-language.c: New file.
80688         * lib/unicase/locale-languages.gperf: New file.
80689         * modules/unicase/locale-language: New file.
80691         Generate more tables for case conversion and case folding.
80692         * lib/gen-uni-tables.c (SCC_*): New enum items.
80693         (struct special_casing_rule): New type.
80694         (casing_rules, num_casing_rules, allocated_casing_rules): New
80695         variables.
80696         (add_casing_rule, fill_casing_rules): New functions.
80697         (struct casefold_rule): New type.
80698         (casefolding_rules, num_casefolding_rules,
80699         allocated_casefolding_rules): New variables.
80700         (fill_casefolding_rules): New function.
80701         (unicode_casefold): New variable.
80702         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
80703         sort_casing_rules, output_casing_rules): New functions.
80704         (main): Accept to more arguments: SpecialCasing.txt and
80705         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
80706         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
80707         Output mapping for casefolding.
80709         * lib/unicase.h: Include stdbool.h, uninorm.h.
80710         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
80711         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
80712         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
80713         arguments.
80714         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
80715         resultp arguments.
80716         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
80717         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
80718         resultp arguments.
80719         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
80720         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
80721         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
80722         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
80723         declarations.
80724         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
80726 2009-03-08  Bruno Haible  <bruno@clisp.org>
80728         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
80729         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
80730         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
80731         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
80733 2009-03-07  Bruno Haible  <bruno@clisp.org>
80735         Adjust u*_normcmp, u*_normcoll API.
80736         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
80737         u16_normcoll, u32_normcoll): Change failure conventions.
80738         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
80739         errno and return -1.
80740         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
80742 2009-03-07  Bruno Haible  <bruno@clisp.org>
80744         Tests for module 'uninorm/u32-normcoll'.
80745         * modules/uninorm/u32-normcoll-tests: New file.
80746         * tests/uninorm/test-u32-normcoll.c: New file.
80748         Tests for module 'uninorm/u16-normcoll'.
80749         * modules/uninorm/u16-normcoll-tests: New file.
80750         * tests/uninorm/test-u16-normcoll.c: New file.
80752         Tests for module 'uninorm/u8-normcoll'.
80753         * modules/uninorm/u8-normcoll-tests: New file.
80754         * tests/uninorm/test-u8-normcoll.c: New file.
80756 2009-03-07  Bruno Haible  <bruno@clisp.org>
80758         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
80759         tests/uninorm/test-u32-normcmp.c.
80760         * tests/uninorm/test-u32-normcmp.c: Include it.
80761         (test_nonascii): New function, extracted from main. Add some more
80762         tests.
80763         (main): Invoke test_ascii and test_nonascii.
80764         * modules/uninorm/u32-normcmp-tests (Files): Add
80765         tests/uninorm/test-u32-normcmp.h.
80766         (Depends-on): Remove uninorm/u32-normcmp.
80768         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
80769         tests/uninorm/test-u16-normcmp.c.
80770         * tests/uninorm/test-u16-normcmp.c: Include it.
80771         (test_nonascii): New function, extracted from main. Add some more
80772         tests.
80773         (main): Invoke test_ascii and test_nonascii.
80774         * modules/uninorm/u16-normcmp-tests (Files): Add
80775         tests/uninorm/test-u16-normcmp.h.
80776         (Depends-on): Remove uninorm/u16-normcmp.
80778         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
80779         tests/uninorm/test-u8-normcmp.c.
80780         * tests/uninorm/test-u8-normcmp.c: Include it.
80781         (test_nonascii): New function, extracted from main. Add some more
80782         tests.
80783         (main): Invoke test_ascii and test_nonascii.
80784         * modules/uninorm/u8-normcmp-tests (Files): Add
80785         tests/uninorm/test-u8-normcmp.h.
80786         (Depends-on): Remove uninorm/u8-normcmp.
80788 2009-03-07  Bruno Haible  <bruno@clisp.org>
80790         New module 'uninorm/u32-normcoll'.
80791         * lib/uninorm/u32-normcoll.c: New file.
80792         * modules/uninorm/u32-normcoll: New file.
80794         New module 'uninorm/u16-normcoll'.
80795         * lib/uninorm/u16-normcoll.c: New file.
80796         * modules/uninorm/u16-normcoll: New file.
80798         New module 'uninorm/u8-normcoll'.
80799         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
80800         declarations.
80801         * lib/uninorm/u8-normcoll.c: New file.
80802         * lib/uninorm/u-normcoll.h: New file.
80803         * modules/uninorm/u8-normcoll: New file.
80805         New module 'uninorm/u32-normxfrm'.
80806         * lib/uninorm/u32-normxfrm.c: New file.
80807         * modules/uninorm/u32-normxfrm: New file.
80809         New module 'uninorm/u16-normxfrm'.
80810         * lib/uninorm/u16-normxfrm.c: New file.
80811         * modules/uninorm/u16-normxfrm: New file.
80813         New module 'uninorm/u8-normxfrm'.
80814         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
80815         declarations.
80816         * lib/uninorm/u8-normxfrm.c: New file.
80817         * lib/uninorm/u-normxfrm.h: New file.
80818         * modules/uninorm/u8-normxfrm: New file.
80820 2009-03-07  Bruno Haible  <bruno@clisp.org>
80822         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
80823         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
80824         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
80826 2009-03-07  Bruno Haible  <bruno@clisp.org>
80828         New module 'memxfrm'.
80829         * lib/memxfrm.h: New file.
80830         * lib/memxfrm.c: New file.
80831         * modules/memxfrm: New file.
80833 2009-03-07  Bruno Haible  <bruno@clisp.org>
80835         New module 'memcmp2'.
80836         * lib/memcmp2.h: New file.
80837         * lib/memcmp2.c: New file.
80838         * modules/memcmp2: New file.
80840 2009-03-07  Bruno Haible  <bruno@clisp.org>
80842         Tests for module 'uninorm/decomposing-form'.
80843         * modules/uninorm/decomposing-form-tests: New file.
80844         * tests/uninorm/test-decomposing-form.c: New file.
80846         New module 'uninorm/decomposing-form'.
80847         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
80848         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
80849         Add 'decomposing_variant' field.
80850         * lib/uninorm/decomposing-form.c: New file.
80851         * lib/uninorm/nfc.c (uninorm_nfc): Update.
80852         * lib/uninorm/nfd.c (uninorm_nfd): Update.
80853         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
80854         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
80855         * modules/uninorm/decomposing-form: New file.
80856         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
80857         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
80859 2009-03-07  Bruno Haible  <bruno@clisp.org>
80861         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
80862         strings.
80864 2009-03-06  Bruno Haible  <bruno@clisp.org>
80866         Tests for module 'uninorm/u32-normcmp'.
80867         * tests/uninorm/test-u32-normcmp.c: New file.
80868         * modules/uninorm/u32-normcmp-tests: New file.
80870         Tests for module 'uninorm/u16-normcmp'.
80871         * tests/uninorm/test-u16-normcmp.c: New file.
80872         * modules/uninorm/u16-normcmp-tests: New file.
80874         Tests for module 'uninorm/u8-normcmp'.
80875         * tests/uninorm/test-u8-normcmp.c: New file.
80876         * modules/uninorm/u8-normcmp-tests: New file.
80878         New module 'uninorm/u32-normcmp'.
80879         * lib/uninorm/u32-normcmp.c: New file.
80880         * modules/uninorm/u32-normcmp: New file.
80882         New module 'uninorm/u16-normcmp'.
80883         * lib/uninorm/u16-normcmp.c: New file.
80884         * modules/uninorm/u16-normcmp: New file.
80886         New module 'uninorm/u8-normcmp'.
80887         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
80888         declarations.
80889         * lib/uninorm/u8-normcmp.c: New file.
80890         * lib/uninorm/u-normcmp.h: New file.
80891         * modules/uninorm/u8-normcmp: New file.
80893 2009-03-06  Bruno Haible  <bruno@clisp.org>
80895         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
80896         Reported by Eric Blake.
80898 2009-03-06  Eric Blake  <ebb9@byu.net>
80899             Bruno Haible  <bruno@clisp.org>
80901         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
80902         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
80903         condition.
80904         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
80905         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
80906         condition.
80907         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
80909 2009-03-06  Eric Blake  <ebb9@byu.net>
80911         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
80912         to avoid compiler warnings.
80913         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
80915 2009-03-05  Bruno Haible  <bruno@clisp.org>
80917         * tests/test-ftell.c (main): Disable test beyond end of file on
80918         FreeMiNT.
80919         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
80921 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
80923         * lib/filevercmp.c: Move hidden files up in ordering.
80924         * tests/test-filevercmp.c: Add tests for hidden files.
80926 2009-03-04  Bruno Haible  <bruno@clisp.org>
80928         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
80929         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
80930         AM_CFLAGS.
80931         Reported by Simon Josefsson.
80933 2009-03-03  Bruno Haible  <bruno@clisp.org>
80935         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
80936         Reported by Simon Josefsson.
80938         * doc/ld-version-script.texi: Update node reference.
80940 2009-03-03  Bruno Haible  <bruno@clisp.org>
80942         * modules/visibility (License): Change to 'unlimited'.
80943         Suggested by Simon Josefsson.
80945 2009-03-03  Jim Meyering  <meyering@redhat.com>
80947         unlinkdir: cannot_unlink_dir may modify process state
80948         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
80949         it's neither thread-safe nor appropriate for use in a library.
80951 2009-03-03  Eric Blake  <ebb9@byu.net>
80953         test-closein: silence test under Darwin
80954         * tests/test-closein.sh: Ignore stderr from cat, since we don't
80955         care if it dies from EPIPE or EBADF.
80957 2009-03-03  Bruno Haible  <bruno@clisp.org>
80959         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
80960         earlier.
80961         * doc/visibility.texi: Fix @node and @section.
80963 2009-03-03  Simon Josefsson  <simon@josefsson.org>
80965         * doc/gnulib.texi: Link to sections for ld version script and
80966         visibility.
80967         * doc/visibility.texi: Add @node and @section.
80968         * modules/ld-version-script: New module.
80969         * m4/ld-version-script.m4: New file.
80970         * doc/ld-version-script.texi: New file.
80972 2009-03-02  David Lutterkort  <lutter@redhat.com>
80974         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
80975         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80977 2009-03-02  Bruno Haible  <bruno@clisp.org>
80979         * doc/visibility.texi: Mention libtool's -export-symbols option.
80981 2009-03-02  Jim Meyering  <meyering@redhat.com>
80983         announce-gen: new option: --no-print-checksums
80984         * build-aux/announce-gen (usage): Describe it.
80985         (print_checksums): Print a newline here, not in the [*] footnote.
80986         (main): Honor it.
80988 2009-03-01  Bruno Haible  <bruno@clisp.org>
80990         Use socklen_t in the native Windows replacements prototypes.
80991         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
80992         instead of 'int'.
80993         * lib/getsockopt.c (rpl_getsockopt): Likewise.
80994         * lib/setsockopt.c (rpl_setsockopt): Likewise.
80995         * modules/getsockopt (Depends-on): Add socklen.
80996         * modules/setsockopt (Depends-on): Add socklen.
80998 2009-03-01  Bruno Haible  <bruno@clisp.org>
81000         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
81001         least 4.2.
81003 2009-03-01  Eric Blake  <ebb9@byu.net>
81004             Bruno Haible  <bruno@clisp.org>
81006         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
81007         error messages.
81008         * lib/wait-process.c (wait_subprocess): Omit error message about
81009         deadly signal sent to the child of termsigp != NULL.
81011 2009-03-01  Eric Blake  <ebb9@byu.net>
81013         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
81015 2009-03-01  Bruno Haible  <bruno@clisp.org>
81017         Avoid a gcc warning.
81018         * tests/test-sched.c (b): Make global.
81019         Reported by Eric Blake.
81021 2009-01-19  Martin Lambers  <marlam@marlam.de>
81023         Provide POSIX semantics for socket timeout options on W32.
81024         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
81025         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
81026         * modules/setsockopt: Depend on sys_time module for struct timeval.
81027         * modules/getsockopt: Depend on sys_time module for struct timeval.
81029 2009-03-01  Simon Josefsson  <simon@josefsson.org>
81031         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
81032         __USE_GNU, for consistency with netdb.in.h.
81033         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81035 2009-03-01  Bruno Haible  <bruno@clisp.org>
81037         More support for FreeMiNT.
81038         * lib/fseeko.c (rpl_fseeko): Complete last commit.
81039         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81041 2009-03-01  Bruno Haible  <bruno@clisp.org>
81043         More support for FreeMiNT.
81044         * lib/fpurge.c (fpurge): Correct last commit.
81045         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81047 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81049         Fix unportable awk script in vc-list-files.
81050         * build-aux/vc-list-files: In the replacement awk script, use
81051         substr with a second argument of 1, not zero.
81052         Report by Simon Josefsson.
81054 2009-02-28  Bruno Haible  <bruno@clisp.org>
81056         More support for FreeMiNT.
81057         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
81058         to FreeMiNT today.
81059         * lib/fwriting.c (fwriting): Likewise.
81060         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
81062 2009-02-28  Bruno Haible  <bruno@clisp.org>
81064         * tests/test-freadseek.c (main): Disable test beyond end of file on
81065         FreeMiNT.
81066         * tests/test-ftello.c (main): Likewise.
81067         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81069 2009-02-28  Bruno Haible  <bruno@clisp.org>
81071         Add tentative support for FreeMiNT.
81072         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
81073         * lib/fpurge.c (fpurge): Likewise.
81074         * lib/freadable.c (freadable): Likewise.
81075         * lib/freading.c (freading): Likewise.
81076         * lib/freadptr.c (freadptr): Likewise.
81077         * lib/freadseek.c (freadptrinc): Likewise.
81078         * lib/fseeko.c (rpl_fseeko): Likewise.
81079         * lib/fseterr.c (fseterr): Likewise.
81080         * lib/fwritable.c (fwritable): Likewise.
81081         * lib/fwriting.c (fwriting): Likewise.
81082         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
81083         Hourihane.
81084         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81086 2009-02-28  Bruno Haible  <bruno@clisp.org>
81088         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
81089         SIGCHLD.
81090         Reported by Jim Meyering.
81092 2009-02-28  Bruno Haible  <bruno@clisp.org>
81094         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
81095         Mention the results of these tests on various platforms.
81096         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
81097         order.
81098         * doc/posix-functions/printf.texi: Likewise.
81099         * doc/posix-functions/snprintf.texi: Likewise.
81100         * doc/posix-functions/sprintf.texi: Likewise.
81101         * doc/posix-functions/vfprintf.texi: Likewise.
81102         * doc/posix-functions/vprintf.texi: Likewise.
81103         * doc/posix-functions/vsnprintf.texi: Likewise.
81104         * doc/posix-functions/vsprintf.texi: Likewise.
81105         * doc/glibc-functions/obstack_printf.texi: Likewise.
81106         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
81108 2009-02-28  Bruno Haible  <bruno@clisp.org>
81110         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
81111         Reported by Loïc Minier <lool@dooz.org>.
81113 2009-02-27  Bruno Haible  <bruno@clisp.org>
81115         * gnulib-tool (func_import): Make the sed expression used to create the
81116         sed script for updating the .gitignore file POSIX compliant.
81117         Reported by Eric Blake.
81119 2009-02-27  Bruno Haible  <bruno@clisp.org>
81121         * gnulib-tool (sed): Don't alias as "sed --posix".
81122         Reported by Eric Blake.
81124 2009-02-27  Bruno Haible  <bruno@clisp.org>
81126         Avoid test link errors.
81127         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
81128         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
81129         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
81130         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
81131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81133 2009-02-27  Bruno Haible  <bruno@clisp.org>
81135         Avoid spurious "(cached)" in configure output.
81136         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
81137         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
81138         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
81139         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
81140         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
81141         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
81142         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
81143         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
81144         Reported by Eric Blake.
81146 2009-02-27  Eric Blake  <ebb9@byu.net>
81148         printf: fix regression in previous patch
81149         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
81151 2009-02-27  Bruno Haible  <bruno@clisp.org>
81153         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
81154         value.
81155         * lib/stdint.in.h: Likewise.
81156         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
81158 2009-02-27  Eric Blake  <ebb9@byu.net>
81160         doc: mention more functions added in cygwin 1.7.0
81161         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
81162         addition.
81163         * doc/posix-functions/open_wmemstream.texi: Likewise.
81164         * doc/posix-functions/wcsnlen.texi: Likewise.
81165         * doc/posix-functions/wcsnrtombs.texi: Likewise.
81166         * doc/posix-functions/wcstod.texi: Likewise.
81167         * doc/posix-functions/wcstof.texi: Likewise.
81168         * doc/posix-functions/wcstoimax.texi: Likewise.
81169         * doc/posix-functions/wcstok.texi: Likewise.
81170         * doc/posix-functions/wcstoumax.texi: Likewise.
81172         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
81173         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
81174         * doc/posix-functions/fprintf.texi: Update.
81175         * doc/posix-functions/printf.texi: Update.
81176         * doc/posix-functions/snprintf.texi: Update.
81177         * doc/posix-functions/sprintf.texi: Update.
81178         * doc/posix-functions/vfprintf.texi: Update.
81179         * doc/posix-functions/vprintf.texi: Update.
81180         * doc/posix-functions/vsnprintf.texi: Update.
81181         * doc/posix-functions/vsprintf.texi: Update.
81182         * doc/glibc-functions/obstack_printf.texi: Update.
81183         * doc/glibc-functions/obstack_vprintf.texi: Update.
81185 2009-02-26  Eric Blake  <ebb9@byu.net>
81187         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
81188         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
81189         compilation bug by using runtime conversion.
81190         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
81191         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
81192         * modules/ceill-tests (Files): Use nan.h.
81193         * modules/floorl-tests (Files): Likewise.
81194         * modules/frexpl-tests (Files): Likewise.
81195         * modules/isnanl-tests (Files): Likewise.
81196         * modules/ldexpl-tests (Files): Likewise.
81197         * modules/roundl-tests (Files): Likewise.
81198         * modules/truncl-tests (Files): Likewise.
81199         * tests/test-ceill.c (main): Use a working NaN.
81200         * tests/test-floorl.c (main): Likewise.
81201         * tests/test-frexpl.c (main): Likewise.
81202         * tests/test-isnan.c (test_long_double): Likewise.
81203         * tests/test-isnanl.h (main): Likewise.
81204         * tests/test-ldexpl.h (main): Likewise.
81205         * tests/test-roundl.h (main): Likewise.
81206         * tests/test-truncl.h (main): Likewise.
81207         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
81209 2009-02-26  Eric Blake  <ebb9@byu.net>
81210             Bruno Haible  <bruno@clisp.org>
81212         Work around a *printf bug with %ls on Solaris.
81213         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
81214         precision is specified, sprintf stops converting the wide string
81215         argument when the number of bytes that have been produced by this
81216         conversion equals or exceeds the precision.
81217         * doc/posix-functions/fprintf.texi: Update.
81218         * doc/posix-functions/printf.texi: Update.
81219         * doc/posix-functions/snprintf.texi: Update.
81220         * doc/posix-functions/sprintf.texi: Update.
81221         * doc/posix-functions/vfprintf.texi: Update.
81222         * doc/posix-functions/vprintf.texi: Update.
81223         * doc/posix-functions/vsnprintf.texi: Update.
81224         * doc/posix-functions/vsprintf.texi: Update.
81225         * doc/glibc-functions/obstack_printf.texi: Update.
81226         * doc/glibc-functions/obstack_vprintf.texi: Update.
81228 2009-02-26  Eric Blake  <ebb9@byu.net>
81230         stdlib: favor compiler check of random.h
81231         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
81232         to avoid an ObjC random.h installed by Swarm.
81234 2009-02-26  Bruno Haible  <bruno@clisp.org>
81236         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
81237         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
81238         Reported by Gary V. Vaughan <gary@gnu.org>.
81240 2009-02-26  Bruno Haible  <bruno@clisp.org>
81242         Fix *printf behaviour regarding the %ls directive.
81243         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
81244         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
81245         NEED_PRINTF_DIRECTIVE_LS.
81246         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
81247         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81248         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81249         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
81250         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
81251         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
81252         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
81253         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81254         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81255         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81256         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81257         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
81258         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81259         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81260         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81261         * doc/posix-functions/fprintf.texi: Update.
81262         * doc/posix-functions/printf.texi: Update.
81263         * doc/posix-functions/snprintf.texi: Update.
81264         * doc/posix-functions/sprintf.texi: Update.
81265         * doc/posix-functions/vfprintf.texi: Update.
81266         * doc/posix-functions/vprintf.texi: Update.
81267         * doc/posix-functions/vsnprintf.texi: Update.
81268         * doc/posix-functions/vsprintf.texi: Update.
81269         * doc/glibc-functions/obstack_printf.texi: Update.
81270         * doc/glibc-functions/obstack_vprintf.texi: Update.
81271         Reported by Eric Blake.
81273 2009-02-25  Bruno Haible  <bruno@clisp.org>
81275         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
81276         with known value.
81277         Reported by Gary V. Vaughan <gary@gnu.org>.
81279 2009-02-25  Bruno Haible  <bruno@clisp.org>
81281         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
81282         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
81283         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
81284         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
81285         Reported by Gary V. Vaughan <gary@gnu.org>.
81287 2009-02-25  Bruno Haible  <bruno@clisp.org>
81289         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
81290         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
81291         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
81292         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
81293         Reported by Gary V. Vaughan <gary@gnu.org>.
81295 2009-02-25  Eric Blake  <ebb9@byu.net>
81297         tests: skip fseek/ftell tests if ungetc is broken
81298         * m4/ungetc.m4: New file.
81299         * modules/fseek-tests: Split test, so ungetc dependency is
81300         separate from rest of test.
81301         * modules/fseeko-tests: Likewise.
81302         * modules/ftell-tests: Likewise.
81303         * modules/ftello-tests: Likewise.
81304         * tests/test-fseek.c (main): Isolate ungetc dependency.
81305         * tests/test-fseeko.c (main): Likewise.
81306         * tests/test-ftell.c (main): Likewise.
81307         * tests/test-ftello.c (main): Likewise.
81308         * tests/test-fseek2.sh: New file.
81309         * tests/test-fseeko2.sh: Likewise.
81310         * tests/test-ftell2.sh: Likewise.
81311         * tests/test-ftello2.sh: Likewise.
81313 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
81315         test-getaddrinfo: fix usage of skip return code 77
81316         * tests/test-gettaddrinfo.c: Return skip code 77 only
81317         for first occurrence of skip (4x77 is not 77)
81319 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
81321         strtod: avoid C99 decl-after-statement
81322         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
81324 2009-02-24  Eric Blake  <ebb9@byu.net>
81326         strtod: detect HP-UX 11.31 bug
81327         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
81328         Reported by Gary V. Vaughan.
81330 2009-02-23  Bruno Haible  <bruno@clisp.org>
81332         Fix invalid read past end of memory block.
81333         * lib/vasnprintf.c (DCHAR_SET): Define.
81334         (local_wcslen): Define only when needed.
81335         (local_strnlen, local_wcsnlen): New functions.
81336         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
81337         directives that involve a conversion ourselves.
81338         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
81339         wcsnlen, mbrtowc, wcrtomb.
81340         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
81341         * tests/test-vasprintf-posix.c (test_function): Likewise.
81342         * tests/test-snprintf-posix.h (test_function): Likewise.
81343         * tests/test-sprintf-posix.h (test_function): Likewise.
81344         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81346 2009-02-22  Bruno Haible  <bruno@clisp.org>
81348         Implement new clarified decomposition of Hangul syllables.
81349         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
81350         of type LTV, return only a pairwise decomposition.
81351         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
81352         Likewise.
81353         * tests/uninorm/test-decomposition.c (main): Updated expected result.
81354         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
81355         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
81357 2009-02-22  Bruno Haible  <bruno@clisp.org>
81359         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
81360         zero-length results and shrink excess allocated memory.
81361         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
81362         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
81363         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
81364         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
81365         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
81366         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
81367         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
81368         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
81369         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
81370         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
81371         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
81372         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
81374 2009-02-21  Bruno Haible  <bruno@clisp.org>
81376         * doc/gnulib.texi: Include safe-alloc.texi earlier.
81377         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
81378         spaces after a period. Put a space between a macro name and its
81379         argument list. Trivial rewordings.
81380         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
81381         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
81382         (main): Return 0 explicitly.
81384 2009-02-21  Bruno Haible  <bruno@clisp.org>
81386         Tests for module 'uninorm/filter'.
81387         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
81388         * modules/uninorm/filter-tests: New file.
81390         New module 'uninorm/filter'.
81391         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
81392         uninorm_filter_flush, uninorm_filter_free): New declarations.
81393         * lib/uninorm/uninorm-filter.c: New file.
81394         * modules/uninorm/filter: New file.
81396 2009-02-21  Bruno Haible  <bruno@clisp.org>
81398         Tests for module 'uninorm/nfkc'.
81399         * tests/uninorm/test-nfkc.c: New file.
81400         * tests/uninorm/test-u8-nfkc.c: New file.
81401         * tests/uninorm/test-u16-nfkc.c: New file.
81402         * tests/uninorm/test-u32-nfkc.c: New file.
81403         * tests/uninorm/test-u32-nfkc-big.sh: New file.
81404         * tests/uninorm/test-u32-nfkc-big.c: New file.
81405         * modules/uninorm/nfkc-tests: New file.
81407         New module 'uninorm/nfkc'.
81408         * lib/uninorm/nfkc.c: New file.
81409         * modules/uninorm/nfkc: New file.
81411         Tests for module 'uninorm/nfkd'.
81412         * tests/uninorm/test-nfkd.c: New file.
81413         * tests/uninorm/test-u8-nfkd.c: New file.
81414         * tests/uninorm/test-u16-nfkd.c: New file.
81415         * tests/uninorm/test-u32-nfkd.c: New file.
81416         * tests/uninorm/test-u32-nfkd-big.sh: New file.
81417         * tests/uninorm/test-u32-nfkd-big.c: New file.
81418         * modules/uninorm/nfkd-tests: New file.
81420         New module 'uninorm/nfkd'.
81421         * lib/uninorm/nfkd.c: New file.
81422         * modules/uninorm/nfkd: New file.
81424         Tests for module 'uninorm/nfc'.
81425         * tests/uninorm/test-nfc.c: New file.
81426         * tests/uninorm/test-u8-nfc.c: New file.
81427         * tests/uninorm/test-u16-nfc.c: New file.
81428         * tests/uninorm/test-u32-nfc.c: New file.
81429         * tests/uninorm/test-u32-nfc-big.sh: New file.
81430         * tests/uninorm/test-u32-nfc-big.c: New file.
81431         * modules/uninorm/nfc-tests: New file.
81433         New module 'uninorm/nfc'.
81434         * lib/uninorm/nfc.c: New file.
81435         * modules/uninorm/nfc: New file.
81437         Tests for module 'uninorm/nfd'.
81438         * tests/uninorm/test-nfd.c: New file.
81439         * tests/uninorm/test-u8-nfd.c: New file.
81440         * tests/uninorm/test-u16-nfd.c: New file.
81441         * tests/uninorm/test-u32-nfd.c: New file.
81442         * tests/uninorm/test-u32-nfd-big.sh: New file.
81443         * tests/uninorm/test-u32-nfd-big.c: New file.
81444         * tests/uninorm/test-u32-normalize-big.h: New file.
81445         * tests/uninorm/test-u32-normalize-big.c: New file.
81446         * tests/uninorm/NormalizationTest.txt: New file, created from
81447         Unicode 5.1.0 NormalizationTest.txt.
81448         * modules/uninorm/nfd-tests: New file.
81450         New module 'uninorm/nfd'.
81451         * lib/uninorm/nfd.c: New file.
81452         * modules/uninorm/nfd: New file.
81454         New module 'uninorm/u32-normalize'.
81455         * lib/uninorm/u32-normalize.c: New file.
81456         * modules/uninorm/u32-normalize: New file.
81458         New module 'uninorm/u16-normalize'.
81459         * lib/uninorm/u16-normalize.c: New file.
81460         * modules/uninorm/u16-normalize: New file.
81462         New module 'uninorm/u8-normalize'.
81463         * lib/uninorm/u8-normalize.c: New file.
81464         * lib/uninorm/normalize-internal.h: New file.
81465         * lib/uninorm/u-normalize-internal.h: New file.
81466         * modules/uninorm/u8-normalize: New file.
81468         New module 'uninorm/decompose-internal'.
81469         * lib/uninorm/decompose-internal.c: New file.
81470         * modules/uninorm/decompose-internal: New file.
81472         Tests for module 'uninorm/composition'.
81473         * tests/uninorm/test-composition.c: New file.
81474         * modules/uninorm/composition-tests: New file.
81476         New module 'uninorm/composition'.
81477         * lib/uninorm/composition.c: New file.
81478         * lib/uninorm/composition-table.gperf: New file, generated by
81479         gen-uni-tables.
81480         * modules/uninorm/composition: New file.
81482         Tests for module 'uninorm/compat-decomposition'.
81483         * tests/uninorm/test-compat-decomposition.c: New file.
81484         * modules/uninorm/compat-decomposition-tests: New file.
81486         New module 'uninorm/compat-decomposition'.
81487         * lib/uninorm/decompose-internal.h: New file.
81488         * lib/uninorm/compat-decomposition.c: New file.
81489         * modules/uninorm/compat-decomposition: New file.
81491         Tests for module 'uninorm/canonical-decomposition'.
81492         * tests/uninorm/test-canonical-decomposition.c: New file.
81493         * modules/uninorm/canonical-decomposition-tests: New file.
81495         New module 'uninorm/canonical-decomposition'.
81496         * lib/uninorm/canonical-decomposition.c: New file.
81497         * modules/uninorm/canonical-decomposition: New file.
81499         Tests for module 'uninorm/decomposition'.
81500         * tests/uninorm/test-decomposition.c: New file.
81501         * modules/uninorm/decomposition-tests: New file.
81503         New module 'uninorm/decomposition'.
81504         * lib/uninorm/decomposition.c: New file.
81505         * modules/uninorm/decomposition: New file.
81507         New module 'uninorm/decomposition-table'.
81508         * lib/uninorm/decomposition-table.h: New file.
81509         * lib/uninorm/decomposition-table.c: New file.
81510         * lib/uninorm/decomposition-table1.h: New file, generated by
81511         gen-uni-tables.
81512         * lib/uninorm/decomposition-table2.h: New file, generated by
81513         gen-uni-tables.
81514         * modules/uninorm/decomposition-table: New file.
81516         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
81517         (UC_DECOMP_*): New enumeration items.
81518         (get_decomposition): New function.
81519         (struct decomp_table): New type.
81520         (output_decomposition, output_decomposition_tables): New functions.
81521         (unicode_composition_exclusions): New variable.
81522         (fill_composition_exclusions, debug_output_composition_tables): New
81523         functions.
81524         (main): Accept one more argument. Invoke fill_composition_exclusions.
81525         Output decomposition and composition tables.
81527         New module 'uninorm/base'.
81528         * lib/uninorm.h: New file.
81529         * lib/unictype.h: Update comment.
81530         * modules/uninorm/base: New file.
81532 2009-02-21  David Lutterkort  <lutter@redhat.com>
81534         Tests for module 'safe-alloc'.
81535         * tests/test-safe-alloc.c: New file.
81536         * modules/safe-alloc-tests: New file.
81538         New module 'safe-alloc'.
81539         * lib/safe-alloc.h: New file.
81540         * lib/safe-alloc.c: New file.
81541         * m4/safe-alloc.m4: New file.
81542         * modules/safe-alloc: New file.
81543         * doc/safe-alloc.texi: New file.
81544         * doc/gnulib.texi: Include it.
81545         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
81546         safe-alloc.
81548 2009-02-18  Bruno Haible  <bruno@clisp.org>
81550         Fix link error on non-glibc systems.
81551         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
81552         variable.
81553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81555 2009-02-18  Jim Meyering  <meyering@redhat.com>
81557         fts: avoid used-uninitialized error due to recent change
81558         * lib/fts.c (fts_read): Guard uses of the new member,
81559         parent->fts_n_dirs_remaining, since it's not relevant for
81560         the parent of a directory specified on the command-line.
81562 2009-02-17  James Youngman  <jay@gnu.org>
81563             Bruno Haible  <bruno@clisp.org>
81565         * m4/include_next.m4: Reformulate comment.
81567 2009-02-16  Jim Meyering  <meyering@redhat.com>
81569         fts: add #if guards so that the fts_lgpl module still builds
81570         * lib/fts.c: Guard just-added hash-table-using parts with
81571         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
81572         Reported by Simon Josefsson.
81574 2009-02-15  Bruno Haible  <bruno@clisp.org>
81576         * modules/array-mergesort-tests: New file.
81577         * tests/test-array-mergesort.c: New file.
81579         New module 'array-mergesort'.
81580         * modules/array-mergesort: New file.
81581         * lib/array-mergesort.h: New file.
81583 2009-02-15  Bruno Haible  <bruno@clisp.org>
81585         Fix 2009-02-07 commit.
81586         * lib/gen-uni-tables.c (output_predicate, output_category,
81587         output_combclass, output_bidi_category, output_decimal_digit,
81588         output_digit, output_numeric, output_mirror, output_scripts,
81589         output_ident_category, output_simple_mapping): Fix format directives.
81590         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
81592 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
81594         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
81595         fixes are available from IBM.
81597 2009-02-13  Jim Meyering  <meyering@redhat.com>
81599         fts: arrange not to stat non-directories in more cases
81600         This makes GNU find (when it doesn't need to stat each file)
81601         *much* more efficient at traversing reiserfs file systems.
81602         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
81603         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
81604         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
81605         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
81606         (leaf_optimization_applies): New function.
81607         (LCO_hash, LCO_compare): New helper functions.
81608         (link_count_optimize_ok): New function.
81609         (fts_stat): Initialize new member (if dir).
81610         (fts_read): Decrement parent's fts_n_dirs_remaining count if
81611         we've just stat'ed a directory.  Skip the stat call when possible.
81612         ---
81613         Note this AFS-related exchange:
81614         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
81615         and note find's pioctl call in find/fstype.c.
81616         But that is necessary only if you want to enable the
81617         optimization for AFS, and for now, I don't.
81619         fts: move a function definition "up" (no semantic change)
81620         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
81621         "up" to precede upcoming use of a related function.
81623 2009-02-11  Jim Meyering  <meyering@redhat.com>
81625         fts: correct internal computation of nlinks (optimization-related)
81626         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
81627         whether the current entry is a directory, so don't test it.
81629 2009-02-10  Bruno Haible  <bruno@clisp.org>
81631         Tests for module 'uniwbrk/ulc-wordbreaks'.
81632         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
81633         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
81634         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
81636         Tests for module 'uniwbrk/u32-wordbreaks'.
81637         * modules/uniwbrk/u32-wordbreaks-tests: New file.
81638         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
81640         Tests for module 'uniwbrk/u16-wordbreaks'.
81641         * modules/uniwbrk/u16-wordbreaks-tests: New file.
81642         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
81644         Tests for module 'uniwbrk/u8-wordbreaks'.
81645         * modules/uniwbrk/u8-wordbreaks-tests: New file.
81646         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
81648 2009-02-10  Bruno Haible  <bruno@clisp.org>
81650         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
81651         property.
81652         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
81653         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
81654         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
81656 2009-02-10  Simon Josefsson  <simon@josefsson.org>
81658         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
81659         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
81661 2009-02-10  Bruno Haible  <bruno@clisp.org>
81663         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
81664         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
81665         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
81666         * lib/unilbrk/u8-possible-linebreaks.c: Update.
81667         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
81668         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
81670 2009-02-09  Simon Josefsson  <simon@josefsson.org>
81672         * lib/sockets.h (gl_fd_to_handle): New function.
81674         * tests/test-sockets.c: Call gl_fd_to_handle.
81676 2009-02-09  Bruno Haible  <bruno@clisp.org>
81678         * doc/havelib.texi: Document the conventions on bi-arch systems.
81680 2009-02-08  Bruno Haible  <bruno@clisp.org>
81682         Document the AC_LIB_LINKFLAGS macro.
81683         * doc/havelib.texi: New file, mostly written on 2005-05-24.
81684         * doc/gnulib.texi: Include it.
81686 2009-02-08  Bruno Haible  <bruno@clisp.org>
81688         Fix wrong order of sections, compared to TOC.
81689         * doc/gnulib.texi: Include relocatable-maint.texi after the
81690         "Regular expressions" node, not before.
81692 2009-02-08  Bruno Haible  <bruno@clisp.org>
81694         Tests for module 'unicase/totitle'.
81695         * modules/unicase/totitle-tests: New file.
81697         Tests for module 'unicase/tolower'.
81698         * modules/unicase/tolower-tests: New file.
81700         Tests for module 'unicase/toupper'.
81701         * modules/unicase/toupper-tests: New file.
81702         * tests/unicase/test-mapping-part1.h: New file.
81703         * tests/unicase/test-mapping-part2.h: New file.
81705         New module 'unicase/totitle'.
81706         * modules/unicase/totitle: New file.
81707         * lib/unicase/totitle.c: New file.
81709         New module 'unicase/tolower'.
81710         * modules/unicase/tolower: New file.
81711         * lib/unicase/tolower.c: New file.
81713         New module 'unicase/toupper'.
81714         * modules/unicase/toupper: New file.
81715         * lib/unicase/toupper.c: New file.
81716         * lib/unicase/simple-mapping.h: New file.
81718         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
81719         (mapping_table): New structure.
81720         (output_simple_mapping): New function.
81721         (main): Invoke output_simple_mapping_test and output_simple_mapping.
81722         * modules/gen-uni-tables (Description): Update.
81723         * lib/unicase/toupper.h: New file, automatically generated by
81724         gen-uni-tables.
81725         * lib/unicase/tolower.h: New file, automatically generated by
81726         gen-uni-tables.
81727         * lib/unicase/totitle.h: New file, automatically generated by
81728         gen-uni-tables.
81729         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
81730         gen-uni-tables.
81731         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
81732         gen-uni-tables.
81733         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
81734         gen-uni-tables.
81736         New module 'unicase/base'.
81737         * modules/unicase/base: New file.
81738         * lib/unicase.h: New file.
81740 2009-02-08  Bruno Haible  <bruno@clisp.org>
81742         New module 'uniwbrk/ulc-wordbreaks'.
81743         * modules/uniwbrk/ulc-wordbreaks: New file.
81744         * lib/uniwbrk/ulc-wordbreaks.c: New file.
81746         New module 'uniwbrk/u32-wordbreaks'.
81747         * modules/uniwbrk/u32-wordbreaks: New file.
81748         * lib/uniwbrk/u32-wordbreaks.c: New file.
81750         New module 'uniwbrk/u16-wordbreaks'.
81751         * modules/uniwbrk/u16-wordbreaks: New file.
81752         * lib/uniwbrk/u16-wordbreaks.c: New file.
81754         New module 'uniwbrk/u8-wordbreaks'.
81755         * modules/uniwbrk/u8-wordbreaks: New file.
81756         * lib/uniwbrk/u8-wordbreaks.c: New file.
81757         * lib/uniwbrk/u-wordbreaks.h: New file.
81759         New module 'uniwbrk/table'.
81760         * modules/uniwbrk/table: New file.
81761         * lib/uniwbrk/wbrktable.h: New file.
81762         * lib/uniwbrk/wbrktable.c: New file.
81764         New module 'uniwbrk/wordbreak-property'.
81765         * modules/uniwbrk/wordbreak-property: New file.
81766         * lib/uniwbrk/wordbreak-property.c: New file.
81768         * lib/gen-uni-tables.c (WBP_*): New enum items.
81769         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
81770         (unicode_org_wbp): New variable.
81771         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
81772         New functions.
81773         (wbp_table): New structure.
81774         (output_wbp, output_wbrk_tables): New functions.
81775         (main): Accept additional argument. Invoke fill_org_wbp,
81776         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
81777         output_wbrk_tables.
81778         * modules/gen-uni-tables (Description): Update.
81779         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
81780         gen-uni-tables.
81782         New module 'uniwbrk/base'.
81783         * modules/uniwbrk/base: New file.
81784         * lib/uniwbrk.h: New file.
81786 2009-02-08  Bruno Haible  <bruno@clisp.org>
81788         Update to Unicode 5.1.0.
81789         * lib/gen-uni-tables.c (is_property_alphabetic): Include
81790         U+2185..U+2188.
81791         (is_property_default_ignorable_code_point): Don't include characters
81792         of category Cc or Cs and not-a-characters.
81793         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
81794         U+0D79, U+109E, U+109F, U+A60C.
81795         * lib/unictype/bidi_of.h: Regenerated.
81796         * lib/unictype/blocks.h: Regenerated.
81797         * lib/unictype/categ_C.h: Regenerated.
81798         * lib/unictype/categ_Cf.h: Regenerated.
81799         * lib/unictype/categ_Cn.h: Regenerated.
81800         * lib/unictype/categ_L.h: Regenerated.
81801         * lib/unictype/categ_Ll.h: Regenerated.
81802         * lib/unictype/categ_Lm.h: Regenerated.
81803         * lib/unictype/categ_Lo.h: Regenerated.
81804         * lib/unictype/categ_Lu.h: Regenerated.
81805         * lib/unictype/categ_M.h: Regenerated.
81806         * lib/unictype/categ_Mc.h: Regenerated.
81807         * lib/unictype/categ_Me.h: Regenerated.
81808         * lib/unictype/categ_Mn.h: Regenerated.
81809         * lib/unictype/categ_N.h: Regenerated.
81810         * lib/unictype/categ_Nd.h: Regenerated.
81811         * lib/unictype/categ_Nl.h: Regenerated.
81812         * lib/unictype/categ_No.h: Regenerated.
81813         * lib/unictype/categ_P.h: Regenerated.
81814         * lib/unictype/categ_Pd.h: Regenerated.
81815         * lib/unictype/categ_Pe.h: Regenerated.
81816         * lib/unictype/categ_Pf.h: Regenerated.
81817         * lib/unictype/categ_Pi.h: Regenerated.
81818         * lib/unictype/categ_Po.h: Regenerated.
81819         * lib/unictype/categ_Ps.h: Regenerated.
81820         * lib/unictype/categ_S.h: Regenerated.
81821         * lib/unictype/categ_Sk.h: Regenerated.
81822         * lib/unictype/categ_Sm.h: Regenerated.
81823         * lib/unictype/categ_So.h: Regenerated.
81824         * lib/unictype/categ_of.h: Regenerated.
81825         * lib/unictype/combining.h: Regenerated.
81826         * lib/unictype/ctype_alnum.h: Regenerated.
81827         * lib/unictype/ctype_alpha.h: Regenerated.
81828         * lib/unictype/ctype_graph.h: Regenerated.
81829         * lib/unictype/ctype_lower.h: Regenerated.
81830         * lib/unictype/ctype_print.h: Regenerated.
81831         * lib/unictype/ctype_punct.h: Regenerated.
81832         * lib/unictype/ctype_upper.h: Regenerated.
81833         * lib/unictype/decdigit.h: Regenerated.
81834         * lib/unictype/digit.h: Regenerated.
81835         * lib/unictype/mirror.h: Regenerated.
81836         * lib/unictype/numeric.h: Regenerated.
81837         * lib/unictype/pr_alphabetic.h: Regenerated.
81838         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
81839         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
81840         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
81841         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
81842         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
81843         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
81844         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
81845         * lib/unictype/pr_combining.h: Regenerated.
81846         * lib/unictype/pr_dash.h: Regenerated.
81847         * lib/unictype/pr_decimal_digit.h: Regenerated.
81848         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
81849         * lib/unictype/pr_deprecated.h: Regenerated.
81850         * lib/unictype/pr_diacritic.h: Regenerated.
81851         * lib/unictype/pr_extender.h: Regenerated.
81852         * lib/unictype/pr_format_control.h: Regenerated.
81853         * lib/unictype/pr_grapheme_base.h: Regenerated.
81854         * lib/unictype/pr_grapheme_extend.h: Regenerated.
81855         * lib/unictype/pr_grapheme_link.h: Regenerated.
81856         * lib/unictype/pr_id_continue.h: Regenerated.
81857         * lib/unictype/pr_id_start.h: Regenerated.
81858         * lib/unictype/pr_ideographic.h: Regenerated.
81859         * lib/unictype/pr_ignorable_control.h: Regenerated.
81860         * lib/unictype/pr_lowercase.h: Regenerated.
81861         * lib/unictype/pr_math.h: Regenerated.
81862         * lib/unictype/pr_numeric.h: Regenerated.
81863         * lib/unictype/pr_other_alphabetic.h: Regenerated.
81864         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
81865         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
81866         * lib/unictype/pr_other_id_continue.h: Regenerated.
81867         * lib/unictype/pr_other_lowercase.h: Regenerated.
81868         * lib/unictype/pr_other_math.h: Regenerated.
81869         * lib/unictype/pr_punctuation.h: Regenerated.
81870         * lib/unictype/pr_sentence_terminal.h: Regenerated.
81871         * lib/unictype/pr_soft_dotted.h: Regenerated.
81872         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
81873         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
81874         * lib/unictype/pr_unified_ideograph.h: Regenerated.
81875         * lib/unictype/pr_uppercase.h: Regenerated.
81876         * lib/unictype/pr_xid_continue.h: Regenerated.
81877         * lib/unictype/pr_xid_start.h: Regenerated.
81878         * lib/unictype/pr_zero_width.h: Regenerated.
81879         * lib/unictype/scripts.h: Regenerated.
81880         * lib/unictype/scripts_byname.gperf: Regenerated.
81881         * lib/unictype/sy_java_ident.h: Regenerated.
81882         * lib/unilbrk/lbrkprop1.h: Regenerated.
81883         * lib/unilbrk/lbrkprop2.h: Regenerated.
81884         * tests/unictype/test-categ_C.c: Regenerated.
81885         * tests/unictype/test-categ_Cf.c: Regenerated.
81886         * tests/unictype/test-categ_Cn.c: Regenerated.
81887         * tests/unictype/test-categ_L.c: Regenerated.
81888         * tests/unictype/test-categ_Ll.c: Regenerated.
81889         * tests/unictype/test-categ_Lm.c: Regenerated.
81890         * tests/unictype/test-categ_Lo.c: Regenerated.
81891         * tests/unictype/test-categ_Lu.c: Regenerated.
81892         * tests/unictype/test-categ_M.c: Regenerated.
81893         * tests/unictype/test-categ_Mc.c: Regenerated.
81894         * tests/unictype/test-categ_Me.c: Regenerated.
81895         * tests/unictype/test-categ_Mn.c: Regenerated.
81896         * tests/unictype/test-categ_N.c: Regenerated.
81897         * tests/unictype/test-categ_Nd.c: Regenerated.
81898         * tests/unictype/test-categ_Nl.c: Regenerated.
81899         * tests/unictype/test-categ_No.c: Regenerated.
81900         * tests/unictype/test-categ_P.c: Regenerated.
81901         * tests/unictype/test-categ_Pd.c: Regenerated.
81902         * tests/unictype/test-categ_Pe.c: Regenerated.
81903         * tests/unictype/test-categ_Pf.c: Regenerated.
81904         * tests/unictype/test-categ_Pi.c: Regenerated.
81905         * tests/unictype/test-categ_Po.c: Regenerated.
81906         * tests/unictype/test-categ_Ps.c: Regenerated.
81907         * tests/unictype/test-categ_S.c: Regenerated.
81908         * tests/unictype/test-categ_Sk.c: Regenerated.
81909         * tests/unictype/test-categ_Sm.c: Regenerated.
81910         * tests/unictype/test-categ_So.c: Regenerated.
81911         * tests/unictype/test-ctype_alnum.c: Regenerated.
81912         * tests/unictype/test-ctype_alpha.c: Regenerated.
81913         * tests/unictype/test-ctype_graph.c: Regenerated.
81914         * tests/unictype/test-ctype_lower.c: Regenerated.
81915         * tests/unictype/test-ctype_print.c: Regenerated.
81916         * tests/unictype/test-ctype_punct.c: Regenerated.
81917         * tests/unictype/test-ctype_upper.c: Regenerated.
81918         * tests/unictype/test-decdigit.h: Regenerated.
81919         * tests/unictype/test-digit.h: Regenerated.
81920         * tests/unictype/test-numeric.h: Regenerated.
81921         * tests/unictype/test-pr_alphabetic.c: Regenerated.
81922         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
81923         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
81924         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
81925         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
81926         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
81927         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
81928         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
81929         * tests/unictype/test-pr_combining.c: Regenerated.
81930         * tests/unictype/test-pr_dash.c: Regenerated.
81931         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
81932         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
81933         * tests/unictype/test-pr_deprecated.c: Regenerated.
81934         * tests/unictype/test-pr_diacritic.c: Regenerated.
81935         * tests/unictype/test-pr_extender.c: Regenerated.
81936         * tests/unictype/test-pr_format_control.c: Regenerated.
81937         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
81938         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
81939         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
81940         * tests/unictype/test-pr_id_continue.c: Regenerated.
81941         * tests/unictype/test-pr_id_start.c: Regenerated.
81942         * tests/unictype/test-pr_ideographic.c: Regenerated.
81943         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
81944         * tests/unictype/test-pr_lowercase.c: Regenerated.
81945         * tests/unictype/test-pr_math.c: Regenerated.
81946         * tests/unictype/test-pr_numeric.c: Regenerated.
81947         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
81948         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
81949         Regenerated.
81950         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
81951         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
81952         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
81953         * tests/unictype/test-pr_other_math.c: Regenerated.
81954         * tests/unictype/test-pr_punctuation.c: Regenerated.
81955         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
81956         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
81957         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
81958         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
81959         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
81960         * tests/unictype/test-pr_uppercase.c: Regenerated.
81961         * tests/unictype/test-pr_xid_continue.c: Regenerated.
81962         * tests/unictype/test-pr_xid_start.c: Regenerated.
81963         * tests/unictype/test-pr_zero_width.c: Regenerated.
81965         Update to Unicode 5.1.0.
81966         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
81967         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
81968         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
81969         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
81970         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
81971         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
81972         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
81973         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
81974         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
81975         (nonspacing_table_ind): Update.
81976         * tests/uniwidth/test-uc_width2.sh: Update expected result.
81978         Update to Unicode 5.1.0.
81979         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
81980         code transform.
81981         * lib/uniname/uniname.c (unicode_character_name,
81982         unicode_name_character): Add the range 0x1Fxxx to the code transform.
81983         * lib/uniname/uninames.h: Regenerated.
81984         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
81986 2009-02-07  Bruno Haible  <bruno@clisp.org>
81988         Merge gen-ctype and gen-lbrk into a single program.
81989         * lib/gen-uni-tables.c: New file, incorporating
81990         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
81991         Add directory prefixes to the names of the generated files.
81992         * lib/unictype/gen-ctype.c: Remove file.
81993         * lib/unilbrk/gen-lbrk.c: Remove file.
81994         * modules/gen-uni-tables: New file.
81995         * modules/unictype/gen-ctype: Remove file.
81996         * modules/unilbrk/gen-lbrk: Remove file.
81998 2009-02-07  Bruno Haible  <bruno@clisp.org>
82000         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
82002         New module 'unistr/u32-strcoll'.
82003         * modules/unistr/u32-strcoll: New file.
82004         * lib/unistr/u32-strcoll.c: New file.
82006         New module 'unistr/u16-strcoll'.
82007         * modules/unistr/u16-strcoll: New file.
82008         * lib/unistr/u16-strcoll.c: New file.
82010         New module 'unistr/u8-strcoll'.
82011         * modules/unistr/u8-strcoll: New file.
82012         * lib/unistr/u8-strcoll.c: New file.
82013         * lib/unistr/u-strcoll.h: New file.
82015 2009-02-07  Bruno Haible  <bruno@clisp.org>
82017         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
82018         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82019         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82020         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
82021         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
82022         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
82024 2009-02-07  Bruno Haible  <bruno@clisp.org>
82026         Make 64-bit clean.
82027         * lib/unictype/gen-ctype.c (output_predicate, output_category,
82028         output_combclass, output_bidi_category, output_decimal_digit,
82029         output_digit, output_numeric, output_mirror, output_scripts,
82030         output_ident_category): Use proper width specifier in format strings.
82032 2009-02-07  Bruno Haible  <bruno@clisp.org>
82034         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
82035         failure behaviour.
82037 2009-02-07  Jim Meyering  <meyering@redhat.com>
82039         regex: avoid compilation failure with upcoming gcc-4.4
82040         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
82041         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
82042         "... error: integer overflow in preprocessor expression".
82044 2009-02-05  Ben Pfaff  <blp@gnu.org>
82046         Fix link errors on Windows when close module is used.
82047         * modules/close: Add $(LIB_CLOSE) to Link section.
82048         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
82049         $(LIB_CLOSE) on Windows.
82051 2009-02-05  Jim Meyering  <meyering@redhat.com>
82053         still avoid unused-parameter warnings, but do it cleanly
82054         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
82055         (get_fs_usage): Cast to void instead.
82056         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
82057         (dev_from_mount_options, read_file_system_list): Cast to void.
82058         Prompted by Bruno Haible.
82060 2009-02-04  Jim Meyering  <meyering@redhat.com>
82062         fsusage.c: correct copyright year
82063         * lib/fsusage.c: Reflect year in which the change is pushed into
82065         avoid misc. warnings
82066         * lib/fsusage.c (UNUSED_PARAM): Define.
82067         (get_fs_usage): Mark parameter "disk" as unused.
82068         * lib/getugroups.c (getgrent): Use "void" in prototype.
82069         * lib/mountlist.c: Mark unused parameters.
82070         (read_file_system_list): Declare a local with "const".
82071         * lib/nanosleep.c (getnow): Declare static.
82072         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
82074         dirfd: set errno upon failure
82075         * lib/dirfd.c: Include <errno.h>.
82076         Set errno to ENOTSUP when returning -1.
82077         * modules/dirfd (Depends-on): Add errno.
82078         Suggested by John Kodis <kodis@comcast.net>.
82080 2009-02-01  Bruno Haible  <bruno@clisp.org>
82082         Don't assume sizeof (long) >= sizeof (void *).
82083         * lib/memcmp.c: Include stdint.h.
82084         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
82085         srcp2 to 'const byte *'.
82086         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
82087         types to uintptr_t.
82088         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
82089         * modules/memcmp (Depends-on): Add stdint.
82090         Reported by Ozkan Sezer <sezeroz@gmail.com>.
82092 2009-01-30  Eric Blake  <ebb9@byu.net>
82094         fix more require-before-expand issues
82095         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
82096         expand, AC_PROG_AWK.
82097         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
82099 2009-01-28  Eric Blake  <ebb9@byu.net>
82101         version-etc: use consistent URL formatting
82102         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
82103         Improve formatting.  Use fputs for string without %.
82105 2009-01-28  Jim Meyering  <meyering@redhat.com>
82107         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
82108         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
82109         "underquoted definition of NAME" from autoconf-2.59.
82111 2009-01-28  Bruno Haible  <bruno@clisp.org>
82113         * doc/gnulib.texi: Add "Obsolete modules" to index.
82115 2009-01-28  Jim Meyering  <meyering@redhat.com>
82117         useless-if-before-free: recognize more variants
82118         * build-aux/useless-if-before-free: Also recognize e.g.,
82119         if (NULL != p) free (p);
82121 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
82123         test-getaddrinfo: skip (don't fail) this test when there's no network
82124         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
82125         on the presumption that it means you lack network access.
82127 2009-01-26  Jim Meyering  <meyering@redhat.com>
82129         fflush: avoid warnings on modern systems
82130         * lib/fflush.c (rpl_fflush): Move declarations of locals,
82131         pos and result, into scopes where they're used.
82133 2009-01-26  Eric Blake  <ebb9@byu.net>
82135         Silence warning reintroduced by recent extensions patch.
82136         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
82137         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
82138         autoconf.
82140         Backport improved autoconf semantics of AC_DEFUN_ONCE.
82141         * m4/00gnulib.m4: New file.
82142         * gnulib-tool (func_get_filelist): Always use it.
82143         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
82144         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
82146 2009-01-25  Bruno Haible  <bruno@clisp.org>
82148         Make test-quotearg work on MacOS X and AIX.
82149         * tests/test-quotearg.sh: New file.
82150         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
82151         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
82152         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
82153         include <libintl.h>.
82154         (fake_locale): Remove variable.
82155         (gettext, dgettext, dcgettext): Remove functions.
82156         (main): Instead of setting a fake locale, set a real locale. Call
82157         textdomain and bindtextdomain.
82158         * modules/quotearg-tests (Files): Add the new files.
82159         (Depends-on): Add gettext, setenv, unsetenv.
82160         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
82161         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
82162         Augment TESTS_ENVIRONMENT.
82164 2009-01-25  Bruno Haible  <bruno@clisp.org>
82166         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
82167         fr_FR.ISO8859-1 locale on MacOS X.
82168         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
82169         ja_JP.eucJP locale on MacOS X.
82170         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
82171         zh_CN.GB18030 locale on MacOS X.
82173 2009-01-25  Bruno Haible  <bruno@clisp.org>
82175         Avoid link errors on MacOS X 10.3.
82176         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
82177         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
82179 2009-01-25  Bruno Haible  <bruno@clisp.org>
82181         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82182         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
82183         * modules/pipe (Files): Remove m4/posix_spawn.m4.
82184         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82185         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
82186         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82187         posix_spawnattr_init, posix_spawnattr_setsigmask,
82188         posix_spawnattr_setflags, posix_spawnattr_destroy.
82190         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82191         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
82192         * modules/execute (Files): Remove m4/posix_spawn.m4.
82193         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82194         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82195         posix_spawnattr_init, posix_spawnattr_setsigmask,
82196         posix_spawnattr_setflags, posix_spawnattr_destroy.
82198 2009-01-25  Bruno Haible  <bruno@clisp.org>
82200         * lib/glthread/threadlib.c: Include <stdlib.h>.
82202 2009-01-25  Bruno Haible  <bruno@clisp.org>
82204         * lib/glthread/threadlib.c (dummy): New declaration.
82206 2009-01-25  Bruno Haible  <bruno@clisp.org>
82208         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
82209         multibyte characters also for the GB18030 encoding. Don't crash when
82210         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
82212 2009-01-25  Bruno Haible  <bruno@clisp.org>
82214         Avoid redefining 'struct random_data' on OSF/1 5.1.
82215         * lib/stdlib.in.h: Include <random.h> if it exists.
82216         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
82217         HAVE_RANDOM_H. Include <random.h> when testing whether
82218         'struct random_data' exists.
82219         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
82221 2009-01-25  Bruno Haible  <bruno@clisp.org>
82223         Don't install charset.alias on MacOS X >= 10.3.
82224         * lib/localcharset.c (DARWIN7): New macro.
82225         (get_charset_aliases): Hardcode the result for Darwin7.
82226         * modules/localcharset (install-exec-local): Don't install
82227         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
82229 2009-01-25  Bruno Haible  <bruno@clisp.org>
82231         Don't install charset.alias on mingw and Cygwin.
82232         * modules/localcharset (install-exec-local): Don't install
82233         charset.alias on mingw and Cygwin, if the file does not yet exist.
82234         The result for these platforms is hardcoded in localcharset.c.
82236 2009-01-25  Bruno Haible  <bruno@clisp.org>
82238         Make it possible again to use AC_GNU_SOURCE together with gnulib.
82239         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
82240         before requiring AC_USE_SYSTEM_EXTENSIONS.
82242 2009-01-25  Jim Meyering  <meyering@redhat.com>
82244         c-strtod: avoid warnings
82245         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
82246         "assignment discards qualifiers from pointer target type" warnings.
82248 2009-01-24  Bruno Haible  <bruno@clisp.org>
82250         Add support for non-UTF-8 locales on MacOS X.
82251         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
82252         canonical encodings. For Darwin 7 and newer, don't map traditional
82253         encodings to UTF-8.
82254         Reported by Vincent Lefevre <vincent@vinc17.org>
82255         at <http://savannah.gnu.org/bugs/?25235>.
82257 2009-01-24  Bruno Haible  <bruno@clisp.org>
82259         * doc/gnulib.texi (Obsolete modules): New section.
82260         Reported by Mike Frysinger <vapier@gentoo.org>.
82262 2009-01-24  Bruno Haible  <bruno@clisp.org>
82264         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
82265         (%.dvi): New rule.
82267 2009-01-24  Bruno Haible  <bruno@clisp.org>
82269         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
82270         Reported by Eric Blake.
82272 2009-01-24  Bruno Haible  <bruno@clisp.org>
82274         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
82275         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
82276         Reported by Gary V. Vaughan <gary@gnu.org>.
82278 2009-01-24  Bruno Haible  <bruno@clisp.org>
82280         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
82282 2009-01-23  Bruno Haible  <bruno@clisp.org>
82284         Make c-strtod, c-strtold usable in libraries.
82285         * lib/c-strtod.c: Include string.h instead of xalloc.h.
82286         (C_STRTOD): Call strdup instead of xstrdup.
82287         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
82288         * modules/c-strtold (Depends-on): Likewise.
82289         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
82290         * NEWS: Mention the change.
82291         Reported by Michael Gold <mgold@ncf.ca>.
82293 2009-01-23  Jim Meyering  <meyering@redhat.com>
82295         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
82296         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
82297         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
82299 2009-01-23  Simon Josefsson  <simon@josefsson.org>
82301         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
82302         GNU CoreUtils.
82303         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
82304         * modules/version-etc (Description): Update.
82306 2009-01-22  Bruno Haible  <bruno@clisp.org>
82308         Cache the C locale object.
82309         * lib/c-strtod.c (c_locale_cache): New variable.
82310         (c_locale): New function.
82311         (C_STRTOD): Use it, and don't call freelocale.
82312         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
82313         Suggested by Paolo Bonzini.
82315 2009-01-21  Bruno Haible  <bruno@clisp.org>
82317         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
82318         conditions other than overflow.
82320 2009-01-21  Bruno Haible  <bruno@clisp.org>
82322         * lib/c-strtod.c: Include errno.h.
82323         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
82324         value from STRTOD_L and STRTOD.
82326 2009-01-21  Bruno Haible  <bruno@clisp.org>
82327         and Jim Meyering  <meyering@redhat.com>
82329         nanosleep: skip configure test (fail it) for apple universal builds
82330         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
82331         universal builds, assume that nanosleep does not work.
82332         * modules/nanosleep (Depends-on): Add multiarch.
82334         mktime: skip configure test (fail it) for apple universal builds
82335         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
82336         universal builds, assume that mktime does not work.
82337         * modules/mktime (Depends-on): Add multiarch.
82339 2009-01-21  Eric Blake  <ebb9@byu.net>
82341         multiarch: avoid expand-before-require warning
82342         * modules/multiarch (configure.ac): Require, rather than expand,
82343         gl_MULTIARCH.
82344         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
82345         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
82346         enforce that all clients require it.  Partial reversion of
82347         2008-12-29 patch.
82349         error: avoid expand-before-require warning
82350         * modules/errno (configure.ac): Require, rather than expand,
82351         gl_HEADER_ERRNO_H.
82352         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
82353         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
82354         enforce that all clients require it.
82356         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
82357         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
82358         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
82359         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
82361 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
82363         Revert:
82364         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82366         regex: do not depend on obsolete modules.
82367         * modules/regex: Remove memcmp and memmove.
82369 2009-01-20  Bruno Haible  <bruno@clisp.org>
82371         Make the 'link' module link on Windows NT 4.
82372         * lib/link.c (_WIN32_WINNT): Don't define.
82373         (CreateHardLinkFuncType): New type.
82374         (CreateHardLinkFunc, initialized): New variables.
82375         (initialize): New function.
82376         (link): Invoke CreateHardLink indirectly through the function pointer.
82378 2009-01-20  Bruno Haible  <bruno@clisp.org>
82380         Fix compilation failure on mingw.
82381         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
82383 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
82385         * doc/c-strtod.texi: Mention a couple of restrictions.
82387 2009-01-20  Jim Meyering  <meyering@redhat.com>
82389         gettimeofday: move more declarations out of functions
82390         * lib/gettimeofday.c: Move extern declarations of tzset and
82391         gmtime out of containing functions.  Prompted by Bruno Haible.
82393 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82395         regex: do not depend on obsolete modules.
82396         * modules/regex: Remove memcmp and memmove.
82398 2009-01-19  Bruno Haible  <bruno@clisp.org>
82400         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82401         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
82402         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82403         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
82404         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
82406 2009-01-19  Bruno Haible  <bruno@clisp.org>
82408         * tests/test-link.c: Include <errno.h>.
82409         (main): Exit with code 77 when a hard link cannot be created due to
82410         the file system.
82411         * tests/test-link.sh: Skip test when a hard link cannot be created due
82412         to the file system.
82413         Suggested by Eric Blake.
82415 2009-01-19  Martin Lambers  <marlam@marlam.de>
82417         * modules/link-tests: New file.
82418         * tests/test-link.sh: New file.
82419         * tests/test-link.c: New file.
82421 2009-01-19  Eric Blake  <ebb9@byu.net>
82423         doc: mention another function added in cygwin 1.7.0
82424         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
82425         Another new function in cygwin 1.7.
82427 2009-01-19  Bruno Haible  <bruno@clisp.org>
82429         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82430         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
82431         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
82432         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82433         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
82434         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
82435         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
82436         * m4/md4.m4 (gl_MD4): Likewise.
82437         * m4/md5.m4 (gl_MD5): Likewise.
82438         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
82439         * m4/sha1.m4 (gl_SHA1): Likewise.
82440         * m4/sha256.m4 (gl_SHA256): Likewise.
82441         * m4/sha512.m4 (gl_SHA512): Likewise.
82443 2009-01-19  Bruno Haible  <bruno@clisp.org>
82445         * modules/uniname/uniname-tests (Depends-on): Add progname.
82446         * tests/uniname/test-uninames.c: Include progname.h.
82447         (main): Call set_program_name.
82449         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
82450         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
82451         (main): Call set_program_name.
82453         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
82454         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
82455         (main): Call set_program_name.
82457         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
82458         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
82459         (main): Call set_program_name.
82461         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
82462         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
82463         (main): Call set_program_name.
82465         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
82466         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
82467         (main): Call set_program_name.
82469         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
82470         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
82471         (main): Call set_program_name.
82473         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
82474         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
82475         (main): Call set_program_name.
82477         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
82478         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
82479         (main): Call set_program_name.
82481 2009-01-19  Eric Blake  <ebb9@byu.net>
82483         test-unistd: test previous patch
82484         * tests/test-unistd.c: Test *_FILENO macros.
82486         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
82487         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82488         Guarantee a definition.
82489         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
82490         * modules/unistd-safer (Depends-on): Add dependency on unistd.
82491         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
82492         * lib/dup-safer.c (STDERR_FILENO): Likewise.
82493         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82494         Likewise.
82495         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
82496         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
82497         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82498         Likewise.
82499         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
82500         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
82501         (STDERR_FILENO): Likewise.
82502         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
82503         (STDERR_FILENO): Likewise.
82504         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
82505         (STDERR_FILENO): Likewise.
82506         Reported by Elbert Pol.
82508 2009-01-19  Eric Blake  <ebb9@byu.net>
82510         doc: mention more functions added in cygwin 1.7.0
82511         * doc/posix-functions/abort.texi (abort): Update wording related
82512         to cygwin.
82513         * doc/posix-functions/daylight.texi (daylight): Likewise.
82514         * doc/posix-functions/optarg.texi (optarg): Likewise.
82515         * doc/posix-functions/optarg.texi (opterr): Likewise.
82516         * doc/posix-functions/optarg.texi (optind): Likewise.
82517         * doc/posix-functions/optarg.texi (optopt): Likewise.
82518         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
82519         worked in 1.5.x, and was withdrawn in 1.7.
82520         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
82521         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
82522         cygwin versions.
82523         * doc/posix-functions/perror.texi (perror): Likewise.
82524         * doc/posix-functions/printf.texi (printf): Likewise.
82525         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
82526         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
82527         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
82528         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
82529         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
82530         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
82531         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
82532         Likewise.
82533         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
82534         Likewise.
82535         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
82536         this function.
82537         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
82538         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
82539         Likewise.
82540         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
82541         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
82542         * doc/posix-functions/confstr.texi (confstr): Likewise.
82543         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
82544         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
82545         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
82546         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
82547         * doc/posix-functions/fputws.texi (fputws): Likewise.
82548         * doc/posix-functions/fwide.texi (fwide): Likewise.
82549         * doc/posix-functions/getwc.texi (getwc): Likewise.
82550         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
82551         * doc/posix-functions/putwc.texi (putwc): Likewise.
82552         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
82553         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
82554         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
82555         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
82556         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
82557         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
82558         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
82559         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
82560         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
82561         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
82562         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
82564 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
82566         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
82567         * lib/ioctl.c: Include <sys/ioctl.h>.
82569 2009-01-19  Simon Josefsson  <simon@josefsson.org>
82571         * modules/getdate-tests (Depends-on): Add progname.
82572         * tests/test-getdate.c: Use progname module, to avoid link errors
82573         on non-glibc systems.
82575 2009-01-18  Simon Josefsson  <simon@josefsson.org>
82577         * modules/filenamecat-tests (Depends-on): Add progname.
82578         * modules/fstrcmp-tests (Depends-on): Likewise.
82580         * tests/test-filenamecat.c: Use progname module, to avoid link
82581         errors on non-glibc systems.
82582         * tests/test-fstrcmp.c: Likewise.
82584 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
82586         gettimeofday: avoid warning: nested extern declaration of 'localtime'
82587         * lib/gettimeofday.c: Move extern declaration out of function.
82589 2009-01-18  Bruno Haible  <bruno@clisp.org>
82591         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
82592         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
82593         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
82595 2009-01-18  Bruno Haible  <bruno@clisp.org>
82597         * lib/strftime.c (MEMPCPY): Remove unused macro.
82598         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
82600 2009-01-18  Martin Lambers  <marlam@marlam.de>
82602         New module 'link'.
82603         * lib/unistd.in.h (link): New declaration.
82604         * lib/link.c: New file.
82605         * m4/link.m4: New file.
82606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
82607         HAVE_LINK.
82608         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
82609         * modules/link: New file.
82610         * doc/posix-functions/link.texi: Mention the new module.
82612 2009-01-18  Bruno Haible  <bruno@clisp.org>
82614         * tests/test-avltree_list.c (main): Call set_program_name.
82615         * tests/test-avltree_oset.c (main): Likewise.
82616         * tests/test-obstack-printf.c: Include progname.h.
82617         (main): Call set_program_name.
82618         * tests/test-quotearg.c: Include progname.h.
82619         (main): Call set_program_name.
82620         * tests/test-xmemdup0.c: Include progname.h.
82621         (main): Call set_program_name.
82623 2009-01-18  Bruno Haible  <bruno@clisp.org>
82625         New module 'alphasort'.
82626         * lib/dirent.in.h (alphasort): New declaration.
82627         * lib/alphasort.c: New file, from glibc with modifications.
82628         * m4/alphasort.m4: New file.
82629         * modules/alphasort: New file.
82630         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
82631         HAVE_ALPHASORT.
82632         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
82633         HAVE_ALPHASORT.
82634         * doc/posix-functions/alphasort.texi: Mention the new module and the
82635         portability problems.
82637 2009-01-18  Bruno Haible  <bruno@clisp.org>
82639         New module 'scandir'.
82640         * lib/dirent.in.h (scandir): New declaration.
82641         * lib/scandir.c: New file, from glibc with modifications.
82642         * m4/scandir.m4: New file.
82643         * modules/scandir: New file.
82644         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
82645         HAVE_SCANDIR.
82646         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
82647         HAVE_SCANDIR.
82648         * doc/posix-functions/scandir.texi: Mention the new module and the
82649         portability problems.
82651 2009-01-17  Bruno Haible  <bruno@clisp.org>
82653         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
82654         Update documentation.
82655         (func_remove_suffix): Escape all dots in the suffix. Update
82656         documentation.
82657         (func_filter_filelist): Update documentation.
82658         Reported by Ralf Wildenhues.
82660 2009-01-17  Bruno Haible  <bruno@clisp.org>
82662         * modules/dprintf-posix-tests: New file.
82663         * tests/test-dprintf-posix.sh: New file.
82664         * tests/test-dprintf-posix.c: New file.
82666         New modules 'dprintf', 'dprintf-posix'.
82667         * lib/stdio.in.h (dprintf): New declaration.
82668         * lib/dprintf.c: New file.
82669         * m4/dprintf.m4: New file.
82670         * m4/dprintf-posix.m4: New file.
82671         * modules/dprintf: New file.
82672         * modules/dprintf-posix: New file.
82673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
82674         HAVE_DPRINTF, REPLACE_DPRINTF.
82675         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
82676         HAVE_DPRINTF, REPLACE_DPRINTF.
82677         * doc/posix-functions/dprintf.texi: Mention the new modules.
82679 2009-01-17  Bruno Haible  <bruno@clisp.org>
82681         * modules/vdprintf-posix-tests: New file.
82682         * tests/test-vdprintf-posix.sh: New file.
82683         * tests/test-vdprintf-posix.c: New file.
82685         New modules 'vdprintf', 'vdprintf-posix'.
82686         * lib/stdio.in.h (vdprintf): New declaration.
82687         * lib/vdprintf.c: New file.
82688         * m4/vdprintf.m4: New file.
82689         * m4/vdprintf-posix.m4: New file.
82690         * modules/vdprintf: New file.
82691         * modules/vdprintf-posix: New file.
82692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
82693         HAVE_VDPRINTF, REPLACE_VDPRINTF.
82694         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
82695         HAVE_VDPRINTF, REPLACE_VDPRINTF.
82696         * doc/posix-functions/vdprintf.texi: Mention the new modules.
82698 2009-01-17  Bruno Haible  <bruno@clisp.org>
82700         Fix replacement of fopen on mingw.
82701         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
82702         mingw.
82704 2009-01-17  Bruno Haible  <bruno@clisp.org>
82706         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
82707         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
82709 2009-01-17  Bruno Haible  <bruno@clisp.org>
82711         Avoid test-fflush2.sh failure on mingw.
82712         * tests/test-fflush2.c: Include binary-io.h.
82713         (main): Put standard input into binary mode.
82714         * modules/fflush-tests (Depends-on): Add binary-io.
82716 2009-01-17  Bruno Haible  <bruno@clisp.org>
82718         * lib/wchar.in.h: In another particular situation, include only the
82719         system's <wchar.h> file.
82720         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
82721         Reported by Albert Chin-A-Young <china@thewrittenword.com>
82722         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
82724 2009-01-17  Bruno Haible  <bruno@clisp.org>
82726         Support for stripping executables in --enable-relocatable.
82727         * build-aux/install-reloc: Expect one more argument, or an environment
82728         variable RELOC_STRIP_PROG. If set, strip the destination program and
82729         its wrapper.
82730         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
82731         RELOC_STRIP_PROG.
82732         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
82733         to set RELOCATABLE_STRIP.
82734         * NEWS: Mention the new Makefile requirement.
82736 2009-01-17  Bruno Haible  <bruno@clisp.org>
82738         * build-aux/install-reloc: Remove debugging information left over by
82739         C compiler on MacOS X.
82741 2009-01-17  Bruno Haible  <bruno@clisp.org>
82743         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
82744         * lib/progreloc.c (find_executable): Fix type of pointer passed to
82745         _NSGetExecutablePath.
82747 2009-01-16  Jim Meyering  <meyering@redhat.com>
82749         strerror: avoid warnings about discarding "const"
82750         * lib/strerror.c (rpl_strerror): Instead of returning a const
82751         string from each and every "case", use a variable, and add a single
82752         cast after the switch.
82754 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
82756         * lib/arpa_inet.in.h: Add extern "C" block for C++.
82758 2009-01-16  Bruno Haible  <bruno@clisp.org>
82760         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
82761         array initializer syntax that also works in C++ mode.
82762         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
82764 2009-01-16  Jim Meyering  <meyering@redhat.com>
82766         poll: suppress a warning
82767         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
82768         to ignore "...unsigned expression < 0 is always false" warnings.
82770 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
82772         poll: remove declarations of unused variables
82773         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
82774         sockbuf and optlen.
82776 2009-01-15  Bruno Haible  <bruno@clisp.org>
82778         Make fflush-after-ungetc POSIX compliant on BSD systems.
82779         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
82780         (clear_ungetc_buffer): Implement also for other systems.
82781         (rpl_fflush): On glibc systems, invoke
82782         clear_ungetc_buffer_preserving_position. Otherwise, invoke
82783         clear_ungetc_buffer after fetching the stream's position, not before.
82785 2009-01-15  Bruno Haible  <bruno@clisp.org>
82787         Make fflush-after-ungetc POSIX compliant on glibc systems.
82788         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
82789         after ungetc.
82790         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
82791         (rpl_fflush): On glibc systems, simply call the system's fflush
82792         function after clearing the ungetc buffer.
82793         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
82794         Instead, lseek only to the end of file, then use the system's fseeko
82795         for the rest. On glibc systems, reset the EOF indicator bit.
82797 2009-01-15  Jim Meyering  <meyering@redhat.com>
82799         openmp.m4: revert quote-adding change, for portability to older autoconf
82800         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
82801         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
82802         Simon Josefsson noticed the problem when using autoconf-2.61.
82804 2009-01-15  Bruno Haible  <bruno@clisp.org>
82806         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
82807         * tests/test-fflush2.c (ASSERT): Always fail.
82808         (main): Add two tests for fflush() after ungetc(), taking into account
82809         the Austin Group's clarification.
82810         Suggested by Eric Blake.
82812 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
82814         mktime.m4: remove K&R-style function prototypes
82815         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
82816         for the Sun C++ compiler.
82818 2009-01-14  Bruno Haible  <bruno@clisp.org>
82820         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
82821         while including <wchar.h>.
82822         * lib/wchar.in.h: In two particular situations on HP-UX, include only
82823         the system's <wchar.h> file.
82824         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
82826 2009-01-14  Bruno Haible  <bruno@clisp.org>
82828         * m4/csharp.m4: Don't mention gettext on the serial number line.
82829         * m4/csharpexec.m4: Likewise.
82830         * m4/eaccess.m4: Likewise.
82831         * m4/javaexec.m4: Likewise.
82832         * m4/sig_atomic_t.m4: Likewise.
82833         * m4/tmpdir.m4: Likewise.
82834         * m4/intldir.m4: Bump gettext version.
82835         * m4/lib-ld.m4: Likewise.
82837 2009-01-14  Bruno Haible  <bruno@clisp.org>
82839         * lib/progname.c (set_program_name): Add more comments.
82840         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
82842 2009-01-14  Simon Josefsson  <simon@josefsson.org>
82844         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
82845         were sys/stat.h does not define it.
82847 2009-01-14  Jim Meyering  <meyering@redhat.com>
82849         many *.m4 files: improve m4 quoting
82850         99% of this change was performed by running the following commands:
82851         git ls-files | grep '\.m4$' | xargs perl -pi \
82852           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
82853           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
82854           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
82855           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
82856         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
82857         The remainder were to add Copyright dates, increment serial numbers,
82858         undo some changes in comments, exclude m4/intl.m4, and add quotes
82859         around the "1" in ",1" where the unusual spacing prohibited the
82860         above regexps from doing the job.  For more details, see
82861         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
82862         * m4/acl.m4: Modified.
82863         * m4/afs.m4: Likewise.
82864         * m4/alloca.m4: Likewise.
82865         * m4/argp.m4: Likewise.
82866         * m4/argz.m4: Likewise.
82867         * m4/atexit.m4: Likewise.
82868         * m4/bison-i18n.m4: Likewise.
82869         * m4/bison.m4: Likewise.
82870         * m4/byteswap.m4: Likewise.
82871         * m4/c-stack.m4: Likewise.
82872         * m4/c-strtod.m4: Likewise.
82873         * m4/calloc.m4: Likewise.
82874         * m4/canonicalize-lgpl.m4: Likewise.
82875         * m4/chown.m4: Likewise.
82876         * m4/clock_time.m4: Likewise.
82877         * m4/codeset.m4: Likewise.
82878         * m4/copy-file.m4: Likewise.
82879         * m4/csharp.m4: Likewise.
82880         * m4/csharpcomp.m4: Likewise.
82881         * m4/csharpexec.m4: Likewise.
82882         * m4/d-ino.m4: Likewise.
82883         * m4/d-type.m4: Likewise.
82884         * m4/dirfd.m4: Likewise.
82885         * m4/double-slash-root.m4: Likewise.
82886         * m4/eaccess.m4: Likewise.
82887         * m4/eealloc.m4: Likewise.
82888         * m4/environ.m4: Likewise.
82889         * m4/errno_h.m4: Likewise.
82890         * m4/euidaccess.m4: Likewise.
82891         * m4/execute.m4: Likewise.
82892         * m4/fatal-signal.m4: Likewise.
82893         * m4/fchdir.m4: Likewise.
82894         * m4/fcntl_h.m4: Likewise.
82895         * m4/fileblocks.m4: Likewise.
82896         * m4/filenamecat.m4: Likewise.
82897         * m4/findprog.m4: Likewise.
82898         * m4/flexmember.m4: Likewise.
82899         * m4/fnmatch.m4: Likewise.
82900         * m4/fopen.m4: Likewise.
82901         * m4/fpending.m4: Likewise.
82902         * m4/fprintf-posix.m4: Likewise.
82903         * m4/free.m4: Likewise.
82904         * m4/frexp.m4: Likewise.
82905         * m4/frexpl.m4: Likewise.
82906         * m4/fsusage.m4: Likewise.
82907         * m4/ftruncate.m4: Likewise.
82908         * m4/gc-camellia.m4: Likewise.
82909         * m4/gc-random.m4: Likewise.
82910         * m4/gc.m4: Likewise.
82911         * m4/getaddrinfo.m4: Likewise.
82912         * m4/getcwd-abort-bug.m4: Likewise.
82913         * m4/getcwd-path-max.m4: Likewise.
82914         * m4/getdate.m4: Likewise.
82915         * m4/getdomainname.m4: Likewise.
82916         * m4/getgroups.m4: Likewise.
82917         * m4/gethostname.m4: Likewise.
82918         * m4/gethrxtime.m4: Likewise.
82919         * m4/getline.m4: Likewise.
82920         * m4/getloadavg.m4: Likewise.
82921         * m4/getndelim2.m4: Likewise.
82922         * m4/getpass.m4: Likewise.
82923         * m4/gettext.m4: Likewise.
82924         * m4/gettime.m4: Likewise.
82925         * m4/gettimeofday.m4: Likewise.
82926         * m4/gnulib-common.m4: Likewise.
82927         * m4/group-member.m4: Likewise.
82928         * m4/host-os.m4: Likewise.
82929         * m4/iconv.m4: Likewise.
82930         * m4/iconv_open.m4: Likewise.
82931         * m4/inet_ntop.m4: Likewise.
82932         * m4/inet_pton.m4: Likewise.
82933         * m4/inline.m4: Likewise.
82934         * m4/intldir.m4: Likewise.
82935         * m4/intlmacosx.m4: Likewise.
82936         * m4/intmax.m4: Likewise.
82937         * m4/intmax_t.m4: Likewise.
82938         * m4/inttypes.m4: Likewise.
82939         * m4/inttypes_h.m4: Likewise.
82940         * m4/inttypes-pri.m4: Likewise.
82941         * m4/isapipe.m4: Likewise.
82942         * m4/isnand.m4: Likewise.
82943         * m4/isnanf.m4: Likewise.
82944         * m4/isnanl.m4: Likewise.
82945         * m4/javacomp.m4: Likewise.
82946         * m4/javaexec.m4: Likewise.
82947         * m4/jm-winsz1.m4: Likewise.
82948         * m4/jm-winsz2.m4: Likewise.
82949         * m4/lchown.m4: Likewise.
82950         * m4/lcmessage.m4: Likewise.
82951         * m4/ldexpl.m4: Likewise.
82952         * m4/lib-ld.m4: Likewise.
82953         * m4/lib-link.m4: Likewise.
82954         * m4/libsigsegv.m4: Likewise.
82955         * m4/link-follow.m4: Likewise.
82956         * m4/localcharset.m4: Likewise.
82957         * m4/locale-fr.m4: Likewise.
82958         * m4/locale-ja.m4: Likewise.
82959         * m4/locale-tr.m4: Likewise.
82960         * m4/locale-zh.m4: Likewise.
82961         * m4/lock.m4: Likewise.
82962         * m4/longlong.m4: Likewise.
82963         * m4/ls-mntd-fs.m4: Likewise.
82964         * m4/lstat.m4: Likewise.
82965         * m4/malloc.m4: Likewise.
82966         * m4/mathl.m4: Likewise.
82967         * m4/mbrtowc.m4: Likewise.
82968         * m4/mbstate_t.m4: Likewise.
82969         * m4/mbswidth.m4: Likewise.
82970         * m4/memchr.m4: Likewise.
82971         * m4/memcmp.m4: Likewise.
82972         * m4/memcpy.m4: Likewise.
82973         * m4/memmem.m4: Likewise.
82974         * m4/memmove.m4: Likewise.
82975         * m4/mempcpy.m4: Likewise.
82976         * m4/memrchr.m4: Likewise.
82977         * m4/memset.m4: Likewise.
82978         * m4/minmax.m4: Likewise.
82979         * m4/mkdir-slash.m4: Likewise.
82980         * m4/mkdtemp.m4: Likewise.
82981         * m4/mktime.m4: Likewise.
82982         * m4/mmap-anon.m4: Likewise.
82983         * m4/mountlist.m4: Likewise.
82984         * m4/nanosleep.m4: Likewise.
82985         * m4/nls.m4: Likewise.
82986         * m4/nocrash.m4: Likewise.
82987         * m4/open.m4: Likewise.
82988         * m4/openat.m4: Likewise.
82989         * m4/openmp.m4: Likewise.
82990         * m4/pathmax.m4: Likewise.
82991         * m4/perl.m4: Likewise.
82992         * m4/physmem.m4: Likewise.
82993         * m4/pipe.m4: Likewise.
82994         * m4/po.m4: Likewise.
82995         * m4/poll.m4: Likewise.
82996         * m4/posixtm.m4: Likewise.
82997         * m4/posixver.m4: Likewise.
82998         * m4/printf-frexp.m4: Likewise.
82999         * m4/printf-frexpl.m4: Likewise.
83000         * m4/printf-posix.m4: Likewise.
83001         * m4/printf-posix-rpl.m4: Likewise.
83002         * m4/printf.m4: Likewise.
83003         * m4/progtest.m4: Likewise.
83004         * m4/putenv.m4: Likewise.
83005         * m4/readline.m4: Likewise.
83006         * m4/readlink.m4: Likewise.
83007         * m4/readutmp.m4: Likewise.
83008         * m4/realloc.m4: Likewise.
83009         * m4/regex.m4: Likewise.
83010         * m4/relocatable.m4: Likewise.
83011         * m4/relocatable-lib.m4: Likewise.
83012         * m4/rename-dest-slash.m4: Likewise.
83013         * m4/rename.m4: Likewise.
83014         * m4/rmdir-errno.m4: Likewise.
83015         * m4/rmdir.m4: Likewise.
83016         * m4/roundf.m4: Likewise.
83017         * m4/roundl.m4: Likewise.
83018         * m4/rpmatch.m4: Likewise.
83019         * m4/save-cwd.m4: Likewise.
83020         * m4/selinux-selinux-h.m4: Likewise.
83021         * m4/setenv.m4: Likewise.
83022         * m4/settime.m4: Likewise.
83023         * m4/sig2str.m4: Likewise.
83024         * m4/sig_atomic_t.m4: Likewise.
83025         * m4/signalblocking.m4: Likewise.
83026         * m4/signbit.m4: Likewise.
83027         * m4/sigpipe.m4: Likewise.
83028         * m4/sockets.m4: Likewise.
83029         * m4/sockpfaf.m4: Likewise.
83030         * m4/st_dm_mode.m4: Likewise.
83031         * m4/stat-time.m4: Likewise.
83032         * m4/stdbool.m4: Likewise.
83033         * m4/stdint.m4: Likewise.
83034         * m4/stdint_h.m4: Likewise.
83035         * m4/stpcpy.m4: Likewise.
83036         * m4/stpncpy.m4: Likewise.
83037         * m4/strcase.m4: Likewise.
83038         * m4/strchrnul.m4: Likewise.
83039         * m4/strcspn.m4: Likewise.
83040         * m4/strdup.m4: Likewise.
83041         * m4/strftime.m4: Likewise.
83042         * m4/strndup.m4: Likewise.
83043         * m4/strnlen.m4: Likewise.
83044         * m4/strpbrk.m4: Likewise.
83045         * m4/strptime.m4: Likewise.
83046         * m4/strsep.m4: Likewise.
83047         * m4/strtod.m4: Likewise.
83048         * m4/strtoimax.m4: Likewise.
83049         * m4/strtok_r.m4: Likewise.
83050         * m4/strtol.m4: Likewise.
83051         * m4/strtoll.m4: Likewise.
83052         * m4/strtoul.m4: Likewise.
83053         * m4/strtoull.m4: Likewise.
83054         * m4/strtoumax.m4: Likewise.
83055         * m4/strverscmp.m4: Likewise.
83056         * m4/threadlib.m4: Likewise.
83057         * m4/timegm.m4: Likewise.
83058         * m4/tm_gmtoff.m4: Likewise.
83059         * m4/tmpdir.m4: Likewise.
83060         * m4/tmpfile.m4: Likewise.
83061         * m4/tzset.m4: Likewise.
83062         * m4/uintmax_t.m4: Likewise.
83063         * m4/unlinkdir.m4: Likewise.
83064         * m4/unlocked-io.m4: Likewise.
83065         * m4/uptime.m4: Likewise.
83066         * m4/userspec.m4: Likewise.
83067         * m4/utimbuf.m4: Likewise.
83068         * m4/utime.m4: Likewise.
83069         * m4/utimes-null.m4: Likewise.
83070         * m4/utimes.m4: Likewise.
83071         * m4/vararrays.m4: Likewise.
83072         * m4/vasnprintf.m4: Likewise.
83073         * m4/vfprintf-posix.m4: Likewise.
83074         * m4/vprintf-posix.m4: Likewise.
83075         * m4/wait-process.m4: Likewise.
83076         * m4/wchar_t.m4: Likewise.
83077         * m4/wint_t.m4: Likewise.
83078         * m4/write-any-file.m4: Likewise.
83079         * m4/yield.m4: Likewise.
83081 2009-01-13  Bruno Haible  <bruno@clisp.org>
83083         Avoid test-copy-file.sh failures when ACL support insufficient.
83084         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
83085         TESTS_ENVIRONMENT.
83086         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
83087         Reported by Jim Meyering.
83089 2009-01-13  Bruno Haible  <bruno@clisp.org>
83091         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
83092         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
83093         * modules/unistdio/u8-printf-parse (Files): Likewise.
83094         * modules/unistdio/u32-printf-parse (Files): Likewise.
83095         * modules/unistdio/ulc-printf-parse (Files): Likewise.
83097 2009-01-13  Simon Josefsson  <simon@josefsson.org>
83099         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
83100         and m4/inttypes_h.m4 too.
83102 2009-01-12  Eric Blake  <ebb9@byu.net>
83104         tests: IRIX 6.2 cc can't compile -0.0 into .data
83105         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
83106         rather than at compile-time.
83107         * tests/test-floorl.c (minus_zero): Likewise.
83108         * tests/test-frexpl.c (minus_zero): Likewise.
83109         * tests/test-isnan.c (minus_zerol): Likewise.
83110         * tests/test-isnanl.h (minus_zero): Likewise.
83111         * tests/test-ldexpl.c (minus_zero): Likewise.
83112         * tests/test-roundl.c (minus_zero): Likewise.
83113         * tests/test-signbit.c (minus_zerol): Likewise.
83114         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
83115         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
83116         * tests/test-truncl.c (minus_zero): Likewise.
83117         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
83118         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
83119         Reported by Tom G. Christensen and Nelson H. F. Beebe.
83121 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83123         regex: fix glibc bug 9697
83124         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
83125         handling.
83127 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83129         regex: fix glibc bug 697
83130         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
83131         being NULL also if there are no backreferences.
83133 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83135         regex: merge glibc changes
83136         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
83137         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
83138         re_string_skip_chars, re_string_reconstruct): Likewise.
83139         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
83141 2009-01-07  Jim Meyering  <meyering@redhat.com>
83143         poll: filter through cppi
83144         * lib/poll.c: Indent cpp directives to reflect nesting.
83146 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
83148         poll: don't return uninitialized
83149         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
83151 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
83153         avoid compile failure on AIX 6.1
83154         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
83155         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
83157 2009-01-04  Jim Meyering  <meyering@redhat.com>
83159         remove duplicate inclusion of <stdio.h>
83160         * tests/test-fprintf-posix.c: Likewise.
83161         * tests/test-printf-posix.c: Likewise.
83162         * tests/test-snprintf-posix.c: Likewise.
83163         * tests/test-sprintf-posix.c: Likewise.
83164         * tests/test-vasprintf-posix.c: Likewise.
83165         * tests/test-vfprintf-posix.c: Likewise.
83166         * tests/test-vprintf-posix.c: Likewise.
83167         * tests/test-vsnprintf-posix.c: Likewise.
83168         * tests/test-vsprintf-posix.c: Likewise.
83170 2009-01-03  Jim Meyering  <meyering@redhat.com>
83172         gnulib-tool: fix sed-based filtering
83173         * gnulib-tool (func_filter_filelist): Remove extra backslash
83174         in sed_fff_filter definition.
83176 2009-01-02  Jim Meyering  <meyering@redhat.com>
83178         strftime: avoid compilation failure on Solaris 2.6
83179         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
83180         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
83181         Don't #define mbrlen or mbsinit, since now they're guaranteed to
83182         be available.  Reported by Tom G. Christensen.  Details in
83183         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
83185 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83186             Bruno Haible  <bruno@clisp.org>
83188         Speed up gnulib-tool by doing more string processing through shell
83189         built-ins.
83190         * gnulib-tool (fast_func_append): New variable.
83191         (func_remove_prefix, func_remove_suffix): New functions.
83192         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
83193         (func_filter_filelist): New function.
83194         (func_get_dependencies): Use func_remove_suffix instead of sed.
83195         (func_get_automake_snippet): Use func_filter_filelist instead of a
83196         subshell and sed invocation.
83198 2009-01-01  Bruno Haible  <bruno@clisp.org>
83200         Fix a security bug.
83201         * gnulib-tool (func_import, import, update): Don't allow the characters
83202         '"', '$', '`', '\' in macro arguments that become part of commands that
83203         are evaluated.
83205 2009-01-01  Bruno Haible  <bruno@clisp.org>
83207         * gnulib-tool (func_reset_sigpipe): Add more comments.
83209 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83211         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
83212         func_emit_tests_Makefile_am, func_import): Abort loops early if we
83213         already know the answer.
83215 2009-01-01  Jim Meyering  <meyering@redhat.com>
83217         * lib/version-etc.c (version_etc_va): Update copyright year.
83219 2008-12-30  Bruno Haible  <bruno@clisp.org>
83221         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
83222         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
83223         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
83225 2008-12-29  Eric Blake  <ebb9@byu.net>
83227         multiarch: avoid autoconf AC_REQUIRE bug
83228         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
83229         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
83230         2.63 and older.
83231         Reported by Bruno Haible, and analyzed in
83232         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
83234 2008-12-29  Bruno Haible  <bruno@clisp.org>
83236         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
83237         files in subdirectories correctly.
83238         Reported by Ralf Wildenhues.
83240 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83242         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
83243         rather than 'join FILE -', for Solaris join.
83245 2008-12-29  Bruno Haible  <bruno@clisp.org>
83247         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
83248         quoting.
83249         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83250         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
83251         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
83252         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
83253         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
83254         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
83255         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
83256         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
83257         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
83258         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
83259         * m4/nls.m4 (AM_NLS): Likewise.
83260         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
83261         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
83262         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83263         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
83264         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
83265         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
83266         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
83267         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
83268         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
83269         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
83270         * m4/xsize.m4 (gl_XSIZE): Likewise.
83271         Suggested by Jim Meyering.
83273 2008-11-17  Bruce Korb  <bkorb@gnu.org>
83275         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
83276         * lib/parse-duration.c: use a switch instead of cascading if's.
83278 2008-12-29  Eric Blake  <ebb9@byu.net>
83280         wchar.h: supply WEOF on Irix 5.3
83281         * lib/wchar.in.h (wint_t): Also supply WEOF.
83282         * lib/wctype.in.h (wint_t): Likewise.
83283         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
83284         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
83285         Reported by Tom G. Christensen.
83287 2008-12-26  Bruno Haible  <bruno@clisp.org>
83289         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
83290         i486, i586, i686.
83292 2008-12-26  Bruno Haible  <bruno@clisp.org>
83294         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
83296 2008-12-26  Bruno Haible  <bruno@clisp.org>
83298         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
83299         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
83300         not __STDC_CONSTANT_MACROS.
83301         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
83303 2008-12-25  Bruno Haible  <bruno@clisp.org>
83305         Add support for universal builds to vasnprintf.
83306         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
83307         universal builds, guess no.
83308         * modules/vasnprintf-posix (Depends-on): Add multiarch.
83309         * modules/vasprintf-posix (Depends-on): Likewise.
83310         * modules/fprintf-posix (Depends-on): Likewise.
83311         * modules/vfprintf-posix (Depends-on): Likewise.
83312         * modules/snprintf-posix (Depends-on): Likewise.
83313         * modules/vsnprintf-posix (Depends-on): Likewise.
83314         * modules/sprintf-posix (Depends-on): Likewise.
83315         * modules/vsprintf-posix (Depends-on): Likewise.
83316         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83317         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83318         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83319         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83320         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83321         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83322         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83324         Add support for universal builds to <inttypes.h>.
83325         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
83326         _SCNu64_PREFIX): In Apple
83327         universal builds, define directly, using _LP64.
83328         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
83329         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
83330         * modules/inttypes (Depends-on): Add multiarch.
83331         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83333         Add support for universal builds to <stdint.h>.
83334         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
83335         universal builds, define directly, using _LP64.
83336         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
83337         Apple universal builds, don't test for the size and suffix of ptrdiff_t
83338         and size_t.
83339         * modules/stdint (Depends-on): Add multiarch.
83340         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83342         New module 'multiarch'.
83343         * modules/multiarch: New file.
83344         * m4/multiarch.m4: New file.
83346 2008-12-25  Bruno Haible  <bruno@clisp.org>
83348         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
83350 2008-12-25  Bruno Haible  <bruno@clisp.org>
83352         * modules/btowc (License): Relicense under LGPLv2+.
83353         * modules/mbsinit (License): Likewise.
83354         * modules/mbrtowc (License): Likewise.
83355         * modules/wcrtomb (License): Likewise.
83356         * modules/streq (License): Likewise.
83357         Reported by David Lutterkort <lutter@redhat.com>.
83359 2008-12-23  Bruno Haible  <bruno@clisp.org>
83361         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
83363 2008-12-23  Bruno Haible  <bruno@clisp.org>
83365         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
83366         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
83367         GETADDRINFO_LIB, not in LIBS.
83368         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
83369         * modules/canon-host (Link): Likewise.
83370         * NEWS: Mention the change.
83371         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
83372         GETADDRINFO_LIB.
83374 2008-12-22  Bruno Haible  <bruno@clisp.org>
83376         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
83377         * doc/posix-functions/iswalpha_l.texi: Likewise.
83378         * doc/posix-functions/iswblank_l.texi: Likewise.
83379         * doc/posix-functions/iswcntrl_l.texi: Likewise.
83380         * doc/posix-functions/iswctype_l.texi: Likewise.
83381         * doc/posix-functions/iswdigit_l.texi: Likewise.
83382         * doc/posix-functions/iswgraph_l.texi: Likewise.
83383         * doc/posix-functions/iswlower_l.texi: Likewise.
83384         * doc/posix-functions/iswprint_l.texi: Likewise.
83385         * doc/posix-functions/iswpunct_l.texi: Likewise.
83386         * doc/posix-functions/iswspace_l.texi: Likewise.
83387         * doc/posix-functions/iswupper_l.texi: Likewise.
83388         * doc/posix-functions/iswxdigit_l.texi: Likewise.
83389         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
83390         * doc/posix-functions/open_wmemstream.texi: Likewise.
83391         * doc/posix-functions/swscanf.texi: Likewise.
83392         * doc/posix-functions/towctrans_l.texi: Likewise.
83393         * doc/posix-functions/towlower.texi: Likewise.
83394         * doc/posix-functions/towlower_l.texi: Likewise.
83395         * doc/posix-functions/towupper.texi: Likewise.
83396         * doc/posix-functions/towupper_l.texi: Likewise.
83397         * doc/posix-functions/vfwprintf.texi: Likewise.
83398         * doc/posix-functions/vfwscanf.texi: Likewise.
83399         * doc/posix-functions/vswscanf.texi: Likewise.
83400         * doc/posix-functions/vwprintf.texi: Likewise.
83401         * doc/posix-functions/vwscanf.texi: Likewise.
83402         * doc/posix-functions/wcpcpy.texi: Likewise.
83403         * doc/posix-functions/wcpncpy.texi: Likewise.
83404         * doc/posix-functions/wcscasecmp.texi: Likewise.
83405         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
83406         * doc/posix-functions/wcscoll_l.texi: Likewise.
83407         * doc/posix-functions/wcsdup.texi: Likewise.
83408         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83409         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
83410         * doc/posix-functions/wcsnlen.texi: Likewise.
83411         * doc/posix-functions/wcsnrtombs.texi: Likewise.
83412         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
83413         * doc/posix-functions/wctrans_l.texi: Likewise.
83414         * doc/posix-functions/wctype_l.texi: Likewise.
83415         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
83416         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
83417         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
83418         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
83419         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
83420         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
83421         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
83422         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
83423         * doc/glibc-functions/wcschrnul.texi: Likewise.
83424         * doc/glibc-functions/wcsftime_l.texi: Likewise.
83425         * doc/glibc-functions/wcstod_l.texi: Likewise.
83426         * doc/glibc-functions/wcstof_l.texi: Likewise.
83427         * doc/glibc-functions/wcstol_l.texi: Likewise.
83428         * doc/glibc-functions/wcstold_l.texi: Likewise.
83429         * doc/glibc-functions/wcstoll_l.texi: Likewise.
83430         * doc/glibc-functions/wcstoq.texi: Likewise.
83431         * doc/glibc-functions/wcstoul_l.texi: Likewise.
83432         * doc/glibc-functions/wcstoull_l.texi: Likewise.
83433         * doc/glibc-functions/wcstouq.texi: Likewise.
83434         * doc/glibc-functions/wmempcpy.texi: Likewise.
83436 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
83437             Eric Blake  <ebb9@byu.net>
83438             Paolo Bonzini  <bonzini@gnu.org>
83439             Bruno Haible  <bruno@clisp.org>
83441         Make c-stack work on Haiku.
83442         * lib/c-stack.c (SA_ONSTACK): Define fallback.
83443         (c_stack_action): Use SA_ONSTACK flag.
83445 2008-12-22  Bruno Haible  <bruno@clisp.org>
83447         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
83449 2008-12-22  Bruno Haible  <bruno@clisp.org>
83451         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
83452         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
83453         being overridden.
83454         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
83455         New macros.
83456         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
83457         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
83458         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
83459         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
83461 2008-12-22  Bruno Haible  <bruno@clisp.org>
83463         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
83464         from test code.
83466 2008-12-22  Eric Blake  <ebb9@byu.net>
83468         Avoid gcc warnings on cygwin.
83469         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
83470         Avoid unused variable.
83471         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
83472         Likewise.
83474 2008-12-22  Bruno Haible  <bruno@clisp.org>
83476         Remove HAVE_MBRTOWC conditionals.
83477         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
83478         (mbscasecmp): Assume mbrtowc function.
83479         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
83480         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
83481         * lib/mbschr.c: Include mbuiter.h unconditionally.
83482         (mbschr): Assume mbrtowc function.
83483         * lib/mbscspn.c: Include mbuiter.h unconditionally.
83484         (mbscspn): Assume mbrtowc function.
83485         * lib/mbslen.c: Include mbuiter.h unconditionally.
83486         (mbslen): Assume mbrtowc function.
83487         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
83488         (mbsncasecmp): Assume mbrtowc function.
83489         * lib/mbsnlen.c: Include mbiter.h unconditionally.
83490         (mbsnlen): Assume mbrtowc function.
83491         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
83492         (mbspbrk): Assume mbrtowc function.
83493         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
83494         (mbspcasecmp): Assume mbrtowc function.
83495         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
83496         (mbsrchr): Assume mbrtowc function.
83497         * lib/mbssep.c: Include mbuiter.h unconditionally.
83498         (mbssep): Assume mbrtowc function.
83499         * lib/mbsspn.c: Include mbuiter.h unconditionally.
83500         (mbsspn): Assume mbrtowc function.
83501         * lib/mbsstr.c: Include mbuiter.h unconditionally.
83502         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
83503         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
83504         (mbstok_r): Assume mbrtowc function.
83505         * lib/propername.c: Include mbuiter.h unconditionally.
83506         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
83507         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
83508         (trim2): Assume mbrtowc function.
83509         * lib/mbswidth.c (mbsinit): Remove fallback definition.
83510         (mbsnwidth): Assume mbrtowc function.
83511         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
83512         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
83513         fallback definitions.
83514         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
83516 2008-12-22  Bruno Haible  <bruno@clisp.org>
83518         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
83520 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
83522         * modules/regex: Request emulations for the mb*/wc* functions we need.
83523         * m4/regex.m4: Don't look for those functions here.
83524         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
83526 2008-12-22  Bruno Haible  <bruno@clisp.org>
83528         * modules/fnmatch (Depends-on): Remove duplicated dependency.
83530 2008-12-21  Bruno Haible  <bruno@clisp.org>
83532         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
83533         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
83534         (Include): Remove conditionalization.
83535         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
83536         (Include): Remove conditionalization.
83537         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
83538         (Include): Remove conditionalization.
83539         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
83540         * m4/mbfile.m4 (gl_MBFILE): Likewise.
83541         * NEWS: Mention the change.
83542         Reported by Alan Hourihane <alanh@fairlite.co.uk>
83543         via Sergey Poznyakoff <gray@gnu.org.ua>.
83545 2008-12-21  Bruno Haible  <bruno@clisp.org>
83547         * MODULES.html.sh (Extended multibyte and wide character utilities
83548         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
83549         wcrtomb, wcsrtombs.
83550         (Support for systems lacking POSIX:2008): Add accept, bind, close,
83551         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
83552         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
83553         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
83555 2008-12-21  Bruno Haible  <bruno@clisp.org>
83557         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
83559 2008-12-21  Bruno Haible  <bruno@clisp.org>
83561         * modules/wcsnrtombs-tests: New file.
83562         * tests/test-wcsnrtombs1.sh: New file.
83563         * tests/test-wcsnrtombs2.sh: New file.
83564         * tests/test-wcsnrtombs3.sh: New file.
83565         * tests/test-wcsnrtombs4.sh: New file.
83566         * tests/test-wcsnrtombs.c: New file.
83568         New module 'wcsnrtombs'.
83569         * lib/wchar.in.h (wcsnrtombs): New declaration.
83570         * lib/wcsnrtombs.c: New file.
83571         * lib/wcsrtombs-state.c: New file.
83572         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
83573         (internal_state): Remove variable.
83574         * m4/wcsnrtombs.m4: New file.
83575         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
83576         compilation units.
83577         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
83578         HAVE_WCSNRTOMBS.
83579         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
83580         HAVE_WCSNRTOMBS.
83581         * modules/wcsnrtombs: New file.
83582         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
83583         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
83585 2008-12-21  Bruno Haible  <bruno@clisp.org>
83587         * modules/wcsrtombs-tests: New file.
83588         * tests/test-wcsrtombs1.sh: New file.
83589         * tests/test-wcsrtombs2.sh: New file.
83590         * tests/test-wcsrtombs3.sh: New file.
83591         * tests/test-wcsrtombs4.sh: New file.
83592         * tests/test-wcsrtombs.c: New file.
83594         New module 'wcsrtombs'.
83595         * lib/wchar.in.h (wcsrtombs): New declaration.
83596         * lib/wcsrtombs.c: New file.
83597         * m4/wcsrtombs.m4: New file.
83598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
83599         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
83600         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
83601         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
83602         * modules/wcsrtombs: New file.
83603         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
83604         bugs.
83606 2008-12-21  Bruno Haible  <bruno@clisp.org>
83608         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
83609         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
83610         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
83611         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
83612         if not correct.
83613         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
83614         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
83615         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
83616         m4/locale-zh.m4, m4/codeset.m4.
83617         * doc/posix-functions/wcrtomb.texi: Document the bug.
83619 2008-12-21  Bruno Haible  <bruno@clisp.org>
83621         Work around a btowc() bug on IRIX 6.5.
83622         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
83623         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
83624         REPLACE_WTOBC if not.
83625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
83626         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
83627         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
83629 2008-12-21  Bruno Haible  <bruno@clisp.org>
83631         * modules/wcrtomb-tests: New file.
83632         * tests/test-wcrtomb.sh: New file.
83633         * tests/test-wcrtomb.c: New file.
83635         New module 'wcrtomb'.
83636         * lib/wchar.in.h (wcrtomb): New declaration.
83637         * lib/wcrtomb.c: New file.
83638         * m4/wcrtomb.m4: New file.
83639         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
83640         HAVE_WCRTOMB.
83641         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
83642         HAVE_WCRTOMB.
83643         * modules/wcrtomb: New file.
83644         * doc/posix-functions/wcrtomb.texi: Mention the new module.
83646 2008-12-21  Bruno Haible  <bruno@clisp.org>
83648         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
83649         * modules/mbsrtowcs (Files): Likewise.
83650         * modules/wctob (Files): Likewise.
83651         * modules/c-strcase-tests (Files): Likewise.
83652         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
83653         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
83654         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
83655         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
83656         * modules/vasnprintf-posix-tests (Files): Likewise.
83658 2008-12-21  William Pursell  <bill.pursell@gmail.com>
83660         gitlog-to-changelog: pass all command-line arguments to git-log
83661         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
83662         it is sometimes convenient to filter the commits in various ways.
83663         gitlog-to-changelog only allows --since to specify a start date,
83664         but git-log itself supports many other filtering mechanisms.
83665         At the moment, I want to filter by branch name.  Rather than
83666         adding a --branch option to gitlog-to-changelog, it seems more
83667         flexible to simply pass all options directly to git-log and let
83668         git do the work.  Notice that this effectively makes --since a
83669         redundant option for gitlog-to-changelog, but removing it would
83670         require current usage to change since calls would then require
83671         an additional '--'.
83673 2008-12-21  Bruno Haible  <bruno@clisp.org>
83675         * modules/mbsnrtowcs-tests: New file.
83676         * tests/test-mbsnrtowcs1.sh: New file.
83677         * tests/test-mbsnrtowcs2.sh: New file.
83678         * tests/test-mbsnrtowcs3.sh: New file.
83679         * tests/test-mbsnrtowcs4.sh: New file.
83680         * tests/test-mbsnrtowcs.c: New file.
83682         New module 'mbsnrtowcs'.
83683         * lib/wchar.in.h (mbsnrtowcs): New declaration.
83684         * lib/mbsnrtowcs.c: New file.
83685         * lib/mbsrtowcs-state.c: New file.
83686         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
83687         (internal_state): Remove variable.
83688         * m4/mbsnrtowcs.m4: New file.
83689         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
83690         compilation units.
83691         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
83692         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
83693         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
83694         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
83695         * modules/mbsnrtowcs: New file.
83696         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
83697         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
83698         portability problem.
83700 2008-12-21  Bruno Haible  <bruno@clisp.org>
83702         Work around mbsrtowcs bug.
83703         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
83704         (gl_FUNC_MBSRTOWCS): Invoke it.
83705         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
83706         m4/locale-zh.m4.
83707         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
83709 2008-12-21  Bruno Haible  <bruno@clisp.org>
83711         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
83713 2008-12-21  Bruno Haible  <bruno@clisp.org>
83715         Update doc for AIX.
83716         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
83717         16-bit wchar_t type.
83718         * doc/posix-functions/btowc.texi: Likewise.
83719         * doc/posix-functions/fgetwc.texi: Likewise.
83720         * doc/posix-functions/fgetws.texi: Likewise.
83721         * doc/posix-functions/fputwc.texi: Likewise.
83722         * doc/posix-functions/fputws.texi: Likewise.
83723         * doc/posix-functions/fwide.texi: Likewise.
83724         * doc/posix-functions/fwprintf.texi: Likewise.
83725         * doc/posix-functions/fwscanf.texi: Likewise.
83726         * doc/posix-functions/getwchar.texi: Likewise.
83727         * doc/posix-functions/getwc.texi: Likewise.
83728         * doc/posix-functions/iswalnum.texi: Likewise.
83729         * doc/posix-functions/iswalpha.texi: Likewise.
83730         * doc/posix-functions/iswblank.texi: Likewise.
83731         * doc/posix-functions/iswcntrl.texi: Likewise.
83732         * doc/posix-functions/iswctype.texi: Likewise.
83733         * doc/posix-functions/iswdigit.texi: Likewise.
83734         * doc/posix-functions/iswgraph.texi: Likewise.
83735         * doc/posix-functions/iswlower.texi: Likewise.
83736         * doc/posix-functions/iswprint.texi: Likewise.
83737         * doc/posix-functions/iswpunct.texi: Likewise.
83738         * doc/posix-functions/iswspace.texi: Likewise.
83739         * doc/posix-functions/iswupper.texi: Likewise.
83740         * doc/posix-functions/iswxdigit.texi: Likewise.
83741         * doc/posix-functions/mbrtowc.texi: Likewise.
83742         * doc/posix-functions/mbsrtowcs.texi: Likewise.
83743         * doc/posix-functions/mbstowcs.texi: Likewise.
83744         * doc/posix-functions/mbtowc.texi: Likewise.
83745         * doc/posix-functions/putwchar.texi: Likewise.
83746         * doc/posix-functions/putwc.texi: Likewise.
83747         * doc/posix-functions/swprintf.texi: Likewise.
83748         * doc/posix-functions/tolower.texi: Likewise.
83749         * doc/posix-functions/toupper.texi: Likewise.
83750         * doc/posix-functions/towctrans.texi: Likewise.
83751         * doc/posix-functions/ungetwc.texi: Likewise.
83752         * doc/posix-functions/vswprintf.texi: Likewise.
83753         * doc/posix-functions/wcrtomb.texi: Likewise.
83754         * doc/posix-functions/wcscat.texi: Likewise.
83755         * doc/posix-functions/wcschr.texi: Likewise.
83756         * doc/posix-functions/wcscmp.texi: Likewise.
83757         * doc/posix-functions/wcscoll.texi: Likewise.
83758         * doc/posix-functions/wcscpy.texi: Likewise.
83759         * doc/posix-functions/wcscspn.texi: Likewise.
83760         * doc/posix-functions/wcsftime.texi: Likewise.
83761         * doc/posix-functions/wcslen.texi: Likewise.
83762         * doc/posix-functions/wcsncat.texi: Likewise.
83763         * doc/posix-functions/wcsncmp.texi: Likewise.
83764         * doc/posix-functions/wcsncpy.texi: Likewise.
83765         * doc/posix-functions/wcspbrk.texi: Likewise.
83766         * doc/posix-functions/wcsrchr.texi: Likewise.
83767         * doc/posix-functions/wcsrtombs.texi: Likewise.
83768         * doc/posix-functions/wcsspn.texi: Likewise.
83769         * doc/posix-functions/wcsstr.texi: Likewise.
83770         * doc/posix-functions/wcstod.texi: Likewise.
83771         * doc/posix-functions/wcstof.texi: Likewise.
83772         * doc/posix-functions/wcstoimax.texi: Likewise.
83773         * doc/posix-functions/wcstok.texi: Likewise.
83774         * doc/posix-functions/wcstold.texi: Likewise.
83775         * doc/posix-functions/wcstoll.texi: Likewise.
83776         * doc/posix-functions/wcstol.texi: Likewise.
83777         * doc/posix-functions/wcstombs.texi: Likewise.
83778         * doc/posix-functions/wcstoull.texi: Likewise.
83779         * doc/posix-functions/wcstoul.texi: Likewise.
83780         * doc/posix-functions/wcstoumax.texi: Likewise.
83781         * doc/posix-functions/wcswidth.texi: Likewise.
83782         * doc/posix-functions/wcsxfrm.texi: Likewise.
83783         * doc/posix-functions/wctob.texi: Likewise.
83784         * doc/posix-functions/wctomb.texi: Likewise.
83785         * doc/posix-functions/wctrans.texi: Likewise.
83786         * doc/posix-functions/wctype.texi: Likewise.
83787         * doc/posix-functions/wcwidth.texi: Likewise.
83788         * doc/posix-functions/wmemchr.texi: Likewise.
83789         * doc/posix-functions/wmemcmp.texi: Likewise.
83790         * doc/posix-functions/wmemcpy.texi: Likewise.
83791         * doc/posix-functions/wmemmove.texi: Likewise.
83792         * doc/posix-functions/wmemset.texi: Likewise.
83793         * doc/posix-functions/wprintf.texi: Likewise.
83794         * doc/posix-functions/wscanf.texi: Likewise.
83796 2008-12-21  Bruno Haible  <bruno@clisp.org>
83798         Update doc for HP-UX 11.11.
83799         * doc/posix-functions/btowc.texi: Clarify that the function is missing
83800         in HP-UX version 11.00, not in all versions of HP-UX 11.
83801         * doc/posix-functions/fwide.texi: Likewise.
83802         * doc/posix-functions/fwprintf.texi: Likewise.
83803         * doc/posix-functions/fwscanf.texi: Likewise.
83804         * doc/posix-functions/inet_ntop.texi: Likewise.
83805         * doc/posix-functions/inet_pton.texi: Likewise.
83806         * doc/posix-functions/mbrlen.texi: Likewise.
83807         * doc/posix-functions/mbrtowc.texi: Likewise.
83808         * doc/posix-functions/mbsinit.texi: Likewise.
83809         * doc/posix-functions/mbsrtowcs.texi: Likewise.
83810         * doc/posix-functions/swprintf.texi: Likewise.
83811         * doc/posix-functions/swscanf.texi: Likewise.
83812         * doc/posix-functions/towctrans.texi: Likewise.
83813         * doc/posix-functions/vfwprintf.texi: Likewise.
83814         * doc/posix-functions/vswprintf.texi: Likewise.
83815         * doc/posix-functions/vwprintf.texi: Likewise.
83816         * doc/posix-functions/wcrtomb.texi: Likewise.
83817         * doc/posix-functions/wcsrtombs.texi: Likewise.
83818         * doc/posix-functions/wcsstr.texi: Likewise.
83819         * doc/posix-functions/wctob.texi: Likewise.
83820         * doc/posix-functions/wctrans.texi: Likewise.
83821         * doc/posix-functions/wmemchr.texi: Likewise.
83822         * doc/posix-functions/wmemcmp.texi: Likewise.
83823         * doc/posix-functions/wmemcpy.texi: Likewise.
83824         * doc/posix-functions/wmemmove.texi: Likewise.
83825         * doc/posix-functions/wmemset.texi: Likewise.
83826         * doc/posix-functions/wprintf.texi: Likewise.
83827         * doc/posix-functions/wscanf.texi: Likewise.
83829 2008-12-21  Bruno Haible  <bruno@clisp.org>
83831         Work around a portability problem.
83832         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
83833         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
83835 2008-12-20  Bruno Haible  <bruno@clisp.org>
83837         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
83838         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
83839         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
83840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
83841         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
83843         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
83844         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
83845         set.
83846         (GNULIB_defined_mbstate_t): New macro.
83847         (mbsinit): Redefine if REPLACE_MBSINIT is set.
83848         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
83849         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
83850         reuses the system's mbrtowc function but works around the bugs.
83851         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
83852         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
83853         macros.
83854         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
83855         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
83856         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
83857         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
83858         REPLACE_MBSINIT if mbsinit needs to be overridden.
83859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
83860         REPLACE_MBSINIT, REPLACE_MBRTOWC.
83861         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
83862         REPLACE_MBSINIT, REPLACE_MBRTOWC.
83863         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
83864         m4/locale-zh.m4.
83865         (Depends): Add mbsinit.
83866         * modules/mbsinit (Depends): Add mbrtowc.
83867         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
83869 2008-12-20  Bruno Haible  <bruno@clisp.org>
83871         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
83872         so that there are no conversion errors on AIX.
83873         * tests/test-mbsrtowcs.c (main): LIkewise.
83875 2008-12-20  Bruno Haible  <bruno@clisp.org>
83877         Work around wctob bug on Solaris <= 9.
83878         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
83879         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
83880         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
83881         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
83882         * modules/wctob (Files): Add m4/locale-fr.m4.
83883         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
83885 2008-12-20  Bruno Haible  <bruno@clisp.org>
83887         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
83888         /dev/null.
83889         * tests/test-select-in.sh: Likewise.
83890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
83892 2008-12-20  Bruno Haible  <bruno@clisp.org>
83894         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
83895         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
83896         Cygwin 1.5.x.
83898 2008-12-20  Bruno Haible  <bruno@clisp.org>
83900         Ensure mbstate_t is defined on HP-UX 11.11.
83901         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
83902         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
83903         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
83904         AC_USE_SYSTEM_EXTENSIONS.
83905         * modules/fnmatch (Depends-on): Add extensions.
83906         * modules/mbrlen (Depends-on): Likewise.
83907         * modules/mbrtowc (Depends-on): Likewise.
83908         * modules/mbsinit (Depends-on): Likewise.
83909         * modules/mbsrtowcs (Depends-on): Likewise.
83910         * modules/mbswidth (Depends-on): Likewise.
83911         * modules/quotearg (Depends-on): Likewise.
83912         * modules/strftime (Depends-on): Likewise.
83914 2008-12-20  Bruno Haible  <bruno@clisp.org>
83916         Ensure wctob is declared on IRIX 6.5.
83917         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
83918         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
83919         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
83920         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
83921         of HAVE_WCTOB.
83922         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
83923         HAVE_WCTOB.
83924         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
83926 2008-12-19  Bruno Haible  <bruno@clisp.org>
83928         * modules/mbsrtowcs-tests: New file.
83929         * tests/test-mbsrtowcs1.sh: New file.
83930         * tests/test-mbsrtowcs2.sh: New file.
83931         * tests/test-mbsrtowcs3.sh: New file.
83932         * tests/test-mbsrtowcs4.sh: New file.
83933         * tests/test-mbsrtowcs.c: New file.
83935         New module 'mbsrtowcs'.
83936         * lib/wchar.in.h (mbsrtowcs): New declaration.
83937         * lib/mbsrtowcs.c: New file.
83938         * m4/mbsrtowcs.m4: New file.
83939         * modules/mbsrtowcs: New file.
83940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
83941         HAVE_MBSRTOWCS.
83942         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
83943         HAVE_MBSRTOWCS.
83944         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
83946 2008-12-19  Bruno Haible  <bruno@clisp.org>
83948         New module 'mbrlen'.
83949         * lib/wchar.in.h (mbrlen): New declaration.
83950         * lib/mbrlen.c: New file.
83951         * m4/mbrlen.m4: New file.
83952         * modules/mbrlen: New file.
83953         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
83954         HAVE_MBRLEN.
83955         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
83956         HAVE_MBRLEN.
83957         * doc/posix-functions/mbrlen.texi: Document the new module.
83959 2008-12-19  Bruno Haible  <bruno@clisp.org>
83961         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
83962         * modules/mbrtowc (Depends-on): Add verify.
83963         Suggested by Paul Eggert.
83965 2008-12-18  Bruno Haible  <bruno@clisp.org>
83967         * modules/mbsinit-tests: New file.
83968         * tests/test-mbsinit.sh: New file.
83969         * tests/test-mbsinit.c: New file.
83971 2008-12-18  Bruno Haible  <bruno@clisp.org>
83973         * modules/mbrtowc-tests: New file.
83974         * tests/test-mbrtowc1.sh: New file.
83975         * tests/test-mbrtowc2.sh: New file.
83976         * tests/test-mbrtowc3.sh: New file.
83977         * tests/test-mbrtowc4.sh: New file.
83978         * tests/test-mbrtowc.c: New file.
83980         New module 'mbrtowc'.
83981         * lib/wchar.in.h (mbstate_t): Override when the system does not have
83982         mbsinit and mbrtowc.
83983         (mbrtowc): New declaration.
83984         * lib/mbrtowc.c: New file.
83985         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
83986         * modules/mbrtowc: New file.
83987         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
83988         HAVE_MBRTOWC.
83989         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
83990         HAVE_MBRTOWC.
83991         * doc/posix-functions/mbrtowc.texi: Document the new module.
83993 2008-12-18  Bruno Haible  <bruno@clisp.org>
83995         New module 'wctob'.
83996         * lib/wchar.in.h (wctob): New declaration.
83997         * lib/wctob.c: New file.
83998         * m4/wctob.m4: New file.
83999         * modules/wctob: New file.
84000         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
84001         HAVE_WCTOB.
84002         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
84003         * doc/posix-functions/wctob.texi: Document the new module.
84005 2008-12-18  Bruno Haible  <bruno@clisp.org>
84007         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
84008         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
84010 2008-12-18  Simon Josefsson  <simon@josefsson.org>
84012         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
84013         G. Christensen" <tgc@jupiterrise.com>.
84015         * lib/flock.c: Need to include errno.h.  Reported by "Tom
84016         G. Christensen" <tgc@jupiterrise.com>.
84018         * lib/flock.c: Need to include string.h.  Reported by "Tom
84019         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
84020         <ebb9@byu.net>.
84022 2008-12-18  Bruno Haible  <bruno@clisp.org>
84024         * m4/locale-ja.m4: New file, from GNU gettext.
84026 2008-12-17  Bruno Haible  <bruno@clisp.org>
84028         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
84029         Suggested by Eric Blake.
84031 2008-12-17  Bruno Haible  <bruno@clisp.org>
84033         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
84035 2008-12-17  Bruno Haible  <bruno@clisp.org>
84037         * lib/mbsinit.c: Include verify.h. Verify an assumption.
84038         * modules/mbsinit (Depends-on): Add verify.
84039         Suggested by Paul Eggert.
84041 2008-12-17  Bruno Haible  <bruno@clisp.org>
84043         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
84044         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
84045         gl_FUNC_MBRTOWC.
84046         * m4/mbiter.m4 (gl_MBITER): LIkewise.
84047         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
84048         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
84049         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
84050         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
84051         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
84052         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
84053         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
84054         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
84055         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
84056         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
84057         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
84058         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
84059         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
84060         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
84061         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
84062         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
84063         * modules/trim (configure.ac): Likewise.
84065 2008-12-17  Bruno Haible  <bruno@clisp.org>
84067         * modules/btowc-tests: New file.
84068         * tests/test-btowc1.sh: New file.
84069         * tests/test-btowc2.sh: New file.
84070         * tests/test-btowc.c: New file.
84072         New module 'btowc'.
84073         * lib/wchar.in.h (btowc): New declaration.
84074         * lib/btowc.c: New file.
84075         * m4/btowc.m4: New file.
84076         * modules/btowc: New file.
84077         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
84078         HAVE_BTOWC.
84079         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
84080         * doc/posix-functions/btowc.texi: Document the new module.
84082 2008-12-17  Bruno Haible  <bruno@clisp.org>
84084         New module 'mbsinit'.
84085         * lib/wchar.in.h (mbsinit): New declaration.
84086         * lib/mbsinit.c: New file.
84087         * m4/mbsinit.m4: New file.
84088         * modules/mbsinit: New file.
84089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
84090         HAVE_MBSINIT.
84091         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
84092         HAVE_MBSINIT.
84093         * doc/posix-functions/mbsinit.texi: Document the new module.
84095 2008-12-16  Bruno Haible  <bruno@clisp.org>
84097         * lib/unistd.in.h: Add comment.
84098         * tests/test-environ.c: Don't include <stdlib.h>.
84100 2008-12-16  Bruno Haible  <bruno@clisp.org>
84102         * lib/parse-duration.h (parse_duration): Document return value
84103         convention.
84104         * lib/parse-duration.c: Include specification header first. Add
84105         comments.
84106         (_): Remove macro.
84107         (parse_year_month_day, parse_hour_minute_second): Move side effects
84108         outside of strchr call.
84109         (parse_non_iso8601): Move side effects outside of isspace call.
84110         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
84111         call.
84113 2008-12-16  Bruno Haible  <bruno@clisp.org>
84115         * tests/test-parse-duration.sh: Produce no output when the test
84116         succeeds.
84118 2008-12-16  Bruno Haible  <bruno@clisp.org>
84120         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
84121         expressions.
84123 2008-12-15  Bruno Haible  <bruno@clisp.org>
84125         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
84126         * doc/glibc-functions/flistxattr.texi: Likewise.
84127         * doc/glibc-functions/fopencookie.texi: Likewise.
84128         * doc/glibc-functions/fremovexattr.texi: Likewise.
84129         * doc/glibc-functions/fsetxattr.texi: Likewise.
84130         * doc/glibc-functions/getxattr.texi: Likewise.
84131         * doc/glibc-functions/lgetxattr.texi: Likewise.
84132         * doc/glibc-functions/listxattr.texi: Likewise.
84133         * doc/glibc-functions/llistxattr.texi: Likewise.
84134         * doc/glibc-functions/lremovexattr.texi: Likewise.
84135         * doc/glibc-functions/lsetxattr.texi: Likewise.
84136         * doc/glibc-functions/removexattr.texi: Likewise.
84137         * doc/glibc-functions/setxattr.texi: Likewise.
84138         * doc/posix-functions/open_memstream.texi: Likewise.
84140 2008-12-15  Eric Blake  <ebb9@byu.net>
84142         Update doc for cygwin 1.7.
84143         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
84144         functions.
84145         * doc/posix-functions/fchmodat.texi: Likewise.
84146         * doc/posix-functions/fchownat.texi: Likewise.
84147         * doc/posix-functions/fdopendir.texi: Likewise.
84148         * doc/posix-functions/fmemopen.texi: Likewise.
84149         * doc/posix-functions/freeaddrinfo.texi: Likewise.
84150         * doc/posix-functions/fstatat.texi: Likewise.
84151         * doc/posix-functions/futimens.texi: Likewise.
84152         * doc/posix-functions/gai_strerror.texi: Likewise.
84153         * doc/posix-functions/getaddrinfo.texi: Likewise.
84154         * doc/posix-functions/getnameinfo.texi: Likewise.
84155         * doc/posix-functions/if_freenameindex.texi: Likewise.
84156         * doc/posix-functions/if_indextoname.texi: Likewise.
84157         * doc/posix-functions/if_nameindex.texi: Likewise.
84158         * doc/posix-functions/if_nametoindex.texi: Likewise.
84159         * doc/posix-functions/insque.texi: Likewise.
84160         * doc/posix-functions/linkat.texi: Likewise.
84161         * doc/posix-functions/llrint.texi: Likewise.
84162         * doc/posix-functions/llrintf.texi: Likewise.
84163         * doc/posix-functions/llrintl.texi: Likewise.
84164         * doc/posix-functions/lockf.texi: Likewise.
84165         * doc/posix-functions/lrintl.texi: Likewise.
84166         * doc/posix-functions/mkdirat.texi: Likewise.
84167         * doc/posix-functions/mkfifoat.texi: Likewise.
84168         * doc/posix-functions/mknodat.texi: Likewise.
84169         * doc/posix-functions/mq_close.texi: Likewise.
84170         * doc/posix-functions/mq_getattr.texi: Likewise.
84171         * doc/posix-functions/mq_notify.texi: Likewise.
84172         * doc/posix-functions/mq_open.texi: Likewise.
84173         * doc/posix-functions/mq_receive.texi: Likewise.
84174         * doc/posix-functions/mq_send.texi: Likewise.
84175         * doc/posix-functions/mq_setattr.texi: Likewise.
84176         * doc/posix-functions/mq_timedreceive.texi: Likewise.
84177         * doc/posix-functions/mq_timedsend.texi: Likewise.
84178         * doc/posix-functions/mq_unlink.texi: Likewise.
84179         * doc/posix-functions/open_memstream.texi: Likewise.
84180         * doc/posix-functions/openat.texi: Likewise.
84181         * doc/posix-functions/posix_fadvise.texi: Likewise.
84182         * doc/posix-functions/posix_fallocate.texi: Likewise.
84183         * doc/posix-functions/posix_madvise.texi: Likewise.
84184         * doc/posix-functions/posix_memalign.texi: Likewise.
84185         * doc/posix-functions/posix_openpt.texi: Likewise.
84186         * doc/posix-functions/readlinkat.texi: Likewise.
84187         * doc/posix-functions/remque.texi: Likewise.
84188         * doc/posix-functions/renameat.texi: Likewise.
84189         * doc/posix-functions/rintl.texi: Likewise.
84190         * doc/posix-functions/sem_unlink.texi: Likewise.
84191         * doc/posix-functions/shm_open.texi: Likewise.
84192         * doc/posix-functions/shm_unlink.texi: Likewise.
84193         * doc/posix-functions/signgam.texi: Likewise.
84194         * doc/posix-functions/sigset.texi: Likewise.
84195         * doc/posix-functions/stpcpy.texi: Likewise.
84196         * doc/posix-functions/stpncpy.texi: Likewise.
84197         * doc/posix-functions/strerror.texi: Likewise.
84198         * doc/posix-functions/strtod.texi: Likewise.
84199         * doc/posix-functions/symlinkat.texi: Likewise.
84200         * doc/posix-functions/unlinkat.texi: Likewise.
84201         * doc/posix-functions/utimensat.texi: Likewise.
84202         * doc/glibc-functions/bindresvport.texi: Likewise.
84203         * doc/glibc-functions/dn_expand.texi: Likewise.
84204         * doc/glibc-functions/exp10.texi: Likewise.
84205         * doc/glibc-functions/exp10f.texi: Likewise.
84206         * doc/glibc-functions/fgetxattr.texi: Likewise.
84207         * doc/glibc-functions/flistxattr.texi: Likewise.
84208         * doc/glibc-functions/fopencookie.texi: Likewise.
84209         * doc/glibc-functions/freeifaddrs.texi: Likewise.
84210         * doc/glibc-functions/fremovexattr.texi: Likewise.
84211         * doc/glibc-functions/fsetxattr.texi: Likewise.
84212         * doc/glibc-functions/getifaddrs.texi: Likewise.
84213         * doc/glibc-functions/getxattr.texi: Likewise.
84214         * doc/glibc-functions/lgetxattr.texi: Likewise.
84215         * doc/glibc-functions/listxattr.texi: Likewise.
84216         * doc/glibc-functions/llistxattr.texi: Likewise.
84217         * doc/glibc-functions/lremovexattr.texi: Likewise.
84218         * doc/glibc-functions/lsetxattr.texi: Likewise.
84219         * doc/glibc-functions/pow10.texi: Likewise.
84220         * doc/glibc-functions/pow10f.texi: Likewise.
84221         * doc/glibc-functions/rcmd_af.texi: Likewise.
84222         * doc/glibc-functions/removexattr.texi: Likewise.
84223         * doc/glibc-functions/res_init.texi: Likewise.
84224         * doc/glibc-functions/res_mkquery.texi: Likewise.
84225         * doc/glibc-functions/res_query.texi: Likewise.
84226         * doc/glibc-functions/res_querydomain.texi: Likewise.
84227         * doc/glibc-functions/res_send.texi: Likewise.
84228         * doc/glibc-functions/rresvport_af.texi: Likewise.
84229         * doc/glibc-functions/setxattr.texi: Likewise.
84230         * doc/glibc-functions/strcasestr.texi: Likewise.
84232 2008-12-15  Bruno Haible  <bruno@clisp.org>
84234         Fix compilation error on OSF/1 4.0.
84235         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
84236         <sys/time.h>, simply delegate to the system header.
84237         Reported by Daniel Richard G. <oss@teragram.com>.
84239 2008-12-15  Bruno Haible  <bruno@clisp.org>
84241         * doc/posix-functions/openat.texi: Mention the 'openat' module.
84242         * doc/posix-functions/fchmodat.texi: Likewise.
84243         * doc/posix-functions/fchownat.texi: Likewise.
84244         * doc/posix-functions/fdopendir.texi: Likewise.
84245         * doc/posix-functions/fstatat.texi: Likewise.
84246         * doc/posix-functions/mkdirat.texi: Likewise.
84247         * doc/posix-functions/unlinkat.texi: Likewise.
84249 2008-12-14  Bruno Haible  <bruno@clisp.org>
84251         Update doc for POSIX:2008.
84252         * doc/posix-functions/faccessat.texi: New file.
84253         * doc/posix-functions/fchmodat.texi: New file.
84254         * doc/posix-functions/fchownat.texi: New file.
84255         * doc/posix-functions/fdopendir.texi: New file.
84256         * doc/posix-functions/fstatat.texi: New file.
84257         * doc/posix-functions/futimens.texi: New file.
84258         * doc/posix-functions/linkat.texi: New file.
84259         * doc/posix-functions/mkdirat.texi: New file.
84260         * doc/posix-functions/mkfifoat.texi: New file.
84261         * doc/posix-functions/mknodat.texi: New file.
84262         * doc/posix-functions/open_wmemstream.texi: New file.
84263         * doc/posix-functions/openat.texi: New file.
84264         * doc/posix-functions/psiginfo.texi: New file.
84265         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
84266         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
84267         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
84268         * doc/posix-functions/readlinkat.texi: New file.
84269         * doc/posix-functions/renameat.texi: New file.
84270         * doc/posix-functions/strerror_l.texi: New file.
84271         * doc/posix-functions/symlinkat.texi: New file.
84272         * doc/posix-functions/unlinkat.texi: New file.
84273         * doc/posix-functions/utimensat.texi: New file.
84274         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84276 2008-12-14  Bruno Haible  <bruno@clisp.org>
84278         Update doc for POSIX:2008.
84279         * doc/posix-functions/alphasort.texi: Renamed from
84280         doc/glibc-functions/alphasort.texi.
84281         * doc/posix-functions/dirfd.texi: Renamed from
84282         doc/glibc-functions/dirfd.texi.
84283         * doc/posix-functions/dprintf.texi: Renamed from
84284         doc/glibc-functions/dprintf.texi.
84285         * doc/posix-functions/duplocale.texi: Renamed from
84286         doc/glibc-functions/duplocale.texi.
84287         * doc/posix-functions/fexecve.texi: Renamed from
84288         doc/glibc-functions/fexecve.texi.
84289         * doc/posix-functions/fmemopen.texi: Renamed from
84290         doc/glibc-functions/fmemopen.texi.
84291         * doc/posix-functions/freelocale.texi: Renamed from
84292         doc/glibc-functions/freelocale.texi.
84293         * doc/posix-functions/getdate_err.texi: Renamed from
84294         doc/glibc-functions/getdate_err.texi.
84295         * doc/posix-functions/isalnum_l.texi: Renamed from
84296         doc/glibc-functions/isalnum_l.texi.
84297         * doc/posix-functions/isalpha_l.texi: Renamed from
84298         doc/glibc-functions/isalpha_l.texi.
84299         * doc/posix-functions/isblank_l.texi: Renamed from
84300         doc/glibc-functions/isblank_l.texi.
84301         * doc/posix-functions/iscntrl_l.texi: Renamed from
84302         doc/glibc-functions/iscntrl_l.texi.
84303         * doc/posix-functions/isdigit_l.texi: Renamed from
84304         doc/glibc-functions/isdigit_l.texi.
84305         * doc/posix-functions/isgraph_l.texi: Renamed from
84306         doc/glibc-functions/isgraph_l.texi.
84307         * doc/posix-functions/islower_l.texi: Renamed from
84308         doc/glibc-functions/islower_l.texi.
84309         * doc/posix-functions/isprint_l.texi: Renamed from
84310         doc/glibc-functions/isprint_l.texi.
84311         * doc/posix-functions/ispunct_l.texi: Renamed from
84312         doc/glibc-functions/ispunct_l.texi.
84313         * doc/posix-functions/isspace_l.texi: Renamed from
84314         doc/glibc-functions/isspace_l.texi.
84315         * doc/posix-functions/isupper_l.texi: Renamed from
84316         doc/glibc-functions/isupper_l.texi.
84317         * doc/posix-functions/iswalnum_l.texi: Renamed from
84318         doc/glibc-functions/iswalnum_l.texi.
84319         * doc/posix-functions/iswalpha_l.texi: Renamed from
84320         doc/glibc-functions/iswalpha_l.texi.
84321         * doc/posix-functions/iswblank_l.texi: Renamed from
84322         doc/glibc-functions/iswblank_l.texi.
84323         * doc/posix-functions/iswcntrl_l.texi: Renamed from
84324         doc/glibc-functions/iswcntrl_l.texi.
84325         * doc/posix-functions/iswctype_l.texi: Renamed from
84326         doc/glibc-functions/iswctype_l.texi.
84327         * doc/posix-functions/iswdigit_l.texi: Renamed from
84328         doc/glibc-functions/iswdigit_l.texi.
84329         * doc/posix-functions/iswgraph_l.texi: Renamed from
84330         doc/glibc-functions/iswgraph_l.texi.
84331         * doc/posix-functions/iswlower_l.texi: Renamed from
84332         doc/glibc-functions/iswlower_l.texi.
84333         * doc/posix-functions/iswprint_l.texi: Renamed from
84334         doc/glibc-functions/iswprint_l.texi.
84335         * doc/posix-functions/iswpunct_l.texi: Renamed from
84336         doc/glibc-functions/iswpunct_l.texi.
84337         * doc/posix-functions/iswspace_l.texi: Renamed from
84338         doc/glibc-functions/iswspace_l.texi.
84339         * doc/posix-functions/iswupper_l.texi: Renamed from
84340         doc/glibc-functions/iswupper_l.texi.
84341         * doc/posix-functions/iswxdigit_l.texi: Renamed from
84342         doc/glibc-functions/iswxdigit_l.texi.
84343         * doc/posix-functions/isxdigit_l.texi: Renamed from
84344         doc/glibc-functions/isxdigit_l.texi.
84345         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
84346         doc/glibc-functions/mbsnrtowcs.texi.
84347         * doc/posix-functions/mkdtemp.texi: Renamed from
84348         doc/glibc-functions/mkdtemp.texi.
84349         * doc/posix-functions/newlocale.texi: Renamed from
84350         doc/glibc-functions/newlocale.texi.
84351         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
84352         doc/glibc-functions/nl_langinfo_l.texi.
84353         * doc/posix-functions/open_memstream.texi: Renamed from
84354         doc/glibc-functions/open_memstream.texi.
84355         * doc/posix-functions/opterr.texi: Renamed from
84356         doc/glibc-functions/opterr.texi.
84357         * doc/posix-functions/optind.texi: Renamed from
84358         doc/glibc-functions/optind.texi.
84359         * doc/posix-functions/optopt.texi: Renamed from
84360         doc/glibc-functions/optopt.texi.
84361         * doc/posix-functions/psignal.texi: Renamed from
84362         doc/glibc-functions/psignal.texi.
84363         * doc/posix-functions/scandir.texi: Renamed from
84364         doc/glibc-functions/scandir.texi.
84365         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
84366         doc/glibc-functions/sched_get_priority_min.texi.
84367         * doc/posix-functions/signgam.texi: Renamed from
84368         doc/glibc-functions/signgam.texi.
84369         * doc/posix-functions/stpcpy.texi: Renamed from
84370         doc/glibc-functions/stpcpy.texi.
84371         * doc/posix-functions/stpncpy.texi: Renamed from
84372         doc/glibc-functions/stpncpy.texi.
84373         * doc/posix-functions/strcasecmp_l.texi: Renamed from
84374         doc/glibc-functions/strcasecmp_l.texi.
84375         * doc/posix-functions/strcoll_l.texi: Renamed from
84376         doc/glibc-functions/strcoll_l.texi.
84377         * doc/posix-functions/strfmon_l.texi: Renamed from
84378         doc/glibc-functions/strfmon_l.texi.
84379         * doc/posix-functions/strftime_l.texi: Renamed from
84380         doc/glibc-functions/strftime_l.texi.
84381         * doc/posix-functions/strncasecmp_l.texi: Renamed from
84382         doc/glibc-functions/strncasecmp_l.texi.
84383         * doc/posix-functions/strndup.texi: Renamed from
84384         doc/glibc-functions/strndup.texi.
84385         * doc/posix-functions/strnlen.texi: Renamed from
84386         doc/glibc-functions/strnlen.texi.
84387         * doc/posix-functions/strsignal.texi: Renamed from
84388         doc/glibc-functions/strsignal.texi.
84389         * doc/posix-functions/strxfrm_l.texi: Renamed from
84390         doc/glibc-functions/strxfrm_l.texi.
84391         * doc/posix-functions/timer_gettime.texi: Renamed from
84392         doc/glibc-functions/timer_gettime.texi.
84393         * doc/posix-functions/tolower_l.texi: Renamed from
84394         doc/glibc-functions/tolower_l.texi.
84395         * doc/posix-functions/toupper_l.texi: Renamed from
84396         doc/glibc-functions/toupper_l.texi.
84397         * doc/posix-functions/towctrans_l.texi: Renamed from
84398         doc/glibc-functions/towctrans_l.texi.
84399         * doc/posix-functions/towlower_l.texi: Renamed from
84400         doc/glibc-functions/towlower_l.texi.
84401         * doc/posix-functions/towupper_l.texi: Renamed from
84402         doc/glibc-functions/towupper_l.texi.
84403         * doc/posix-functions/uselocale.texi: Renamed from
84404         doc/glibc-functions/uselocale.texi.
84405         * doc/posix-functions/vdprintf.texi: Renamed from
84406         doc/glibc-functions/vdprintf.texi.
84407         * doc/posix-functions/wcpcpy.texi:
84408         Renamed from doc/glibc-functions/wcpcpy.texi.
84409         * doc/posix-functions/wcpncpy.texi: Renamed from
84410         doc/glibc-functions/wcpncpy.texi.
84411         * doc/posix-functions/wcscasecmp.texi: Renamed from
84412         doc/glibc-functions/wcscasecmp.texi.
84413         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
84414         doc/glibc-functions/wcscasecmp_l.texi.
84415         * doc/posix-functions/wcscoll_l.texi: Renamed from
84416         doc/glibc-functions/wcscoll_l.texi.
84417         * doc/posix-functions/wcsdup.texi: Renamed from
84418         doc/glibc-functions/wcsdup.texi.
84419         * doc/posix-functions/wcsncasecmp.texi: Renamed from
84420         doc/glibc-functions/wcsncasecmp.texi.
84421         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
84422         doc/glibc-functions/wcsncasecmp_l.texi.
84423         * doc/posix-functions/wcsnlen.texi: Renamed from
84424         doc/glibc-functions/wcsnlen.texi.
84425         * doc/posix-functions/wcsnrtombs.texi: Renamed from
84426         doc/glibc-functions/wcsnrtombs.texi.
84427         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
84428         doc/glibc-functions/wcsxfrm_l.texi.
84429         * doc/posix-functions/wctrans_l.texi: Renamed from
84430         doc/glibc-functions/wctrans_l.texi.
84431         * doc/posix-functions/wctype_l.texi: Renamed from
84432         doc/glibc-functions/wctype_l.texi.
84433         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84434         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
84435         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
84436         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
84437         these subsections.
84438         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
84439         Remove sections.
84441 2008-12-14  Bruno Haible  <bruno@clisp.org>
84443         Update doc for POSIX:2008.
84444         * doc/posix-functions/*.texi: Update URL of POSIX specification.
84446 2008-12-14  Bruno Haible  <bruno@clisp.org>
84448         Update doc for POSIX:2008.
84449         * doc/pastposix-functions/bcmp.texi: Renamed from
84450         doc/posix-functions/bcmp.texi.
84451         * doc/pastposix-functions/bcopy.texi: Renamed from
84452         doc/posix-functions/bcopy.texi.
84453         * doc/pastposix-functions/bsd_signal.texi: Renamed from
84454         doc/posix-functions/bsd_signal.texi.
84455         * doc/pastposix-functions/bzero.texi: Renamed from
84456         doc/posix-functions/bzero.texi.
84457         * doc/pastposix-functions/ecvt.texi: Renamed from
84458         doc/posix-functions/ecvt.texi.
84459         * doc/pastposix-functions/fcvt.texi: Renamed from
84460         doc/posix-functions/fcvt.texi.
84461         * doc/pastposix-functions/ftime.texi: Renamed from
84462         doc/posix-functions/ftime.texi.
84463         * doc/pastposix-functions/gcvt.texi: Renamed from
84464         doc/posix-functions/gcvt.texi.
84465         * doc/pastposix-functions/getcontext.texi: Renamed from
84466         doc/posix-functions/getcontext.texi.
84467         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
84468         doc/posix-functions/gethostbyaddr.texi.
84469         * doc/pastposix-functions/gethostbyname.texi: Renamed from
84470         doc/posix-functions/gethostbyname.texi.
84471         * doc/pastposix-functions/getwd.texi: Renamed from
84472         doc/posix-functions/getwd.texi.
84473         * doc/pastposix-functions/h_errno.texi: Renamed from
84474         doc/posix-functions/h_errno.texi.
84475         * doc/pastposix-functions/index.texi: Renamed from
84476         doc/posix-functions/index.texi.
84477         * doc/pastposix-functions/makecontext.texi: Renamed from
84478         doc/posix-functions/makecontext.texi.
84479         * doc/pastposix-functions/mktemp.texi: Renamed from
84480         doc/posix-functions/mktemp.texi.
84481         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
84482         doc/posix-functions/pthread_attr_getstackaddr.texi.
84483         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
84484         doc/posix-functions/pthread_attr_setstackaddr.texi.
84485         * doc/pastposix-functions/rindex.texi: Renamed from
84486         doc/posix-functions/rindex.texi.
84487         * doc/pastposix-functions/scalb.texi: Renamed from
84488         doc/posix-functions/scalb.texi.
84489         * doc/pastposix-functions/setcontext.texi: Renamed from
84490         doc/posix-functions/setcontext.texi.
84491         * doc/pastposix-functions/swapcontext.texi: Renamed from
84492         doc/posix-functions/swapcontext.texi.
84493         * doc/pastposix-functions/ualarm.texi: Renamed from
84494         doc/posix-functions/ualarm.texi.
84495         * doc/pastposix-functions/usleep.texi: Renamed from
84496         doc/posix-functions/usleep.texi.
84497         * doc/pastposix-functions/vfork.texi: Renamed from
84498         doc/posix-functions/vfork.texi.
84499         * doc/pastposix-functions/wcswcs.texi: Renamed from
84500         doc/posix-functions/wcswcs.texi.
84501         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
84502         (Function Substitutes): Update.
84504 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84506         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
84507         m4/strerror.m4.
84509 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84510             Bruno Haible  <bruno@clisp.org>
84512         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
84514 2008-12-13  Bruno Haible  <bruno@clisp.org>
84516         * modules/strtoull (Depends-on): Remove unistd.
84518 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84520         * modules/strtoull (Depends-on): Add stdlib.
84522 2008-12-11  Simon Josefsson  <simon@josefsson.org>
84524         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
84526 2008-12-10  Jim Meyering  <meyering@redhat.com>
84528         gl_ASSERT: don't say assertions are disabled when they're not
84529         * m4/assert.m4 (gl_ASSERT): Do not make configure report
84530         "checking whether to enable assertions... no", when they are in
84531         fact enabled.  This is solely a bug in the output of configure.
84532         In spite of saying "no", NDEBUG was not defined in that case.
84533         Also, as noted by Eric Blake, leave assertions enabled upon
84534         --enable-assert=INVALID.
84536 2008-12-10  Bruno Haible  <bruno@clisp.org>
84538         Change MODULES.html to refer to POSIX:2008 where possible.
84539         * MODULES.html.sh (POSIX2008_URL): New variable.
84540         (posix_headers): Remove sys/timeb, ucontext.
84541         (posix2001_headers): New variable.
84542         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
84543         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
84544         index, makecontext, mktemp, pthread_attr_getstackaddr,
84545         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
84546         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
84547         (posix2001_functions): New variable.
84548         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
84549         otherwise.
84551 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84553         add missing include to parse-duration.c
84554         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
84555         * modules/parse-duration (Depends-on): Add xalloc.
84557         fix sed script reading maint.mk
84558         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
84559         (syntax-check-rules): Use it.
84561 2008-12-09  Bruno Haible  <bruno@clisp.org>
84563         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
84564         MacOS X 10.4/PowerPC.
84565         Reported by Simon Josefsson.
84567 2008-12-08  Jim Meyering  <meyering@redhat.com>
84569         work around mingw's lack of some S_IF definitions
84570         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
84571         Reported by Simon Josefsson.
84573 2008-12-08  Bruno Haible  <bruno@clisp.org>
84575         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
84576         applied to variables. Needed on MacOS X 10.4/PowerPC.
84577         Reported by Simon Josefsson.
84579 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
84580         and Eric Blake  <ebb9@byu.net>
84582         assert: honor --enable-assert
84583         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
84584         order to honor --enable-assert, rather than treating it as a
84585         synonym for --disable-assert.
84587 2008-12-08  Jim Meyering  <meyering@redhat.com>
84589         * lib/posixtm.c: Remove now-useless declaration of mktime.
84591         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
84593 2008-12-07  Bruno Haible  <bruno@clisp.org>
84595         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
84596         test_once): Mark functions as static.
84597         * tests/test-tls.c (test_tls): Likewise.
84599 2008-12-07  Bruno Haible  <bruno@clisp.org>
84601         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
84602         iconv_register_autodetect.
84604 2008-12-07  Jim Meyering  <meyering@redhat.com>
84606         posixtm.c: avoid a warning
84607         * lib/posixtm.c (posixtime): Don't initialize tm0.
84608         It's no longer needed to placate gcc4's -Wuninitialized,
84609         and the attempt to placate would elicit a new warning.
84611         unicodeio.c: mark unused parameters
84612         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
84613         (fallback_failure_callback): Likewise.
84615 2008-12-07  Bruno Haible  <bruno@clisp.org>
84617         * gnulib-tool (func_create_testdir): When building the tests
84618         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
84619         Reported by Simon Josefsson.
84621 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84623         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
84625 2008-12-06  Bruno Haible  <bruno@clisp.org>
84627         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
84628         Suggested by Eric Blake.
84630 2008-12-06  Bruno Haible  <bruno@clisp.org>
84632         Fix a c-stack test failure on MacOS X.
84633         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
84634         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
84635         handler for SIGBUS as well.
84636         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
84637         install a signal handler for SIGBUS as well.
84638         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
84640 2008-12-06  Bruno Haible  <bruno@clisp.org>
84642         Advocacy documentation.
84643         * doc/gnulib-intro.texi (Benefits): New section.
84644         * doc/gnulib.texi: Update.
84646 2008-12-06  Bruno Haible  <bruno@clisp.org>
84648         Document the 'manywarnings' module.
84649         * doc/manywarnings.texi: New file.
84650         * doc/gnulib.texi: Include it.
84652 2008-12-05  Eric Blake  <ebb9@byu.net>
84654         tests: silence some gcc warnings
84655         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
84656         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
84657         type mismatches.
84659 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84660             Bruno Haible  <bruno@clisp.org>
84662         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
84664 2008-11-29  Jim Meyering  <meyering@redhat.com>
84666         unicodeio.c: mark unused parameters
84667         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
84668         (fallback_failure_callback): Likewise.
84670         fts: fix a thinko
84671         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
84672         (set_stat_type): Return S_IF*-valued "type" directly.
84673         Prompted by James Youngman's spotting a related bug.
84674         Confirmed by further testing through find.
84676         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
84677         * lib/fts.c (D_TYPE): Define.
84678         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
84679         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
84680         (s_ifmt_shift_bits): New function.
84681         (set_stat_type): New function.
84682         (fts_build): When not calling fts_stat, call set_stat_type
84683         to propagate dirent.d_type info to fts_read caller.
84684         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
84685         fts_statp->st_mode type information may be valid.
84687 2008-11-28  Simon Josefsson  <simon@josefsson.org>
84689         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
84690         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
84691         <sds@gnu.org>.
84693 2008-11-20  Bruno Haible  <bruno@clisp.org>
84695         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
84696         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
84697         INCLUDE_NEXT.
84698         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
84699         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
84700         * modules/math (Makefile.am): Substitute
84701         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
84702         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84704 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
84705             Bruno Haible  <bruno@clisp.org>
84707         * lib/stdint.in.h: Define all type macros so that their expansion is
84708         a single typedef'ed token. Fixes a compilation failure in Boost which
84709         does "using ::int8_t;".
84711 2008-11-18  Simon Josefsson  <simon@josefsson.org>
84713         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
84714         gl_MANYWARN_ALL_GCC.
84715         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
84716         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
84717         * modules/manywarnings: New file.
84718         * MODULES.html.sh: Mention manywarnings module.
84720 2008-11-18  Bruno Haible  <bruno@clisp.org>
84722         * doc/gnulib-tool.texi (Unit tests): New section.
84724 2008-11-18  Simon Josefsson  <simon@josefsson.org>
84726         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
84727         paths like 'lib/po/foo.po'.
84729 2008-11-17  Simon Josefsson  <simon@josefsson.org>
84731         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
84732         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
84734 2008-11-17  Simon Josefsson  <simon@josefsson.org>
84736         * m4/warnings.m4: Use CPPFLAGS to really check whether the
84737         parameter works.
84739 2008-11-17  Simon Josefsson  <simon@josefsson.org>
84741         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
84743 2008-11-17  Bruce Korb  <bkorb@gnu.org>
84745         * modules/parse-duration-tests: New file.
84746         * tests/test-parse-duration.sh: New file.
84747         * tests/test-parse-duration.c: New file.
84749         New module 'parse-duration'.
84750         * lib/parse-duration.h: New file.
84751         * lib/parse-duration.c: New file.
84752         * modules/parse-duration: New file.
84754 2008-11-17  Bruno Haible  <bruno@clisp.org>
84756         * tests/test-select-out.sh: Comment out the first pipe test.
84757         Reported by Simon Josefsson.
84759 2008-11-17  Bruno Haible  <bruno@clisp.org>
84761         * modules/getaddrinfo (Depends-on): Add servent, hostent.
84762         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
84763         gl_HOSTENT.
84765 2008-11-17  Bruno Haible  <bruno@clisp.org>
84767         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
84768         -lnetwork and -lnet. Needed for Haiku and BeOS.
84770 2008-11-16  Bruno Haible  <bruno@clisp.org>
84772         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
84774 2008-11-16  Bruno Haible  <bruno@clisp.org>
84776         Avoid test failure on Haiku.
84777         * tests/test-fsync.c: Include <errno.h>.
84778         (main): Don't require that fsync (0) fails.
84780 2008-11-15  Bruno Haible  <bruno@clisp.org>
84782         New module 'hostent'.
84783         * modules/hostent: New file.
84784         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
84786 2008-11-15  Bruno Haible  <bruno@clisp.org>
84788         New module 'servent'.
84789         * modules/servent: New file.
84790         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
84792 2008-11-15  Bruno Haible  <bruno@clisp.org>
84794         Avoid generating same test program with two different rules.
84795         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
84796         test-frexp to test-frexp-nolibm.
84797         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
84798         test-frexpl to test-frexpl-nolibm.
84800 2008-11-15  Bruno Haible  <bruno@clisp.org>
84802         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
84803         $(FREXPL_LIBM).
84805 2008-11-15  Bruno Haible  <bruno@clisp.org>
84807         * lib/netdb.in.h: Activate the definitions also when the system's
84808         <netdb.h> has 'struct addrinfo'.
84809         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
84810         EAI_OVERFLOW or AI_NUMERICSERV.
84811         * doc/posix-headers/netdb.texi: Document the problem.
84813 2008-11-15  Bruno Haible  <bruno@clisp.org>
84815         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
84817         Make the 'sched' module work on platforms where <sched.h> exists but
84818         is incomplete (such as Haiku).
84819         * lib/sched.in.h; Include the system's <sched.h> if it exists.
84820         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
84821         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
84822         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
84823         HAVE_STRUCT_SCHED_PARAM.
84824         * modules/sched (Depends-on): Add include_next.
84825         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
84826         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
84827         * doc/posix-headers/sched.texi: Document the issue.
84829 2008-11-13  Jim Meyering  <meyering@redhat.com>
84831         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
84832         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
84833         test would fail due to the difference in the Report bugs to ...
84834         line.  The expected address is empty, "<>", while the actual
84835         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
84837 2008-11-12  Bruno Haible  <bruno@clisp.org>
84839         lstat: don't compile lstat.c on systems lacking lstat
84840         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
84841         which don't have lstat; this is handled by lib/sys_stat.in.h already.
84842         Reported by Daniel P. Berrange via Jim Meyering.
84844 2008-11-12  Jim Meyering  <meyering@redhat.com>
84846         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
84848 2008-11-12  Simon Josefsson  <simon@josefsson.org>
84850         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
84851         instead.
84853 2008-11-12  Bruno Haible  <bruno@clisp.org>
84855         * lib/unicodeio.c: Include unistr.h.
84856         (utf8_wctomb): Remove function.
84857         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
84859 2008-11-12  Simon Josefsson  <simon@josefsson.org>
84861         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
84862         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
84863         <bruno@clisp.org>.
84864         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
84866 2008-11-12  Simon Josefsson  <simon@josefsson.org>
84868         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
84869         * doc/gnulib.texi: Add section for warnings.
84871 2008-11-11  Bruno Haible  <bruno@clisp.org>
84873         * lib/sockets.h: Add a comment.
84875 2008-11-11  Karl Berry  <karl@gnu.org>
84877         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
84879 2008-11-11  Eric Blake  <ebb9@byu.net>
84881         fdl.texi: avoid git symlinks
84882         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
84884 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
84886         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
84888 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
84890         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
84891         (gl_WARN_ADD): Substitute $2 if literal.
84893 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
84895         * m4/warning.m4: Remove.
84897 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
84899         * m4/warnings.m4: Almost complete rewrite. :-)
84901 2008-11-10  Simon Josefsson  <simon@josefsson.org>
84903         * modules/warnings: New module.
84904         * m4/warnings.m4: New file.
84905         * MODULES.html.sh: Mention warnings module.
84906         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
84907         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84909 2008-11-10  Eric Blake  <ebb9@byu.net>
84911         fdl.texi: make a symlink to the latest version
84912         * doc/standards.texi: Revert today's earlier change.
84913         * doc/fdl-1.2.texi: Rename from old fdl.texi...
84914         * doc/fdl.texi: ...and replace this with a symlink to the newer
84915         fdl-1.3.texi.
84917 2008-11-10  Bruno Haible  <bruno@clisp.org>
84919         * tests/test-select-fd.c (main): Accept the result file name as fourth
84920         argument.
84921         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
84922         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
84924 2008-11-10  Bruno Haible  <bruno@clisp.org>
84926         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
84927         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
84928         as autoconf-substituted macros.
84929         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
84930         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
84931         gl_NETDB_H_DEFAULTS. Set these variables.
84932         * modules/netdb (Makefile.am): Substitute these variables.
84934 2008-11-10  Eric Blake  <ebb9@byu.net>
84936         standards.texi: include correct file for FDL 1.3
84937         * doc/standards.texi (GNU Free Documentation License): Change
84938         include file to pull in FDL 1.3, not 1.2.
84940         fdl.texi: revert accidental change to license
84941         * doc/fdl.texi: This is FDL 1.2, not 1.3.
84943 2008-11-10  Bruno Haible  <bruno@clisp.org>
84945         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
84946         cross-compiling guesses also when the native compile gives no result.
84948 2008-11-10  Bruno Haible  <bruno@clisp.org>
84950         * lib/spawni.c (__spawni): Force variable into the stack.
84952 2008-11-10  Bruno Haible  <bruno@clisp.org>
84954         Add support for Haiku.
84955         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
84956         glibc and BeOS, but also on Haiku.
84957         * lib/fpurge.c (fpurge): Likewise.
84958         * lib/freadable.c (freadable): Likewise.
84959         * lib/freadahead.c (freadahead): Likewise.
84960         * lib/freading.c (freading): Likewise.
84961         * lib/freadptr.c (freadptr): Likewise.
84962         * lib/freadseek.c (freadptrinc): Likewise.
84963         * lib/fseeko.c (rpl_fseeko): Likewise.
84964         * lib/fseterr.c (fseterr): Likewise.
84965         * lib/fwritable.c (fwritable): Likewise.
84966         * lib/fwriting.c (fwriting): Likewise.
84967         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
84969 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
84971         * lib/config.charset: Treat Haiku like BeOS.
84973 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
84975         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
84976         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
84978 2008-11-08  Bruno Haible  <bruno@clisp.org>
84980         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
84981         AC_CACHE_CHECK.
84983 2008-11-08  Bruno Haible  <bruno@clisp.org>
84985         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
84987 2008-11-08  Bruno Haible  <bruno@clisp.org>
84989         * tests/test-select-fd.c: New file.
84990         * tests/test-select-in.sh: New file.
84991         * tests/test-select-out.sh: New file.
84992         * tests/test-select-stdin.c: New file.
84993         * modules/select-tests (Files): Add the new files.
84994         (Depends-on): Add gettimeofday.
84995         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
84996         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
84997         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
84999 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
85000             Bruno Haible  <bruno@clisp.org>
85002         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
85004 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
85006         * build-aux/pmccabe2html: Added support for C++ source files.
85008 2008-11-05  Ben Pfaff  <blp@gnu.org>
85010         Fix lib/close.c build on Windows.
85011         * modules/close (Files): Add lib/w32sock.h.
85013 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
85015         Accept Bison's NEWS format.
85016         * build-aux/announce-gen (print_news_deltas): Tweak
85017         $re_prefix.
85019 2008-11-04  Bruno Haible  <bruno@clisp.org>
85021         * modules/random_r (Maintainer): Add glibc.
85023 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85025         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
85026         by karl@freefriends.org (Karl Berry).
85027         * doc/alloca.texi: Likewise.
85028         * doc/c-ctype.texi: Likewise.
85029         * doc/c-strcase.texi: Likewise.
85030         * doc/c-strcaseeq.texi: Likewise.
85031         * doc/c-strcasestr.texi: Likewise.
85032         * doc/c-strstr.texi: Likewise.
85033         * doc/c-strtod.texi: Likewise.
85034         * doc/c-strtold.texi: Likewise.
85035         * doc/ctime.texi: Likewise.
85036         * doc/error.texi: Likewise.
85037         * doc/fdl.texi: Likewise.
85038         * doc/gcd.texi: Likewise.
85039         * doc/getdate.texi: Likewise.
85040         * doc/gnulib-intro.texi: Likewise.
85041         * doc/gnulib-tool.texi: Likewise.
85042         * doc/gnulib.texi: Likewise.
85043         * doc/inet_ntoa.texi: Likewise.
85044         * doc/maintain.texi: Likewise.
85045         * doc/make-stds.texi: Likewise.
85046         * doc/quote.texi: Likewise.
85047         * doc/regexprops-generic.texi: Likewise.
85048         * doc/standards.texi: Likewise.
85049         * doc/verify.texi: Likewise.
85050         * doc/visibility.texi: Likewise.
85051         * doc/gnulib.texi (GNU Free Documentation License): Include
85052         fdl-1.3.texi instead of fdl.texi.
85054 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85056         * doc/fdl-1.3.texi: New file, from
85057         <http://www.gnu.org/licenses/fdl-1.3.texi>.
85058         * modules/fdl-1.3: Add.
85059         * MODULES.html.sh: Add fdl-1.3.
85061 2008-11-03  Bruno Haible  <bruno@clisp.org>
85063         Make determination of absolute name of header file work with AIX xlc.
85064         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
85065         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
85066         preprocessing.
85067         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
85068         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
85070 2008-11-03  Simon Josefsson  <simon@josefsson.org>
85072         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
85073         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
85074         <ludo@gnu.org>.
85076 2008-11-02  Bruno Haible  <bruno@clisp.org>
85078         Mark 'strpbrk' obsolete.
85079         * modules/strpbrk (Status, Notice): New sections.
85080         * modules/strtok_r (Depends-on): Add strpbrk.
85082 2008-11-02  Bruno Haible  <bruno@clisp.org>
85084         Mark 'strdup' obsolete.
85085         * modules/strdup (Status, Notice): New sections.
85086         * modules/findprog (Depends-on): Add strdup.
85087         * modules/getaddrinfo (Depends-on): Likewise.
85088         * modules/localename (Depends-on): Likewise.
85089         * modules/relocatable-lib (Depends-on): Likewise.
85090         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
85091         * modules/relocatable-prog (Depends-on): Likewise.
85092         * modules/trim (Depends-on): Likewise.
85093         * modules/unictype/gen-ctype (Depends-on): Likewise.
85094         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85096 2008-11-02  Bruno Haible  <bruno@clisp.org>
85098         Mark 'strcspn' obsolete.
85099         * modules/strcspn (Status, Notice): New sections.
85101 2008-11-02  Bruno Haible  <bruno@clisp.org>
85103         Mark 'rmdir' obsolete.
85104         * modules/rmdir (Status, Notice): New sections.
85105         * modules/clean-temp (Depends-on): Add rmdir.
85106         * modules/openat (Depends-on): Likewise.
85108 2008-11-02  Bruno Haible  <bruno@clisp.org>
85110         Mark 'raise' obsolete.
85111         * modules/raise (Status, Notice): New sections.
85112         (Include): Specify <signal.h>.
85113         * modules/stdio (Depends-on): Add raise.
85114         * modules/write (Depends-on): Likewise.
85116 2008-11-02  Bruno Haible  <bruno@clisp.org>
85118         Mark 'memset' obsolete.
85119         * modules/memset (Status, Notice): New sections.
85121 2008-11-02  Bruno Haible  <bruno@clisp.org>
85123         Mark 'memmove' obsolete.
85124         * modules/memmove (Status, Notice): New sections.
85125         * modules/argp (Depends-on): Add memmove.
85126         * modules/argz (Depends-on): Likewise.
85127         * modules/canonicalize (Depends-on): Likewise.
85128         * modules/canonicalize-lgpl (Depends-on): Likewise.
85129         * modules/fts (Depends-on): Likewise.
85130         * modules/getcwd (Depends-on): Likewise.
85131         * modules/human (Depends-on): Likewise.
85132         * modules/regex (Depends-on): Likewise.
85133         * modules/striconveh (Depends-on): Likewise.
85134         * modules/trim (Depends-on): Likewise.
85135         * modules/unistr/u8-move (Depends-on): Likewise.
85136         * modules/unistr/u16-move (Depends-on): Likewise.
85137         * modules/unistr/u32-move (Depends-on): Likewise.
85139 2008-11-02  Bruno Haible  <bruno@clisp.org>
85141         Mark 'memcpy' obsolete.
85142         * modules/memcpy (Status, Notice): New sections.
85144 2008-11-02  Bruno Haible  <bruno@clisp.org>
85146         Mark 'memcmp' obsolete.
85147         * modules/memcmp (Status, Notice): New sections.
85148         * modules/argmatch (Depends-on): Add memchr.
85149         * modules/backupfile (Depends-on): Likewise.
85150         * modules/c-strcasestr (Depends-on): Likewise.
85151         * modules/crypto/des (Depends-on): Likewise.
85152         * modules/csharpcomp (Depends-on): Likewise.
85153         * modules/fnmatch (Depends-on): Likewise.
85154         * modules/git-merge-changelog (Depends-on): Likewise.
85155         * modules/isnand (Depends-on): Likewise.
85156         * modules/isnand-nolibm (Depends-on): Likewise.
85157         * modules/isnanf (Depends-on): Likewise.
85158         * modules/isnanf-nolibm (Depends-on): Likewise.
85159         * modules/isnanl (Depends-on): Likewise.
85160         * modules/isnanl-nolibm (Depends-on): Likewise.
85161         * modules/mbchar (Depends-on): Likewise.
85162         * modules/memcoll (Depends-on): Likewise.
85163         * modules/quotearg (Depends-on): Likewise.
85164         * modules/regex (Depends-on): Likewise.
85165         * modules/relocatable-prog (Depends-on): Likewise.
85166         * modules/same (Depends-on): Likewise.
85167         * modules/signbit (Depends-on): Likewise.
85168         * modules/strcasestr-simple (Depends-on): Likewise.
85169         * modules/unictype/gen-ctype (Depends-on): Likewise.
85170         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85171         * modules/uniname/uniname (Depends-on): Likewise.
85172         * modules/unistr/u8-cmp (Depends-on): Likewise.
85174 2008-11-02  Bruno Haible  <bruno@clisp.org>
85176         Mark 'memchr' obsolete.
85177         * modules/memchr (Status, Notice): New sections.
85178         * modules/argp (Depends-on): Add memchr.
85179         * modules/base64 (Depends-on): Likewise.
85180         * modules/c-strcasestr (Depends-on): Likewise.
85181         * modules/chdir-long (Depends-on): Likewise.
85182         * modules/fnmatch (Depends-on): Likewise.
85183         * modules/getsubopt (Depends-on): Likewise.
85184         * modules/git-merge-changelog (Depends-on): Likewise.
85185         * modules/glob (Depends-on): Likewise.
85186         * modules/strcasestr-simple (Depends-on): Likewise.
85187         * modules/strnlen (Depends-on): Likewise.
85189 2008-11-02  Bruno Haible  <bruno@clisp.org>
85191         Mark 'atexit' obsolete.
85192         * modules/atexit (Status, Notice): New sections.
85193         * modules/chdir-long (Depends-on): Add atexit.
85194         * modules/wait-process (Depends-on): Likewise.
85196 2008-11-02  Bruno Haible  <bruno@clisp.org>
85198         * gnulib-tool: New option --with-obsolete.
85199         (func_usage): Document it.
85200         (func_modules_transitive_closure): Drop obsolete dependencies if
85201         incobsolete is not true.
85202         (func_import): Read and save the incobsolete variable to the cache.
85204 2008-11-02  Bruno Haible  <bruno@clisp.org>
85206         * modules/TEMPLATE-EXTENDED: New field 'Status'.
85207         * gnulib-tool: New option --extract-status.
85208         (func_usage): Document it.
85209         (sed_extract_prog): Recognize it.
85210         (func_get_status): New function.
85212 2008-10-30  Simon Josefsson  <simon@josefsson.org>
85214         * modules/sockets (License): Change from LGPL to LGPLv2+.
85216 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85218         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
85220 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85222         * MODULES.html.sh (Support for systems lacking POSIX:2001):
85223         Mention times and sys_times.
85224         * modules/sys_times, modules/sys_times-tests: New modules.
85225         * modules/times, modules/times-tests: Likewise
85226         * m4/sys_times_h.m4: New file.
85227         * lib/sys_times.in.h: Likewise
85228         * lib/times.c: Likewise.
85229         * tests/test-sys_times.c: Likewise.
85230         * tests/test-times.c: Likewise.
85231         * doc/posix-headers/sys_times.texi: Update.
85232         * doc/posix-functions/times.texi: Update.
85234 2008-10-28  Jim Meyering  <meyering@redhat.com>
85236         * modules/tempname (Depends-on): Add lstat.
85238         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
85240 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85242         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
85243         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
85244         using idiom used elsewhere in gnulib.
85246 2008-10-27  Jim Meyering  <meyering@redhat.com>
85248         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
85250 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85252         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
85253         TESTS_ENVIRONMENT, for shell scripts that needs to call built
85254         programs.
85255         * tests/test-argp-2.sh: Use $EXEEXT when needed.
85257 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85259         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
85261 2008-10-27  Bruno Haible  <bruno@clisp.org>
85263         * tests/test-lstat.c: Include <stdio.h>.
85265 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85267         * modules/lstat-tests: New module.
85268         * tests/test-lstat.c: New file.
85270 2008-10-26  Jim Meyering  <meyering@redhat.com>
85272         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
85274 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85275             Bruno Haible  <bruno@clisp.org>
85277         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
85278         * modules/configmake (Include): Add a note that the include must come
85279         after all system headers.
85280         * lib/javaversion.c: Include configmake.h after all other includes.
85282 2008-10-26  Bruno Haible  <bruno@clisp.org>
85284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
85285         HAVE_STRUCT_RANDOM_DATA to 1.
85286         (gl_STDLIB_H): Simplify.
85288 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85290         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
85291         substitute HAVE_STRUCT_RANDOM_DATA.
85292         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
85293         random_data.
85294         * modules/stdlib (Makefile.am): Substitute
85295         HAVE_STRUCT_RANDOM_DATA.
85297 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85299         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
85300         * doc/gnulib-intro.texi (Copyright): Likewise.
85302 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85304         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
85305         findings.
85307 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
85308             Bruno Haible  <bruno@clisp.org>
85310         * lib/unistd.in.h: Include <winsock2.h>.
85311         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
85312         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
85313         Provide dummy declarations.
85314         (gethostname): Override.
85315         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
85316         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
85317         gl_PREREQ_SYS_H_WINSOCK2.
85318         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
85319         * doc/posix-functions/gethostname.texi: More details.
85321 2008-10-25  Bruno Haible  <bruno@clisp.org>
85323         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
85324         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
85325         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
85327         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
85328         here ...
85329         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
85330         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
85331         gl_UNISTD_H_DEFAULTS.
85333 2008-10-25  Eric Blake  <ebb9@byu.net>
85335         signbit: avoid spurious compiler failure
85336         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
85337         declarations inside function.
85339 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85340             Bruno Haible  <bruno@clisp.org>
85342         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
85343         * modules/random_r (Depends-on): Add stdint.
85345 2008-10-24  Bruno Haible  <bruno@clisp.org>
85347         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
85348         Eggert.
85349         * modules/strerror (License): Likewise.
85351 2008-10-24  Jim Meyering  <meyering@redhat.com>
85353         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
85354         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
85356 2008-10-24  Eric Blake  <ebb9@byu.net>
85358         getgroups: fix compilation when getgroups is available
85359         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
85360         but with <config.h> override of getgroups disabled.
85362 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85364         * doc/gnulib.texi (Header files): Add note about C++ problems.
85365         Explained by Bruno Haible <bruno@clisp.org>.
85367 2008-10-23  Bruno Haible  <bruno@clisp.org>
85369         Define a dummy SA_NODEFER macro on Interix.
85370         * lib/signal.in.h (SA_NODEFER): Define fallback.
85371         Reported by Aleksey Cheusov <cheusov@tut.by> via
85372         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
85374 2008-10-23  Bruno Haible  <bruno@clisp.org>
85376         * modules/freadahead (License): Change to LGPLv2+.
85377         Suggested by Simon Josefsson.
85379 2008-10-23  Jim Meyering  <meyering@redhat.com>
85381         random_r: new module
85382         * modules/random_r: New file.
85383         * m4/random_r.m4: New file.
85384         * lib/random_r.c: New file, from glibc.
85385         * modules/random_r-tests: New file.
85386         * tests/test-random_r.c: New file.
85387         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
85388          Declare.
85389         (RAND_MAX): Define.
85390         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
85391         * modules/stdlib: Substitute them, too.
85392         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
85393         * doc/glibc-functions/initstate_r.texi: Mention the new module.
85394         * doc/glibc-functions/random_r.texi: Likewise.
85395         * doc/glibc-functions/setstate_r.texi: Likewise.
85396         * doc/glibc-functions/srandom_r.texi: Likewise.
85397         * config/srclist.txt: Mention it.
85399 2008-10-23  David Lutterkort  <lutter@redhat.com>
85401         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
85402         link requirement
85404 2008-10-23  Jim Meyering  <meyering@redhat.com>
85406         selinux-h: mark parameters of stub functions as intentionally unused
85407         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
85408         * lib/se-context.in.h: Likewise.
85410 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85412         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
85414 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85416         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
85418 2008-10-22  Eric Blake  <ebb9@byu.net>
85420         glthread/thread: avoid compiler warning
85421         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
85422         Add unreachable abort to silence compiler.
85424 2008-10-22  Eric Blake  <ebb9@byu.net>
85426         netdb: also supply struct addrinfo for cygwin 1.5.x
85427         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
85428         older cygwin.
85429         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
85430         cygwin.
85431         * doc/posix-headers/netdb.texi (netdb.h): Document this.
85433 2008-10-22  Bruno Haible  <bruno@clisp.org>
85435         * users.txt: Update entry about pspp.
85437 2008-10-21  Bruno Haible  <bruno@clisp.org>
85439         Simplification.
85440         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
85441         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
85443         Simplification.
85444         * lib/ioctl.c (ioctl): Don't undefine.
85445         * lib/socket.c (socket): Don't undefine.
85447         Remove unused module indicator macros.
85448         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
85449         GNULIB_$1 as a C macro.
85451         * doc/posix-functions/close.texi: Undo last change.
85452         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
85453         Windows platforms.
85455 2008-10-21  Bruno Haible  <bruno@clisp.org>
85457         Add gethostname() declaration to <unistd.h>.
85458         * lib/unistd.in.h (gethostname): New declaration.
85459         * lib/gethostname.c: Include <unistd.h>.
85460         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
85461         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
85462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
85463         and HAVE_GETHOSTNAME.
85464         * modules/gethostname (Depends-on): Add unistd.
85465         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85466         (Include): Specify <unistd.h>.
85467         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
85468         HAVE_GETHOSTNAME.
85469         * tests/test-gethostname.c: Include <unistd.h> first.
85471 2008-10-21  Bruno Haible  <bruno@clisp.org>
85473         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
85474         * modules/select-tests (Depends-on): Likewise.
85475         Reported by Simon Josefsson.
85477 2008-10-21  Simon Josefsson  <simon@josefsson.org>
85479         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
85480         * lib/accept.c: New file, based on winsock.c.
85481         * lib/bind.c: New file, based on winsock.c.
85482         * lib/connect.c: New file, based on winsock.c.
85483         * lib/getpeername.c: New file, based on winsock.c.
85484         * lib/getsockname.c: New file, based on winsock.c.
85485         * lib/getsockopt.c: New file, based on winsock.c.
85486         * lib/ioctl.c: New file, based on winsock.c.
85487         * lib/listen.c: New file, based on winsock.c.
85488         * lib/recv.c: New file, based on winsock.c.
85489         * lib/recvfrom.c: New file, based on winsock.c.
85490         * lib/send.c: New file, based on winsock.c.
85491         * lib/sendto.c: New file, based on winsock.c.
85492         * lib/setsockopt.c: New file, based on winsock.c.
85493         * lib/shutdown.c: New file, based on winsock.c.
85494         * lib/socket.c: New file, based on winsock.c.
85495         * lib/w32sock.h: New file, based on winsock.c.
85496         * lib/winsock.c: Remove file.
85497         * modules/accept: Likewise.
85498         * modules/bind: Likewise.
85499         * modules/connect: Likewise.
85500         * modules/getpeername: Likewise.
85501         * modules/getsockname: Likewise.
85502         * modules/getsockopt: Likewise.
85503         * modules/ioctl: Likewise.
85504         * modules/listen: Likewise.
85505         * modules/recv: Likewise.
85506         * modules/recvfrom: Likewise.
85507         * modules/send: Likewise.
85508         * modules/sendto: Likewise.
85509         * modules/setsockopt: Likewise.
85510         * modules/shutdown: Likewise.
85511         * modules/socket: Use socket.c instead of winsock.c.
85512         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
85513         * doc/posix-functions/accept.texi: Doc fix.
85514         * doc/posix-functions/bind.texi: Doc fix.
85515         * doc/posix-functions/close.texi: Doc fix.
85516         * doc/posix-functions/connect.texi: Doc fix.
85517         * doc/posix-functions/getpeername.texi: Doc fix.
85518         * doc/posix-functions/getsockname.texi: Doc fix.
85519         * doc/posix-functions/getsockopt.texi: Doc fix.
85520         * doc/posix-functions/ioctl.texi: Doc fix.
85521         * doc/posix-functions/listen.texi: Doc fix.
85522         * doc/posix-functions/recv.texi: Doc fix.
85523         * doc/posix-functions/recvfrom.texi: Doc fix.
85524         * doc/posix-functions/send.texi: Doc fix.
85525         * doc/posix-functions/sendto.texi: Doc fix.
85526         * doc/posix-functions/setsockopt.texi: Doc fix.
85527         * doc/posix-functions/shutdown.texi: Doc fix.
85528         * doc/posix-functions/socket.texi: Doc fix.
85530 2008-10-20  Bruno Haible  <bruno@clisp.org>
85532         Take into account the role of SIGABRT_COMPAT on Windows 2008.
85533         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
85534         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
85535         as an alias for SIGABRT.
85536         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
85537         (sigaction): Map it to SIGABRT.
85538         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
85540 2008-10-20  Bruno Haible  <bruno@clisp.org>
85542         * lib/fts.c: Don't include lstat.h.
85543         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
85545         Move the lstat() declaration to <sys/stat.h>.
85546         * lib/lstat.h: Remove file.
85547         * lib/sys_stat.in.h: Add special invocation convention.
85548         (lstat): New declaration.
85549         * lib/lstat.c (orig_lstat): New function.
85550         (rpl_lstat): Use orig_lstat instead of lstat.
85551         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
85552         AC_C_INLINE. Set REPLACE_LSTAT.
85553         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
85554         and REPLACE_LSTAT.
85555         * modules/lstat (Files): Remove lib/lstat.h.
85556         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
85557         (Include): Specify <sys/stat.h> instead of lstat.h.
85558         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
85559         REPLACE_LSTAT.
85560         * NEWS: Mention the change.
85562 2008-10-20  Bruno Haible  <bruno@clisp.org>
85564         * modules/posix_spawn-tests: New file.
85565         * tests/test-posix_spawn3.c: New file.
85567 2008-10-20  Bruno Haible  <bruno@clisp.org>
85569         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
85570         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
85571         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
85572         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
85573         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
85575 2008-10-20  Bruno Haible  <bruno@clisp.org>
85577         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
85578         of posix_spawn on AIX 5.3.
85580 2008-10-20  Bruno Haible  <bruno@clisp.org>
85582         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
85584 2008-10-20  Bruno Haible  <bruno@clisp.org>
85586         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
85587         of AC_LANG_PROGRAM.
85589 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85591         * lib/netdb.in.h: Don't define GNU specific constants until they
85592         are supported or needed.  Reported by Bruno Haible
85593         <bruno@clisp.org>.
85595 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85597         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
85599 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85601         * lib/getaddrinfo.h: Remove file.
85602         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
85603         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
85604         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
85605         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
85606         * modules/netdb: Substitute GNULIB_GETADDRINFO.
85607         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
85608         * tests/test-getaddrinfo.c: Likewise.
85609         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
85610         * NEWS: Mention change.
85612 2008-10-19  Bruno Haible  <bruno@clisp.org>
85614         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
85616 2008-10-19  Bruno Haible  <bruno@clisp.org>
85618         * lib/wait-process.c: Include simply <sys/wait.h>.
85619         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
85620         WIFSTOPPED): Remove fallback definitions.
85621         * modules/wait-process (Depends-on): Add sys_wait.
85623         New module 'sys_wait'.
85624         * modules/sys_wait: New file.
85625         * lib/sys_wait.in.h: New file, partially copied from
85626         lib/wait-process.c.
85627         * m4/sys_wait_h.m4: New file.
85628         * doc/posix-headers/sys_wait.texi: Mention the new module.
85630 2008-10-19  Bruno Haible  <bruno@clisp.org>
85632         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
85634 2008-10-19  Bruno Haible  <bruno@clisp.org>
85636         Assume that waitpid() fills an 'int' status, not a 'union wait'.
85637         * lib/wait-process.c (WAIT_T): Remove type.
85638         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
85639         (wait_subprocess): Update.
85641 2008-10-19  Bruno Haible  <bruno@clisp.org>
85643         New module 'atoll'.
85644         * modules/atoll: New file.
85645         * lib/stdlib.in.h (atoll): New declaration.
85646         * lib/atoll.c: New file, from glibc with modifications.
85647         * m4/atoll.m4: New file.
85648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
85649         HAVE_ATOLL.
85650         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
85651         * doc/posix-functions/atoll.texi: Mention the new module.
85653 2008-10-19  Bruno Haible  <bruno@clisp.org>
85655         Add strtoull() declaration to <stdlib.h>.
85656         * lib/stdlib.in.h (strtoull): New declaration.
85657         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
85658         Set HAVE_STRTOULL.
85659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
85660         HAVE_STRTOULL.
85661         * modules/strtoull (Depends-on): Add stdlib.
85662         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85663         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
85664         HAVE_STRTOULL.
85666 2008-10-19  Bruno Haible  <bruno@clisp.org>
85668         Add strtoll() declaration to <stdlib.h>.
85669         * lib/stdlib.in.h (strtoll): New declaration.
85670         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
85671         Set HAVE_STRTOLL.
85672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
85673         HAVE_STRTOLL.
85674         * modules/strtoll (Depends-on): Add stdlib.
85675         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85676         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
85678 2008-10-19  Bruno Haible  <bruno@clisp.org>
85680         * modules/bcopy (Depends-on): Add strings.
85681         (Include): Specify <strings.h>.
85683 2008-10-19  Bruno Haible  <bruno@clisp.org>
85685         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
85687 2008-10-19  Bruno Haible  <bruno@clisp.org>
85689         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
85690         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
85691         mingw.
85693 2008-10-19  Bruno Haible  <bruno@clisp.org>
85695         * lib/atanl.c: Don't include isnanl.h.
85696         * lib/cosl.c: Likewise.
85697         * lib/ldexpl.c: Likewise.
85698         * lib/logl.c: Likewise.
85699         * lib/sinl.c: Likewise.
85700         * lib/sqrtl.c: Likewise.
85701         * lib/tanl.c: Likewise.
85703         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
85704         * lib/isnanf.h: Remove file.
85705         * lib/isnand.h: Remove file.
85706         * lib/isnanl.h: Remove file.
85707         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
85708         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
85709         macros.
85710         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
85711         HAVE_ISNANF, don't define it as a C macro.
85712         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
85713         HAVE_ISNAND, don't define it as a C macro.
85714         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
85715         HAVE_ISNANL, don't define it as a C macro.
85716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
85717         HAVE_ISNAN[FDL].
85718         * modules/isnanf (Files): Remove lib/isnanf.h.
85719         (Depends-on): Add math.
85720         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
85721         (Include): Specify <math.h> instead of isnanf.h.
85722         * modules/isnand (Files): Remove lib/isnand.h.
85723         (Depends-on): Add math.
85724         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
85725         (Include): Specify <math.h> instead of isnand.h.
85726         * modules/isnanl (Files): Remove lib/isnanl.h.
85727         (Depends-on): Add math.
85728         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
85729         (Include): Specify <math.h> instead of isnanl.h.
85730         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
85731         HAVE_ISNAN[FDL].
85732         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
85733         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
85734         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
85735         * NEWS: Mention the change.
85737 2008-10-18  Bruno Haible  <bruno@clisp.org>
85739         Add getusershell(), setusershell(), endusershell() declarations to
85740         <unistd.h>.
85741         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
85742         declarations.
85743         * lib/getusershell.c: Include unistd.h.
85744         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
85745         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
85746         HAVE_GETUSERSHELL.
85747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
85748         and HAVE_GETUSERSHELL.
85749         * modules/getusershell (Depends-on): Add unistd, extensions.
85750         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85751         (Include): Specify <unistd.h>.
85752         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
85753         HAVE_GETUSERSHELL.
85755 2008-10-18  Bruno Haible  <bruno@clisp.org>
85757         Add a getloadavg() declaration to <stdlib.h>.
85758         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
85759         getloadavg declaration.
85760         (getloadavg): New declaration.
85761         * lib/getloadavg.c: Include <stdlib.h> first.
85762         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
85763         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
85764         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
85765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
85766         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
85767         * modules/getloadavg (Depends-on): Add stdlib, extensions.
85768         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85769         (Include): Specify <stdlib.h>.
85770         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
85771         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
85773 2008-10-18  Bruno Haible  <bruno@clisp.org>
85775         * lib/dirchownmod.c: Don't include lchmod.h.
85777         Move the lchmod() declaration to <sys/stat.h>.
85778         * lib/lchmod.h: Remove file.
85779         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
85780         (lchmod): New declaration, moved here from lib/lchown.h.
85781         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
85782         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
85783         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
85784         and HAVE_LCHMOD.
85785         * modules/lchmod (Files): Remove lib/lchmod.h.
85786         (Depends-on): Add sys_stat, extensions.
85787         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
85788         (Include): Specify <sys/stat.h> instead of lchmod.h.
85789         * modules/sys_stat (Depends-on): Add link-warning.
85790         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
85791         definition of GL_LINK_WARNING.
85792         * NEWS: Mention the change.
85794 2008-10-18  Bruno Haible  <bruno@clisp.org>
85796         * lib/fchdir.c: Don't include dirfd.h.
85797         * lib/fts.c: Likewise.
85798         * lib/getcwd.c: Likewise.
85799         * lib/glob.c: Likewise.
85801         Move the dirfd() declaration to <dirent.h>.
85802         * lib/dirfd.h: Remove file.
85803         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
85804         (dirfd): New declaration.
85805         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
85806         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
85807         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
85808         HAVE_DECL_DIRFD.
85809         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
85810         HAVE_DECL_DIRFD.
85811         * modules/dirfd (Files): Remove lib/dirfd.h.
85812         (Depends-on): Add dirent, extensions.
85813         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
85814         (Include): Specify <dirent.h> instead of dirfd.h.
85815         * modules/dirent (Depends-on): Add link-warning.
85816         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
85817         definition of GL_LINK_WARNING.
85818         * NEWS: Mention the change.
85820 2008-10-18  Bruno Haible  <bruno@clisp.org>
85822         Move the euidaccess() declaration to <unistd.h>.
85823         * lib/euidaccess.h: Remove file.
85824         * lib/unistd.in.h (euidaccess): New declaration.
85825         * lib/euidaccess.c: Don't include euidaccess.h.
85826         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
85827         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
85828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
85829         and HAVE_EUIDACCESS.
85830         * modules/euidaccess (Files): Remove lib/euidaccess.h.
85831         (Depends-on): Add unistd.
85832         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85833         (Include): Specify <unistd.h> instead of euidaccess.h.
85834         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
85835         HAVE_EUIDACCESS.
85836         * NEWS: Mention the change.
85838 2008-10-18  Bruno Haible  <bruno@clisp.org>
85840         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
85842         Move the getdomainname() declaration to <unistd.h>.
85843         * lib/getdomainname.h: Remove file.
85844         * lib/unistd.in.h (getdomainname): New declaration.
85845         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
85846         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
85847         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
85848         HAVE_GETDOMAINNAME.
85849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
85850         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
85851         * modules/getdomainname (Files): Remove lib/getdomainname.h.
85852         (Depends-on): Add unistd, extensions.
85853         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85854         (Includes): Specify <unistd.h> instead of getdomainname.h.
85855         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
85856         HAVE_GETDOMAINNAME.
85857         * NEWS: Mention the change.
85859 2008-10-18  Bruno Haible  <bruno@clisp.org>
85861         * modules/dirent: New file.
85862         * m4/dirent_h.m4: New file.
85863         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
85864         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
85865         * modules/fchdir (Files): Remove lib/dirent.in.h.
85866         (Depends-on): Add dirent.
85867         (Makefile.am): Move rules to modules/dirent.
85868         * doc/posix-headers/dirent.texi: Mention the new module.
85870 2008-10-18  Bruno Haible  <bruno@clisp.org>
85872         Avoid -Wunused-parameter warnings in public gnulib header files.
85873         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
85874         macro.
85875         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
85877 2008-10-18  Bruno Haible  <bruno@clisp.org>
85879         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
85880         * doc/glibc-functions/error.texi: Mention the module 'error'.
85881         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
85882         * doc/glibc-functions/getdomainname.texi: Mention the module
85883         'getdomainname'.
85884         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
85885         * doc/glibc-functions/getpagesize.texi: Mention the module
85886         'getpagesize'.
85887         * doc/glibc-functions/getusershell.texi: Mention the module
85888         'getusershell'.
85889         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
85890         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
85891         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
85892         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
85893         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
85894         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
85895         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
85896         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
85897         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
85898         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
85899         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
85900         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
85901         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
85902         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
85904 2008-10-17  Bruno Haible  <bruno@clisp.org>
85906         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
85907         HP-UX and IRIX, use -0.0L.
85908         * tests/test-ceill.c (minus_zero): Likewise.
85909         * tests/test-floorl.c (minus_zero): Likewise.
85910         * tests/test-frexpl.c (minus_zero): Likewise.
85911         * tests/test-isnan.c (minus_zerol): Likewise.
85912         * tests/test-isnanl.h (minus_zero): Likewise.
85913         * tests/test-ldexpl.c (minus_zero): Likewise.
85914         * tests/test-roundl.c (minus_zero): Likewise.
85915         * tests/test-signbit.c (minus_zerol): Likewise.
85916         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
85917         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
85918         * tests/test-truncl.c (minus_zero): Likewise.
85919         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
85920         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
85921         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
85922         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
85924 2008-10-17  Bruno Haible  <bruno@clisp.org>
85926         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
85927         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
85928         that it gets activated only for gcc >= 3.0.
85929         * lib/dirent.in.h: Likewise.
85930         * lib/errno.in.h: Likewise.
85931         * lib/fcntl.in.h: Likewise.
85932         * lib/float.in.h: Likewise.
85933         * lib/iconv.in.h: Likewise.
85934         * lib/inttypes.in.h: Likewise.
85935         * lib/locale.in.h: Likewise.
85936         * lib/math.in.h: Likewise.
85937         * lib/netdb.in.h: Likewise.
85938         * lib/netinet_in.in.h: Likewise.
85939         * lib/search.in.h: Likewise.
85940         * lib/signal.in.h: Likewise.
85941         * lib/spawn.in.h: Likewise.
85942         * lib/stdarg.in.h: Likewise.
85943         * lib/stdint.in.h: Likewise.
85944         * lib/stdio.in.h: Likewise.
85945         * lib/stdlib.in.h: Likewise.
85946         * lib/string.in.h: Likewise.
85947         * lib/strings.in.h: Likewise.
85948         * lib/sys_file.in.h: Likewise.
85949         * lib/sys_ioctl.in.h: Likewise.
85950         * lib/sys_select.in.h: Likewise.
85951         * lib/sys_socket.in.h: Likewise.
85952         * lib/sys_stat.in.h: Likewise.
85953         * lib/sys_time.in.h: Likewise.
85954         * lib/sysexits.in.h: Likewise.
85955         * lib/time.in.h: Likewise.
85956         * lib/unistd.in.h: Likewise.
85957         * lib/wchar.in.h: Likewise.
85958         * lib/wctype.in.h: Likewise.
85959         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85961 2008-10-17  Jim Meyering  <meyering@redhat.com>
85963         ignore-value: don't depend on inline module
85964         * modules/ignore-value (Depends-on): Remove 'inline'.
85965         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
85966         Suggestion from Bruno Haible.
85968 2008-10-17  Bruno Haible  <bruno@clisp.org>
85970         New implementation of condition variables for Win32.
85971         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
85972         (gl_linked_waitqueue_t): New type.
85973         (gl_cond_t): Use it.
85974         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
85975         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
85976         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
85977         (glthread_cond_init_func, glthread_cond_wait_func,
85978         glthread_cond_timedwait_func, glthread_cond_signal_func,
85979         glthread_cond_broadcast_func, glthread_cond_destroy_func):
85980         Reimplemented on the basis of gl_linked_waitqueue_t.
85981         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
85982         gl_waitqueue_t.
85983         (gl_rwlock_t): Update.
85984         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
85986 2008-10-17  Simon Josefsson  <simon@josefsson.org>
85988         * modules/recvfrom (Depends-on): Add dependency on getpeername.
85989         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
85991 2008-10-17  Jim Meyering  <meyering@redhat.com>
85993         ignore-value: new module
85994         * modules/ignore-value: New file.
85995         * lib/ignore-value.h: New file.
85996         * MODULES.html.sh (Compiler warning management): New section,
85997         just for this module.  More to come.
85999 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
86001         open-safer.c: avoid 'signed and unsigned in conditional...' warning
86002         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
86003         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
86005 2008-10-16  Jim Meyering  <meyering@redhat.com>
86007         openat-die.c: avoid 'no previous prototype' warning
86008         * lib/openat-die.c: Include "openat.h".
86009         Reported by Reuben Thomas <rrt@sc3d.org>.
86011 2008-10-16  Simon Josefsson  <simon@josefsson.org>
86013         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
86014         * lib/netdb.in.h: Fix typo.
86015         Reported by Bruno Haible  <bruno@clisp.org>
86017         * lib/netdb.in.h: Include sys/socket.h for platforms without
86018         netdb.h, to get structures like hostent on MinGW.
86019         * modules/netdb (Depends-on): Add sys_socket.
86021 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86023         * modules/netdb, modules/netdb-tests: New file.
86024         * m4/netdb_h.m4: New file.
86025         * lib/netdb.in.h: Add, currently just an empty file pending
86026         definitions.
86027         * tests/test-netdb.c: New file.
86028         * doc/posix-headers/netdb.texi: Mention that we replace it if
86029         needed.
86030         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86031         netdb.
86033 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86035         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
86036         with code.
86038 2008-10-13  Bruno Haible  <bruno@clisp.org>
86040         * lib/glthread/cond.c (glthread_cond_wait_func,
86041         glthread_cond_timedwait_func): Add a comment.
86043 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86045         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
86046         * tests/test-select.c: Likewise,
86048 2008-10-13  Bruno Haible  <bruno@clisp.org>
86050         * lib/glthread/cond.c (glthread_cond_wait_func,
86051         glthread_cond_timedwait_func): Fix variable name.
86052         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86054 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
86056         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
86057         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
86058         struct sockaddr.sa_len.
86059         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
86061 2008-10-13  Simon Josefsson  <simon@josefsson.org>
86063         * build-aux/pmccabe2html: Add css and css_url parameters.
86065 2008-10-12  Bruno Haible  <bruno@clisp.org>
86067         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
86068         calling aclx_get.
86069         Reported by Rainer Tammer <tammer@tammer.net>.
86071 2008-10-12  Bruno Haible  <bruno@clisp.org>
86073         Use msvcrt aware primitives for creation/termination of Win32 threads.
86074         * lib/glthread/thread.c: Include <process.h>.
86075         (glthread_create_func): Use _beginthreadex instead of CreateThread.
86076         (wrapper_func): Update signature.
86077         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
86079 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86080             Bruno Haible  <bruno@clisp.org>
86082         Provide a Win32 implementation of the 'cond' module.
86083         * lib/glthread/cond.h [USE_WIN32]: New implementation.
86084         * lib/glthread/cond.c (glthread_cond_init_func,
86085         glthread_cond_wait_func, glthread_cond_timedwait_func,
86086         glthread_cond_signal_func, glthread_cond_broadcast_func,
86087         glthread_cond_destroy_func) [USE_WIN32]: New functions.
86088         * modules/cond (Dependencies): Add gettimeofday.
86090 2008-10-11  Bruno Haible  <bruno@clisp.org>
86092         Make sleep work on older versions of mingw.
86093         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
86094         only whether it exists.
86095         * doc/posix-functions/sleep.texi: Mention the problem with older
86096         versions of mingw.
86098 2008-10-11  Bruno Haible  <bruno@clisp.org>
86100         New module 'shutdown'.
86101         * modules/shutdown: New file.
86102         * lib/sys_socket.in.h (shutdown): New declaration.
86103         * lib/winsock.c (shutdown): New function.
86104         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
86105         GNULIB_SHUTDOWN.
86106         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
86107         * doc/posix-functions/shutdown.texi: Document the new module.
86109 2008-10-11  Jim Meyering  <meyering@redhat.com>
86111         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
86113 2008-10-11  Bruno Haible  <bruno@clisp.org>
86115         New module 'fclose'.
86116         * modules/fclose: New file.
86117         * lib/stdio.in.h (fclose): New declaration.
86118         * lib/fclose.c: New file.
86119         * m4/fclose.m4: New file.
86120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
86121         REPLACE_FCLOSE.
86122         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
86123         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
86124         REPLACE_FCLOSE.
86125         * modules/close (Depends-on): fclose.
86126         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
86128 2008-10-11  Bruno Haible  <bruno@clisp.org>
86130         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
86131         set errno and don't call _close.
86133 2008-10-10  Bruno Haible  <bruno@clisp.org>
86135         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
86136         ACL, not afterwards. Fixes test failure on Cygwin.
86138 2008-10-09  Ben Pfaff  <blp@gnu.org>
86140         * build-aux/announce-gen: Fix gnulib version related part of usage
86141         message.  Die with a useful error message if no tarballs are
86142         found.
86144 2008-10-10  Jim Meyering  <meyering@redhat.com>
86146         bootstrap: use git's --depth=N option only if it's supported
86147         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
86148         recognize the --depth option.  Reported by Pádraig Brady.
86150 2008-10-09  Bruno Haible  <bruno@clisp.org>
86152         New module 'ioctl'.
86153         * modules/ioctl: New file.
86154         * lib/sys_socket.in.h (ioctl): Remove declaration.
86155         * lib/winsock.c: Include <sys/ioctl.h>.
86156         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
86157         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
86158         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
86159         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
86160         * doc/posix-functions/ioctl.texi: Mention the new module.
86162 2008-10-09  Bruno Haible  <bruno@clisp.org>
86164         New module 'sys_ioctl'.
86165         * lib/sys_ioctl.in.h: New file.
86166         * m4/sys_ioctl_h.m4: New file.
86167         * modules/sys_ioctl: New file.
86168         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
86170 2008-10-09  Bruno Haible  <bruno@clisp.org>
86172         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
86173         * lib/winsock.c: Include <stdarg.h>.
86174         (rpl_ioctl): Change to second argument 'int' and then varargs.
86176 2008-10-09  Bruno Haible  <bruno@clisp.org>
86178         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
86179         when the sys_socket module is present and the system has <winsock2.h>.
86181 2008-10-09  Bruno Haible  <bruno@clisp.org>
86183         * doc/posix-functions/close.texi: Mention module 'close' instead of
86184         module 'sys_socket'.
86186 2008-10-09  Bruno Haible  <bruno@clisp.org>
86188         * doc/glibc-headers/sys_ioctl.texi: New file.
86189         * doc/gnulib.texi: Include it.
86191 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86192             Bruno Haible  <bruno@clisp.org>
86194         Combine the two replacements of 'close'.
86195         * lib/sys_socket.in.h (close): Define to a reminder to include
86196         <unistd.h>.
86197         (_gl_close_fd_maybe_socket): New declaration.
86198         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
86199         * lib/winsock.c (close): Remove undefinition.
86200         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
86201         needed for the gnulib module 'close'.
86202         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
86203         define to an error symbol or to a warning, if suitable.
86204         * lib/close.c: Include <sys/socket.h>.
86205         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
86206         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
86207         UNISTD_H_HAVE_WINSOCK2_H.
86208         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
86209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86210         UNISTD_H_HAVE_WINSOCK2_H.
86211         * modules/sys_socket (Files): Add m4/unistd_h.m4.
86212         (configure.ac): Set a module indicator.
86213         (Makefile.am): Substitute GNULIB_CLOSE.
86214         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
86215         * modules/poll-tests (Depends-on): Add close.
86216         * modules/select-tests (Depends-on): Likewise.
86218 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86219             Bruno Haible  <bruno@clisp.org>
86221         New module 'close'.
86222         * modules/close: New file.
86223         * lib/unistd.in.h (close): Move declaration out of the
86224         FCHDIR_REPLACEMENT scope.
86225         (_gl_unregister_fd): New declaration.
86226         * lib/close.c: New file.
86227         * lib/fchdir.c (rpl_close): Remove function.
86228         * m4/close.m4: New file.
86229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86230         close.
86231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
86232         REPLACE_CLOSE.
86233         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
86234         REPLACE_CLOSE.
86235         * modules/fchdir (Depends-on): Add close.
86237 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86238             Bruno Haible  <bruno@clisp.org>
86240         * lib/fcntl.in.h (open): Simplify conditionals.
86241         (_gl_register_fd): New declaration.
86242         * lib/fchdir.c (rpl_open): Remove function.
86243         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
86244         also.
86245         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
86246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86247         open.
86249 2008-10-09  Jim Meyering  <meyering@redhat.com>
86251         GNUmakefile: use the more name-space-friendly "_version"
86252         * top/GNUmakefile (_dummy): Update.
86253         (_version): Rename from "version".
86255 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86256             Bruno Haible  <bruno@clisp.org>
86258         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
86259         rpl_close.
86260         (_gl_register_fd): New function, extracted from rpl_open.
86261         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
86262         (rpl_open, rpl_opendir): Use _gl_register_fd.
86264 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86266         Fix organization of 'open' replacement.
86267         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
86268         (gl_FUNC_OPEN): Use it.
86269         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
86271 2008-10-08  Bruno Haible  <bruno@clisp.org>
86273         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
86275 2008-10-08  Simon Josefsson  <simon@josefsson.org>
86277         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
86278         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
86279         listen).
86281 2008-10-08  Eric Blake  <ebb9@byu.net>
86283         GNUmakefile: add 'make version' target
86284         * top/GNUmakefile (_curr-ver): Split version update rules...
86285         (version): ...into a target.
86287 2008-10-07  Bruno Haible  <bruno@clisp.org>
86289         Use a more portable replacement expression for -0.0L.
86290         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
86291         instead of -0.0L. Fix m4 quotation.
86293         * tests/test-signbit.c: Include <float.h>.
86294         (minus_zero): New variable.
86295         (test_signbitl): Use minus_zero instead of -zero.
86296         * modules/signbit-tests (Depends-on): Add float.
86298         * tests/test-ceill.c: Include <float.h>.
86299         (zero): Remove variable.
86300         (minus_zero): New variable.
86301         (main): Use minus_zero instead of -zero.
86302         * modules/ceill-tests (Depends-on): Add float.
86304         * tests/test-floorl.c: Include <float.h>.
86305         (zero): Remove variable.
86306         (minus_zero): New variable.
86307         (main): Use minus_zero instead of -zero.
86308         * modules/floorl-tests (Depends-on): Add float.
86310         * tests/test-roundl.c: Include <float.h>.
86311         (zero): Remove variable.
86312         (minus_zero): New variable.
86313         (main): Use minus_zero instead of -zero.
86314         * modules/roundl-tests (Depends-on): Add float.
86316         * tests/test-truncl.c: Include <float.h>.
86317         (zero): Remove variable.
86318         (minus_zero): New variable.
86319         (main): Use minus_zero instead of -zero.
86320         * modules/truncl-tests (Depends-on): Add float.
86322         * tests/test-frexpl.c (zero): Remove variable.
86323         (minus_zero): New variable.
86324         (main): Use minus_zero instead of -zero.
86325         * modules/frexpl-tests (Depends-on): Add float.
86327         * tests/test-isnan.c (zerol): Remove variable.
86328         (minus_zerol): New variable.
86329         (test_long_double): Use minus_zerol instead of -zerol.
86330         * modules/isnan-tests (Depends-on): Add float.
86332         * tests/test-isnanl.h (zero): Remove variable.
86333         (minus_zero): New variable.
86334         (main): Use minus_zero instead of -zero.
86335         * modules/isnanl-nolibm-tests (Depends-on): Add float.
86336         * modules/isnanl-tests (Depends-on): Add float.
86338         * tests/test-ldexpl.c (zero): Remove variable.
86339         (minus_zero): New variable.
86340         (main): Use minus_zero instead of -zero.
86341         * modules/ldexpl-tests (Depends-on): Add float.
86343         * tests/test-snprintf-posix.h (zerol): Remove variable.
86344         (minus_zerol): New variable.
86345         (test_function): Use minus_zerol instead of -zerol.
86346         * modules/snprintf-posix-tests (Depends-on): Add float.
86347         * modules/vsnprintf-posix-tests (Depends-on): Add float.
86349         * tests/test-sprintf-posix.h (zerol): Remove variable.
86350         (minus_zerol): New variable.
86351         (test_function): Use minus_zerol instead of -zerol.
86352         * modules/sprintf-posix-tests (Depends-on): Add float.
86353         * modules/vsprintf-posix-tests (Depends-on): Add float.
86355         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
86356         (minus_zerol): New variable.
86357         (test_function): Use minus_zerol instead of -zerol.
86358         * modules/vasnprintf-posix-tests (Depends-on): Add float.
86360         * tests/test-vasprintf-posix.c (zerol): Remove variable.
86361         (minus_zerol): New variable.
86362         (test_function): Use minus_zerol instead of -zerol.
86363         * modules/vasprintf-posix-tests (Depends-on): Add float.
86365 2008-10-07  Simon Josefsson  <simon@josefsson.org>
86367         * MODULES.html.sh (Support for building documentation): Mention
86368         pmccabe2html.  Sort entries.
86370         Add pmccabe2html module, from gnupdf.
86371         * build-aux/pmccabe.css: New file.
86372         * build-aux/pmccabe2html: New file.
86373         * m4/pmccabe2html.m4: New file.
86374         * modules/pmccabe2html: New file.
86376 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
86378         flock: new module
86379         * MODULES.html.sh: Add to list of modules.
86380         * lib/flock.c: flock implementation for Windows and Unix systems
86381         which have fcntl.
86382         * doc/glibc-functions/flock.texi: Update documentation.
86383         * lib/sys_file.in.h: <sys/file.h> header file.
86384         * m4/flock.m4: M4 macros.
86385         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
86386         * modules/flock: flock module.
86387         * modules/flock-tests: flock tests module.
86388         * modules/sys_file: sys/file.h module.
86389         * tests/test-flock.c: test suite for flock.
86391 2008-10-06  Jim Meyering  <meyering@redhat.com>
86393         bootstrap: check for LT_INIT more portably still ;-)
86394         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
86395         Spotted by Bruno Haible.
86397 2008-10-06  Eric Blake  <ebb9@byu.net>
86399         test-signbit: avoid tripping Irix cc bug on -0.0L
86400         * tests/test-signbit.c (minus_zerol): Delete, and replace with
86401         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
86402         entire testsuite consistent and avoids an Irix 6.2 bug.
86404 2008-10-05  Bruno Haible  <bruno@clisp.org>
86405             Jim Meyering  <jim@meyering.net>
86407         Add an option for ignoring EPIPE during close_stdout.
86408         * lib/closeout.h: Include <stdbool.h>.
86409         (close_stdout_set_ignore_EPIPE): New declaration.
86410         * lib/closeout.c: Include <stdbool.h>.
86411         (ignore_EPIPE): New variable.
86412         (close_stdout_set_ignore_EPIPE): New function.
86413         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
86414         * lib/close-stream.c (close_stream): Mention the possible EPIPE
86415         failure.
86416         * modules/closeout (Depends-on): Add stdbool.
86418 2008-10-05  Bruno Haible  <bruno@clisp.org>
86420         * modules/accept: New file.
86421         * modules/bind: New file.
86422         * modules/connect: New file.
86423         * modules/getpeername: New file.
86424         * modules/getsockname: New file.
86425         * modules/getsockopt: New file.
86426         * modules/listen: New file.
86427         * modules/recv: New file.
86428         * modules/recvfrom: New file.
86429         * modules/send: New file.
86430         * modules/sendto: New file.
86431         * modules/setsockopt: New file.
86432         * modules/socket: New file.
86433         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
86434         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
86435         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
86436         the particular module is requested. Add a link warning when the
86437         particular module is not requested.
86438         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
86439         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
86440         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
86441         the particular module is requested.
86442         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
86443         gl_SYS_SOCKET_H_DEFAULTS): New macros.
86444         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
86445         * modules/sys_socket (Depends-on): Add link-warning.
86446         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
86447         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
86448         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
86449         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
86450         GL_LINK_WARNING.
86451         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
86452         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
86453         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
86454         * doc/posix-functions/getpeername.texi: Mention the new module
86455         'getpeername'.
86456         * doc/posix-functions/getsockname.texi: Mention the new module
86457         'getsockname'.
86458         * doc/posix-functions/getsockopt.texi: Mention the new module
86459         'getsockopt'.
86460         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
86461         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
86462         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
86463         * doc/posix-functions/send.texi: Mention the new module 'send'.
86464         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
86465         * doc/posix-functions/setsockopt.texi: Mention the new module
86466         'setsockopt'.
86467         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
86468         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
86469         listen, connect, accept.
86470         * modules/select-tests (Depends-on): Likewise.
86472 2008-10-05  Bruno Haible  <bruno@clisp.org>
86474         * lib/winsock.c (strerror): Remove unused #undef.
86475         (rpl_close): Remove unused local variable.
86477         * modules/sys_socket (Depends-on); Add errno.
86479 2008-10-05  Bruno Haible  <bruno@clisp.org>
86481         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
86482         (select): Add a link warning when the 'select' module is not used.
86483         * modules/sys_select (Depends-on): Add link-warning.
86484         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
86485         Suggested by Paolo Bonzini.
86487 2008-10-05  Jim Meyering  <meyering@redhat.com>
86489         bootstrap: check for LT_INIT more portably
86490         * build-aux/bootstrap: Avoid using grep -E, since it's not
86491         portable enough.  Suggestion from Bruno Haible.
86493 2008-10-05  Bruno Haible  <bruno@clisp.org>
86495         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
86496         as being fixed by gnulib.
86498 2008-10-05  Bruno Haible  <bruno@clisp.org>
86500         * modules/select-tests: New file, mostly copied from
86501         modules/sys_select-tests.
86502         * tests/test-select.c: New file, mostly copied from
86503         tests/test-sys_select.c.
86504         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
86505         * modules/sys_select-tests (Depends-on): Remove all dependencies.
86506         (Makefile.am): Remove test_sys_select_LDADD.
86508         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
86509         to an undefined symbol, for an error message.
86510         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
86511         (gl_SYS_SELECT_H_DEFAULTS): New macro.
86512         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
86513         winsock-select.c here.
86514         * modules/sys_select (Files): Remove lib/winsock-select.c.
86515         (Depends-on): Remove alloca.
86516         (Makefile.am): Substitute GNULIB_SELECT.
86517         * modules/select: New file.
86518         * doc/posix-functions/select.texi: Update.
86520 2008-10-05  Bruno Haible  <bruno@clisp.org>
86522         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
86523         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
86524         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
86525         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
86526         getdtablesize.
86527         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
86528         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
86530 2008-10-05  Bruno Haible  <bruno@clisp.org>
86532         * modules/getdtablesize-tests: New file.
86533         * tests/test-getdtablesize.c: New file.
86535         New module 'getdtablesize'.
86536         * lib/unistd.in.h (getdtablesize): New declaration.
86537         * lib/getdtablesize.c: New file.
86538         * m4/getdtablesize.m4: New file.
86539         * modules/getdtablesize: New file.
86540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86541         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
86542         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
86543         HAVE_GETDTABLESIZE.
86544         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
86546 2008-10-05  Bruno Haible  <bruno@clisp.org>
86548         * modules/sched (Makefile.am): Fix typo.
86549         Reported by Simon Josefsson.
86551 2008-10-05  Jim Meyering  <meyering@redhat.com>
86553         bootstrap: check for LT_INIT, too
86554         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
86555         are deprecated.  Suggestion from Ralf Wildenhues.
86557 2008-10-05  Bruno Haible  <bruno@clisp.org>
86559         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
86560         overriding them by ours.
86561         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
86563 2008-10-05  Jim Meyering  <meyering@redhat.com>
86565         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
86566         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
86567         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
86569 2008-10-04  Bruno Haible  <bruno@clisp.org>
86571         * modules/dup2 (License): Change to LGPLv2+.
86572         * modules/sleep (License): Likewise.
86573         * modules/perror (License): Likewise.
86574         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
86575         Blake.
86576         * modules/signal (License): Likewise.
86577         * modules/sigprocmask (License): Likewise.
86578         * modules/raise (License): Change to LGPLv2+, with approval by Jim
86579         Meyering.
86581 2008-10-04  Bruno Haible  <bruno@clisp.org>
86583         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
86584         Reported by Rainer Tammer <tammer@tammer.net>.
86586 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
86587             Bruno Haible  <bruno@clisp.org>
86589         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
86590         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
86591         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
86593 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
86595         filevercmp: new module
86596         * lib/filevercmp.h: New function filevercmp comparing version strings.
86597         * lib/filevercmp.c: Implementation of filevercmp function.
86598         * modules/filevercmp: Module metadata.
86599         * tests/test-filevercmp.c: Unit test for new module.
86600         * modules/filevercmp-tests: Unit test metadata.
86601         * MODULES.html.sh: Add filevercmp module.
86603 2008-10-03  Bruno Haible  <bruno@clisp.org>
86605         * lib/c-ctype.h: Add comment.
86606         Reported by Jim Meyering.
86608 2008-10-02  Bruno Haible  <bruno@clisp.org>
86610         * modules/posix_spawn-internal (Depends-on): Add 'open'.
86612 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86614         * build-aux/bootstrap: Allow renaming bootstrap, and change the
86615         name of bootstrap.conf accordingly.
86617 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86619         * build-aux/bootstrap: Install git-merge-changelog configuration
86620         items into .gitconfig if needed.
86622 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86624         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
86625         git repository, and initialize/update it accordingly.
86627 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
86629         * modules/fsync-tests: New file.
86630         * tests/test-fsync.c: New file.
86632         New module 'fsync'.
86633         * lib/fsync.c: New file.
86634         * m4/fsync.m4: New file.
86635         * modules/fsync: New file.
86636         * lib/unistd.in.h (fsync): New declaration.
86637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
86638         GNULIB_FSYNC and HAVE_FSYNC.
86639         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
86640         * MODULES.html.sh (posix_functions): Add fsync.
86641         * doc/posix-functions/fsync.texi: Mention the new module.
86643 2008-10-02  Jim Meyering  <meyering@redhat.com>
86645         fts.c: sync with similar code from coreutils' remove.c
86646         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
86647         Guard also with "#if defined __linux__", since for now at least,
86648         this code is Linux-kernel-specific.
86650 2008-10-02  Jim Meyering  <meyering@redhat.com>
86652         fts: bug fixes
86653         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
86654         Include <sys/vfs.h>, not <sys/statfs.h>.
86656         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
86657         Include <sys/vfs.h>, not <sys/statfs.h>.
86659 2008-10-01  Bruno Haible  <bruno@clisp.org>
86661         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
86662         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
86663         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
86664         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
86665         * doc/posix-functions/posix_spawnp.texi: Likewise.
86666         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
86667         whether posix_spawn actually works.
86668         * m4/pipe.m4 (gl_PIPE): Likewise.
86669         * modules/execute (Files): Add m4/posix_spawn.m4.
86670         * modules/pipe (Files): Add m4/posix_spawn.m4.
86671         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
86673 2008-10-01  Jim Meyering  <meyering@redhat.com>
86675         remove trailing spaces
86676         * NEWS: Likewise.
86677         * lib/poll.c (poll): Likewise.
86678         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
86679         * lib/winsock.c (rpl_close): Likewise.
86680         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
86681         * modules/yield: Likewise.
86682         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
86683         * tests/test-sys_select.c (connect_to_socket): Likewise.
86685         fts.c: adjust a new interface to be more generally useful
86686         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
86687         (fts_build): Adjust caller.
86689 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86691         * modules/cond-tests: New file.
86692         * tests/test-cond.c: New file.
86694 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86695             Bruno Haible  <bruno@clisp.org>
86697         * modules/cond (Dependencies): Add errno, time.
86698         * lib/glthread/cond.h: Include <time.h>.
86699         (gl_cond_define, gl_cond_define_initialized): Use the same definition
86700         across platforms.
86702 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86703             Bruno Haible  <bruno@clisp.org>
86705         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
86707 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86708             Bruno Haible  <bruno@clisp.org>
86710         * modules/tls-tests (Depends-on): Add thread, yield.
86711         (configure.ac): Remove all checks.
86712         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
86713         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
86714         gl_thread_self): Remove definitions. Include glthread/thread.h and
86715         glthread/yield.h instead.
86716         (test_tls): Pass an additional NULL argument to gl_thread_join.
86718 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86719             Bruno Haible  <bruno@clisp.org>
86721         * modules/lock-tests (Depends-on): Add thread, yield.
86722         (configure.ac): Remove all checks.
86723         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
86724         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
86725         gl_thread_self): Remove definitions. Include glthread/thread.h and
86726         glthread/yield.h instead.
86727         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
86728         additional NULL argument to gl_thread_join.
86730 2008-09-30  Bruno Haible  <bruno@clisp.org>
86732         Fix the Win32 implementation of the 'thread' module.
86733         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
86734         pointer type.
86735         (gl_thread_self): Invoke gl_thread_self_func.
86736         (gl_thread_self_func): New declaration.
86737         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
86738         (do_init_self_key, init_self_key): New functions.
86739         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
86740         Remove some fields.
86741         (running_threads, running_lock): Remove variables.
86742         (get_current_thread_handle): New function.
86743         (gl_thread_self_func, wrapper_func, glthread_create_func,
86744         glthread_join_func, gl_thread_exit_func): Largely rewritten and
86745         simplified.
86747 2008-09-30  Bruno Haible  <bruno@clisp.org>
86749         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
86750         files.
86752 2008-09-30  Jim Meyering  <meyering@redhat.com>
86754         fts.m4: correct the test for statfs.f_type
86755         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
86756         when checking for statfs.f_type.
86758 2008-09-15  Simon Josefsson  <simon@josefsson.org>
86760         tests: avoid some compiler warnings
86761         * tests/test-memchr.c (main): Pass NULL indirectly.
86762         * tests/test-getdate.c (main): Remove unused variable 'ret'.
86764 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
86766         getdate.y: disallow countable dayshifts like "4 yesterday ago"
86767         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
86768         exactly specified dayshifts.
86769         (dayshift): New rule.
86770         (rel): Add dayshift.
86771         (relative_time_table) [tomorrow, yesterday, today, now]:
86772         Use tDAY_SHIFT in place of tDAY_UNIT.
86773         * tests/test-getdate.c: Add tests for now-disallowed countable
86774         dayshifts, e.g., "4 yesterday ago".
86776 2008-09-29  Bruno Haible  <bruno@clisp.org>
86778         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
86779         * tests/test-posix_spawn1.in.sh: Renamed from
86780         tests/test-posix_spawn.in.sh.
86781         * tests/test-posix_spawn2.c: New file.
86782         * tests/test-posix_spawn2.in.sh: New file.
86783         * modules/posix_spawnp-tests (Files): Update.
86784         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
86786 2008-09-29  Bruno Haible  <bruno@clisp.org>
86788         Propagate effects of putenv/setenv/unsetenv to child processes.
86789         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
86790         * lib/pipe.c (create_pipe): Likewise.
86792 2008-09-29  Bruno Haible  <bruno@clisp.org>
86794         Enable use of shell scripts as executables in mingw.
86795         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
86796         run the program as a shell script.
86797         * lib/pipe.c (create_pipe): Likewise.
86798         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
86799         resulting array.
86801 2008-09-29  Eric Blake  <ebb9@byu.net>
86803         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
86805 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
86807         * doc/posix-functions/accept.texi: Update mingw problems.
86808         * doc/posix-functions/bind.texi: Update mingw problems.
86809         * doc/posix-functions/close.texi: Update mingw problems.
86810         * doc/posix-functions/connect.texi: Update mingw problems.
86811         * doc/posix-functions/getpeername.texi: Update mingw problems.
86812         * doc/posix-functions/getsockname.texi: Update mingw problems.
86813         * doc/posix-functions/getsockopt.texi: Update mingw problems.
86814         * doc/posix-functions/ioctl.texi: Update mingw problems.
86815         * doc/posix-functions/listen.texi: Update mingw problems.
86816         * doc/posix-functions/recv.texi: Update mingw problems.
86817         * doc/posix-functions/recvfrom.texi: Update mingw problems.
86818         * doc/posix-functions/select.texi: Update mingw problems.
86819         * doc/posix-functions/send.texi: Update mingw problems.
86820         * doc/posix-functions/sendto.texi: Update mingw problems.
86821         * doc/posix-functions/setsockopt.texi: Update mingw problems.
86822         * doc/posix-functions/socket.texi: Update mingw problems.
86824 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
86825             Bruno Haible  <bruno@clisp.org>
86827         * lib/sys_select.in.h: Include sys/time.h.
86828         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
86829         * modules/sys_select: Depend on sys_time.
86830         * tests/test-sys_select.c: Test that sys/select.h defines struct
86831         timeval fully.
86833 2008-09-29  Bruno Haible  <bruno@clisp.org>
86835         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
86836         * lib/sys_select.in.h: Likewise.
86838 2008-09-29  Bruno Haible  <bruno@clisp.org>
86840         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
86842 2008-09-29  Bruno Haible  <bruno@clisp.org>
86844         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
86845         Set LIBSOCKET instead of augmenting LIBS.
86846         * modules/sockets (Link): New section.
86847         * modules/sockets-tests (test_sockets_LDADD): New variable.
86848         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
86849         * modules/poll-tests (test_poll_LDADD): New variable.
86850         * NEWS: Document the change.
86852 2008-09-29  Bruno Haible  <bruno@clisp.org>
86854         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
86855         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
86856         ARPA_INET_H directly.
86857         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
86859 2008-09-28  Bruno Haible  <bruno@clisp.org>
86861         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
86862         from gl_HEADER_SYS_SOCKET.
86863         (gl_HEADER_SYS_SOCKET): Invoke it.
86864         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
86866 2008-09-28  Bruno Haible  <bruno@clisp.org>
86868         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
86869         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
86870         Needed on OSF/1 4.0.
86872 2008-09-28  Bruno Haible  <bruno@clisp.org>
86874         Override open more carefully.
86875         * lib/open.c (orig_open): New function.
86876         (rpl_open): Use orig_open instead of open.
86877         * lib/fcntl.in.h: Add special invocation convention.
86878         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
86879         (gl_FUNC_OPEN): Invoke it.
86881         Override freopen more carefully.
86882         * lib/freopen.c (orig_freopen): New function.
86883         (rpl_freopen): Use orig_freopen instead of freopen.
86884         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
86885         (gl_FUNC_FREOPEN): Invoke it.
86887         Override fopen more carefully.
86888         * lib/fopen.c (orig_fopen): New function.
86889         (rpl_fopen): Use orig_fopen instead of fopen.
86890         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
86891         (gl_FUNC_FOPEN): Invoke it.
86892         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
86894 2008-09-28  Bruno Haible  <bruno@clisp.org>
86896         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
86897         SIGPIPE.
86899 2008-09-28  Bruno Haible  <bruno@clisp.org>
86901         * tests/test-sigaction.c (handler, main): Disable the check whether
86902         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
86903         glibc systems with LinuxThreads.
86905 2008-09-28  Bruno Haible  <bruno@clisp.org>
86907         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
86909         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
86910         with AIX xlc.
86911         * lib/fcntl.in.h (open): Likewise.
86912         Reported by Rainer Tammer <tammer@tammer.net>.
86914 2008-09-28  Bruno Haible  <bruno@clisp.org>
86916         * modules/posix_spawnp-tests: New file.
86917         * tests/test-posix_spawn.c: New file.
86918         * tests/test-posix_spawn.in.sh: New file.
86920         New module 'posix_spawnp'.
86921         * modules/posix_spawnp: New file.
86922         * lib/spawnp.c: New file, from GNU libc with modifications.
86923         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
86925         New module 'posix_spawn'.
86926         * modules/posix_spawn: New file.
86927         * lib/spawn.c: New file, from GNU libc with modifications.
86928         * doc/posix-functions/posix_spawn.texi: Mention the new module.
86930         New module 'posix_spawnattr_destroy'.
86931         * modules/posix_spawnattr_destroy: New file.
86932         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
86933         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
86934         module.
86936         New module 'posix_spawnattr_setsigmask'.
86937         * modules/posix_spawnattr_setsigmask: New file.
86938         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
86939         modifications.
86940         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
86941         new module.
86943         New module 'posix_spawnattr_getsigmask'.
86944         * modules/posix_spawnattr_getsigmask: New file.
86945         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
86946         modifications.
86947         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
86948         new module.
86950         New module 'posix_spawnattr_setsigdefault'.
86951         * modules/posix_spawnattr_setsigdefault: New file.
86952         * lib/spawnattr_setdefault.c: New file, from GNU libc with
86953         modifications.
86954         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
86955         new module.
86957         New module 'posix_spawnattr_getsigdefault'.
86958         * modules/posix_spawnattr_getsigdefault: New file.
86959         * lib/spawnattr_getdefault.c: New file, from GNU libc with
86960         modifications.
86961         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
86962         new module.
86964         New module 'posix_spawnattr_setschedpolicy'.
86965         * modules/posix_spawnattr_setschedpolicy: New file.
86966         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
86967         modifications.
86968         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
86969         new module.
86971         New module 'posix_spawnattr_getschedpolicy'.
86972         * modules/posix_spawnattr_getschedpolicy: New file.
86973         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
86974         modifications.
86975         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
86976         new module.
86978         New module 'posix_spawnattr_setschedparam'.
86979         * modules/posix_spawnattr_setschedparam: New file.
86980         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
86981         modifications.
86982         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
86983         new module.
86985         New module 'posix_spawnattr_getschedparam'.
86986         * modules/posix_spawnattr_getschedparam: New file.
86987         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
86988         modifications.
86989         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
86990         new module.
86992         New module 'posix_spawnattr_setpgroup'.
86993         * modules/posix_spawnattr_setpgroup: New file.
86994         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
86995         modifications.
86996         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
86997         module.
86999         New module 'posix_spawnattr_getpgroup'.
87000         * modules/posix_spawnattr_getpgroup: New file.
87001         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
87002         modifications.
87003         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
87004         module.
87006         New module 'posix_spawnattr_setflags'.
87007         * modules/posix_spawnattr_setflags: New file.
87008         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
87009         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
87010         module.
87012         New module 'posix_spawnattr_getflags'.
87013         * modules/posix_spawnattr_getflags: New file.
87014         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
87015         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
87016         module.
87018         New module 'posix_spawnattr_init'.
87019         * modules/posix_spawnattr_init: New file.
87020         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
87021         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
87022         module.
87024         New module 'posix_spawn_file_actions_destroy'.
87025         * modules/posix_spawn_file_actions_destroy: New file.
87026         * lib/spawn_faction_destroy.c: New file, from GNU libc with
87027         modifications.
87028         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
87029         the new module.
87031         New module 'posix_spawn_file_actions_addopen'.
87032         * modules/posix_spawn_file_actions_addopen: New file.
87033         * lib/spawn_faction_addopen.c: New file, from GNU libc with
87034         modifications.
87035         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
87036         the new module.
87038         New module 'posix_spawn_file_actions_adddup2'.
87039         * modules/posix_spawn_file_actions_adddup2: New file.
87040         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
87041         modifications.
87042         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
87043         the new module.
87045         New module 'posix_spawn_file_actions_addclose'.
87046         * modules/posix_spawn_file_actions_addclose: New file.
87047         * lib/spawn_faction_addclose.c: New file, from GNU libc with
87048         modifications.
87049         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
87050         the new module.
87052         New module 'posix_spawn_file_actions_init'.
87053         * modules/posix_spawn_file_actions_init: New file.
87054         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
87055         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
87056         new module.
87058         New module 'posix_spawn-internal'.
87059         * modules/posix_spawn-internal: New file.
87060         * lib/spawn_int.h: New file, from GNU libc with modifications.
87061         * lib/spawni.c: New file, from GNU libc with modifications.
87062         * m4/posix_spawn.m4: New file.
87064         New module 'spawn'.
87065         * modules/spawn: New file.
87066         * lib/spawn.in.h: New file, from GNU libc with modifications.
87067         * m4/spawn_h.m4: New file.
87068         * doc/posix-headers/spawn.texi: Mention the new module.
87070 2008-09-28  Bruno Haible  <bruno@clisp.org>
87072         * modules/sched-tests: New file.
87073         * tests/test-sched.c: New file.
87075         New module 'sched'.
87076         * modules/sched: New file.
87077         * lib/sched.in.h: New file.
87078         * m4/sched_h.m4: New file.
87079         * doc/posix-headers/sched.texi: Mention the new module.
87081 2008-09-27  Eric Blake  <ebb9@byu.net>
87083         Fix previous patch, and tweak references to $0.
87084         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
87085         (func_version, func_gnulib_dir): Don't call this program
87086         gnulib-tool.
87087         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
87088         with using $0 in function.
87089         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
87090         (func_fatal_error): Reuse the name the user invoked us with.
87092 2008-09-27  Bruno Haible  <bruno@clisp.org>
87094         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
87095         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
87096         (gl_ICONV_H): Not here.
87097         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
87098         instead of assigning ICONV_H directly.
87100         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
87101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
87102         WCHAR_H directly.
87104 2008-09-27  Bruno Haible  <bruno@clisp.org>
87106         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
87107         * modules/arpa_inet (Depends-on): Add link-warning.
87108         (Makefile.am): Insert the definition of GL_LINK-WARNING.
87109         * modules/unistd (Makefile.am): Likewise.
87111 2008-09-26  Bruno Haible  <bruno@clisp.org>
87113         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
87114         variables.
87115         (func_version): Essentially copied from gnulib-tool.
87116         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
87117         func_readlink): Copied from gnulib-tool.
87119 2008-09-26  Bruno Haible  <bruno@clisp.org>
87121         * gnulib-tool (func_version): Change directory to $gnulib_dir before
87122         invoking git-version-gen.
87124 2008-09-26  Bruno Haible  <bruno@clisp.org>
87126         * posix-modules: Update to directory names changed on 2008-01-19.
87127         Remove commas in output before splitting into words. No more need to
87128         avoid 'ftruncate' since 2007-02-19.
87130 2008-09-26  Bruno Haible  <bruno@clisp.org>
87132         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
87134 2008-09-26  Bruno Haible  <bruno@clisp.org>
87136         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
87137         * modules/fwriteerror (Depends-on): Add errno.
87139 2008-09-26  Bruno Haible  <bruno@clisp.org>
87141         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
87142         * tests/test-vc-list-files-cvs.sh: Likewise.
87144 2008-09-26  Bruno Haible  <bruno@clisp.org>
87146         * doc/posix-headers/sys_resource.texi: Reorder items.
87148 2008-09-26  Jim Meyering  <meyering@redhat.com>
87150         fts: tweak inode comparison function
87151         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
87152         inode numbers, as documented.
87154         fts: sort dirent entries on inode number before traversing
87155         This avoids a quadratic, seek-related performance penalty when
87156         operating on a directory containing many entries (measurable at 10k;
87157         3.5 hours at 2 million entries with a cold cache) on certain types
87158         of file systems, including ext3 and ext4, but not tmpfs.
87159         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
87160         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
87161         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
87162         (fs_handles_readdir_ordered_dirents_efficiently): New function.
87163         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
87164         (fts_build): Set the stat.st_ino member from D_INO.
87165         If it is likely to be useful, sort dirent entries on inode number.
87167         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
87168         and the struct statfs.f_type member.
87169         * modules/fts (Depends-on): Add d-ino.
87171 2008-09-26  Bruno Haible  <bruno@clisp.org>
87173         * modules/sigpipe-die (Depends-on): Add sigpipe.
87175         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
87176         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
87177         and GNULIB_STDIO_H_SIGPIPE are set.
87178         * lib/stdio-write.c: New file.
87179         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
87180         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87181         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87182         REPLACE_STDIO_WRITE_FUNCS.
87183         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
87184         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87185         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87186         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87187         * modules/stdio (Files): Add lib/stdio-write.c.
87188         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
87189         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87190         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87191         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87192         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
87193         REPLACE_FPRINTF_POSIX.
87194         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
87195         REPLACE_PRINTF_POSIX.
87196         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
87197         REPLACE_VFPRINTF_POSIX.
87198         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
87199         REPLACE_VPRINTF_POSIX.
87200         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
87201         SIGPIPE issue.
87202         * doc/posix-functions/fputc.texi: Likewise.
87203         * doc/posix-functions/fputs.texi: Likewise.
87204         * doc/posix-functions/fwrite.texi: Likewise.
87205         * doc/posix-functions/printf.texi: Likewise.
87206         * doc/posix-functions/putc.texi: Likewise.
87207         * doc/posix-functions/putchar.texi: Likewise.
87208         * doc/posix-functions/puts.texi: Likewise.
87209         * doc/posix-functions/vfprintf.texi: Likewise.
87210         * doc/posix-functions/vprintf.texi: Likewise.
87212         * modules/safe-write (Depends-on): Add write.
87214         * modules/sigpipe-tests: New file.
87215         * tests/test-sigpipe.c: New file.
87216         * tests/test-sigpipe.sh: New file.
87218         * modules/write: New file.
87219         * lib/unistd.in.h: Include <sys/types.h>.
87220         (write): New declaration.
87221         * lib/write.c: New file.
87222         * m4/write.m4: New file.
87223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87224         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
87225         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
87226         GNULIB_WRITE, REPLACE_WRITE.
87227         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
87228         and the SIGPIPE issue.
87230         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
87231         (raise): New declaration.
87232         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
87233         (ext_signal): New function.
87234         (rpl_raise): New function.
87235         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
87236         GNULIB_SIGNAL_H_SIGPIPE.
87237         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
87238         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
87240         * modules/sigpipe: New file.
87241         * m4/sigpipe.m4: New file.
87243 2008-09-25  Derek Price  <derek@ximbiot.com>
87244             Bruno Haible  <bruno@clisp.org>
87246         * gnulib-tool (func_import): Report all license incompatibilities, not
87247         just the first one.
87249 2008-09-25  Bruno Haible  <bruno@clisp.org>
87251         * gnulib-tool (func_import): When computing the edits, consider not
87252         only the Makefile.ams that exist but also those that will be generated.
87254 2008-09-25  Simon Josefsson  <simon@josefsson.org>
87256         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
87257         fixes gnulib-tool --test warning about duplicate dependency.
87259 2008-09-25  Bruno Haible  <bruno@clisp.org>
87261         * gnulib-tool: Don't ask the user to perform edits in the generated
87262         Makefile.ams.
87263         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
87264         apply to the Makefile.am being generated.
87265         (func_emit_tests_Makefile_am): Execute edits that apply to the
87266         Makefile.am being generated.
87267         (func_import): Setup list of Makefile.am edits before emitting the
87268         Makefile.ams, not at the end.
87269         (func_create_testdir): Update.
87270         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87272 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87274         * gnulib-tool (func_import): Store the --tests-base option in the
87275         comment in gnulib-cache.m4.
87277 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
87279         * NEWS: Document increased portability that sys_select now provides.
87281         * lib/sys_select.in.h: Install select wrapper.
87282         * lib/sys_socket.in.h: Use more descriptive name when there is no
87283         select wrapper.
87284         * lib/winsock-select.c: New.
87285         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
87286         Require gl_HEADER_SYS_SOCKET.
87287         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
87288         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
87289         * tests/test-sys_select.c: Add functional tests.
87291 2008-09-24  Eric Blake  <ebb9@byu.net>
87293         open, fopen: close fd leak in last patch
87294         * lib/open.c (rpl_open): Close fd before returning error.
87295         * lib/fopen.c (rpl_fopen): Close fd before returning error.
87296         * doc/posix-functions/open.texi (open): Document that Irix also
87297         has the bug.
87298         * doc/posix-functions/fopen.texi (fopen): Likewise.
87299         Reported by Paolo Bonzini.
87301 2008-09-24  Bruno Haible  <bruno@clisp.org>
87303         Ensure that a filename ending in a slash cannot be used to access a
87304         non-directory.
87305         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
87306         to check whether it's really a directory.
87307         * lib/fopen.c: Include fcntl.h, unistd.h.
87308         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
87309         and fdopen().
87310         * modules/fopen (Depends-on): Add unistd.
87311         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
87312         * tests/test-fopen.c (main): Likewise.
87313         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
87314         * doc/posix-functions/fopen.texi: Likewise.
87315         Reported by Eric Blake.
87317 2008-09-23  Eric Blake  <ebb9@byu.net>
87319         c-stack: avoid compiler optimizations when provoking overflow
87320         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
87321         recursion harder to optimize, to ensure a stack overflow occurs.
87322         * tests/test-c-stack.c (recurse): Likewise.
87323         Borrowed from libsigsegv.
87325         c-stack: work around Irix sigaltstack bug
87326         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
87327         whether sigaltstack uses wrong end of stack_t (copied in part from
87328         libsigsegv).
87329         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
87330         Irix bug, without requiring an over-allocation.
87331         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
87332         bug.
87334         fopen: document mingw bug on directories
87335         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
87336         not allowing a stream visiting a directory, even though reading
87337         from such a stream is not portable.
87339 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87341         * lib/poll.c: Rewrite.
87342         * modules/poll: Depend on alloca.
87344 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87346         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
87347         instead define prototypes for a full set of wrappers.  Ensure
87348         that Cygwin does not use the compatibility code, which is only
87349         for MinGW.
87350         * lib/winsock.c: New.
87351         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
87352         * modules/sys_socket: Add lib/winsock.c.
87354         * modules/poll-tests: Add errno and perror.
87355         * tests/test-poll.c: Use ioctl, not ioctlsocket.
87357 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87359         * tests/test-poll.c: Downgrade minimum needed Winsock version.
87361 2008-09-23  Bruno Haible  <bruno@clisp.org>
87363         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
87364         * doc/glibc-functions/*: Likewise.
87366 2008-09-23  Simon Josefsson  <simon@josefsson.org>
87368         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
87369         success.
87371 2008-09-22  Eric Blake  <ebb9@byu.net>
87372             Bruno Haible  <bruno@clisp.org>
87374         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
87375         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
87376         supply %A but mishandle pseudo-NaN.
87377         Reported by Simon Josefsson.
87379 2008-09-21  Bruno Haible  <bruno@clisp.org>
87381         * tests/test-lock.c (main): Tweak skip message.
87382         * tests/test-tls.c (main): Likewise.
87384 2008-09-21  Bruno Haible  <bruno@clisp.org>
87386         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
87387         whether 'struct sigaction' has sa_sigaction here...
87388         (gl_PREREQ_SIG_HANDLER_H): ... not here.
87389         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
87391 2008-09-21  Bruno Haible  <bruno@clisp.org>
87393         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
87394         section.
87395         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
87396         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
87397         the new section.
87398         (Support for obsolete systems lacking POSIX:2001): New section.
87399         (String handling <string.h>): Move strdup to the new section.
87400         Suggested by Simon Josefsson and Paolo Bonzini.
87402 2008-09-21  Bruno Haible  <bruno@clisp.org>
87404         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
87405         exponents in %e and %g results on 'long double'. Needed for mingw's
87406         improved *printf functions.
87407         * tests/test-vasprintf-posix.c (test_function): Likewise.
87408         * tests/test-snprintf-posix.h (test_function): Likewise.
87409         * tests/test-sprintf-posix.h (test_function): Likewise.
87410         Reported by Eric Blake.
87412 2008-09-21  Bruno Haible  <bruno@clisp.org>
87414         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
87415         * tests/test-sprintf-posix.h (test_function): Likewise.
87417 2008-09-21  Bruno Haible  <bruno@clisp.org>
87419         * modules/getpass (Depends-on): Add strdup-posix.
87421         New module 'strdup-posix'.
87422         * modules/strdup-posix: New file.
87423         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
87424         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
87425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
87426         REPLACE_STRDUP.
87427         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
87428         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
87429         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87430         strdup-posix.
87432         * modules/strdup (Depends-on): Remove malloc-posix.
87434 2008-09-20  Bruno Haible  <bruno@clisp.org>
87436         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
87437         Wildenhues.
87439 2008-09-20  Bruno Haible  <bruno@clisp.org>
87441         Ensure that wint_t gets defined on IRIX 5.3.
87442         * lib/wchar.in.h (wint_t): Define if not defined by the system.
87443         * lib/wctype.in.h (wint_t): Likewise.
87444         (__wctype_wint_t): Remove type.
87445         (isw*): Use wint_t instead of __wctype_wint_t.
87446         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
87447         * modules/wchar (Files): Add m4/wint_t.m4.
87448         (Makefile.am): Substitute HAVE_WINT_T.
87449         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
87450         * tests/test-wctype.c: Check that wint_t is defined.
87451         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
87452         * doc/posix-headers/wctype.texi: Likewise.
87453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87455 2008-09-18  Bruno Haible  <bruno@clisp.org>
87457         * gnulib-tool (func_exit): Update comment.
87459 2008-09-18  Simon Josefsson  <simon@josefsson.org>
87461         * modules/getaddrinfo (Depends-on): Remove strdup, this module
87462         assumes strdup exists and does not depend on strdup to return
87463         ENOMEM on out of memory conditions.
87465 2008-09-18  Bruno Haible  <bruno@clisp.org>
87467         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
87468         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
87469         digits for the exponent.
87471 2008-09-18  Jim Meyering  <meyering@redhat.com>
87472             Bruno Haible  <bruno@clisp.org>
87474         * lib/vasnprintf.c (decimal_point_char): Define also if
87475         NEED_PRINTF_INFINITE_LONG_DOUBLE.
87477 2008-09-16  Bruno Haible  <bruno@clisp.org>
87478         and Eric Blake  <ebb9@byu.net>
87480         vasnprintf: support Irix 5.3
87481         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
87482         that mishandle long double infinity.
87483         Reported by Tom G. Christensen.
87485 2008-09-16  Bruno Haible  <bruno@clisp.org>
87487         * doc/glibc-functions/scandir.texi: Mention the function is missing on
87488         Solaris 9.
87489         * doc/glibc-functions/alphasort.texi: Likewise.
87490         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
87492 2008-09-16  Jim Meyering  <meyering@redhat.com>
87494         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
87495         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
87496         a umask modification leak out of a subshell.  Otherwise, the
87497         opensolaris /bin/sh would be accepted and thus cause unwarranted
87498         failures in the coreutils test suite.
87500 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
87502         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
87503         to succeed.
87505 2008-09-16  Jim Meyering  <meyering@redhat.com>
87507         avoid spurious test failure when library is built without ACL support
87508         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
87509         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
87510         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
87511         * tests/test-copy-acl.sh: Likewise.
87513 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87515         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
87516         based on character occurrence counts.
87518 2008-09-15  Eric Blake  <ebb9@byu.net>
87520         tests: avoid some compiler warnings
87521         * tests/test-memchr.c (main): Pass NULL indirectly.
87522         * tests/test-closein.c (main): Avoid unused variable.
87524 2008-09-15  Bruno Haible  <bruno@clisp.org>
87526         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
87527         are missing on OpenBSD 4.0 individually.
87528         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87530 2008-09-15  Bruno Haible  <bruno@clisp.org>
87532         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
87533         * doc/posix-functions/strerror.texi: Mention also Cygwin.
87534         * doc/posix-functions/perror.texi: Likewise.
87535         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
87536         is missing.
87537         Reported by Eric Blake.
87539         * lib/errno.in.h: Use replacement values >= 2000.
87540         Reported by Eric Blake.
87542 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87544         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
87545         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
87546         limit.
87547         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
87548         compareseq was aborted.
87550 2008-09-14  Bruno Haible  <bruno@clisp.org>
87552         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
87553         yvec_edit_count.
87554         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
87555         (fstrcmp_bounded): Simplify result computation accordingly.
87557 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87559         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
87560         (fstrcmp): Define in terms of fstrcmp_bounded.
87561         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
87562         lower_bound argument.
87563         Return quickly if the result is certainly < lower_bound.
87564         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
87566 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87568         * lib/diffseq.h (EARLY_ABORT): New macro.
87569         (compareseq): Change return type to bool. Return true when EARLY_ABORT
87570         evaluates to true.
87572 2008-09-14  Bruno Haible  <bruno@clisp.org>
87574         * modules/perror-tests: New file.
87575         * tests/test-perror.sh: New file.
87576         * tests/test-perror.c: New file.
87578         New module 'perror'.
87579         * lib/stdio.in.h (perror): New declaration.
87580         * lib/perror.c: New file.
87581         * m4/perror.m4: New file.
87582         * modules/perror: New file.
87583         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
87584         * doc/posix-functions/perror.texi: Mention the perror module.
87585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
87586         REPLACE_PERROR.
87587         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
87588         REPLACE_PERROR.
87590 2008-09-14  Bruno Haible  <bruno@clisp.org>
87592         * modules/stdio (Makefile.am): Reorder to match the order in
87593         lib/stdio.in.h.
87594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
87596 2008-09-13  Bruno Haible  <bruno@clisp.org>
87598         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
87600 2008-09-13  Bruno Haible  <bruno@clisp.org>
87602         Extend strerror to cover the added errno values.
87603         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
87604         (rpl_strerror): Provide error messages for the added errno values and
87605         for the WSA* values.
87606         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
87607         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
87608         strerror.
87609         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
87610         * modules/strerror (Depends-on): Add errno.
87611         * doc/posix-functions/strerror.texi: Document the change.
87612         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
87613         and EOVERFLOW.
87615 2008-09-13  Bruno Haible  <bruno@clisp.org>
87617         * modules/EOVERFLOW: Remove file.
87618         * m4/eoverflow.m4: Remove file.
87619         * modules/EOVERFLOW-tests: Remove file.
87620         * tests/test-EOVERFLOW.c: Remove file.
87621         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
87622         * modules/ftell (Depends-on): Likewise.
87623         * modules/getdelim (Depends-on): Likewise.
87624         * modules/getugroups (Depends-on): Likewise.
87625         * modules/poll (Depends-on): Likewise.
87626         * modules/snprintf (Depends-on): Likewise.
87627         * modules/sprintf-posix (Depends-on): Likewise.
87628         * modules/vasnprintf (Depends-on): Likewise.
87629         * modules/vasprintf (Depends-on): Likewise.
87630         * modules/vfprintf-posix (Depends-on): Likewise.
87631         * modules/vsnprintf (Depends-on): Likewise.
87632         * modules/vsprintf-posix (Depends-on): Likewise.
87633         * modules/xvasprintf (Depends-on): Likewise.
87634         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
87635         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
87636         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
87637         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
87638         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
87639         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
87640         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
87641         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
87642         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
87643         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
87644         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
87645         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
87646         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
87647         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
87648         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
87649         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
87650         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
87651         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
87652         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
87653         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
87654         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
87655         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
87656         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
87657         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
87658         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
87659         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
87660         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
87661         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
87662         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
87663         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
87664         * MODULES.html.sh: Remove EOVERFLOW.
87665         * NEWS: Mention the change.
87667 2008-09-13  Bruno Haible  <bruno@clisp.org>
87669         * modules/errno-tests: New file.
87670         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
87672         * lib/errno.in.h: New file.
87673         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
87674         * modules/errno: New file.
87675         * doc/posix-headers/errno.texi: Update documentation.
87676         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
87678 2008-09-13  Bruno Haible  <bruno@clisp.org>
87680         * tests/test-poll.c: Use #if for native Windows, rather than testing
87681         __MSVCRT__.
87683 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87684             Bruno Haible  <bruno@clisp.org>
87686         * lib/glob.c: Don't include <pwd.h> on native Windows.
87687         (WINDOWS32): New macro.
87688         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
87690 2008-09-13  Bruno Haible  <bruno@clisp.org>
87692         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
87693         (ETIMEDOUT): Remove macro.
87694         (glthread_cond_timedwait_multithreaded): New declaration.
87695         (glthread_cond_timedwait): Use it.
87696         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
87697         (glthread_cond_timedwait_multithreaded): New function.
87699 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
87701         * modules/poll-tests: Do not check for io.h.
87702         * tests/test-poll.c: Check for __MSVCRT__ instead.
87704 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
87706         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
87707         * modules/poll-tests: Add inet_pton, stdbool, sockets.
87708         * tests/test-poll.c: Use them.  Use _pipe on Windows.
87710 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
87712         * modules/poll-tests: New.
87713         * tests/test-poll.c: New.
87715 2008-09-12  Eric Blake  <ebb9@byu.net>
87717         frexp: test for NetBSD failure on -0.0
87718         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
87719         not all, bugs from NetBSD 3.0 have been fixed.
87720         * doc/posix-functions/frexp.texi (frexp): Document bug.
87721         Reported by Thomas Klausner.
87723         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
87724         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
87725         literal -0.0.
87726         Reported by Jonathan C. Patschke <jp@centtech.com>.
87728 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87730         * lib/glthread/cond.h: Use dummy implementation also if
87731         USE_WIN32_THREADS.
87733 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87735         * modules/fnmatch-posix (License): Change to LGPLv2+.
87736         * modules/fnmatch-gnu (License): Likewise.
87738 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87740         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
87742 2008-09-11  Jim Meyering  <meyering@redhat.com>
87744         * users.txt: Add gtk-vnc.
87746 2008-09-08  Simon Josefsson  <simon@josefsson.org>
87748         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
87749         rotate amounts.
87751         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
87752         required for 16-bit and 8-bit rotates.
87753         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
87754         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
87755         UINT8_MAX instead of hard-coded constants.
87756         Suggested by Paul Eggert.
87758 2008-09-07  Bruno Haible  <bruno@clisp.org>
87760         * tests/test-striconveh.c (main): Check behaviour when converting from
87761         UTF-7.
87763         Make striconveh work better with stateful encodings.
87764         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
87765         that iconv does not increment the inptr when returning -1/EINVAL.
87767 2008-09-07  Bruno Haible  <bruno@clisp.org>
87769         * build-aux/config.rpath: Update according to libtool-2.2.6.
87770         * build-aux/config.libpath: Likewise.
87772 2008-09-06  Bruno Haible  <bruno@clisp.org>
87774         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
87775         * lib/freadptr.c (freadptr): Likewise.
87776         * lib/freadseek.c (freadptrinc): Likewise.
87777         Reported by Simon Josefsson.
87779 2008-09-06  Bruno Haible  <bruno@clisp.org>
87781         * modules/freadptr (License): Change to LGPLv2+.
87782         * modules/freadseek (License): Likewise.
87783         Suggested by Eric Blake.
87785         * modules/memchr2 (License): Change to LGPLv2+.
87786         Approved by Eric Blake.
87788 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87789             Bruno Haible  <bruno@clisp.org>
87791         Make gnulib-tool work with native 'sed' on AIX.
87792         * gnulib-tool (sed_noop): New variable.
87793         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
87794         func_add_or_update, func_create_testdir): Use it to initialize sed
87795         script variables.
87796         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87798 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
87799             Bruno Haible  <bruno@clisp.org>
87801         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
87802         also works after #include directives.
87804 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
87806         getdate.y: reject an out-of-range timezone value
87807         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
87808         the range [-24...+24].  When specified with only one or two digits,
87809         * tests/test-getdate.c: Tests for the fix.
87810         * doc/getdate.texi: Document this change.
87812 2008-09-03  Bruno Haible  <bruno@clisp.org>
87814         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
87816 2008-09-02  Simon Josefsson  <simon@josefsson.org>
87818         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
87819         <bruce.korb@gmail.com> with ideas from Ben Pfaff
87820         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
87821         Blake <ebb9@byu.net>.
87823         * tests/test-bitrotate.c: Add more test vectors.
87825 2008-09-02  Eric Blake  <ebb9@byu.net>
87827         vasnprintf-posix: handle large precision via %.*d
87828         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
87829         when handling it ourselves.
87830         * tests/test-vasnprintf-posix.c (test_function): Add test.
87831         * tests/test-snprintf-posix.h (test_function): Likewise.
87832         * tests/test-sprintf-posix.h (test_function): Likewise.
87833         * tests/test-vasprintf-posix.c (test_function): Likewise.
87834         Reported by Alain Guibert.
87836 2008-09-01  Eric Blake  <ebb9@byu.net>
87838         c-stack: make configure-time check more robust
87839         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
87840         successful sigaction call.
87841         Reported by Tom G. Christensen.
87843 2008-09-01  Bruno Haible  <bruno@clisp.org>
87845         New module 'findprog-lgpl'.
87846         * modules/findprog-lgpl: New file.
87847         * lib/findprog-lgpl.c: New file.
87848         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
87849         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
87850         to decide whether to use strdup or xstrdup, concatenated_filename or
87851         xconcatenated_filename.
87853 2008-09-01  Bruno Haible  <bruno@clisp.org>
87855         Split module 'concat-filename' into 'concat-filename' (LGPL) and
87856         'xconcat-filename' (GPL).
87857         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
87858         (License): Change to LGPLv2+.
87859         * modules/xconcat-filename: New file.
87860         * lib/concat-filename.h (concatenated_filename): Change specification.
87861         (xconcatenated_filename): New declaration.
87862         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
87863         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
87864         memory situations.
87865         * lib/xconcat-filename.c: New file.
87866         * NEWS: Mention the change.
87867         * lib/findprog.c: Include concat-filename.h, not filename.h.
87868         (find_in_path): Use xconcatenated_filename instead of
87869         concatenated_filename.
87870         * lib/javacomp.c: Include concat-filename.h, not filename.h.
87871         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
87872         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
87873         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
87874         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
87875         instead of concatenated_filename.
87876         * lib/javaexec.c: Include concat-filename.h, not filename.h.
87877         (execute_java_class): Use xconcatenated_filename instead of
87878         concatenated_filename.
87879         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
87880         * modules/javacomp (Depends-on): Likewise.
87881         * modules/javaexec (Depends-on): Likewise.
87883 2008-09-01  Bruno Haible  <bruno@clisp.org>
87885         Split module 'filename' into 'filename' and 'concat-filename'.
87886         * modules/filename: Keep only lib/filename.h.
87887         (License): Change to LGPLv2+.
87888         * modules/concat-filename: New file, extracted from modules/filename.
87889         * lib/filename.h (concatenated_filename): Remove declaration.
87890         * lib/concat-filename.h: New file, extracted from lib/filename.h.
87891         * lib/concat-filename.c: Include concat-filename.h.
87892         * NEWS: Mention the change.
87894 2008-09-01  Simon Josefsson  <simon@josefsson.org>
87896         * lib/bitrotate.h (rotl8, rotr8): Add.
87898         * modules/bitrotate (configure.ac): Need
87899         AC_REQUIRE([AC_C_INLINE]).
87900         (Description): Mention stdint.h.  Reported by Bruno Haible
87901         <bruno@clisp.org>.
87903         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
87904         Paolo Bonzini <bonzini@gnu.org>.
87906 2008-08-31  Bruno Haible  <bruno@clisp.org>
87908         Assume Solaris specific bi-arch conventions on Solaris systems.
87909         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
87910         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
87911         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
87912         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
87913         like acl_libdirstem.
87914         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
87915         acl_libdirstem.
87916         * NEWS: Mention the change.
87917         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
87919 2008-08-31  Jim Meyering  <meyering@redhat.com>
87921         * lib/strftime.h: Add comments describing the two added arguments.
87923         remove duplicate #include directives
87924         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
87925         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
87927 2008-08-31  Bruno Haible  <bruno@clisp.org>
87929         New module 'sigpipe-die'.
87930         * modules/sigpipe-die: New file.
87931         * lib/sigpipe-die.h: New file.
87932         * lib/sigpipe-die.c: New file.
87933         * MODULES.html.sh (Signal handling): Add sigpipe-die.
87935 2008-08-31  Bruno Haible  <bruno@clisp.org>
87937         Don't override previously installed signal handlers.
87938         * lib/fatal-signal.c (saved_sigactions): New variable.
87939         (uninstall_handlers): Reset the signal to the saved handler, not
87940         to SIG_DFL (except when ignored).
87941         (install_handlers): Save the previous handlers.
87943 2008-08-30  Bruno Haible  <bruno@clisp.org>
87945         * gnulib-tool (func_reset_sigpipe): New function.
87946         (func_get_automake_snippet, func_modules_transitive_closure,
87947         func_import): Invoke it before a join command that reads from stdin,
87948         to avoid "echo: write error: Broken pipe" error messages on stderr.
87949         Reported by Sam Steingold <sds@gnu.org>.
87951 2008-08-30  Bruno Haible  <bruno@clisp.org>
87953         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
87954         Code copied from m4/open.m4.
87955         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
87956         access and the filename ends in a slash. Code copied from lib/open.c.
87957         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
87958         * tests/test-fopen.c (main): Check against bug with trailing slash.
87960 2008-08-29  Bruno Haible  <bruno@clisp.org>
87962         Avoid some "gcc -pedantic" warnings.
87963         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
87964         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
87965         * lib/dirent.in.h: Likewise.
87966         * lib/fcntl.in.h: Likewise.
87967         * lib/float.in.h: Likewise.
87968         * lib/iconv.in.h: Likewise.
87969         * lib/inttypes.in.h: Likewise.
87970         * lib/locale.in.h: Likewise.
87971         * lib/math.in.h: Likewise.
87972         * lib/netinet_in.in.h: Likewise.
87973         * lib/search.in.h: Likewise.
87974         * lib/signal.in.h: Likewise.
87975         * lib/stdarg.in.h: Likewise.
87976         * lib/stdint.in.h: Likewise.
87977         * lib/stdio.in.h: Likewise.
87978         * lib/stdlib.in.h: Likewise.
87979         * lib/string.in.h: Likewise.
87980         * lib/strings.in.h: Likewise.
87981         * lib/sys_select.in.h: Likewise.
87982         * lib/sys_socket.in.h: Likewise.
87983         * lib/sys_stat.in.h: Likewise.
87984         * lib/sys_time.in.h: Likewise.
87985         * lib/sysexits.in.h: Likewise.
87986         * lib/time.in.h: Likewise.
87987         * lib/unistd.in.h: Likewise.
87988         * lib/wchar.in.h: Likewise.
87989         * lib/wctype.in.h: Likewise.
87990         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
87991         * modules/fchdir (Makefile.am): Likewise.
87992         * modules/fcntl (Makefile.am): Likewise.
87993         * modules/float (Makefile.am): Likewise.
87994         * modules/iconv_open (Makefile.am): Likewise.
87995         * modules/inttypes (Makefile.am): Likewise.
87996         * modules/locale (Makefile.am): Likewise.
87997         * modules/math (Makefile.am): Likewise.
87998         * modules/netinet_in (Makefile.am): Likewise.
87999         * modules/search (Makefile.am): Likewise.
88000         * modules/signal (Makefile.am): Likewise.
88001         * modules/stdarg (Makefile.am): Likewise.
88002         * modules/stdint (Makefile.am): Likewise.
88003         * modules/stdio (Makefile.am): Likewise.
88004         * modules/stdlib (Makefile.am): Likewise.
88005         * modules/string (Makefile.am): Likewise.
88006         * modules/strings (Makefile.am): Likewise.
88007         * modules/sys_select (Makefile.am): Likewise.
88008         * modules/sys_socket (Makefile.am): Likewise.
88009         * modules/sys_stat (Makefile.am): Likewise.
88010         * modules/sys_time (Makefile.am): Likewise.
88011         * modules/sysexits (Makefile.am): Likewise.
88012         * modules/time (Makefile.am): Likewise.
88013         * modules/unistd (Makefile.am): Likewise.
88014         * modules/wchar (Makefile.am): Likewise.
88015         * modules/wctype (Makefile.am): Likewise.
88016         Reported by Reuben Thomas <rrt@sc3d.org>.
88018 2008-08-29  Bruno Haible  <bruno@clisp.org>
88020         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
88021         any more.
88023 2008-08-29  Simon Josefsson  <simon@josefsson.org>
88025         * MODULES.html.sh (Misc): Add bitrotate.
88027         * modules/bitrotate: New file.
88029         * lib/bitrotate.h: New file.
88031         * modules/bitrotate-tests: New file.
88033         * tests/test-bitrotate.c: New file.
88035         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
88036         on the bitrotate module.
88038         * lib/arctwo.c: Use new bitrotate module.
88040 2008-08-29  Jim Meyering  <meyering@redhat.com>
88042         bootstrap: merge changes from coreutils
88043         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
88044         of copied files.  Remove a kludge, now that this is fixed.
88045         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
88046         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
88047         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
88049 2008-08-29  Bruno Haible  <bruno@clisp.org>
88051         * MODULES.html.sh: Remove --cvs-urls option.
88053 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
88055         maint.mk: adjust to file name change
88056         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
88058 2008-08-28  Jim Meyering  <meyering@redhat.com>
88060         * modules/getndelim2 (License): Relicense to LGPLv2+.
88061         Approved by Richard Stallman for the version of 1995, and by
88062         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
88064 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
88066         * lib/getdelim.c (flockfile, funlockfile): Make all of them
88067         dummy if one is not available.  Do not touch them if
88068         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
88069         (getc_maybe_unlocked): New.
88070         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
88072 2008-08-26  Eric Blake  <ebb9@byu.net>
88074         doc/INSTALL: resync from autoconf
88075         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
88076         (INSTALL_PRELUDE): Delete; this is done more efficiently by
88077         moving...
88078         * install.texi [!autoconf]: ...here.  Resync from autoconf.
88079         * INSTALL: Regenerate.
88080         * INSTALL.ISO: New file.
88081         * INSTALL.UTF-8: Likewise.
88083 2008-08-26  Jim Meyering  <meyering@redhat.com>
88085         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
88086         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
88087         these definitions conditional, so that they may be overridden, too.
88089 2008-08-26  Bruno Haible  <bruno@clisp.org>
88091         Generate INSTALL file variants with prettier quotes.
88092         * doc/Makefile (INSTALL_PRELUDE): New macro.
88093         (INSTALL): Use it.
88094         (INSTALL.ISO, INSTALL.UTF-8): New rules.
88096 2008-08-26  Bruno Haible  <bruno@clisp.org>
88098         Run makeinfo in an English locale.
88099         * doc/Makefile (MAKEINFO): New variable.
88101 2008-08-26  Bruno Haible  <bruno@clisp.org>
88103         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
88104         Suggested by Eric Blake.
88106 2008-08-25  Bruno Haible  <bruno@clisp.org>
88108         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
88110 2008-08-25  Eric Blake  <ebb9@byu.net>
88112         c-stack: test that stack overflow can be caught
88113         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
88114         that platform allows handling stack overflow; at least OS/2 EMX
88115         has sigaltstack, but crashes before transferring control to
88116         handler on stack overflow.
88117         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
88118         check for HAVE_STACK_OVERFLOW_HANDLING.
88119         Reported by Elbert Pol.
88121 2008-08-25  Bruno Haible  <bruno@clisp.org>
88123         * doc/posix-functions/strftime.texi: Fix description of strftime
88124         module.
88126 2008-08-24  Bruno Haible  <bruno@clisp.org>
88128         * tests/uniwidth/test-uc_width2.c: New file.
88129         * tests/uniwidth/test-uc_width2.sh: New file.
88130         * modules/uniwidth/width-tests (Files): Add the new files.
88131         (TESTS): Add uniwidth/test-uc_width2.sh.
88132         (TESTS_ENVIRONMENT): New variable.
88133         (check_PROGRAMS): Add test-uc_width2.
88134         (test_uc_width2_SOURCES): New variable.
88136         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
88137         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
88138         not 0x00AB.
88139         Reported by Alexander V. Lukyanov <lav@netis.ru>.
88141 2008-08-22  Eric Blake  <ebb9@byu.net>
88143         test-lock, test-tls: mention why a test is skipped
88144         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
88145         skipped.
88146         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
88148         count-one-bits: relax license
88149         * modules/count-one-bits (License): Relicense to LGPLv2+.
88150         Suggested by Ludovic Courtès, approved by Ben Pfaff.
88152 2008-08-22  Andreas Schwab  <schwab@suse.de>
88154         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
88155         Remove spurious space in assignment.
88157 2008-08-21  Simon Josefsson  <simon@josefsson.org>
88159         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
88160         Paul Eggert <eggert@CS.UCLA.EDU>.
88162 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
88164         * modules/gettext: Add m4/threadlib.m4.
88166 2008-08-19  Eric Blake  <ebb9@byu.net>
88168         test-c-stack: fix compilation failure on FreeBSD 5.0
88169         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
88170         headers before <sys/resource.h>.
88171         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
88172         the bug.
88173         Reported by Nelson H. F. Beebe.
88175         strverscmp: migrate from "strverscmp.h" to <string.h>
88176         * modules/string (Makefile.am): Add new hooks.
88177         * modules/strverscmp (Files): Remove strverscmp.h.
88178         (Depends-on): Add string.
88179         (configure.ac): Add indicator.
88180         (Include): Mention new header.
88181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
88182         defaults.
88183         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
88184         results.
88185         * lib/strverscmp.h: Delete.
88186         * lib/string.in.h (strverscmp): Provide declaration, when needed.
88187         * tests/test-strverscmp.c (includes): Adjust client.
88188         * lib/check-version.c (includes): Likewise.
88189         * NEWS: Document the change.
88191         strverscmp: add unit test
88192         * modules/strverscmp-tests: New file.
88193         * tests/test-strverscmp.c: Likewise.
88195 2008-08-19  Simon Josefsson  <simon@josefsson.org>
88197         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
88198         regarding Windows crypto stuff, from Mono.
88200 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
88202         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
88203         if present, for intel RND.  Return error on failures.
88205 2008-08-18  Ben Pfaff  <blp@gnu.org>
88207         gitlog-to-changelog: give better diagnostic for failed pipe-open
88208         * build-aux/gitlog-to-changelog: Improve error message: suggest
88209         that the version of Git may be too old.
88211 2008-08-18  Simon Josefsson  <simon@josefsson.org>
88213         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
88214         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
88216 2008-08-18  Bruno Haible  <bruno@clisp.org>
88218         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
88219         pthread_in_use().
88221 2008-08-18  Bruno Haible  <bruno@clisp.org>
88223         * lib/glthread/threadlib.c: Include <pthread.h>.
88225 2008-08-18  Bruno Haible  <bruno@clisp.org>
88227         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
88228         glthread_recursive_lock_* macros.
88229         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
88230         Fix syntax error.
88232 2008-08-18  Bruno Haible  <bruno@clisp.org>
88234         * lib/glthread/thread.c: Avoid forcing a context switch right after
88235         thread creation.
88237 2008-08-17  Bruno Haible  <bruno@clisp.org>
88239         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
88240         * lib/glthread/thread.h: Provide Win32 specific implementation.
88241         * modules/thread (Files): Add lib/glthread/thread.c.
88242         (Depends-on): Add lock.
88243         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
88245 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88247         New module 'yield'.
88248         * modules/yield: New file.
88249         * lib/glthread/yield.h: New file.
88250         * m4/yield.m4: New file.
88251         * MODULES.html.sh (Multithreading): Add yield.
88253 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88255         New module 'thread'.
88256         * modules/thread: New file.
88257         * lib/glthread/thread.h: New file.
88258         * m4/thread.m4: New file.
88259         * MODULES.html.sh (Multithreading): Add thread.
88261 2008-08-17  Bruno Haible  <bruno@clisp.org>
88263         * lib/glthread/lock.h: Include <stdlib.h> always.
88264         * lib/glthread/tls.h: Likewise.
88265         * lib/glthread/cond.h: Likewise.
88267 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88269         New module 'cond'.
88270         * modules/cond: New file.
88271         * lib/glthread/cond.h: New file.
88272         * lib/glthread/cond.c: New file.
88273         * m4/cond.m4: New file.
88274         * MODULES.html.sh (Multithreading): Add cond.
88276 2008-08-16  Eric Blake  <ebb9@byu.net>
88278         c-stack: fix regression on Irix 5.3 from 2008-06-21
88279         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
88280         sa_sigaction...
88281         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
88282         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
88283         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
88284         * modules/signal (Makefile.am): Use the value.
88285         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
88286         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
88287         * doc/posix-headers/signal.texi (signal.h): Document this
88288         portability issue.
88289         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
88290         Reported by Tom G. Christensen.
88292 2008-08-17  Bruno Haible  <bruno@clisp.org>
88294         New module 'threadlib'.
88295         * modules/threadlib: New file.
88296         * lib/glthread/threadlib.c: New file, extracted from
88297         lib/glthread/lock.c.
88298         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
88299         functions.
88300         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
88301         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
88302         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
88303         macros.
88304         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
88305         (gl_DISABLE_THREADS): Remove macro.
88306         * modules/lock (Files): Remove build-aux/config.rpath.
88307         (Depends-on): Remove havelib. Add threadlib.
88308         (configure.ac-early): Remove section.
88309         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
88310         * modules/tls (Depends-on): Remove lock. Add threadlib.
88311         (Link): New section, copied from threadlib.
88312         * MODULES.html.sh (Multithreading): Add threadlib.
88314 2008-08-14  Bruno Haible  <bruno@clisp.org>
88316         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
88317         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
88318         glthread_rwlock_unlock, glthread_rwlock_destroy,
88319         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
88320         glthread_recursive_lock_destroy): Define as macros always.
88321         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
88322         glthread_lock_lock.
88323         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
88324         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
88325         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
88326         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
88327         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
88328         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
88329         (glthread_recursive_lock_lock_func): Renamed from
88330         glthread_recursive_lock_lock.
88331         (glthread_recursive_lock_unlock_func): Renamed from
88332         glthread_recursive_lock_unlock.
88333         (glthread_recursive_lock_destroy_func): Renamed from
88334         glthread_recursive_lock_destroy.
88336 2008-08-14  Bruno Haible  <bruno@clisp.org>
88338         * lib/glthread/lock.h: Renamed from lib/lock.h.
88339         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
88340         * lib/glthread/tls.h: Renamed from lib/tls.h.
88341         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
88342         * lib/fstrcmp.c: Update includes.
88343         * lib/strsignal.c: Update includes.
88344         * modules/lock (Files, Makefile.am): Update.
88345         (Include): Change to "glthread/lock.h".
88346         * modules/tls (Files, Makefile.am): Update.
88347         (Include): Change to "glthread/tls.h".
88348         * tests/test-lock.c: Update includes.
88349         * tests/test-tls.c: Update includes.
88350         * NEWS: Mention the renamed header files.
88352 2008-08-11  Jim Meyering  <meyering@redhat.com>
88354         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
88356 2008-08-11  Eric Blake  <ebb9@byu.net>
88358         test-c-stack: avoid C99-ism
88359         * tests/test-c-stack.c (main): Fix whitespace, move declaration
88360         before statement.
88361         Reported by Alain Guibert.
88363 2008-08-10  Jim Meyering  <meyering@redhat.com>
88365         ensure that return value of uinttostr et al are not ignored
88366         * lib/inttostr.h (__GNUC_PREREQ): Define.
88367         (__attribute_warn_unused_result__): Define.
88368         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
88370 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
88372         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
88373         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
88375 2008-08-07  Jim Meyering  <meyering@redhat.com>
88377         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
88379         * modules/mkstemp (License): Relicense under LGPLv2+.
88380         * modules/tempname (License): Likewise.
88382 2008-08-06  Bruno Haible  <bruno@clisp.org>
88384         * lib/poll.c (poll): Further micro-optimization.
88386 2008-08-06  Jim Meyering  <meyering@redhat.com>
88388         inet_pton.c: use locale-independent tolower
88389         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
88390         (inet_pton6): Use c_tolower rather than tolower.
88391         * modules/inet_pton (Depends-on): Add c-ctype.
88393 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
88395         * lib/poll.c (poll): Avoid division when timeout is 0, cache
88396         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
88398 2008-08-06  Jim Meyering  <meyering@redhat.com>
88400         * modules/inet_pton (License): Relicense under LGPLv2+.
88402 2008-08-03  Bruno Haible  <bruno@clisp.org>
88404         Additional non-aborting API for lock and tls.
88405         * lib/lock.h: Include <errno.h>.
88406         (glthread_lock_init): New macro/function.
88407         (gl_lock_init): Define as wrapper around glthread_lock_init.
88408         (glthread_lock_lock): New macro/function.
88409         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
88410         (glthread_lock_unlock): New macro/function.
88411         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
88412         (glthread_lock_destroy): New macro/function.
88413         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
88414         (glthread_rwlock_init): New macro/function.
88415         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
88416         (glthread_rwlock_rdlock): New macro/function.
88417         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
88418         (glthread_rwlock_wrlock): New macro/function.
88419         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
88420         (glthread_rwlock_unlock): New macro/function.
88421         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
88422         (glthread_rwlock_destroy): New macro/function.
88423         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
88424         (glthread_recursive_lock_init): New macro/function.
88425         (gl_recursive_lock_init): Define as wrapper around
88426         glthread_recursive_lock_init.
88427         (glthread_recursive_lock_lock): New macro/function.
88428         (gl_recursive_lock_lock): Define as wrapper around
88429         glthread_recursive_lock_lock.
88430         (glthread_recursive_lock_unlock): New macro/function.
88431         (gl_recursive_lock_unlock): Define as wrapper around
88432         glthread_recursive_lock_unlock.
88433         (glthread_recursive_lock_destroy): New macro/function.
88434         (gl_recursive_lock_destroy): Define as wrapper around
88435         glthread_recursive_lock_destroy.
88436         (glthread_once): New macro/function.
88437         (gl_once): Define as wrapper around glthread_once.
88438         Update function declarations.
88439         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
88440         glthread_rwlock_init. Return error code.
88441         (glthread_rwlock_rdlock_multithreaded): Renamed from
88442         glthread_rwlock_rdlock. Return error code.
88443         (glthread_rwlock_wrlock_multithreaded): Renamed from
88444         glthread_rwlock_wrlock. Return error code.
88445         (glthread_rwlock_unlock_multithreaded): Renamed from
88446         glthread_rwlock_unlock. Return error code.
88447         (glthread_rwlock_destroy_multithreaded): Renamed from
88448         glthread_rwlock_destroy. Return error code.
88449         (glthread_recursive_lock_init_multithreaded): Renamed from
88450         glthread_recursive_lock_init. Return error code.
88451         (glthread_recursive_lock_lock_multithreaded): Renamed from
88452         glthread_recursive_lock_lock. Return error code.
88453         (glthread_recursive_lock_unlock_multithreaded): Renamed from
88454         glthread_recursive_lock_unlock. Return error code.
88455         (glthread_recursive_lock_destroy_multithreaded): Renamed from
88456         glthread_recursive_lock_destroy. Return error code.
88457         (glthread_once_call): Make static.
88458         (glthread_once_multithreaded): Renamed from glthread_once.
88459         * lib/tls.h: Include <errno.h>.
88460         (glthread_tls_key_init): New macro/function.
88461         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
88462         (glthread_tls_set): New macro/function.
88463         (gl_tls_set): Define as wrapper around glthread_tls_set.
88464         (glthread_tls_key_destroy): New macro/function.
88465         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
88466         Update function declarations.
88467         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
88468         glthread_tls_get.
88469         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88471 2008-08-04  Eric Blake  <ebb9@byu.net>
88473         gnumakefile: use space, not TAB, outside of targets
88474         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
88476 2008-08-02  Jim Meyering  <meyering@redhat.com>
88478         getdate.y: avoid locale-dependent date parsing failure
88479         In Turkish locales, getdate would fail to recognize keywords
88480         containing a lowercase "i".  The solution is not to rely on
88481         locale-sensitive case-conversion.
88482         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
88483         (lookup_word): Use c_toupper in place of toupper.
88484         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
88485         Reported by Vefa Bicakci <bicave@superonline.com> in
88486         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
88487         * modules/getdate (Depends-on): Add c-ctype.
88489 2008-08-02  Bruno Haible  <bruno@clisp.org>
88491         * gnulib-tool (func_import): When updating or creating a .gitignore
88492         file, prepend each added line with a slash, and ignore leading slashes
88493         from the existing lines.
88494         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
88496 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88498         Portability fix for GNU make 3.79.1.
88499         * top/GNUmakefile: Avoid 'else COND', which older GNU make
88500         versions do not understand.
88502 2008-08-01  Bruno Haible  <bruno@clisp.org>
88504         Work around bug of HP-UX 10.20 cc with -0.0 literal.
88505         * tests/test-isnanf.h (zero): New variable.
88506         (main): Avoid literal -0.0f.
88507         * tests/test-isnand.h (zero): New variable.
88508         (main): Avoid literal -0.0.
88509         * tests/test-isnanl.h (zero): New variable.
88510         (main): Avoid literal -0.0L.
88511         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
88512         (test_float, test_double, test_long_double): Avoid literals -0.0f,
88513         -0.0, -0.0L.
88514         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
88515         (test_signbitd): Avoid literal -0.0.
88516         (test_signbitl): Avoid literal -0.0L.
88517         * tests/test-ceilf1.c (zero): New variable.
88518         (main): Avoid literal -0.0f.
88519         * tests/test-ceill.c (zero): New variable.
88520         (main): Avoid literal -0.0L.
88521         * tests/test-floorf1.c (zero): New variable.
88522         (main): Avoid literal -0.0f.
88523         * tests/test-floorl.c (zero): New variable.
88524         (main): Avoid literal -0.0L.
88525         * tests/test-roundf1.c (zero): New variable.
88526         (main): Avoid literal -0.0f.
88527         * tests/test-round1.c (zero): New variable.
88528         (main): Avoid literal -0.0.
88529         * tests/test-roundl.c (zero): New variable.
88530         (main): Avoid literal -0.0L.
88531         * tests/test-truncf1.c (zero): New variable.
88532         (main): Avoid literal -0.0f.
88533         * tests/test-trunc1.c (zero): New variable.
88534         (main): Avoid literal -0.0.
88535         * tests/test-truncl.c (zero): New variable.
88536         (main): Avoid literal -0.0L.
88537         * tests/test-frexp.c (zero): New variable.
88538         (main): Avoid literal -0.0.
88539         * tests/test-frexpl.c (zero): New variable.
88540         (main): Avoid literal -0.0L.
88541         * tests/test-ldexpl.c (zero): New variable.
88542         (main): Avoid literal -0.0L.
88543         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
88544         (zerod, zerol): New variables.
88545         (test_function): Avoid literals -0.0, -0.0L.
88546         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
88547         (zerod, zerol): New variables.
88548         (test_function): Avoid literals -0.0, -0.0L.
88549         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
88550         (zerod, zerol): New variables.
88551         (test_function): Avoid literals -0.0, -0.0L.
88552         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
88553         (zerod, zerol): New variables.
88554         (test_function): Avoid literals -0.0, -0.0L.
88555         * tests/test-strtod.c (zero): New variable.
88556         (main): Avoid literal -0.0.
88557         Reported by Jonathan C. Patschke <jp@centtech.com>.
88559 2008-07-31  Jim Meyering  <meyering@redhat.com>
88561         sha256.h: correct definition of SHA224_DIGEST_SIZE
88562         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
88563         Reported by Paulie Pena IV <paulie4@gmail.com>.
88564         Define as 224 / 8, rather than as a literal.
88565         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
88566         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
88567         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
88569 2008-07-31  Bruno Haible  <bruno@clisp.org>
88571         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
88572         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
88573         Reported by Jonathan Patschke <jp@centtech.com>.
88575 2008-07-31  Bruno Haible  <bruno@clisp.org>
88577         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
88578         Reported by Paolo Bonzini <bonzini@gnu.org>.
88580 2008-07-30  Eric Blake  <ebb9@byu.net>
88582         test-strtod: allow compilation without -lm
88583         * tests/test-strtod.c (main): Avoid link dependence on fabs.
88584         Reported by Dennis Clarke <blastwave@gmail.com>.
88586 2008-07-28  Jim Meyering  <meyering@redhat.com>
88588         bootstrap: work also when there are no .po files in po/
88589         * build-aux/bootstrap (update_po_files): Complete the change
88590         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
88592 2008-07-27  Jim Meyering  <meyering@redhat.com>
88594         * users.txt: Add zile.
88596 2008-07-26  Ben Pfaff  <blp@gnu.org>
88598         Add missing dependencies on new m4/exponent[fdl].m4 files.
88599         * modules/isnanf-nolibm: Add m4/exponentf.m4.
88600         * modules/isnand-nolibm: Add m4/exponentd.m4.
88601         * modules/isnanl-nolibm: Add m4/exponentl.m4.
88602         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
88603         m4/isnan[fdl].m4, because the macros actually used moved.
88604         Reported by Jim Meyering.
88606 2008-07-14  Ben Pfaff  <blp@gnu.org>
88608         Add isinf module.
88609         * lib/isinf.c: New file.
88610         * lib/math.in.h: Define isinf macro if we have decided to replace
88611         it.
88612         * m4/isinf.m4: New file.
88613         * m4/math_h.m4: Initialize and substitute variables for isinf
88614         module.
88615         * modules/isinf: New file.
88616         * modules/isinf-tests: New file.
88617         * modules/math: Add substitutions for new module.
88618         * tests/test-isinf.c: New file.
88619         * doc/posix-functions/isinf.texi: Mention new module.
88620         * MODULES.html.sh: Mention new module.
88622 2008-07-14  Ben Pfaff  <blp@gnu.org>
88624         Factor out some macros for use by additional modules.
88625         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
88626         exponentf.m4.
88627         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
88628         exponentd.m4.
88629         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
88630         file exponentl.m4.
88631         * m4/exponentf.m4: New file.
88632         * m4/exponentd.m4: New file.
88633         * m4/exponentl.m4: New file.
88634         * modules/isnanf: Use new file m4/exponentf.m4.
88635         * modules/isnand: Use new file m4/exponentd.m4.
88636         * modules/isnanl: Use new file m4/exponentl.m4.
88638 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
88640         mktime.c: normalize tp->tm_isdst value to -1/0/1.
88641         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
88642         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
88643         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
88645         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
88646         readlink on platforms without PATH_MAX.
88648 2008-07-21  Eric Blake  <ebb9@byu.net>
88650         Warn, not fail, on stale version.
88651         * top/GNUmakefile (_curr-ver): Tone down previous patch.
88653         Don't allow installation with stale devel version number.
88654         * top/GNUmakefile (_is-install-target): New macro.
88655         (_curr-ver): Forbid installation with stale version number.
88657 2008-07-20  Bruno Haible  <bruno@clisp.org>
88659         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
88660         TESTS_ENVIRONMENT.
88661         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
88663 2008-07-20  Bruno Haible  <bruno@clisp.org>
88665         * lib/c-stack.h (c_stack_action): Add documentation.
88666         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
88668 2008-07-20  Bruno Haible  <bruno@clisp.org>
88670         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
88671         * modules/readlink (License): Likewise.
88673 2008-07-17  Eric Blake  <ebb9@byu.net>
88675         * modules/c-stack (Link): Fix typo.
88677         Make c-stack use libsigsegv, when available.
88678         * modules/c-stack (Depends-on): Add libsigsegv.
88679         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
88680         needed.
88681         * lib/c-stack.c (SIGSTKSZ): Define fallback.
88682         (segv_handler, overflow_handler, c_stack_action)
88683         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
88684         implementation when libsigsegv is available, but only when using
88685         the library is necessary.
88686         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
88687         comment, explaining why XSI check fails on Linux.
88688         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
88689         * tests/test-c-stack2.sh: Tweak skip message.
88690         * NEWS: Document new link-time requirements.
88692 2008-07-16  Eric Blake  <ebb9@byu.net>
88694         c-stack: Expose false positives when not using libsigsegv.
88695         * modules/c-stack-tests (Files): Expand test.
88696         * tests/test-c-stack.c (main): Add means to conditionally trigger
88697         non-overflow SIGSEGV.
88698         * tests/test-c-stack2.sh: New file.
88700 2008-07-14  Bruno Haible  <bruno@clisp.org>
88702         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
88703         Reported by Eric Blake.
88705 2008-07-14  Sam Steingold  <sds@gnu.org>
88706             Bruno Haible  <bruno@clisp.org>
88708         New module libsigsegv.
88709         * modules/libsigsegv: New file.
88710         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
88711         modifications.
88712         * MODULES.html.sh (Signal handling): New section.
88714 2008-07-14  Bruno Haible  <bruno@clisp.org>
88716         * modules/unictype/ctype-* (Description): Add the word "function".
88717         Improves the resulting doc in MODULES.html.
88719 2008-07-12  Ben Pfaff  <blp@gnu.org>
88721         Add longlong module.
88722         * modules/longlong: New file.
88724 2008-07-12  Bruno Haible  <bruno@clisp.org>
88726         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
88727         to empty.
88729 2008-07-10  Ben Pfaff  <blp@gnu.org>
88731         Add isnan module.
88732         * doc/posix-functions/isnan.texi: Mention new module.
88733         * lib/math.in.h: Define isnan macro if we have decided to replace
88734         it.
88735         * m4/isnan.m4: New file.
88736         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
88737         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
88738         also.
88739         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
88740         redundancy.
88741         * m4/math_h.m4: Initialize and substitute variables for isnan
88742         module.
88743         * modules/isnan: New file.
88744         * modules/isnan-tests: New file.
88745         * modules/math: Add substitutions for new module.
88746         * tests/test-isnan.c: New file.
88747         * MODULES.html.sh: Mention new module.
88749 2008-07-10  Ben Pfaff  <blp@gnu.org>
88751         Add isnanf module.
88752         * lib/isnanf.m4: New file.
88753         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
88754         (gl_HAVE_ISNANF_IN_LIBM): New macro.
88755         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
88756         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
88757         * modules/isnanf: New file.
88758         * modules/isnanf-tests: New file.
88759         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
88760         files.
88761         * tests/test-isnanf-nolibm.c: factored most of its contents into
88762         new file tests/test-isnanf.h.
88763         * tests/test-isnanf.h: New file.
88764         * tests/test-isnanf.c: New file.
88765         * MODULES.html.sh: Mention new module.
88766         * doc/glibc-functions/isnanf.texi: Mention new module.
88768 2008-07-10  Ben Pfaff  <blp@gnu.org>
88770         Add isnand module.
88771         * lib/isnand.h: New file.
88772         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
88773         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
88774         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
88775         functionality also.
88776         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
88777         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
88778         (gl_HAVE_ISNAND_IN_LIBM): New macro.
88779         * modules/isnand: New file.
88780         * modules/isnand-tests: New file.
88781         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
88782         files.
88783         * tests/test-isnand-nolibm.c: factored most of its contents into
88784         new file tests/test-isnand.h.
88785         * tests/test-isnand.h: New file.
88786         * tests/test-isnand.c: New file.
88787         * MODULES.html.sh: Mention new module.
88789 2008-07-10  Ben Pfaff  <blp@gnu.org>
88791         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
88792         * lib/isnand.h: Rename lib/isnand-nolibm.h.
88793         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
88794         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
88795         * modules/isnanf-nolibm: Update references to renamed files.
88796         * modules/isnand-nolibm: Likewise.
88797         * modules/isnanf-nolibm-tests: Likewise.
88798         * modules/isnand-nolibm-tests: Likewise.
88799         * lib/frexp.c: Likewise.
88800         * lib/isfinite.c: Likewise.
88801         * lib/signbitd.c: Likewise.
88802         * lib/signbitf.c: Likewise.
88803         * lib/vasnprintf.c: Likewise.
88804         * tests/test-ceilf1.c: Likewise.
88805         * tests/test-ceilf2.c: Likewise.
88806         * tests/test-floorf1.c: Likewise.
88807         * tests/test-floorf2.c: Likewise.
88808         * tests/test-frexp.c: Likewise.
88809         * tests/test-round1.c: Likewise.
88810         * tests/test-round2.c: Likewise.
88811         * tests/test-roundf1.c: Likewise.
88812         * tests/test-strtod.c: Likewise.
88813         * tests/test-trunc1.c: Likewise.
88814         * tests/test-trunc2.c: Likewise.
88815         * tests/test-truncf1.c: Likewise.
88816         * tests/test-truncf2.c: Likewise.
88817         * NEWS: Mention the renamed header files.
88819 2008-07-11  Jim Meyering  <meyering@redhat.com>
88821         vc-list-files: make the last-resort awk code more portable
88822         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
88823         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
88824         does not support it.
88826 2008-07-10  Eric Blake  <ebb9@byu.net>
88828         Work with tar's bootstrap.
88829         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
88830         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
88831         an m4 comment.
88833 2008-07-09  Jim Meyering  <meyering@redhat.com>
88835         posix-shell.m4: fix typo that made this test malfunction
88836         * m4/posix-shell.m4: Remove capitalization in variable name.
88838 2008-07-08  Bruno Haible  <bruno@clisp.org>
88840         * m4/onceonly.m4: Update comments.
88841         Reported by Ben Pfaff <blp@cs.stanford.edu>.
88843 2008-07-04  Jim Meyering  <meyering@redhat.com>
88845         * users.txt: Add vc-dwim.
88846         (bison, coreutils): Use the gitweb URL.
88848 2008-07-03  Jim Meyering  <meyering@redhat.com>
88850         * users.txt: Add libffcall.  From Sam Steingold.
88852 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
88854         getdate.y: do not ignore TZ with relative day, month or year offset
88855         * lib/getdate.y (get_date): Move the tz-handling block to follow the
88856         relative-date-handling, since otherwise, the latter would clobber the
88857         sole output (an updated Start value) of the tz-handling block.
88858         * tests/test-getdate.c: Tests for the fix
88860 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88862         Recognize 'foo_LIBRARIES += libgnu.a'.
88863         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
88864         makefile snippet has already specified an installation location,
88865         also using '+='.
88867 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
88869         getdate.y: factor out common actions
88870         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
88871         Use them in place of open-coded actions.
88873 2008-07-01  Simon Josefsson  <simon@josefsson.org>
88875         Add self-test for getdate module.
88876         * modules/getdate-tests: New file.
88877         * tests/test-getdate.c: New file.
88879 2008-06-29  Bruno Haible  <bruno@clisp.org>
88881         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
88882         .gitignore.
88883         Reported by Sylvain Beucler <beuc@beuc.net>.
88885 2008-06-29  Bruno Haible  <bruno@clisp.org>
88887         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
88888         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
88890 2008-06-29  Bruno Haible  <bruno@clisp.org>
88892         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
88893         EXTRA_DIST.
88894         Reported by Sylvain Beucler <beuc@beuc.net>.
88896 2008-06-26  Jim Meyering  <meyering@redhat.com>
88898         make several modules depend on the "open" module
88899         This provides slightly increased consistency when opening-for-write
88900         the name of a non-directory spelled with a trailing slash.
88901         * modules/chdir-safer: Likewise.
88902         * modules/chown: Likewise.
88903         * modules/clean-temp: Likewise.
88904         * modules/copy-file: Likewise.
88905         * modules/fchdir: Likewise.
88906         * modules/fcntl-safer: Likewise.
88907         * modules/pipe: Likewise.
88908         * modules/utime: Likewise.
88909         Prompted by Eric Blake and Bruno Haible.
88911 2008-06-24  Andreas Schwab  <schwab@suse.de>
88913         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
88914         literals can be used as initializers for global variables.
88916 2008-06-23  Eric Blake  <ebb9@byu.net>
88918         Make gnulib-cache.m4 easier to diff.
88919         * gnulib-tool (func_import): Allow newlines when reading cached
88920         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
88922 2008-06-23  Bruno Haible  <bruno@clisp.org>
88924         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
88925         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
88926         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
88927         m4/signalblocking.m4.
88928         (gl_PREREQ_SIGACTION): Don't invoke it.
88929         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
88930         gl_PREREQ_SIG_HANDLER_H.
88931         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
88932         Don't check for sigaction here.
88934 2008-06-23  Bruno Haible  <bruno@clisp.org>
88936         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
88937         (install_handlers): Don't set the SA_RESETHAND flag.
88939 2008-06-23  Bruno Haible  <bruno@clisp.org>
88941         * m4/sigaction.m4: Comment fixes.
88942         * lib/signal.in.h: Likewise.
88944 2008-06-23  Eric Blake  <ebb9@byu.net>
88946         Fix typo.
88947         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
88949         Avoid SA_ namespace.
88950         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
88951         Reported by Ralf Wildenhues.
88953         Avoid test failure due to SA_RESTORER.
88954         * tests/test-sigaction.c (SA_MASK): New macro.
88955         (main): Avoid failing due to extension flags being set.
88956         Reported by Jim Meyering.
88958         Revert use of sig-handler.h in sigprocmask.c.
88959         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
88960         it requires the existence of struct sigaction.
88961         * lib/sigprocmask.c (handler_t): Restore typedef.
88962         (rpl_signal, old_handlers): Use local type.
88964 2008-06-22  Bruno Haible  <bruno@clisp.org>
88966         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
88967         conditionally.
88968         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88970 2008-06-22  Bruno Haible  <bruno@clisp.org>
88972         * doc/posix-functions/siginterrupt.texi: Move note.
88974         * lib/signal.in.h (SA_RESTART): New macro.
88975         * lib/sigaction.c: Update comment.
88977         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
88979         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
88980         (gl_PREREQ_SIGPROCMASK): Invoke it.
88981         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
88983         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
88985         * lib/sigprocmask.c: Update a comment.
88987 2008-06-21  Eric Blake  <ebb9@byu.net>
88989         Use sigaction module rather than signal().
88990         * modules/c-stack (Depends-on): Add sigaction.
88991         * modules/fatal-signal (Depends-on): Likewise.
88992         * modules/nanosleep (Depends-on): Likewise.
88993         * modules/sigprocmask (Files): Add sig-handler.h.
88994         * modules/sigaction (Files): Likewise.
88995         * lib/sig-handler.h (get_handler): New file, suggested by Paul
88996         Eggert.
88997         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
88998         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
88999         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
89000         (init_fatal_signals): Likewise.
89001         * lib/nanosleep.c (rpl_nanosleep): Likewise.
89002         (siginterrupt): Delete fallback.
89003         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
89004         instead.
89005         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
89006         siginterrupt.
89008         New module sigaction, for mingw.
89009         * modules/sigaction: New module...
89010         * modules/sigaction-tests: ...and its test.
89011         * m4/sigaction.m4: New file.
89012         * lib/sigaction.c: Likewise.
89013         * tests/test-sigaction.c: Likewise.
89014         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
89015         * modules/signal (Makefile.am): Likewise.
89016         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
89017         needed.
89018         * doc/posix-headers/signal.texi (signal.h): Mention provided
89019         types.
89020         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
89021         that sigaction is preferable.
89022         * doc/posix-functions/sigaction.texi (sigaction): Mention new
89023         module.
89024         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89025         sigaction.
89027         Improve robustness of sigprocmask by overriding signal.
89028         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
89029         is in use.
89030         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
89031         (SIGKILL, SIGSTOP): Provide fallbacks.
89032         (rpl_signal): Implement.
89033         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
89034         signal can be called inside handlers.
89036         Fix nanosleep module on mingw.
89037         * modules/nanosleep (Depends-on): Add sys_select.
89038         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
89040         Fix licensing of sigprocmask.
89041         * modules/raise (License): Relicense as LGPL.
89043 2008-06-21  Bruno Haible  <bruno@clisp.org>
89045         * lib/propername.c (proper_name_utf8): Don't use the transliterated
89046         result if it contains question marks.
89047         Reported by Michael Geng <linux@michaelgeng.de>.
89049 2008-06-19  Bruno Haible  <bruno@clisp.org>
89051         Fix CVS-ism.
89052         * doc/gnulib.texi: Include updated-stamp.texi.
89053         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
89054         (updated-stamp.texi): New rule.
89055         (gnulib.info): Depend on it.
89056         * doc/.gitignore: Add updated-stamp.texi.
89057         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
89059 2008-06-19  Bruno Haible  <bruno@clisp.org>
89061         * doc/Makefile (gnulib.info): Update and simplify dependencies.
89062         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
89064 2008-06-19  Eric Blake  <ebb9@byu.net>
89066         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
89067         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
89068         Reported by Stepan Kasal.
89070 2008-06-18  Bruno Haible  <bruno@clisp.org>
89072         * lib/fatal-signal.c (init_fatal_signals): Add comment.
89073         Reported by Eric Blake.
89075 2008-06-18  Eric Blake  <ebb9@byu.net>
89077         Work around cygwin 1.5.25 strsignal bug.
89078         * tests/test-strsignal.c: Allow for const char *.
89079         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
89081 2008-06-18  Simon Josefsson  <simon@josefsson.org>
89083         * users.txt: Update URL to article and add author/date
89084         information.
89086 2008-06-17  Bruno Haible  <bruno@clisp.org>
89088         New macro gl_DISABLE_THREADS.
89089         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
89090         if the user did not pass --enable-threads or --disable-threads option.
89091         (gl_DISABLE_THREADS): New macro.
89092         Reported by Eric Blake <ebb9@byu.net>.
89094 2008-06-17  Bruno Haible  <bruno@clisp.org>
89096         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
89097         when the macro ignores it.
89098         Based on a patch by Eric Blake <ebb9@byu.net>.
89100 2008-06-17  Bruno Haible  <bruno@clisp.org>
89102         * modules/tls (License): Change to LGPLv2+.
89103         Reported by Eric Blake.
89105 2008-06-17  Eric Blake  <ebb9@byu.net>
89107         Simplify c-stack prerequisites.
89108         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
89109         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
89110         no longer requires <ucontext.h> to exist.  Optimize setrlimit
89111         check.
89112         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
89113         <sys/resource.h>.
89115         Move c-stack test into testsuite.
89116         * modules/c-stack-tests: New file.
89117         * lib/c-stack.c [DEBUG]: Move test program...
89118         * tests/test-c-stack.c: ...into this new file.  Skip rather than
89119         fail test if sigaltstack is lacking.
89120         * tests/test-c-stack.sh: New driver file.
89122 2008-06-16  Eric Blake  <ebb9@byu.net>
89124         Use raise module consistently.
89125         * modules/fatal-signal (Depends-on): Add raise.
89126         * modules/sigprocmask (Depends-on): Likewise.
89127         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
89128         * lib/sigprocmask.c (sigprocmask): Likewise.
89129         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89130         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
89132         Fix compliance bug in sigpending.
89133         * lib/sigprocmask.c (sigpending): Return pending array via
89134         parameter, not return value.
89136 2008-06-14  Eric Blake  <ebb9@byu.net>
89138         Improve obstack-printf test code.
89139         * tests/test-obstack-printf.c (test_function): Fix comment, and
89140         simplify usage of obstack_* in macros.  Add a test for coverage.
89141         Reported by Bruno Haible.
89143 2008-06-14  Bruno Haible  <bruno@clisp.org>
89145         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
89146         array size as a constant, not as a const variable.
89147         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
89148         AC_USE_SYSTEM_EXTENSIONS.
89149         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
89150         Test whether the obstack_printf function actually exists.
89151         * modules/obstack-printf (Depends-on): Add extensions.
89152         (Include): Remove obstack.h.
89153         * modules/obstack-printf-posix (Depends-on): Add extensions.
89154         (Include): Remove obstack.h.
89156 2008-06-13  Eric Blake  <ebb9@byu.net>
89158         Add obstack-printf and obstack-printf-posix modules.
89159         * modules/obstack-printf: New file.
89160         * modules/obstack-printf-posix: Likewise.
89161         * MODULES.html.sh (Misc): Mention them.
89162         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
89163         Likewise.
89164         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
89165         Likewise.
89166         * modules/stdio (Makefile.am): Accomodate new modules.
89167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89168         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
89169         Declare.
89170         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
89171         functions.
89172         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
89173         (gl_REPLACE_OBSTACK_PRINTF): New macros
89174         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
89175         * tests/test-obstack-printf.c: New file.
89176         * modules/obstack-printf-tests: Likewise.
89177         * modules/obstack-printf-posix-tests: Likewise.
89179 2008-06-11  Bruno Haible  <bruno@clisp.org>
89181         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
89182         * lib/open.c: Include errno.h.
89183         (open): Fail when attempting to write to a file that has a trailing
89184         slash.
89185         * tests/test-open.c (main): Test against trailing slash bug.
89186         * doc/posix-functions/open.texi: Mention the trailing slash bug.
89188 2008-06-10  Bruno Haible  <bruno@clisp.org>
89190         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
89191         for $? to work inside the trap command, with various /bin/sh-s.
89192         * tests/test-vc-list-files-cvs.sh: Likewise.
89194 2008-06-10  Bruno Haible  <bruno@clisp.org>
89196         * lib/acl-internal.h: Don't include gettext.h here.
89197         * lib/set-mode-acl.c: Include gettext.h here.
89198         * lib/copy-acl.c: Likewise.
89200 2008-06-10  Bruno Haible  <bruno@clisp.org>
89202         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
89203         * lib/wait-process.c (wait_subprocess): Likewise.
89204         * lib/execute.h (execute): Add termsigp argument.
89205         * lib/execute.c (execute): Likewise.
89206         * lib/csharpcomp.c (compile_csharp_using_pnet,
89207         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
89208         * lib/csharpexec.c (execute_csharp_using_pnet,
89209         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
89210         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
89211         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
89212         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
89213         is_jikes_present): Update.
89214         * lib/javaexec.c (execute_java_class): Update.
89215         * lib/javaversion.c (execute_and_read_line): Update.
89216         * NEWS: Document the changes.
89217         Reported by Eric Blake.
89219 2008-06-10  Eric Blake  <ebb9@byu.net>
89221         Add missing include.
89222         * tests/test-strstr.c (includes): Add <signal.h>.
89223         * tests/test-strcasestr.c (includes): Likewise.
89224         * tests/test-memmem.c (includes): Likewise.
89226 2008-06-10  Bruno Haible  <bruno@clisp.org>
89228         * lib/wait-process.c (wait_subprocess): Add an assertion.
89230 2008-06-10  Bruno Haible  <bruno@clisp.org>
89232         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
89234 2008-06-10  Bruno Haible  <bruno@clisp.org>
89236         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
89237         using alarm().
89238         * tests/test-strcasestr.c (main): Likewise.
89239         * tests/test-strstr.c (main): Likewise.
89241 2008-06-09  Bruno Haible  <bruno@clisp.org>
89243         Work around the Solaris 10 ACE ACLs ABI change.
89244         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
89245         declare if ACL_NO_TRIVIAL is present.
89246         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
89247         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
89248         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
89249         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
89250         define if ACL_NO_TRIVIAL is present.
89251         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
89252         and use the current ABI.
89253         (file_has_acl): Use same #if condition as elsewhere.
89254         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
89255         in use, and use the current ABI.
89256         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
89257         Reported by Jim Meyering.
89259 2008-06-09  Eric Blake  <ebb9@byu.net>
89261         Work around environments that (stupidly) ignore SIGALRM.
89262         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
89263         before using alarm().
89264         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89265         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
89266         Reported by Ian Beckwith <ianb@erislabs.net>.
89268         Produce autobuild blurb earlier in log.
89269         * modules/autobuild (configure.ac-early): Move AB_INIT here.
89271 2008-06-09  Jim Meyering  <meyering@redhat.com>
89272         and Ondřej Vašík  <ovasik@redhat.com>
89274         utimens.c: correct kernel bug work-around
89275         Ondřej Vašík found that the invalid return value of 280 indicates
89276         failure, not success, and the kernel bug we're trying to work
89277         around affects not just the utimensat call, but also the fallback
89278         futimens call.
89279         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
89280         not success.
89281         [HAVE_FUTIMENS]: Use the same work-around, here.
89283 2008-06-09  Jim Meyering  <meyering@redhat.com>
89285         add more guards around definition of ACE_-related code
89286         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
89287         ALLOW and ACE_OWNER are also defined.
89289 2008-06-08  Bruno Haible  <bruno@clisp.org>
89291         * lib/acl-internal.h: Add me as co-author.
89292         * lib/file-has-acl.c: Likewise.
89293         * lib/set-mode-acl.c: Likewise.
89294         * lib/copy-acl.c: Likewise.
89296 2008-06-08  Bruno Haible  <bruno@clisp.org>
89298         Add support for AIX ACLs.
89299         * lib/acl-internal.h (acl_nontrivial): New declaration.
89300         * lib/file-has-acl.c (acl_nontrivial): New function.
89301         (file_has_acl): Add implementation using AIX 4 ACL API.
89302         * lib/set-mode-acl.c (qset_acl): Likewise.
89303         * lib/copy-acl.c (qcopy_acl): Likewise.
89305 2008-06-08  Bruno Haible  <bruno@clisp.org>
89307         Add support for HP-UX ACLs.
89308         * lib/acl-internal.h (acl_nontrivial): New declaration.
89309         * lib/file-has-acl.c (acl_nontrivial): New function.
89310         (file_has_acl): Add implementation using HP-UX 11 ACL API.
89311         * lib/set-mode-acl.c (qset_acl): Likewise.
89312         * lib/copy-acl.c (qcopy_acl): Likewise.
89314 2008-06-08  Bruno Haible  <bruno@clisp.org>
89316         Add support for Cygwin ACLs.
89317         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
89318         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
89319         the chmod_or_fchmod call.
89320         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
89322 2008-06-08  Bruno Haible  <bruno@clisp.org>
89324         Fix bug with setuid modes in Solaris 10+ code.
89325         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
89326         succeeded, when the mode contains some special bits.
89328 2008-06-08  Bruno Haible  <bruno@clisp.org>
89330         Add support for Solaris 7..10 ACLs.
89331         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
89332         declarations.
89333         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
89334         functions.
89335         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
89336         * lib/set-mode-acl.c (qset_acl): Likewise.
89337         * lib/copy-acl.c (qcopy_acl): Likewise.
89339 2008-06-08  Bruno Haible  <bruno@clisp.org>
89341         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
89342         declaration.
89343         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
89344         (acl_access_nontrivial): Remove MacOS X case.
89345         (file_has_acl): Use acl_extended_nontrivial.
89346         * lib/copy-acl.c (qcopy_acl): Likewise.
89348 2008-06-08  Bruno Haible  <bruno@clisp.org>
89350         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
89352 2008-06-08  Jim Meyering  <meyering@redhat.com>
89354         * modules/acl (Maintainer): Add Bruno Haible.
89356 2008-06-07  Bruno Haible  <bruno@clisp.org>
89358         Improve support for Tru64 ACLs.
89359         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
89360         ACL on OSF/1.
89362 2008-06-07  Bruno Haible  <bruno@clisp.org>
89364         Add support for MacOS X ACLs.
89365         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
89366         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
89367         * lib/set-mode-acl.c (qset_acl): Likewise.
89368         * lib/copy-acl.c (qcopy_acl): Likewise.
89370 2008-06-07  Bruno Haible  <bruno@clisp.org>
89372         Fix memory leak introduced on 2008-05-22.
89373         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
89374         use.
89376 2008-06-07  Bruno Haible  <bruno@clisp.org>
89378         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
89379         to construct an empty ACL.
89381 2008-06-07  Bruno Haible  <bruno@clisp.org>
89383         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
89384         precisely.
89385         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
89387 2008-06-07  Bruno Haible  <bruno@clisp.org>
89389         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
89390         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
89392 2008-06-07  Bruno Haible  <bruno@clisp.org>
89394         * doc/posix-functions/_setjmp.texi: Explain the use of this function
89395         regardless of POSIX.
89396         * doc/posix-functions/_longjmp.texi: Likewise.
89397         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
89398         SystemV platform in this case.
89400 2008-06-06  Eric Blake  <ebb9@byu.net>
89402         Document abort() bugs.
89403         * doc/posix-functions/abort.texi (abort): Mention anomalies.
89405         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
89406         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
89407         sigsetjmp.
89408         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
89409         siglongjmp, but only as a macro.
89410         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
89411         is obsolete.
89412         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
89414         Tweak documentation to cover cygwin argz bugs.
89415         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
89416         argz bug fix; no code change needed since no cygwin releases
89417         occurred between the last fix and the bug being tested.
89418         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
89419         module and recently fixed cygwin bugs.
89420         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
89421         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
89422         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
89423         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
89424         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
89425         Likewise.
89426         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
89427         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
89428         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
89429         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
89430         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
89431         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
89432         Likewise.
89434         Avoid gcc warning on cygwin.
89435         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
89436         !ACL_NO_TRIVIAL]: Avoid unused variable.
89438 2008-06-05  Eric Blake  <ebb9@byu.net>
89440         Be tolerant of UNKNOWN version in gnulib-tool test dir.
89441         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
89442         git-version-gen fails to come up with a version.
89443         Reported by Simon Josefsson.
89445 2008-06-05  Jim Meyering  <meyering@redhat.com>
89446             Paul Eggert  <eggert@cs.ucla.edu>
89448         utimens.c: work around a probable Linux kernel bug
89449         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
89450         appears to be a kernel bug that causes utimensat to return 280
89451         instead of 0, indicating success.
89453 2008-06-04  Bruno Haible  <bruno@clisp.org>
89455         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
89456         2008-06-01 commit.
89458 2008-06-04  Bruno Haible  <bruno@clisp.org>
89460         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
89461         * lib/file-has-acl.c (acl_access_nontrivial): New function.
89462         (file_has_acl): Use it. Save errno afterwards.
89463         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
89465 2008-06-03  Bruno Haible  <bruno@clisp.org>
89467         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
89468         draft code. Simplify #ifs.
89469         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
89470         Put Solaris code after POSIX-draft code. Fix comments regarding
89471         Solaris 10, HP-UX. Mention Cygwin.
89472         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
89474 2008-06-03  Eric Blake  <ebb9@byu.net>
89476         Provide fallback for older kernels.
89477         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
89478         Provide runtime fallback if kernel lacks support.
89479         Reported by Mike Frysinger.
89481 2008-06-02  Bruno Haible  <bruno@clisp.org>
89483         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
89484         it exists.
89486 2008-06-02  Bruno Haible  <bruno@clisp.org>
89488         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
89489         * lib/copy-acl.c (qcopy_acl): Update comment.
89491 2008-06-02  Bruno Haible  <bruno@clisp.org>
89493         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
89494         like ACL APIs.
89496 2008-06-02  Bruno Haible  <bruno@clisp.org>
89498         * tests/test-file-has-acl.sh: Use different code for Cygwin.
89499         * tests/test-set-mode-acl.sh: Likewise.
89500         * tests/test-copy-acl.sh: Likewise.
89501         * tests/test-copy-file.sh: Likewise.
89503 2008-06-02  Bruno Haible  <bruno@clisp.org>
89505         * tests/test-file-has-acl.sh: Remove unused code.
89507 2008-06-01  Bruno Haible  <bruno@clisp.org>
89509         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
89510         (copy_acl): Just a wrapper around qcopy_acl that emits the error
89511         messages.
89512         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
89514 2008-06-01  Bruno Haible  <bruno@clisp.org>
89516         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
89517         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
89518         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
89519         APIs.
89520         * modules/acl-tests (configure.ac): Remove tests now contained in
89521         m4/acl.m4.
89523 2008-06-02  Jim Meyering  <meyering@redhat.com>
89525         announce-gen: use a better key-server host name
89526         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
89527         it may be more consistently reliable.  Suggested by Werner Koch
89528         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
89530 2008-06-01  Bruno Haible  <bruno@clisp.org>
89532         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
89533         Reported by Voroskoi Andras <voroskoi@gmail.com>.
89535 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
89537         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
89539 2008-06-01  Bruno Haible  <bruno@clisp.org>
89541         New ACL tests.
89542         * tests/test-file-has-acl.sh: New file.
89543         * tests/test-file-has-acl.c: New file.
89544         * tests/test-set-mode-acl.sh: New file.
89545         * tests/test-set-mode-acl.c: New file.
89546         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
89547         * tests/test-copy-acl.c: New file.
89548         * modules/acl-tests: New file, based on modules/copy-file-tests.
89549         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
89550         (Depends-on): Add acl-tests.
89551         (configure.ac): Remove checks.
89552         (Makefile.am): Don't create test-sameacls program here any more.
89554 2008-06-01  Bruno Haible  <bruno@clisp.org>
89556         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
89557         * tests/test-sameacls.c: Include progname.h.
89558         (main): Invoke set_program_name. Portability fixes for MacOS X,
89559         Solaris, HP-UX.
89561 2008-06-01  Bruno Haible  <bruno@clisp.org>
89563         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
89564         function.
89565         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
89567 2008-06-01  Bruno Haible  <bruno@clisp.org>
89569         * modules/rpmatch (Depends-on): Add strdup.
89571 2008-06-01  Bruno Haible  <bruno@clisp.org>
89573         * lib/pipe.c: Include unistd-safer.h.
89574         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
89575         * modules/pipe (Depends-on): Add unistd-safer.
89577 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89579         * modules/autobuild (configure.ac): Call AB_INIT.
89581 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89583         * tests/test-getaddrinfo.c: Don't print debug messages by default.
89584         Suggested by Bruno Haible <bruno@clisp.org>.
89586 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89588         * tests/test-base64.c: Cast size_t to unsigned long when invoking
89589         printf.  Use %lu instead of %d.  Reported by Bruno Haible
89590         <bruno@clisp.org>.
89592 2008-05-29  Eric Blake  <ebb9@byu.net>
89594         Prefer new POSIX 200x interfaces over futimesat.
89595         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
89596         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
89597         when available.
89598         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
89600 2008-05-28  Bruno Haible  <bruno@clisp.org>
89602         * modules/stpcpy (License): Change to LGPLv2+.
89603         Requested by David Lutterkort <dlutter@redhat.com>.
89605 2008-05-27  Bruno Haible  <bruno@clisp.org>
89607         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
89608         current mingw.
89609         Reported by Jose E. Marchesi <jemarch@gnu.org>.
89611 2008-05-27  Bruno Haible  <bruno@clisp.org>
89613         * modules/iconv_open (Link): New section, from module 'iconv'.
89614         * modules/striconv (Link): Likewise.
89615         * modules/striconveh (Link): Likewise.
89616         * modules/xstriconv (Link): Likewise.
89617         * modules/unicodeio (Link): Likewise.
89618         * modules/propername (Link): Likewise.
89619         Reported by Jim Meyering.
89621 2008-05-26  Jim Meyering  <meyering@redhat.com>
89623         sha256: do not artificially restrict buffer length to be < 2^32
89624         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
89625         uint32_t to size_t.
89626         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
89627         to match.
89629         avoid unaligned access errors, e.g., on sparc
89630         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
89631         direct access through a possibly-unaligned uint64* pointer.
89632         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
89633         direct access through a possibly-unaligned uint32* pointer.
89634         Prompted by this patch from Tom "spot" Callaway:
89635         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
89637         sha512.c: fix typo in comment
89638         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
89640 2008-05-25  Bruno Haible  <bruno@clisp.org>
89642         * lib/set-mode-acl.c: Renamed from lib/acl.c.
89643         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
89644         (Makefile.am): Update lib_SOURCES.
89646 2008-05-25  Bruno Haible  <bruno@clisp.org>
89648         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
89650 2008-05-25  Jim Meyering  <meyering@redhat.com>
89652         useless-if-before-free: freed expr may have white-space differences
89653         * build-aux/useless-if-before-free: Recognize cases in which the
89654         freed expression differs from the tested one in embedded white
89655         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
89656         $1 was used, so we can't make any regexp shy.  Improved tests now
89657         detect this.
89659         useless-if-before-free: accept white space in the expression.
89660         * build-aux/useless-if-before-free: For now, any white space
89661         in the expression must be identical in the free argument.
89663         useless-if-before-free: efficiency tweak
89664         * build-aux/useless-if-before-free: Make the expression-matching
89665         regexp "shy".
89666         Make the *outer* regexp shy, not the expr-matching one.
89668         update code-in-comment to accept cast of free arg
89669         * build-aux/useless-if-before-free: Update regexp.
89671 2008-05-25  Bruno Haible  <bruno@clisp.org>
89673         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
89674         * modules/copy-file-tests (Files, Makefile.am): Update.
89675         * tests/test-copy-file.c (func_test_copy): Update.
89677 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
89679         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
89681 2008-05-23  Bruno Haible  <bruno@clisp.org>
89683         Improve support for ACLs on OSF/1.
89684         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
89685         Remove fallback for unknown flavors of ACLs.
89687 2008-05-22  Bruno Haible  <bruno@clisp.org>
89689         Add support for ACLs on OSF/1.
89690         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
89691         replacements.
89692         (acl_free_text): New macro fallback.
89693         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
89694         acl_free.
89695         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
89696         acl_free_text function. Require AC_C_INLINE.
89698 2008-05-22  Bruno Haible  <bruno@clisp.org>
89700         Make copy_acl work on MacOS X 10.5.
89701         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
89702         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
89703         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
89704         If MODE_INSIDE_ACL, don't assume that every system has the same text
89705         representation for ACLs as FreeBSD.
89706         * lib/copy-acl.c (copy_acl): Add support for platforms with
89707         !MODE_INSIDE_ACL.
89708         * lib/file-has-acl.c (file_has_acl): Likewise.
89709         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
89710         FreeBSD, MacOS X, or IRIX, respectively.
89712 2008-05-22  Bruno Haible  <bruno@clisp.org>
89714         * lib/acl.h: Don't include <sys/acl.h>.
89715         (GETACLCNT): Move fallback to lib/acl-internal.h.
89716         * lib/acl-internal.h: Include <sys/acl.h> here.
89717         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
89719 2008-05-22  Bruno Haible  <bruno@clisp.org>
89721         Split off copy_acl function to separate file.
89722         * lib/copy-acl.c: New file, extracted from lib/acl.c.
89723         * lib/acl.c (copy_acl): Moved function to separate file.
89724         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
89725         * modules/acl (Files): Add lib/copy-acl.c.
89726         (Makefiles.am): Augment lib_SOURCES.
89728 2008-05-22  Bruno Haible  <bruno@clisp.org>
89730         * modules/copy-file-tests: New file.
89731         * tests/test-copy-file.sh: New file.
89732         * tests/test-copy-file.c: New file.
89733         * tests/test-copy-file-sameacls.c: New file.
89735 2008-05-22  Eric Blake  <ebb9@byu.net>
89737         Avoid gcc warning.
89738         * tests/test-memcmp.c (main): Pass NULL indirectly.
89740 2008-05-21  Bruno Haible  <bruno@clisp.org>
89742         Add reference doc about ACLs.
89743         * doc/acl-resources.txt: New file.
89744         * doc/acl-cygwin.txt: New file.
89746 2008-05-21  Bruno Haible  <bruno@clisp.org>
89748         Avoid one more warning from gcc.
89749         * lib/vasnprintf.c (IF_LINT): Update comments.
89750         (VASNPRINTF): Use it also for the 'prefix' array initializer.
89752 2008-05-21  Jim Meyering  <meyering@redhat.com>
89754         avoid a warning from gcc
89755         * lib/vasnprintf.c (IF_LINT): Define.
89756         (scale10_round_decimal_long_double):
89757         Use it to avoid a "may be used uninitialized" warning.
89758         (scale10_round_decimal_double): Likewise.
89760 2008-05-21  Simon Josefsson  <simon@josefsson.org>
89762         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
89763         declared.
89765 2008-05-20  Bruno Haible  <bruno@clisp.org>
89767         * tests/test-memcmp.c (main): Test also the sign of the result. Test
89768         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
89770 2008-05-20  Simon Josefsson  <simon@josefsson.org>
89772         * modules/memcmp-tests: New file.
89773         * tests/test-memcmp.c: New file.
89775 2008-05-19  Bruno Haible  <bruno@clisp.org>
89777         * modules/propername (Notice, configure.ac): Put quoted "..." into
89778         --keyword option.
89779         * lib/propername.h: Update comments accordingly.
89780         Reported by Eric Blake.
89782 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
89784         * modules/getpass-gnu (Depends-on): Add fseeko.
89786 2008-05-19  Simon Josefsson  <simon@josefsson.org>
89788         * modules/base64-tests: New file.
89790 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
89792         * lib/base64.c (base64_decode_ctx): If a decode context structure
89793         was passed in use it to ignore newlines.  If a context structure
89794         was _not_ passed in, continue to treat newlines as garbage (this
89795         is the historical behavior).  Formerly base64_decode.
89796         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
89797         takes a decode context structure.
89798         * lib/base64.h (base64_decode): Macro for four-argument calls.
89799         (base64_decode_alloc): Likewise.
89800         * lib/base64.c (base64_decode_ctx): If a decode context structure
89801         was passed in use it to ignore newlines.  If a context structure
89802         was _not_ passed in, continue to treat newlines as garbage (this
89803         is the historical behavior).  Formerly base64_decode.
89804         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
89805         takes a decode context structure.
89806         * lib/base64.h (base64_decode): Macro for four-argument calls.
89807         (base64_decode_alloc): Likewise.
89809 2008-05-19  Jim Meyering  <meyering@redhat.com>
89811         avoid a warning from gcc
89812         * lib/trim.c (IF_LINT): Define.
89813         (trim2): Use it to avoid a "may be used uninitialized" warning.
89815         Fix doc typo.
89816         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
89818 2008-05-19  Bruno Haible  <bruno@clisp.org>
89820         * doc/glibc-functions/getpass.texi: Document limits of other
89821         implementations.
89823 2008-05-19  Simon Josefsson  <simon@josefsson.org>
89824             Bruno Haible <bruno@clisp.org>
89826         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
89828 2008-05-18  Bruno Haible  <bruno@clisp.org>
89830         * modules/propername: New file, from GNU gettext.
89831         * lib/propername.h: New file, from GNU gettext.
89832         * lib/propername.c: New file, from GNU gettext.
89833         * MODULES.html.sh (Internationalization functions): Add propername.
89835 2008-05-16  Jim Meyering  <meyering@redhat.com>
89836             Bruno Haible  <bruno@clisp.org>
89838         Avoid some warnings from "gcc -Wshadow".
89839         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
89841 2008-05-15  Eric Blake  <ebb9@byu.net>
89843         Extend previous patch to cygwin 1.7.0.
89844         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
89845         fast implementation in cygwin >= 1.7.0.
89846         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
89847         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89849 2008-05-15  Bruno Haible  <bruno@clisp.org>
89851         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
89852         implementation in glibc >= 2.9.
89853         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
89854         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89856 2008-05-15  Bruno Haible  <bruno@clisp.org>
89858         * MODULES.html.sh (Internationalization functions): Remove linebreak.
89859         (Unicode string functions): Add unilbrk/*.
89860         Reported by Karl Berry.
89862 2008-05-15  Eric Blake  <ebb9@byu.net>
89864         Fix violation of <stdbool.h> replacement in regex.
89865         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
89866         * lib/regexec.c (re_search_internal): Likewise.
89867         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
89869 2008-05-15  Jim Meyering  <meyering@redhat.com>
89871         avoid distracting test output when git or cvs is not found
89872         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
89873         * tests/test-vc-list-files-git.sh: Likewise.
89875 2008-05-15  Eric Blake  <ebb9@byu.net>
89877         Glibc finally accepted the memmem speedup code, bugzilla #5514.
89878         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
89879         glibc version.
89880         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
89881         * doc/posix-functions/strstr.texi (strstr): Likewise.
89882         * lib/str-two-way.h (MAX): Sychronize with glibc.
89884 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
89886         * lib/regcomp.c (optimize_utf8): Add a note on why we test
89887         opr.ctx_type.
89888         (calc_first): Initialize constraint field.
89889         (duplicate_node_closure): Use it instead of special casing ANCHORS.
89890         Fix grammar.
89891         (duplicate_node): Merge constraint field for all node types.
89892         (calc_eclosure_iter): Look at constraint field for all node types.
89893         * lib/regex_internal.c (create_cd_newstate): Don't look at
89894         opr.ctx_type.
89896 2008-05-14  Bruno Haible  <bruno@clisp.org>
89898         Help GCC to do better code generation.
89899         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
89900         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
89901         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
89902         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
89903         Declare with attribute 'malloc' if supported.
89905 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
89907         use "echo STR|wc -c" rather than unportable "expr length STR"
89908         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
89909         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
89911 2008-05-14  Jim Meyering  <meyering@redhat.com>
89913         use dd ibs=$n count=1 ... rather than less-portable head -c$n
89914         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
89915         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
89916         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
89917         via Collin Lasse.
89919 2008-05-14  Eric Blake  <ebb9@byu.net>
89921         Avoid quadratic growth in gl_LIBSOURCES.
89922         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
89923         Suggested by Bruno Haible.
89925         Test xmemdup0.
89926         * modules/xmemdup0-tests: New file.
89927         * tests/test-xmemdup0.c: Likewise.
89929 2008-05-13  Eric Blake  <ebb9@byu.net>
89931         Split xmemdup0 into its own module.
89932         * modules/xmemdup0: New file.
89933         * lib/xmemdup0.h: Likewise.
89934         * lib/xmemdup0.c: Likewise.
89935         * MODULES.html.sh (Memory management functions): Add xmemdup0.
89936         * lib/xalloc.h (xmemdup0): Remove.
89937         * lib/xmalloc.c (xmemdup0): Likewise.
89939 2008-05-13  Eric Blake  <ebb9@byu.net>
89940             Bruno Haible  <bruno@clisp.org>
89942         Reduce number of forks required during autoconf.
89943         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
89944         and gl_LIBSOURCES_DIR.
89945         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
89946         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
89947         m4_syscmd per file.
89948         <m4_foreach_w>: Move...
89949         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
89951 2008-05-13  Eric Blake  <ebb9@byu.net>
89953         * gnulib-tool: Fix various comment typos.
89955 2008-05-12  Bruno Haible  <bruno@clisp.org>
89957         Tailor the linebreaking algorithm.
89958         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
89960 2008-05-12  Bruno Haible  <bruno@clisp.org>
89962         Update to Unicode 5.0.0.
89963         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
89964         LBP_JV, LBP_JT. Redistribute values.
89965         (unilbrk_table): Change size.
89966         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
89967         Unicode TR#14 rev. 22.
89968         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
89969         LBP_JV, LBP_JT. Redistribute values.
89970         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
89971         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
89972         Update.
89973         * lib/unilbrk/lbrkprop1.h: Regenerated.
89974         * lib/unilbrk/lbrkprop2.h: Regenerated.
89975         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
89976         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
89977         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
89978         Likewise.
89979         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
89980         Likewise.
89981         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
89982         result.
89983         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
89984         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
89985         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
89986         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
89987         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
89988         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
89990 2008-05-11  Bruno Haible  <bruno@clisp.org>
89992         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
89994 2008-05-11  Bruno Haible  <bruno@clisp.org>
89996         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
89997         * modules/unilbrk/gen-lbrk: New file.
89999 2008-05-11  Bruno Haible  <bruno@clisp.org>
90001         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
90002         * m4/sha512.m4 (gl_SHA512): Likewise.
90004 2008-05-11  Jim Meyering  <meyering@redhat.com>
90006         New modules: crypto/sha256, crypto/sha512 (from coreutils)
90007         * modules/crypto/sha256: New file.
90008         * modules/crypto/sha512: Likewise.
90009         * lib/sha256.c: Likewise.
90010         * lib/sha256.h: Likewise.
90011         * lib/sha512.c: Likewise.
90012         * lib/sha512.h: Likewise.
90013         * lib/u64.h: Likewise.
90014         * m4/sha256.m4: Likewise.
90015         * m4/sha512.m4: Likewise.
90016         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
90018 2008-05-10  Bruno Haible  <bruno@clisp.org>
90020         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
90021         (Input/Output <stdio.h>): Add xprintf.
90022         (Signal handling <signal.h>): Add strsignal.
90023         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
90024         (Core language properties): Add func.
90025         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
90026         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
90027         strings.
90028         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
90029         (Input/output): New section.
90030         (File system functions): Add openat-die, stat-macros.
90031         (Networking functions): Add sockets.
90032         (Unicode string functions): Add unictype/*.
90033         (Support for building libraries and executables): Add gperf.
90034         (Support for building documentation): Add agpl-3.0.
90035         (Misc): Add nocrash.
90037 2008-05-10  Bruno Haible  <bruno@clisp.org>
90039         * modules/unictype/gen-ctype: New file.
90041 2008-05-10  Jim Meyering  <meyering@redhat.com>
90043         Make chdir-safer.c more efficient on a system with no symlinks.
90044         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
90045         also if ELOOP is zero.  Suggested by Bruno Haible.
90047         Make chdir-safer.c slightly safer.
90048         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
90049         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
90051         Avoid compile failure on systems without ELOOP (like mingw).
90052         * lib/chdir-safer.c (ELOOP): Define if not already defined.
90053         Reported by Bruno Haible.
90055 2008-05-10  Bruno Haible  <bruno@clisp.org>
90057         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
90058         (is_utf8_encoding): Use a case-insensitive comparison.
90059         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
90060         streq.
90062 2008-05-10  Bruno Haible  <bruno@clisp.org>
90064         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
90065         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
90066         * lib/unilbrk/ulc-common.h (iconv_string_length,
90067         iconv_string_keeping_offsets): Remove declarations.
90068         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
90069         Don't include <iconv.h>, streq.h, xsize.h.
90070         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
90071         conversion.
90072         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
90073         <iconv.h>, streq.h, xsize.h.
90074         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
90075         conversion.
90076         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
90077         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
90078         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
90079         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
90081 2008-05-10  Bruno Haible  <bruno@clisp.org>
90083         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
90084         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
90086         * modules/unilbrk/u32-width-linebreaks-tests: New file.
90087         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
90089         * modules/unilbrk/u16-width-linebreaks-tests: New file.
90090         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
90092         * modules/unilbrk/u8-width-linebreaks-tests: New file.
90093         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
90095         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
90096         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
90098         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
90099         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
90101         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
90102         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
90104         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
90105         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
90107 2008-05-10  Bruno Haible  <bruno@clisp.org>
90109         Split up 'linebreak' module.
90110         * lib/unilbrk.h: New file, based on lib/linebreak.h.
90111         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
90112         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
90113         modifications.
90114         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
90115         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
90116         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
90117         lib/linebreak.c.
90118         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
90119         lib/linebreak.c.
90120         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
90121         lib/linebreak.c.
90122         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
90123         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
90124         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
90125         lib/linebreak.c.
90126         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
90127         lib/linebreak.c.
90128         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
90129         lib/linebreak.c.
90130         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
90131         lib/linebreak.c.
90132         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
90133         lib/linebreak.c.
90134         * modules/unilbrk/base: New file.
90135         * modules/unilbrk/tables: New file.
90136         * modules/unilbrk/u8-possible-linebreaks: New file.
90137         * modules/unilbrk/u16-possible-linebreaks: New file.
90138         * modules/unilbrk/u32-possible-linebreaks: New file.
90139         * modules/unilbrk/ulc-common: New file.
90140         * modules/unilbrk/ulc-possible-linebreaks: New file.
90141         * modules/unilbrk/u8-width-linebreaks: New file.
90142         * modules/unilbrk/u16-width-linebreaks: New file.
90143         * modules/unilbrk/u32-width-linebreaks: New file.
90144         * modules/unilbrk/ulc-width-linebreaks: New file.
90145         * lib/linebreak.h: Remove file.
90146         * lib/linebreak.c: Remove file.
90147         * m4/linebreak.m4: Remove file.
90148         * modules/linebreak: Remove file.
90149         * NEWS: Mention the changes.
90151 2008-05-09  Eric Blake  <ebb9@byu.net>
90153         Add xmemdup0.
90154         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
90155         implementation.
90156         * lib/xmalloc.c (xmemdup0): New C implementation.
90158 2008-05-08  Bruno Haible  <bruno@clisp.org>
90160         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
90162 2008-05-07  Eric Blake  <ebb9@byu.net>
90164         Support cross-compilation of <wctype.h>.
90165         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
90166         AC_CACHE_CHECK.
90168 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
90170         * build-aux/vc-list-files: Add support for bzr.
90172 2008-05-03  Jim Meyering  <meyering@redhat.com>
90174         avoid failed assertion with tight malloc
90175         * tests/test-getndelim2.c: Correct an off-by-one assertion.
90177 2008-05-03  Simon Josefsson  <simon@josefsson.org>
90179         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
90180         are needed from arpa/inet.h.
90181         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
90182         Reported by Bruno Haible.
90184 2008-05-02  Jim Meyering  <meyering@redhat.com>
90186         avoid compilation error on FreeBSD 6
90187         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
90189 2008-05-01  Jim Meyering  <meyering@redhat.com>
90191         useless-if-before-free: correct --help's exit status description
90192         * build-aux/useless-if-before-free (usage): Like grep, exit 0
90193         for one or more matches, etc.  Reported by Bruno Haible.
90195         vc-list-files: make the stand-alone gnulib test work
90196         * modules/vc-list-files-tests (configure.ac):
90197         Define and AC_SUBST abs_aux_dir.
90198         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
90199         $(abs_top_srcdir) to each script and having each of them
90200         duplicate the work of setting PATH, set PATH here, using
90201         the new variable, abs_aux_dir instead.
90202         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
90203         * tests/test-vc-list-files-git.sh: Likewise.
90204         Reported by Bruno Haible.
90206 2008-05-01  Bruno Haible  <bruno@clisp.org>
90208         * lib/getndelim2.c (getndelim2): Fix newsize computation during
90209         reallocation. Rename 'done' to 'found_delimiter'.
90211 2008-05-01  Jim Meyering  <meyering@redhat.com>
90213         vc-list-files: accommodate /bin/sh like the one from Solaris 10
90214         * build-aux/vc-list-files: Use `...`, not $(...).
90216 2008-04-30  Jim Meyering  <meyering@redhat.com>
90218         add tests for vc-list-files
90219         * modules/vc-list-files-tests: New module.
90220         * tests/test-vc-list-files-cvs.sh: New file.
90221         * tests/test-vc-list-files-git.sh: New file.
90223         avoid a warning from gcc
90224         * lib/getndelim2.c (IF_LINT): Define.
90225         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
90227         vc-list-files: work properly with build-aux/cvsu, too
90228         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
90229         to all cvs-based clauses.
90231         vc-list-files: work properly in the CVS+awk case, too
90232         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
90234         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
90235         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
90236         take more than one file argument, so .  Add quotes, just in case $dir
90237         ever contains a shell meta-character.  Prompted by Soren Hansen in
90238         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
90240 2008-04-29  Eric Blake  <ebb9@byu.net>
90242         Optimize getndelim2 to use block operations when possible.
90243         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
90244         freadseek, and memchr2.
90245         * lib/getndelim2.c (getndelim2): Use them for block reads.
90247 2008-04-29  Bruno Haible  <bruno@clisp.org>
90249         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
90250         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90251         * modules/inet_ntop (Depends-on): Add extensions.
90252         * modules/inet_pton (Depends-on): Likewise.
90253         Reported by Simon Josefsson.
90255 2008-04-29  Jim Meyering  <meyering@redhat.com>
90257         When the is more than one match in a block, match all of them.
90258         * build-aux/useless-if-before-free: Iterate through each block
90259         until there are no more matches.
90261         Fix broken useless-if-before-free script.
90262         * build-aux/useless-if-before-free: Fix typo: missing "?" after
90263         the expression to match cast of argument to free-like function.
90265 2008-04-29  Eric Blake  <ebb9@byu.net>
90267         Use new header.
90268         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
90270 2008-04-29  Jim Meyering  <meyering@redhat.com>
90272         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
90273         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
90274         by gnulib to exist and to declare e.g., inet_ntop.
90275         Don't include "inet_ntop.h", now removed.
90277         * m4/arpa_inet_h.m4: Remove trailing blanks.
90279 2008-04-29  Eric Blake  <ebb9@byu.net>
90281         Silence valgrind on safe reads beyond potential array bounds.
90282         * lib/rawmemchr.valgrind: New file.
90283         * lib/strchrnul.valgrind: Likewise.
90284         * modules/rawmemchr (Files): Distribute new file.
90285         * modules/strchrnul (Files): Likewise.
90286         Suggested by Bruno Haible.
90288 2008-04-29  Bruno Haible  <bruno@clisp.org>
90290         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
90291         (inet_ntop, inet_pton): Change portability warning's wording.
90292         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
90293         Invoke gl_CHECK_NEXT_HEADERS.
90294         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
90295         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
90296         set ARPA_INET_H.
90297         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90298         * modules/arpa_inet (Description): No longer only for systems that
90299         lack it.
90300         (Depends-on): Add include_next.
90301         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
90302         HAVE_ARPA_INET_H.
90304 2008-04-29  Jim Meyering  <meyering@redhat.com>
90306         * modules/mkdir (License): Re-license as LGPLv2+.
90308 2008-04-29  Bruno Haible  <bruno@clisp.org>
90310         * modules/rawmemchr (Maintainer): Set to Eric.
90311         * modules/strchrnul (Maintainer): Likewise.
90313 2008-04-29  Simon Josefsson  <simon@josefsson.org>
90315         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
90316         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
90318         * modules/arpa_inet (arpa/inet.h): Use them.
90320 2008-04-28  Eric Blake  <ebb9@byu.net>
90322         Test getndelim2.
90323         * modules/getndelim2-tests: New file.
90324         * tests/test-getndelim2.c: Likewise.
90325         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
90326         stream.
90327         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
90329         * MODULES.html.sh: Document new module.
90331 2008-04-20  Bruno Haible  <bruno@clisp.org>
90333         * lib/c-stack.c (die): Use raise.
90334         * modules/c-stack (Depends-on): Add raise.
90336 2008-04-28  Bruno Haible  <bruno@clisp.org>
90338         Expect rpmatch to be declared.
90339         * lib/yesno.c (rpmatch): Remove declaration.
90341         Declare rpmatch.
90342         * lib/stdlib.in.h (rpmatch): New declaration.
90343         * lib/rpmatch.c: Include <stdlib.h> first.
90344         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
90345         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
90346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
90347         HAVE_RPMATCH.
90348         * modules/rpmatch (Depends-on): Add stdlib, extensions.
90349         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90350         (Include): Set to <stdlib.h>.
90351         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
90352         HAVE_RPMATCH.
90353         * NEWS: Document the change.
90355 2008-04-28  Bruno Haible  <bruno@clisp.org>
90357         Change rpmatch to use nl_langinfo when appropriate.
90358         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
90359         (N_): New macro.
90360         (localized_pattern): New function/macro.
90361         (try): Remove match, nomatch arguments. Copy the pattern into safe
90362         memory before caching it.
90363         (rpmatch): Use localized_pattern. Add translator comments.
90364         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
90365         Suggested by Eric Blake.
90366         * modules/rpmatch (Depends-on): Add stdbool.
90368 2008-04-28  Eric Blake  <ebb9@byu.net>
90370         Add rawmemchr module, matching glibc.
90371         * modules/string (Makefile.am): New indicator.
90372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
90373         * lib/string.in.h (rawmemchr): Declare when appropriate.
90374         * modules/rawmemchr: New file.
90375         * m4/rawmemchr.m4: Likewise.
90376         * lib/rawmemchr.c: Likewise.
90377         * modules/rawmemchr-tests: Likewise.
90378         * tests/test-rawmemchr.c: Likewise.
90379         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
90380         module.
90381         * modules/strchrnul (Depends-on): Add rawmemchr.
90382         * lib/strchrnul.c (strchrnul): Optimize a corner case.
90384         Whitespace cleanup.
90385         * tests/test-strchrnul.c: Reindent.
90386         * lib/strchrnul.c: Likewise.
90388         Optimize and test strchrnul.
90389         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
90390         * modules/strchrnul-tests: New file.
90391         * tests/test-strchrnul.c: Likewise.
90393         Remove intprops dependency.
90394         * modules/memchr (Depends-on): Remove intprops.
90395         * modules/memrchr (Depends-on): Likewise.
90396         * modules/memchr2 (Depends-on): Likewise.
90397         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
90398         * lib/memrchr.c (__memrchr): Likewise.
90399         * lib/memrchr2.c (memchr2): Likewise.
90400         Reported by Simon Josefsson.
90402 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90404         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
90405         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90407 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90409         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
90411         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
90413         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
90415         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
90416         declarations.
90417         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
90419         * m4/inet_pton.m4: Don't check for header files.
90421         * m4/inet_ntop.m4: Don't check for header files.
90423 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90425         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
90426         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
90427         trigger for cygwin).
90428         Reported by Bruno Haible  <bruno@clisp.org>.
90430 2008-04-28  Bruno Haible  <bruno@clisp.org>
90432         * doc/posix-functions/strdup.texi: Mention mingw problem.
90434 2008-04-27  Bruno Haible  <bruno@clisp.org>
90436         * modules/stat-time-tests (Depends-on): Add sleep.
90437         * tests/test-stat-time.c (force_unlink): New function.
90438         (cleanup): Use it.
90439         (test_mtime): Remove the ctime related tests.
90440         (test_ctime): New function, containing the ctime related tests.
90441         (main): Call test_ctime, except on native Windows platforms.
90443 2008-04-27  Bruno Haible  <bruno@clisp.org>
90445         * lib/rpmatch.c (rpmatch): Add some comments.
90446         Reported by James Youngman <jay@gnu.org>.
90448 2008-04-27  Bruno Haible  <bruno@clisp.org>
90450         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
90451         quiet NaNs.
90453 2008-04-27  Bruno Haible  <bruno@clisp.org>
90455         Make test-yesno.sh work on mingw.
90456         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
90457         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
90458         (main): Set stdin to binary mode.
90459         * modules/yesno-tests (Depends-on): Add binary-io.
90461 2008-04-27  Bruno Haible  <bruno@clisp.org>
90463         Fix 'isfinite' on x86, x86_64, ia64 platforms.
90464         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
90465         argument that lie outside the IEEE 854 domain.
90466         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
90467         (gl_ISFINITE): Use it.
90468         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
90470 2008-04-27  Bruno Haible  <bruno@clisp.org>
90472         Allow local renaming in config.h.
90473         * lib/memrchr.c (memrchr): Don't undefine outside libc.
90475 2008-04-27  Bruno Haible  <bruno@clisp.org>
90477         * lib/memchr.c (__memchr): Change type of 'i'.
90478         * lib/memchr2.c (memchr2): Likewise.
90480 2008-04-26  Eric Blake  <ebb9@byu.net>
90481         and Bruno Haible  <bruno@clisp.org>
90483         Optimize and test memrchr.
90484         * modules/memrchr (Depends-on): Add intprops.
90485         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
90486         * modules/memrchr-tests: New file.
90487         * tests/test-memrchr.c: New file.
90489 2008-04-26  Bruno Haible  <bruno@clisp.org>
90491         Add tentative support for DragonFly BSD.
90492         * lib/stdio-impl.h: Add macros for DragonFly BSD.
90493         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
90494         fp.
90495         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
90496         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
90497         * lib/fpurge.c (fpurge): Likewise.
90498         * lib/freadable.c (freaadable): Likewise.
90499         * lib/freadahead.c (freadahead): Likewise.
90500         * lib/freading.c (freading): Likewise.
90501         * lib/freadptr.c (freadptr): Likewise.
90502         * lib/freadseek.c (freadptrinc): Likewise.
90503         * lib/fseeko.c (fseeko): Likewise.
90504         * lib/fseterr.c (fseterr): Likewise.
90505         * lib/fwritable.c (fwritable): Likewise.
90506         * lib/fwriting.c (fwriting): Likewise.
90508 2008-04-26  Bruno Haible  <bruno@clisp.org>
90510         * lib/stdio-impl.h: New file.
90511         * lib/fbufmode.c: Include stdio-impl.h.
90512         (fbufmode): Use fp_, remove redundant #defines.
90513         * lib/fflush.c: Include stdio-impl.h.
90514         (clear_ungetc_buffer): Remove redundant #defines.
90515         * lib/fpurge.c: Include stdio-impl.h.
90516         (fpurge): Remove redundant #defines.
90517         * lib/freadable.c: Include stdio-impl.h.
90518         (freadable): Remove redundant #defines.
90519         * lib/freadahead.c: Include stdio-impl.h.
90520         (freadahead): Remove redundant #defines.
90521         * lib/freading.c: Include stdio-impl.h.
90522         (freading): Remove redundant #defines.
90523         * lib/freadptr.c: Include stdio-impl.h.
90524         (freadptr): Remove redundant #defines.
90525         * lib/freadseek.c: Include stdio-impl.h.
90526         (freadptrinc): Remove redundant #defines.
90527         * lib/fseeko.c: Include stdio-impl.h.
90528         (rpl_fseeko): Remove redundant #defines.
90529         * lib/fseterr.c: Include stdio-impl.h.
90530         (fseterr): Remove redundant #defines.
90531         * lib/fwritable.c: Include stdio-impl.h.
90532         (fwritable: Remove redundant #defines.
90533         * lib/fwriting.c: Include stdio-impl.h.
90534         (fwriting): Remove redundant #defines.
90535         * modules/fbufmode (Files): Add lib/stdio-impl.h.
90536         * modules/fflush (Files): Likewise.
90537         * modules/fpurge (Files): Likewise.
90538         * modules/freadable (Files): Likewise.
90539         * modules/freadahead (Files): Likewise.
90540         * modules/freading (Files): Likewise.
90541         * modules/freadptr (Files): Likewise.
90542         * modules/freadseek (Files): Likewise.
90543         * modules/fseeko (Files): Likewise.
90544         * modules/fseterr (Files): Likewise.
90545         * modules/fwritable (Files): Likewise.
90546         * modules/fwriting (Files): Likewise.
90548 2008-04-26  Bruno Haible  <bruno@clisp.org>
90550         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
90551         restore_seek_optimization, update_fpos_cache): New functions, extracted
90552         from rpl_fflush.
90553         (rpl_fflush): Use them.
90554         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
90555         (gl_REPLACE_FFLUSH): Use it.
90557 2008-04-26  Bruno Haible  <bruno@clisp.org>
90559         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
90560         on Solaris.
90561         * tests/test-xstrtoimax.sh: Likewise.
90562         * tests/test-xstrtoumax.sh: Likewise.
90563         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90565 2008-04-26  Bruno Haible  <bruno@clisp.org>
90567         * modules/memchr-tests: New file.
90568         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
90570 2008-04-26  Eric Blake  <ebb9@byu.net>
90571             Bruno Haible  <bruno@clisp.org>
90573         * lib/memchr.c: Include intprops.h.
90574         (__memchr): Optimize parallel detection of matching bytes. Rename local
90575         variables. Add explanatory comments.
90577 2008-04-26  Bruno Haible  <bruno@clisp.org>
90579         Fix module 'memchr', broken since 2000-10-28.
90580         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
90582 2008-04-26  Bruno Haible  <bruno@clisp.org>
90584         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
90585         comments.
90587 2008-04-25  Eric Blake  <ebb9@byu.net>
90589         Use native fstatat on cygwin 1.7.0.
90590         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
90591         first.
90593 2008-04-23  Eric Blake  <ebb9@byu.net>
90595         Improve memchr2 performance.
90596         * lib/memchr2.c (memchr2): Further optimize parallel detection of
90597         NUL bytes.
90598         * modules/memchr2 (Depends-on): Use intprops.h.
90600 2008-04-23  Simon Josefsson  <simon@josefsson.org>
90602         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
90603         an inline function instead of a CPP macro.  Patch by Ben Pfaff
90604         <blp@cs.stanford.edu>.
90606 2008-04-23  Simon Josefsson  <simon@josefsson.org>
90608         * lib/arpa_inet.in.h: New file.
90610         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
90611         (Makefile.am): Sed in substitute header file.
90613         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
90614         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
90616         * modules/inet_ntop (configure.ac): Use
90617         gl_ARPA_INET_MODULE_INDICATOR.
90619         * modules/inet_pton (configure.ac): Use
90620         gl_ARPA_INET_MODULE_INDICATOR.
90622 2008-04-22  Jim Meyering  <meyering@redhat.com>
90624         * modules/verify (License): Re-license as LGPLv2+.
90626 2008-04-22  Simon Josefsson  <simon@josefsson.org>
90628         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
90629         parameter to void* as per POSIX standard (MinGW uses char*).
90631 2008-04-21  Bruno Haible  <bruno@clisp.org>
90633         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
90634         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
90635         Define to replacements if REPLACE_ISWCNTRL is 1.
90636         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
90637         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
90638         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
90639         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
90640         what it fixes.
90641         * doc/posix-functions/iswalpha.texi: Likewise.
90642         * doc/posix-functions/iswblank.texi: Likewise.
90643         * doc/posix-functions/iswcntrl.texi: Likewise.
90644         * doc/posix-functions/iswdigit.texi: Likewise.
90645         * doc/posix-functions/iswgraph.texi: Likewise.
90646         * doc/posix-functions/iswlower.texi: Likewise.
90647         * doc/posix-functions/iswprint.texi: Likewise.
90648         * doc/posix-functions/iswpunct.texi: Likewise.
90649         * doc/posix-functions/iswspace.texi: Likewise.
90650         * doc/posix-functions/iswupper.texi: Likewise.
90651         * doc/posix-functions/iswxdigit.texi: Likewise.
90652         Reported by Alain Guibert.
90654 2008-04-21  Bruno Haible  <bruno@clisp.org>
90656         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
90657         Patch by Alain Guibert.
90659 2008-04-21  Bruno Haible  <bruno@clisp.org>
90661         Fix test failures on mingw.
90662         * tests/test-xstrtol.c (print_no_progname): New function.
90663         (main): Install it in error_print_progname hook.
90664         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
90665         * tests/test-xstrtoimax.sh: Likewise.
90666         * tests/test-xstrtoumax.sh: Likewise.
90668 2008-04-21  Bruno Haible  <bruno@clisp.org>
90670         Fix test failure on mingw.
90671         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
90673 2008-04-21  Bruno Haible  <bruno@clisp.org>
90675         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
90676         Actually assign a value.
90678 2008-04-20  Bruno Haible  <bruno@clisp.org>
90680         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
90681         take 2.
90682         * lib/canonicalize.c (canonicalize_file_name): Elide if the
90683         'canonicalize-lgpl' module is also used.
90684         * lib/canonicalize-lgpl.c: Undo last change.
90685         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
90687 2008-04-20  Bruno Haible  <bruno@clisp.org>
90689         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
90690         config.h. Provide _mkdir based fallback for mingw.
90691         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
90692         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
90693         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
90694         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
90695         rather than defining mkdir in config.h.
90696         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
90697         (gl_SYS_STAT_H_DEFAULTS): New macro.
90698         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
90699         HAVE_IO_H any more.
90700         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
90701         HAVE_DECL_MKDIR and HAVE_IO_H.
90703 2008-04-20  Bruno Haible  <bruno@clisp.org>
90705         * lib/isapipe.c: Port to native Windows platforms.
90707 2008-04-20  Bruno Haible  <bruno@clisp.org>
90709         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
90711 2008-04-21  Eric Blake  <ebb9@byu.net>
90713         Work around preprocessors that don't handle UINTMAX_MAX.
90714         * lib/memchr2.c (memchr2): Avoid embedded #if.
90715         Reported by Alain Guibert, fix suggested by Bruno Haible.
90717 2008-04-21  Simon Josefsson  <simon@josefsson.org>
90719         * doc/posix-functions/strftime.texi (strftime): Explain better
90720         Windows incompatibility.  Suggested by Micah Cowan
90721         <micah@cowan.name>.
90723 2008-04-20  Bruno Haible  <bruno@clisp.org>
90725         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
90726         unistr/u8-mblen.
90728 2008-04-20  Bruno Haible  <bruno@clisp.org>
90730         Fix test failure on platforms with non-GNU iconv.
90731         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
90732         (U_TO_U8): Use it, rather than u16_to_u8.
90733         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
90734         units at the end of the input string.
90735         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
90737 2008-04-20  Bruno Haible  <bruno@clisp.org>
90739         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
90740         when the resulting length is 0.
90741         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
90743 2008-04-20  Bruno Haible  <bruno@clisp.org>
90745         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
90746         works.
90747         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
90749 2008-04-20  Bruno Haible  <bruno@clisp.org>
90751         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
90752         * modules/tsearch-tests (configure.ac): Test for initstate function.
90754 2008-04-20  Bruno Haible  <bruno@clisp.org>
90756         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
90757         for nlink_t if missing.
90758         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
90760 2008-04-19  Bruno Haible  <bruno@clisp.org>
90762         Work around snprintf bug on Linux libc5.
90763         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
90764         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
90765         gl_SNPRINTF_SIZE1.
90766         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
90767         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
90768         that test failed.
90769         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
90770         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
90771         * modules/snprintf (Files): Add m4/printf.m4.
90772         * modules/vsnprintf (Files): Likewise.
90773         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
90774         * doc/posix-functions/vsnprintf.texi: Likewise.
90776 2008-04-19  Bruno Haible  <bruno@clisp.org>
90778         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
90779         from 0.0058 to less than 10^-7.
90781 2008-04-19  Bruno Haible  <bruno@clisp.org>
90783         Fix rounding when a precision is given.
90784         * lib/vasnprintf.c (is_borderline): New function.
90785         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
90786         9...9x.
90787         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
90788         %e, %g.
90789         * tests/test-vasprintf-posix.c (test_function): Likewise.
90790         * tests/test-snprintf-posix.h (test_function): Likewise.
90791         * tests/test-sprintf-posix.h (test_function): Likewise.
90792         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
90793         * tests/test-printf-posix.h (test_function): Likewise.
90794         * tests/test-printf-posix.output: Update.
90795         Reported by John Darrington <john@darrington.wattle.id.au> via
90796         Ben Pfaff <blp@cs.stanford.edu>.
90798 2008-04-18  Simon Josefsson  <simon@josefsson.org>
90800         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
90801         Suggested by Bruno Haible <bruno@clisp.org>.
90803 2008-04-17  Bruno Haible  <bruno@clisp.org>
90805         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
90806         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
90807         implementation.
90808         Patch by Bruce Merry <bmerry@gmail.com>.
90810 2008-04-17  Simon Josefsson  <simon@josefsson.org>
90812         * doc/posix-functions/strftime.texi (strftime): Mention that %e
90813         doesn't work under Windows.
90815 2008-04-16  Bruno Haible  <bruno@clisp.org>
90817         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
90818         New macros.
90819         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
90820         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
90821         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
90822         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
90823         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
90824         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
90825         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
90826         macros.
90827         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
90828         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
90829         Northern Sotho, Uighur.
90831 2008-04-16  Bruno Haible  <bruno@clisp.org>
90833         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
90834         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
90835         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
90836         Reported by Daniel Bergström <daniel@octocode.com>.
90838 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
90839             Bruno Haible  <bruno@clisp.org>
90841         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
90842         function.
90843         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
90844         New functions, mostly extracted from gl_locale_name_default.
90845         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
90847 2008-04-16  Eric Blake  <ebb9@byu.net>
90849         Adjust strtod detection to catch glibc 2.7 bug.
90850         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
90851         Reported by John Gatewood Ham.
90853 2008-04-16  Bruno Haible  <bruno@clisp.org>
90855         Add tentative support for Linux libc5.
90856         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
90857         * lib/fpurge.c (fpurge): Likewise.
90858         * lib/freadable.c (freadable): Likewise.
90859         * lib/freadahead.c (freadahead): Likewise.
90860         * lib/freading.c (freading): Likewise.
90861         * lib/freadptr.c (freadptr): Likewise.
90862         * lib/freadseek.c (freadptrinc): Likewise.
90863         * lib/fseeko.c (rpl_fseeko): Likewise.
90864         * lib/fseterr.c (fseterr): Likewise.
90865         * lib/fwritable.c (fwritable): Likewise.
90866         * lib/fwriting.c (fwriting): Likewise.
90867         Reported by Alain Guibert <alguibert+bts@free.fr>.
90869 2008-04-15  Bruno Haible  <bruno@clisp.org>
90871         * modules/mathl (configure.ac): Define module indicator.
90873 2008-04-15  Bruno Haible  <bruno@clisp.org>
90875         * lib/logl.c (logl): Remove unused variables.
90877 2008-04-15  Bruno Haible  <bruno@clisp.org>
90879         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
90880         fails.
90882 2008-04-15  Bruno Haible  <bruno@clisp.org>
90884         * lib/trim.c (trim2): Fix argument of isspace() macro.
90886 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
90888         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
90889         to 0.
90890         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
90892 2008-04-14  Bruno Haible  <bruno@clisp.org>
90894         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
90895         AC_LANG_PROGRAM argument.
90896         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
90897         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
90898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
90899         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
90900         * m4/math_h.m4 (gl_MATH_H): Likewise.
90901         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
90902         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
90903         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
90904         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
90905         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
90906         * m4/regex.m4 (gl_REGEX): Likewise.
90907         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
90908         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
90909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90910         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
90911         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
90912         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90913         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
90914         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
90916 2008-04-14  Jim Meyering  <meyering@redhat.com>
90918         test-strtod: fix typos: s/abs/fabs/
90919         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
90921 2008-04-13  Bruno Haible  <bruno@clisp.org>
90923         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
90924         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
90925         module is also used and while not building the reloc-wrapper.
90927 2008-04-13  Bruno Haible  <bruno@clisp.org>
90929         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
90931 2008-04-13  Bruno Haible  <bruno@clisp.org>
90933         Fix AIX compilation failure introduced on 2008-04-02.
90934         * tests/test-frexp.c (exp): Undefine before redefining.
90935         * tests/test-frexpl.c (exp): Likewise.
90937 2008-04-13  Bruno Haible  <bruno@clisp.org>
90939         Work around a HP-UX stdio bug.
90940         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
90941         * tests/test-ftello.c (main): Likewise.
90942         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
90943         * doc/posix-functions/ftello.texi: Likewise.
90945 2008-04-13  Bruno Haible  <bruno@clisp.org>
90947         Make test-signbit pass on HP-UX/hppa.
90948         * tests/test-signbit.c (minus_zerol): New variable.
90949         (test_signbitl): Use it.
90951 2008-04-13  Bruno Haible  <bruno@clisp.org>
90953         Make truncl work on OSF/1 4.0.
90954         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
90955         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
90956         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
90957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
90958         HAVE_DECL_TRUNCL.
90959         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
90960         HAVE_DECL_TRUNCL.
90961         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
90963 2008-04-13  Bruno Haible  <bruno@clisp.org>
90965         * lib/unictype.h: Remove trailing comma from enumeration definitions.
90967 2008-04-13  Bruno Haible  <bruno@clisp.org>
90969         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
90970         expression, so as to avoid HP-UX 11 cc compiler bug.
90972 2008-04-13  Bruno Haible  <bruno@clisp.org>
90974         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
90976 2008-04-13  Bruno Haible  <bruno@clisp.org>
90978         * lib/git-merge-changelog.c: Remove empty declaration outside of
90979         functions.
90981 2008-04-13  Bruno Haible  <bruno@clisp.org>
90983         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
90985 2008-04-13  Bruno Haible  <bruno@clisp.org>
90987         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
90988         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
90989         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
90990         also if it exists but lacks definitions of the SHUT_* macros.
90991         * modules/sys_socket (Description): Update.
90992         Reported by Elbert Pol <e.pol@chello.nl>.
90994 2008-04-13  Bruno Haible  <bruno@clisp.org>
90996         * lib/localcharset.c (OS2): Don't redefine if already defined.
90997         Reported by Elbert Pol <e.pol@chello.nl>.
90999 2008-04-13  Bruno Haible  <bruno@clisp.org>
91001         * lib/binary-io.h [__EMX__]: Include <io.h>.
91002         Reported by Elbert Pol <e.pol@chello.nl>.
91004 2008-04-12  Bruno Haible  <bruno@clisp.org>
91006         * lib/fpucw.h: Enable the definitions also for x86_64.
91007         Needed for NetBSD/x86_64.
91008         Reported by Thomas Klausner <tk@giga.or.at>.
91010 2008-04-12  Bruno Haible  <bruno@clisp.org>
91012         * tests/test-strtod.c: Include isnand.h.
91013         (main): Use isnand instead of isnan.
91014         Reported by Jim Meyering.
91016 2008-04-12  Bruno Haible  <bruno@clisp.org>
91018         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
91019         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
91021 2008-04-12  Jim Meyering  <meyering@redhat.com>
91023         * m4/math_h.m4 (gl_MATH_H): Fix typos.
91025 2008-04-12  Bruno Haible  <bruno@clisp.org>
91027         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
91028         Reported by Elbert Pol <e.pol@chello.nl>.
91030 2008-04-12  Eric Blake  <ebb9@byu.net>
91032         Work around Solaris 10 math.h bug.
91033         * m4/math_h.m4 (gl_MATH_H): Check for bug.
91034         (gl_MATH_H_DEFAULTS): Set up default.
91035         * modules/math (Makefile.am): Replace new indicators.
91036         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
91037         * tests/test-math.c (main): Test this.
91038         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
91039         * doc/posix-headers/math.texi (math.h): Mention bug.
91040         Reported by Nelson H. F. Beebe and Jim Meyering.
91042 2008-04-11  Bruno Haible  <bruno@clisp.org>
91044         Adapt to future versions of Apple GCC.
91045         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
91046         Reported by Peter O'Gorman <peter@pogma.com>.
91048 2008-04-11  Bruno Haible  <bruno@clisp.org>
91050         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
91052 2008-04-11  Bruno Haible  <bruno@clisp.org>
91054         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
91056         * modules/getaddrinfo-tests (Makefile.am): Define
91057         test_getaddrinfo_LDADD.
91059 2008-04-11  Bruno Haible  <bruno@clisp.org>
91061         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
91062         (init): Fix syntax error.
91063         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
91064         is declared.
91066 2008-04-11  Bruno Haible  <bruno@clisp.org>
91068         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
91069         * modules/glob (Depends-on): Add stdbool.
91071 2008-04-11  Bruno Haible  <bruno@clisp.org>
91073         * lib/trim.c: Include <string.h>.
91075 2008-04-11  Eric Blake  <ebb9@byu.net>
91077         Avoid compile failure on OS/2.
91078         * lib/regex_internal.h (internal_function): Disable optimization
91079         on OS/2 (__EMX__), where it caused compiler error.
91080         Reported by Elbert Pol.
91082 2008-04-11  Bruno Haible  <bruno@clisp.org>
91084         Flush the standard error stream before aborting. Needed on mingw.
91085         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
91086         * tests/test-array_list.c (ASSERT): Likewise.
91087         * tests/test-array_oset.c (ASSERT): Likewise.
91088         * tests/test-avltree_list.c (ASSERT): Likewise.
91089         * tests/test-avltree_oset.c (ASSERT): Likewise.
91090         * tests/test-avltreehash_list.c (ASSERT): Likewise.
91091         * tests/test-binary-io.c (ASSERT): Likewise.
91092         * tests/test-byteswap.c (ASSERT): Likewise.
91093         * tests/test-c-ctype.c (ASSERT): Likewise.
91094         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
91095         * tests/test-c-strcasestr.c (ASSERT): Likewise.
91096         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
91097         * tests/test-c-strstr.c (ASSERT): Likewise.
91098         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
91099         * tests/test-canonicalize.c (ASSERT): Likewise.
91100         * tests/test-carray_list.c (ASSERT): Likewise.
91101         * tests/test-ceilf1.c (ASSERT): Likewise.
91102         * tests/test-ceilf2.c (ASSERT): Likewise.
91103         * tests/test-ceill.c (ASSERT): Likewise.
91104         * tests/test-count-one-bits.c (ASSERT): Likewise.
91105         * tests/test-fbufmode.c (ASSERT): Likewise.
91106         * tests/test-fflush2.c (ASSERT): Likewise.
91107         * tests/test-floorf1.c (ASSERT): Likewise.
91108         * tests/test-floorf2.c (ASSERT): Likewise.
91109         * tests/test-floorl.c (ASSERT): Likewise.
91110         * tests/test-fopen.c (ASSERT): Likewise.
91111         * tests/test-fpending.c (ASSERT): Likewise.
91112         * tests/test-fprintf-posix.c (ASSERT): Likewise.
91113         * tests/test-fpurge.c (ASSERT): Likewise.
91114         * tests/test-freadable.c (ASSERT): Likewise.
91115         * tests/test-freadahead.c (ASSERT): Likewise.
91116         * tests/test-freading.c (ASSERT): Likewise.
91117         * tests/test-freadptr.c (ASSERT): Likewise.
91118         * tests/test-freadptr2.c (ASSERT): Likewise.
91119         * tests/test-freadseek.c (ASSERT): Likewise.
91120         * tests/test-freopen.c (ASSERT): Likewise.
91121         * tests/test-frexp.c (ASSERT): Likewise.
91122         * tests/test-frexpl.c (ASSERT): Likewise.
91123         * tests/test-fseek.c (ASSERT): Likewise.
91124         * tests/test-fseeko.c (ASSERT): Likewise.
91125         * tests/test-fstrcmp.c (ASSERT): Likewise.
91126         * tests/test-ftell.c (ASSERT): Likewise.
91127         * tests/test-ftello.c (ASSERT): Likewise.
91128         * tests/test-func.c (ASSERT): Likewise.
91129         * tests/test-fwritable.c (ASSERT): Likewise.
91130         * tests/test-fwriting.c (ASSERT): Likewise.
91131         * tests/test-getdelim.c (ASSERT): Likewise.
91132         * tests/test-getline.c (ASSERT): Likewise.
91133         * tests/test-i-ring.c (ASSERT): Likewise.
91134         * tests/test-iconv-utf.c (ASSERT): Likewise.
91135         * tests/test-iconv.c (ASSERT): Likewise.
91136         * tests/test-isfinite.c (ASSERT): Likewise.
91137         * tests/test-isnand.c (ASSERT): Likewise.
91138         * tests/test-isnanf.c (ASSERT): Likewise.
91139         * tests/test-isnanl.h (ASSERT): Likewise.
91140         * tests/test-ldexpl.c (ASSERT): Likewise.
91141         * tests/test-linked_list.c (ASSERT): Likewise.
91142         * tests/test-linkedhash_list.c (ASSERT): Likewise.
91143         * tests/test-localename.c (ASSERT): Likewise.
91144         * tests/test-lseek.c (ASSERT): Likewise.
91145         * tests/test-mbscasecmp.c (ASSERT): Likewise.
91146         * tests/test-mbscasestr1.c (ASSERT): Likewise.
91147         * tests/test-mbscasestr2.c (ASSERT): Likewise.
91148         * tests/test-mbscasestr3.c (ASSERT): Likewise.
91149         * tests/test-mbscasestr4.c (ASSERT): Likewise.
91150         * tests/test-mbschr.c (ASSERT): Likewise.
91151         * tests/test-mbscspn.c (ASSERT): Likewise.
91152         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
91153         * tests/test-mbspbrk.c (ASSERT): Likewise.
91154         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
91155         * tests/test-mbsrchr.c (ASSERT): Likewise.
91156         * tests/test-mbsspn.c (ASSERT): Likewise.
91157         * tests/test-mbsstr1.c (ASSERT): Likewise.
91158         * tests/test-mbsstr2.c (ASSERT): Likewise.
91159         * tests/test-mbsstr3.c (ASSERT): Likewise.
91160         * tests/test-memchr2.c (ASSERT): Likewise.
91161         * tests/test-memmem.c (ASSERT): Likewise.
91162         * tests/test-open.c (ASSERT): Likewise.
91163         * tests/test-printf-frexp.c (ASSERT): Likewise.
91164         * tests/test-printf-frexpl.c (ASSERT): Likewise.
91165         * tests/test-printf-posix.c (ASSERT): Likewise.
91166         * tests/test-quotearg.c (ASSERT): Likewise.
91167         * tests/test-rbtree_list.c (ASSERT): Likewise.
91168         * tests/test-rbtree_oset.c (ASSERT): Likewise.
91169         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
91170         * tests/test-round1.c (ASSERT): Likewise.
91171         * tests/test-roundf1.c (ASSERT): Likewise.
91172         * tests/test-roundl.c (ASSERT): Likewise.
91173         * tests/test-signbit.c (ASSERT): Likewise.
91174         * tests/test-sleep.c (ASSERT): Likewise.
91175         * tests/test-snprintf-posix.c (ASSERT): Likewise.
91176         * tests/test-snprintf.c (ASSERT): Likewise.
91177         * tests/test-sprintf-posix.c (ASSERT): Likewise.
91178         * tests/test-stat-time.c (ASSERT): Likewise.
91179         * tests/test-strcasestr.c (ASSERT): Likewise.
91180         * tests/test-strerror.c (ASSERT): Likewise.
91181         * tests/test-striconv.c (ASSERT): Likewise.
91182         * tests/test-striconveh.c (ASSERT): Likewise.
91183         * tests/test-striconveha.c (ASSERT): Likewise.
91184         * tests/test-strsignal.c (ASSERT): Likewise.
91185         * tests/test-strstr.c (ASSERT): Likewise.
91186         * tests/test-strtod.c (ASSERT): Likewise.
91187         * tests/test-trunc1.c (ASSERT): Likewise.
91188         * tests/test-trunc2.c (ASSERT): Likewise.
91189         * tests/test-truncf1.c (ASSERT): Likewise.
91190         * tests/test-truncf2.c (ASSERT): Likewise.
91191         * tests/test-truncl.c (ASSERT): Likewise.
91192         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
91193         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
91194         * tests/test-vasnprintf.c (ASSERT): Likewise.
91195         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
91196         * tests/test-vasprintf.c (ASSERT): Likewise.
91197         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
91198         * tests/test-vprintf-posix.c (ASSERT): Likewise.
91199         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
91200         * tests/test-vsnprintf.c (ASSERT): Likewise.
91201         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
91202         * tests/test-wcwidth.c (ASSERT): Likewise.
91203         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
91204         * tests/test-xprintf-posix.c (ASSERT): Likewise.
91205         * tests/test-xvasprintf.c (ASSERT): Likewise.
91206         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
91207         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
91208         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
91209         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
91210         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
91211         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
91212         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
91213         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
91214         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
91215         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
91216         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
91217         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
91218         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
91219         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
91220         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
91221         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
91222         * tests/unictype/test-block_list.c (ASSERT): Likewise.
91223         * tests/unictype/test-block_of.c (ASSERT): Likewise.
91224         * tests/unictype/test-block_test.c (ASSERT): Likewise.
91225         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
91226         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
91227         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
91228         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
91229         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
91230         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
91231         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
91232         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
91233         * tests/unictype/test-combining.c (ASSERT): Likewise.
91234         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
91235         * tests/unictype/test-digit.c (ASSERT): Likewise.
91236         * tests/unictype/test-mirror.c (ASSERT): Likewise.
91237         * tests/unictype/test-numeric.c (ASSERT): Likewise.
91238         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
91239         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
91240         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
91241         * tests/unictype/test-scripts.c (ASSERT): Likewise.
91242         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
91243         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
91244         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
91245         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
91246         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
91247         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
91248         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
91249         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
91250         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
91251         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
91252         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
91253         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
91254         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
91255         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
91256         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
91257         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
91258         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
91259         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
91260         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
91261         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
91262         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
91263         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
91264         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
91265         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
91266         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
91267         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
91268         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
91269         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
91270         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
91271         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
91272         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
91273         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
91274         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
91275         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
91276         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
91277         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
91278         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
91279         Reported by Eric Blake.
91281 2008-04-11  Bruno Haible  <bruno@clisp.org>
91283         * lib/wchar.in.h: Tweak comment.
91285 2008-04-11  Bruno Haible  <bruno@clisp.org>
91287         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
91288         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
91289         gl_COMMON.
91290         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
91292 2008-04-11  Bruno Haible  <bruno@clisp.org>
91294         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
91296 2008-04-11  Simon Josefsson  <simon@josefsson.org>
91298         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
91299         of attempting to use non-existing /dev/*random.  Based on patch
91300         from Adam Strzelecki <ono@java.pl> in
91301         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
91303 2008-04-08  Bruno Haible  <bruno@clisp.org>
91305         Add tentative support for emx+gcc.
91306         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
91307         * lib/fpurge.c (fpurge): Likewise.
91308         * lib/freadable.c (freadable): Likewise.
91309         * lib/freadahead.c (freadahead): Likewise.
91310         * lib/freading.c (freading): Likewise.
91311         * lib/freadptr.c (freadptr): Likewise.
91312         * lib/freadseek.c (freadptrinc): Likewise.
91313         * lib/fseeko.c (rpl_fseeko): Likewise.
91314         * lib/fseterr.c (fseterr): Likewise.
91315         * lib/fwritable.c (fwritable): Likewise.
91316         * lib/fwriting.c (fwriting): Likewise.
91317         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
91319 2008-04-09  Eric Blake  <ebb9@byu.net>
91321         Avoid some autoconf warnings.
91322         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
91323         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
91324         * m4/afs.m4 (gl_AFS): Likewise.
91325         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
91326         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
91327         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
91328         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
91329         (gl_INTEGER_TYPE_SUFFIX): Likewise.
91330         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
91331         (AC_CHECK_DECLS_ONCE): Likewise.
91332         Rename file...
91333         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
91334         gnulib-tool requires autoconf 2.59 or better.
91335         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
91337 2008-04-08  Eric Blake  <ebb9@byu.net>
91339         Use 'git describe --match' if present (added in git 1.5.5).
91340         * build-aux/git-version-gen: Limit result to tags that match 'v*'
91341         if possible.
91343 2008-04-08  Bruno Haible  <bruno@clisp.org>
91345         Add tentative support for OpenServer.
91346         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
91347         _ptr, _cnt.
91348         * lib/fpurge.c (fpurge): Likewise.
91349         * lib/freadable.c (freadable): Likewise.
91350         * lib/freadahead.c (freadahead): Likewise.
91351         * lib/freading.c (freading): Likewise.
91352         * lib/freadptr.c (freadptr): Likewise.
91353         * lib/freadseek.c (freadptrinc): Likewise.
91354         * lib/fseeko.c (rpl_fseeko): Likewise.
91355         * lib/fseterr.c (fseterr): Likewise.
91356         * lib/fwritable.c (fwritable): Likewise.
91357         * lib/fwriting.c (fwriting): Likewise.
91358         Reported by Roger Cornelius <rac@tenzing.org> and
91359         Brian K. White <brian@aljex.com>.
91361 2008-04-06  Jim Meyering  <meyering@redhat.com>
91363         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
91365 2008-04-06  Bruno Haible  <bruno@clisp.org>
91367         Avoid possible error with non-ASCII bytes in UTF-8 locales.
91368         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
91369         * tests/test-printf-posix.sh: Likewise.
91370         * tests/test-vfprintf-posix.sh: Likewise.
91371         * tests/test-vprintf-posix.sh: Likewise.
91372         * tests/test-xprintf-posix.sh: Likewise.
91374 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91376         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
91377         hide error from 'ls', needed on OS/2.
91378         Report by Elbert Pol <elbert.pol@gmail.com>.
91380 2008-04-04  Eric Blake  <ebb9@byu.net>
91382         Make test-fseeko.c failures meaningful.
91383         * tests/test-fseeko.c: Print line number on failure.
91384         * tests/test-fseek.c: Likewise.
91385         Reported by Nelson H. F. Beebe.
91387         Improve strtod bug detection check.
91388         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
91389         required for Solaris 10.
91390         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
91392 2008-04-04  Bruno Haible  <bruno@clisp.org>
91394         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
91395         by m4/setenv.m4.
91397 2008-04-03  Eric Blake  <ebb9@byu.net>
91399         Ensure sane .version contents.
91400         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
91401         version string.
91402         * build-aux/git-version-gen: Improve documentation.
91404         Make GNU make output nicer.
91405         * top/GNUmakefile [!_have-Makefile]: Add dependency on
91406         MAKECMDGOALS to enforce message for all command line targets.  Set
91407         srcdir for use in maint.mk.
91409         Another maintainer tweak.
91410         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
91411         a target that regenerates version.
91413 2008-04-03  Jim Meyering  <meyering@redhat.com>
91415         vc-list-files: don't cause coreutils "make po-check" failure
91416         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
91418 2008-04-03  Eric Blake  <ebb9@byu.net>
91420         Allow VPATH usage of vc-list-files.
91421         * build-aux/vc-list-files (scriptversion): Add timestamp.
91422         (options): Add --help, --version, -C.
91423         (CVS): Support installed cvsu.
91425 2008-04-02  Bruno Haible  <bruno@clisp.org>
91427         Avoid some "statement with no effect" warnings from gcc.
91428         * tests/test-wctype.c (main): Explicitly ignore unused values.
91429         Reported by Jim Meyering.
91431 2008-04-02  Jim Meyering  <meyering@redhat.com>
91433         Avoid some warnings from "gcc -Wshadow".
91434         * tests/test-frexp.c (exp): Define to a different identifier.
91435         * tests/test-frexpl.c (exp): Likewise.
91437 2008-04-03  Jim Meyering  <meyering@redhat.com>
91439         bootstrap: remove dangling *.[ch] symlinks from lib
91440         * build-aux/bootstrap [dangling symlink removal]: Move find's
91441         -depth option to precede all others, to avoid a warning.
91442         Remove *.[ch] files too, and from "$source_base" (usually lib/).
91444 2008-04-02  Bruno Haible  <bruno@clisp.org>
91446         Avoid some warnings from "gcc -Wshadow".
91447         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
91448         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
91449         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
91450         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
91451         Reported by Jim Meyering.
91453 2008-04-01  Bruno Haible  <bruno@clisp.org>
91455         Fix test to work on IRIX 6.5 with cc.
91456         * tests/test-math.c (numeric_equal): New function.
91457         (main): Use it.
91459 2008-04-01  Bruno Haible  <bruno@clisp.org>
91461         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
91463 2008-04-01  Bruno Haible  <bruno@clisp.org>
91465         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
91466         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91467         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
91468         (Depends-on): Remove math.
91470         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
91471         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91472         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
91473         (Depends-on): Remove math.
91475         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
91476         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91477         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
91478         (Depends-on): Remove math.
91479         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
91480         (Depends-on): Remove math.
91482         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
91483         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91484         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
91485         (Depends-on): Remove math.
91486         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
91487         (Depends-on): Remove math.
91489         * tests/test-round1.c: Include nan.h.
91490         (main): Use NaNd instead of NAN.
91491         * modules/round-tests (Files): Add tests/nan.h.
91493         * tests/test-trunc1.c: Include nan.h.
91494         (main): Use NaNd instead of NAN.
91495         * modules/trunc-tests (Files): Add tests/nan.h.
91497         * tests/test-roundf1.c: Include nan.h.
91498         (main): Use NaNf instead of NAN.
91499         * modules/roundf-tests (Files): Add tests/nan.h.
91501         * tests/test-truncf1.c: Include nan.h.
91502         (main): Use NaNf instead of NAN.
91503         * modules/truncf-tests (Files): Add tests/nan.h.
91505         * tests/test-ceilf1.c: Include nan.h.
91506         (main): Use NaNf instead of NAN.
91507         * modules/ceilf-tests (Files): Add tests/nan.h.
91509         * tests/test-floorf1.c: Include nan.h.
91510         (main): Use NaNf instead of NAN.
91511         * modules/floorf-tests (Files): Add tests/nan.h.
91513         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
91514         (main): Use NaNf instead of NAN.
91515         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
91517         * tests/test-isnand.c: Include nan.h instead of <math.h>.
91518         (main): Use NaNd instead of NAN.
91519         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
91521         * tests/test-frexp.c: Include nan.h.
91522         (main): Use NaNd instead of NAN.
91523         * modules/frexp-tests (Files): Add tests/nan.h.
91525         * lib/isnan.c: Don't include <math.h>.
91526         (FUNC): Don't use NAN macro.
91527         * modules/isnand-nolibm (Depends-on): Remove math.
91528         * modules/isnanf-nolibm (Depends-on): Remove math.
91529         * modules/isnanl (Depends-on): Remove math.
91530         * modules/isnanl-nolibm (Depends-on): Remove math.
91532         * tests/nan.h: New file.
91534 2008-04-01  Eric Blake  <ebb9@byu.net>
91536         Fix typos.
91537         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
91538         values to be the right type.
91540         For now, cater to gnulib strtod inaccuracies.
91541         * tests/test-strtod.c (main): Allow 1-ulp error on expected
91542         fractional results.  While not as nice from a QoI perspective, it
91543         is a quicker patch than correctly implementing decimal to binary
91544         rounding.
91546 2008-03-31  Eric Blake  <ebb9@byu.net>
91548         Guarantee a definition of NAN.
91549         * lib/math.in.h (NAN): Define if missing.
91550         * tests/test-math.c (main): Test it.
91551         * doc/posix-headers/math.texi (math.h): Document this.
91552         * lib/isnan.c (rpl_isnand): Use it.
91553         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
91554         * tests/test-floorf1.c (NaN): Likewise.
91555         * tests/test-frexp.c (NaN): Likewise.
91556         * tests/test-isnand.c (NaN): Likewise.
91557         * tests/test-isnanf.c (NaN): Likewise.
91558         * tests/test-round1.c (NaN): Likewise.
91559         * tests/test-roundf1.c (NaN): Likewise.
91560         * tests/test-snprintf-posix.h (NaN): Likewise.
91561         * tests/test-sprintf-posix.h (NaN): Likewise.
91562         * tests/test-trunc1.c (NaN): Likewise.
91563         * tests/test-truncf1.c (NaN): Likewise.
91564         * tests/test-vasnprintf-posix.c (NaN): Likewise.
91565         * tests/test-vasprintf-posix.c (NaN): Likewise.
91566         * modules/isnand-nolibm (Depends-on): Add math.
91567         * modules/isnanf-nolibm (Depends-on): Likewise.
91568         * modules/isnanl (Depends-on): Likewise.
91569         * modules/isnanl-nolibm (Depends-on): Likewise.
91570         * modules/snprintf-posix-tests (Depends-on): Likewise.
91571         * modules/sprintf-posix-tests (Depends-on): Likewise.
91572         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
91573         * modules/vsprintf-posix-tests (Depends-on): Likewise.
91574         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
91575         * modules/vasprintf-posix-tests (Depends-on): Likewise.
91577 2008-03-31  Bruno Haible  <bruno@clisp.org>
91579         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
91580         * doc/posix-functions/strtod.texi: Likewise.
91582 2008-03-31  Bruno Haible  <bruno@clisp.org>
91584         * tests/test-strtod.c (main): Don't use C99 syntax.
91586 2008-03-31  Bruno Haible  <bruno@clisp.org>
91588         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
91589         Reported by Eric Blake.
91591 2008-03-31  Jim Meyering  <meyering@redhat.com>
91593         Don't compare actual signbit return values.
91594         * tests/test-strtod.c (main): Rather, compare only their
91595         zero/non-zero nature.
91597 2008-03-31  Eric Blake  <ebb9@byu.net>
91599         More strtod documentation.
91600         * doc/posix-functions/strtod.texi (strtod): Interpret more test
91601         failures as distinct bugs.
91603 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
91605         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
91606         Problem reported by Erik Benada in
91607         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
91609 2008-03-30  Bruno Haible  <bruno@clisp.org>
91611         * tests/test-strtod.c: Add comments about which assertion fails on which
91612         platform.
91613         * doc/posix-functions/strtod.texi: Add info about many more platforms.
91615 2008-03-30  Eric Blake  <ebb9@byu.net>
91617         Test signbit behavior on zeros.
91618         * tests/test-signbit.c (test_signbitf): Add tests for zero.
91619         (test_signbitd, test_signbitl): Likewise.
91621         More strtod touchups.
91622         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
91623         sign of negative underflow, for now.  Use .5, not .1.
91624         * doc/posix-functions/strtod.texi (strtod): Mention these
91625         limitations.
91626         Reported by Jim Meyering.
91628 2008-03-30  Bruno Haible  <bruno@clisp.org>
91630         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
91631         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
91633 2008-03-30  Bruno Haible  <bruno@clisp.org>
91635         Avoid failure when attempting to return empty iconv results on some
91636         platforms.
91637         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
91638         allocation, don't report ENOMEM when the resulting string is empty.
91640 2008-03-30  Bruno Haible  <bruno@clisp.org>
91642         Fix buffer overrun.
91643         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
91644         Don't consider the width for tmp_length. Check count against tmp_length
91645         before doing the padding. Ensure enough allocation during padding.
91647 2008-03-30  Eric Blake  <ebb9@byu.net>
91649         strtod touchups.
91650         * lib/strtod.c (strtod): Avoid compiler warnings.
91651         Reported by Jim Meyering.
91653 2008-03-30  Bruno Haible  <bruno@clisp.org>
91655         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
91656         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
91657         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
91658         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
91659         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
91660         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
91661         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
91662         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
91664         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
91665         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
91666         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
91667         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
91668         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
91669         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
91670         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
91671         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
91673         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
91674         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
91675         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
91676         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
91677         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
91678         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
91679         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
91680         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
91682         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
91683         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
91685         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
91686         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
91688         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
91689         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
91691         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
91692         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
91693         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
91695         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
91696         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
91697         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
91699         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
91700         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
91701         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
91703         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
91704         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
91705         * modules/vasprintf (Depends-on): Add EOVERFLOW.
91707         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
91708         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
91709         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
91710         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
91711         (Depends-on): Add EOVERFLOW.
91712         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
91713         (Depends-on): Add EOVERFLOW.
91714         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
91715         (Depends-on): Add EOVERFLOW.
91716         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
91717         (Depends-on): Add EOVERFLOW.
91718         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
91719         (Depends-on): Add EOVERFLOW.
91720         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
91721         (Depends-on): Add EOVERFLOW.
91722         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
91723         (Depends-on): Add EOVERFLOW.
91724         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
91725         (Depends-on): Add EOVERFLOW.
91727         * lib/sprintf.c (EOVERFLOW): Remove fallback.
91728         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
91729         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
91731         * lib/snprintf.c (EOVERFLOW): Remove fallback.
91732         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
91733         * modules/snprintf (Depends-on): Add EOVERFLOW.
91735         * lib/poll.c (EOVERFLOW): Remove fallback.
91736         * modules/poll (Depends-on): Add EOVERFLOW.
91738         * lib/getugroups.c (EOVERFLOW): Remove fallback.
91739         * modules/getugroups (Depends-on): Add EOVERFLOW.
91741         * lib/getdelim.c (EOVERFLOW): Remove fallback.
91742         * modules/getdelim (Depends-on): Add EOVERFLOW.
91744         * lib/ftell.c (EOVERFLOW): Remove fallback.
91745         * modules/ftell (Depends-on): Add EOVERFLOW.
91747         * lib/fprintf.c (EOVERFLOW): Remove fallback.
91748         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
91749         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
91751         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
91753         * modules/EOVERFLOW-tests: New file.
91754         * tests/test-EOVERFLOW.c: New file.
91756         * modules/EOVERFLOW: New file.
91757         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
91759 2008-03-30  Bruno Haible  <bruno@clisp.org>
91761         Fix bug introduced on 2007-06-10.
91762         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
91763         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
91765 2008-03-30  Bruno Haible  <bruno@clisp.org>
91767         Improve freadseek's efficiency after ungetc.
91768         * lib/freadseek.c: Include freadahead.h.
91769         (freadptrinc): New function, extracted from freadseek.
91770         (freadseek): Use it in a loop. Use freadahead to determine the number
91771         of loop iterations.
91772         * modules/freadseek (Depends-on): Add freadahead.
91773         (configure.ac): Require AC_C_INLINE.
91775 2008-03-30  Bruno Haible  <bruno@clisp.org>
91777         * lib/freadseek.c (freadseek): Don't ignore the return value of
91778         freadptr.
91780 2008-03-29  Eric Blake  <ebb9@byu.net>
91782         Add hex float support.
91783         * modules/strtod (Depends-on): Add c-ctype.
91784         (Link): Mention POW_LIB.
91785         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
91786         whitespace between 'e' and exponent.
91787         * tests/test-strtod.c (main): Enable hex float tests.
91788         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
91789         now provides.
91791         Document various strtod bugs, with some fixes.
91792         * doc/posix-functions/strtod.texi (strtod): Document bugs with
91793         "-0x", "inf", "nan", and hex constants.
91794         * doc/posix-functions/atof.texi (atof): Likewise.
91795         * modules/stdlib (Makefile.am): Support strtod.
91796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
91797         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
91798         detect additional strtod bugs.
91799         * lib/stdlib.in.h (rpl_strtod): Add declarations.
91800         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
91801         bool where appropriate.  Parse 'inf' and 'nan'.
91802         * tests/test-strtod.c: New file.
91803         * modules/strtod (Depends-on): Add stdbool, stdlib.
91804         (configure.ac): Turn on module indicator.
91805         * modules/strtod-tests: New module.
91807 2008-03-29  Eric Blake  <ebb9@byu.net>
91809         Fix ftell on mingw.
91810         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
91811         * modules/ftell-tests (Depends-on): Add binary-io.
91812         * modules/ftello-tests (Depends-on): Likewise.
91813         * tests/test-ftell.c (main): Enhance test to cover behavior after
91814         ungetc.  Enforce binary mode.
91815         * tests/test-ftello.c (main): Likewise.
91817         Pass test-freadseek on cygwin.
91818         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
91819         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
91820         ungetc buffer.
91822         * tests/test-fflush2.c (main): Fix typo.
91824 2008-03-29  Bruno Haible  <bruno@clisp.org>
91826         * tests/test-fflush2.c (main): Temporarily disable the contents of
91827         this test.
91828         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
91829         Reported by Eric Blake.
91831 2008-03-28  Simon Josefsson  <simon@josefsson.org>
91833         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
91834         (GC_SHA224_DIGEST_SIZE): Add.
91836         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
91837         (gc_hash_digest_length): Likewise.
91838         (gc_hash_buffer): Likewise.
91840 2008-03-25  Bruno Haible  <bruno@clisp.org>
91842         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
91843         detail which gettext release to use.
91844         Reported by Simon Josefsson.
91846 2008-03-26  Jim Meyering  <meyering@redhat.com>
91848         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
91849         * modules/gnumakefile (clean-GNUmakefile): Also, use
91850         test ... && ... || : syntax rather than if-then ... fi.
91852         gnumakefile: Don't double-quote-expand $(VPATH) value.
91853         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
91855 2008-03-24  Eric Blake  <ebb9@byu.net>
91857         Alter GNUmakefile to install into top directory.
91858         * modules/maintainer-makefile: Split, and add dependency...
91859         * modules/gnumakefile: to this new module.
91860         * build-aux/GNUmakefile: Move...
91861         * top/GNUmakefile: ...here.
91862         * build-aux/maint.mk: Move...
91863         * top/maint.mk: ...here.
91864         * MODULES.html.sh (Support for maintaining...): Document new
91865         module.
91867 2008-03-23  Bruno Haible  <bruno@clisp.org>
91869         * gnulib-tool: New options --vc-files, --no-vc-files.
91870         (func_usage): Document them.
91871         (vc_files): New variable.
91872         (func_import): Consider vc_files.
91873         (func_create_testdir): Set vc_files to empty.
91874         Suggested by Jim Meyering and Karl Berry.
91876 2008-03-23  Bruno Haible  <bruno@clisp.org>
91878         Fix regex compilation error on HP-UX 11.
91879         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
91880         * modules/regex (Files): Add m4/mbstate_t.m4.
91881         Reported by Ton Voon <ton.voon@altinity.com>.
91883 2008-03-23  Bruno Haible  <bruno@clisp.org>
91885         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
91887 2008-03-23  Eric Blake  <ebb9@byu.net>
91888             Bruno Haible  <bruno@clisp.org>
91890         Install files from top/ in the destination directory.
91891         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
91892         augmentation also for the files from top/.
91893         (func_import, func_create_testdir): Rewrite file names:
91894         top/filename -> filename.
91896 2008-03-23  Bruno Haible  <bruno@clisp.org>
91898         Tweak "gnulib --version" output.
91899         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
91901 2008-03-23  Bruno Haible  <bruno@clisp.org>
91903         Tweak "gnulib --version" output.
91904         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
91905         rather than contents of ChangeLog, when possible.
91907 2008-03-21  Eric Blake  <ebb9@byu.net>
91909         More --version tweaks.
91910         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
91911         date of last ChangeLog entry.
91913 2008-03-21  Jim Meyering  <meyering@redhat.com>
91915         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
91917 2008-03-20  Eric Blake  <ebb9@byu.net>
91919         VPATH fix.
91920         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
91922 2008-03-20  Simon Josefsson  <simon@josefsson.org>
91924         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
91925         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
91927 2008-03-20  Eric Blake  <ebb9@byu.net>
91929         Sync GNUmakefile with coreutils.
91930         * build-aux/GNUmakefile (have-Makefile): Rename...
91931         (_have-Makefile): ...to this, for namespace consideration.
91932         (GNUmakefile.cfg): Include, if present.
91933         (_autoreconf): Define a default.
91934         (_is-dist-target): New rule for rebuilds to pick up intra-release
91935         version.
91936         (maint-cfg.mk): Rename...
91937         (cfg.mk): ...to this.
91939 2008-03-18  Jim Meyering  <meyering@redhat.com>
91941         New script and module: mktempd
91942         * MODULES.html.sh (maint+release support): Add mktempd.
91943         * build-aux/mktempd: New file.
91944         * modules/mktempd: New file.
91946 2008-03-15  Jim Meyering  <meyering@redhat.com>
91948         Undo last change.
91949         * lib/sha1.c, lib/md5.c: 63 != ~63.
91950         Reported by Andreas Schwab.
91952         sha1.c, md5.c: Hoist a redundant expression.
91953         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
91954         "ctx->buflen" only once, before calling *_process_block.
91955         * lib/md5.c (md5_process_bytes): Likewise.
91957 2008-03-14  Eric Blake  <ebb9@byu.net>
91959         Bump copyright year in files generated by gnulib-tool.
91960         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
91961         gnulib-tool, rather than hard-coding it.
91963         Fix 'gnulib-tool --version' output to work with git.
91964         * gnulib-tool (func_gnulib_dir): New function, extracted from...
91965         (startup): ...here.
91966         (func_version): Use it to invoke git-version-gen, rather than
91967         relying on CVS keyword expansion.  Modernize wording.
91968         (cvsdatestamp, last_checkin_date, version): Kill unused
91969         variables.
91971 2008-03-12  Jim Meyering  <meyering@redhat.com>
91973         Recognize optional cast of the argument to free.
91974         * build-aux/useless-if-before-free: Update regexps.
91976         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
91978 2008-03-11  Bruno Haible  <bruno@clisp.org>
91980         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
91981         by a single package.
91982         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
91983         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
91984         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
91985         Reported by Sam Steingold <sds@gnu.org>.
91987 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
91989         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
91990         repositories.
91992 2008-03-11  Bruno Haible  <bruno@clisp.org>
91994         Avoid conflicts between local macro definitions.
91995         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
91996         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
91998 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
91999             Bruno Haible  <bruno@clisp.org>
92001         Make va_copy work with some version of xlc on AIX 5.1.
92002         * lib/stdarg.in.h: New file.
92003         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
92004         On AIX, use a <stdarg.h> file substitute.
92005         * modules/stdarg (Files): Add lib/stdarg.in.h.
92006         (Depends-on): Add include_next.
92007         (Makefile.am): Build a stdarg.h substitute if requested.
92008         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
92010 2008-03-10  Bruno Haible  <bruno@clisp.org>
92012         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
92013         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92014         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92016 2008-03-10  Bruno Haible  <bruno@clisp.org>
92018         * modules/stdlib (Depends-on): Add include_next, remove
92019         absolute-header.
92021 2008-03-09  Bruno Haible  <bruno@clisp.org>
92023         * lib/freadahead.h (freadahead): Document more precisely.
92024         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
92025         the sum of both buffer sizes.
92026         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
92027         * NEWS: Document the change.
92029 2008-03-09  Bruno Haible  <bruno@clisp.org>
92031         Extend freadptr to return also the buffer size.
92032         * lib/freadptr.h (freadptr): Add sizep argument.
92033         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
92034         (freadptr): Add sizep argument. Determine buffer size like freadahead
92035         does.
92036         * tests/test-freadptr.c: Don't include freadahead.h.
92037         (main): Adapt for new calling convention of freadptr.
92038         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
92039         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
92040         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
92041         tests/test-freadptr2.sh.
92042         (Depends): Remove freadahead.
92043         (TESTS): Add test-freadptr2.sh.
92044         (check_PROGRAMS): Add test-freadptr2.
92046 2008-03-09  Bruno Haible  <bruno@clisp.org>
92048         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
92049         Report and solution by Simon Josefsson.
92051 2008-03-06  Bruno Haible  <bruno@clisp.org>
92053         Make fflush after ungetc work on BSD platforms.
92054         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
92055         * tests/test-fflush2.c: New file.
92056         * tests/test-fflush2.sh: New file.
92057         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
92058         tests/test-fflush2.c.
92059         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
92060         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
92062 2008-03-06  Eric Blake  <ebb9@byu.net>
92064         Likewise for ftello.
92065         * modules/ftello (Dependencies): Add extensions.
92066         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
92068 2008-03-06  Bruno Haible  <bruno@clisp.org>
92070         * modules/fseeko (Dependencies): Add extensions.
92071         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
92072         Needed on glibc systems.
92074 2008-03-06  Bruno Haible  <bruno@clisp.org>
92076         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
92077         email address.
92078         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92080 2008-03-06  Bruno Haible  <bruno@clisp.org>
92082         * users.txt: Add libgnupdf.
92084 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
92086         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
92087         (Header File Substitutes, Function Substitutes,
92088         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
92089         (Build robot for gnulib): Fix typo.
92091 2008-03-06  Bruno Haible  <bruno@clisp.org>
92093         * doc/gnulib-tool.texi (VCS Issues): Small updates.
92094         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92096 2008-03-06  Bruno Haible  <bruno@clisp.org>
92098         * doc/func.texi: New file, extracted from doc/gnulib.texi.
92099         * doc/gnulib.texi: Include it.
92101 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92103         * modules/func (License): Change license to unlimited; there was
92104         no LGPL parts in the module anyway.
92106 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92108         * modules/__func__: Renamed to modules/func.
92109         * modules/__func__-tests: Renamed to modules/func-tests.
92110         * tests/test-__func__.c: Renamed to tests/test-func.c.
92111         * m4/__func__.m4: Renamed to m4/func.m4.
92112         * doc/gnulib.texi (__func__): Section renamed to func.
92113         Suggested by Eric Blake <ebb9@byu.net>.
92115 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92117         * doc/gnulib.texi (__func__): Use C99 terminology when talking
92118         about __func__.  Make example self-contained.  Suggested by Eric
92119         Blake <ebb9@byu.net>.
92121         * tests/test-__func__.c (main): Avoid extraneous () around __func.
92122         Suggested by Eric Blake <ebb9@byu.net>.
92124 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92126         * modules/__func__: New file.
92127         * modules/__func__-tests: New file.
92128         * tests/test-__func__.c: New file.
92129         * m4/__func__.m4: New file.
92130         * doc/gnulib.texi (__func__): Document __func__ module.
92132 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92134         * modules/byteswap (License): Re-license as LGPLv2+.
92136 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92138         * doc/Makefile: Add pdf target.
92140 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92142         * modules/inline (License): Use 'unlimited', since there are only
92143         *.m4 files in this module.
92145 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92146             Bruno Haible  <bruno@clisp.org>
92148         Add support for HP C 7.1 on OpenVMS 8.3.
92149         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
92151 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92153         Update VMS specifics.
92154         * lib/getopt.c [VMS]: Remove include of unixlib.h.
92156 2008-03-02  Jim Meyering  <meyering@redhat.com>
92158         Remove the last dependency on the "free" module.
92159         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
92160         Reported by Bob Proulx.
92162         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
92164         Remove useless "if" tests before free.  Deprecate "free" module.
92165         * doc/posix-functions/free.texi: Mention that this
92166         module is no longer useful.
92167         * modules/free (Notice): Say this module is obsolete.
92168         * modules/readutmp (Depends-on): Remove free.
92169         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
92170         * lib/putenv.c (putenv): Likewise.
92171         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
92172         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
92173         * tests/test-c-strcasestr.c (main): Likewise.
92174         * tests/test-c-strstr.c (main): Likewise.
92175         * tests/test-mbscasestr1.c (main): Likewise.
92176         * tests/test-mbscasestr2.c (main): Likewise.
92177         * tests/test-mbsstr1.c (main): Likewise.
92178         * tests/test-mbsstr2.c (main): Likewise.
92179         * tests/test-memmem.c (main): Likewise.
92180         * tests/test-strcasestr.c (main): Likewise.
92181         * tests/test-striconv.c (main): Likewise.
92182         * tests/test-striconveh.c (main): Likewise.
92183         * tests/test-striconveha.c (main): Likewise.
92184         * tests/test-strstr.c (main): Likewise.
92186         * build-aux/git-version-gen: Adjust a comment and the Usage string.
92188         bootstrap: sync from coreutils again
92189         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
92191 2008-03-01  Jim Meyering  <meyering@redhat.com>
92193         bootstrap: sync from coreutils
92194         * build-aux/bootstrap (update_po_files): Copy a .po file into place
92195         also when the target doesn't exist.
92197 2008-03-01  Eric Blake  <ebb9@byu.net>
92199         Fix bugs in last patch.
92200         * lib/memchr2.c (memchr2): Fix typo.
92201         * tests/test-memchr2.c: Test previous bug, and don't use GNU
92202         extension.
92203         Reported by Bruce Korb.
92205         New module 'memchr2'.
92206         * modules/memchr2: New file.
92207         * modules/memchr2-tests: Likewise.
92208         * lib/memchr2.h: Likewise.
92209         * lib/memchr2.c: Likewise, based on memchr.c.
92210         * tests/test-memchr2.c: New test.
92211         * MODULES.html.sh (String handling): Add memchr2.
92213 2008-02-29  Bruno Haible  <bruno@clisp.org>
92215         * modules/freadseek-tests: New file.
92216         * tests/test-freadseek.sh: New file.
92217         * tests/test-freadseek.c: New file.
92219         New module 'freadseek'.
92220         * modules/freadseek: New file.
92221         * lib/freadseek.h: New file.
92222         * lib/freadseek.c: New file.
92223         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
92225 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
92227         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
92228         wydawca.
92230         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
92231         program_invocation_name and program_invocation_short_name are
92232         present.
92234 2008-02-28  Bruno Haible  <bruno@clisp.org>
92236         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
92237         * tests/test-freadptr.sh: Also test non-seekable stdin.
92239 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
92241         * build-aux/bootstrap (source_base, m4_base)
92242         (doc_base, tests_base): New variables.
92243         (gnulib_tool_options): Do not hardcode base directories, use
92244         the above variables instead.
92246 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
92248         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
92250 2008-02-28  Bruno Haible  <bruno@clisp.org>
92252         * modules/freadptr-tests: New file.
92253         * tests/test-freadptr.sh: New file.
92254         * tests/test-freadptr.c: New file.
92256         New module 'freadptr'.
92257         * modules/freadptr: New file.
92258         * lib/freadptr.h: New file.
92259         * lib/freadptr.c: New file.
92260         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
92262 2008-02-26  Karl Berry  <karl@freefriends.org>
92264         Sync from Libtool:
92265         * libltdl/argz.c (argz_add, argz_count): New functions.
92266         * libltdl/argz.in.h: Declare them.
92267         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
92269 2008-02-22  Bruno Haible  <bruno@clisp.org>
92271         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
92272         is a pointer type.  Needed for HP-UX 10.
92273         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
92274         * doc/posix-functions/gmtime_r.texi: Likewise.
92275         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92277 2008-02-24  Bruno Haible  <bruno@clisp.org>
92279         * modules/environ-tests: New file.
92280         * tests/test-environ.c: New file.
92282         New module 'environ'.
92283         * modules/environ: New file.
92284         * lib/unistd.in.h (environ): New declaration.
92285         * m4/environ.m4: New file.
92286         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
92287         after use.
92288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
92289         HAVE_DECL_ENVIRON.
92290         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
92291         HAVE_DECL_ENVIRON.
92292         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
92293         wrong claim that 'environ' is missing on some systems.
92294         * modules/execute (Depends-on): Add environ.
92295         * lib/execute.c (environ): Remove fallback declaration.
92296         * modules/pipe (Depends-on): Add environ.
92297         * lib/pipe.c (environ): Remove fallback declaration.
92298         * modules/setenv (Depends-on): Add environ.
92299         * lib/setenv.c (environ): Remove fallback declaration.
92300         * modules/unsetenv (Depends-on): Add environ.
92301         * lib/unsetenv.c (environ): Remove fallback declaration.
92302         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
92303         m4/environ.m4.
92304         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
92305         (gl_PREREQ_UNSETENV): Likewise.
92307 2008-02-24  Bruno Haible  <bruno@clisp.org>
92309         * doc/posix-functions/environ.texi: Document the MacOS X problem.
92311 2008-02-20  Bob Proulx  <bob@proulx.com>
92313         Enable use of older two part flavor 'git describe'.
92314         * build-aux/git-version-gen: If using the older two part flavor of
92315         git version then recreate the third part now present in the
92316         newer three part flavor of git describe.
92318 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
92320         * lib/fts.c (fts_build): Typo correction to comment.
92322 2008-02-17  Bruno Haible  <bruno@clisp.org>
92324         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
92325         generating no-op conflicts.
92327 2008-02-17  Bruno Haible  <bruno@clisp.org>
92329         Speed up by 10%.
92330         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
92331         result_entries, rather than an index-based loop.
92333 2008-02-17  Bruno Haible  <bruno@clisp.org>
92335         Speed up by 25%.
92336         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
92337         'hashcode_cached'.
92338         (entry_create): New function.
92339         (entry_hashcode): Use the cached hashcode if possible.
92340         (read_changelog_file, try_split_merged_entry): Use entry_create.
92342 2008-02-17  Bruno Haible  <bruno@clisp.org>
92344         Speed up from O(n^2) to O(n) for long ChangeLog files.
92345         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
92346         (read_changelog_file): Change implementation of entries_reversed list
92347         to rbtreehash.
92348         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
92350 2008-02-17  Bruno Haible  <bruno@clisp.org>
92352         New option --split-merged-entry.
92353         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
92354         (find_paragraph_end, try_split_merged_entry): New functions.
92355         (long_options): Add option --split-merged-entry.
92356         (usage): Document option --split-merged-entry.
92357         (main): Implement option --split-merged-entry.
92358         Reported by Eric Blake.
92360 2008-02-17  Bruno Haible  <bruno@clisp.org>
92362         * lib/git-merge-changelog.c: Include c-strstr.h.
92363         (main): Support the "git pull --rebase" situation.
92364         * modules/git-merge-changelog (Depends-on): Add c-strstr.
92365         Reported by Eric Blake.
92367 2008-02-16  Eric Blake  <ebb9@byu.net>
92369         Avoid doubling \ in common case of "c-maybe" quoting style.
92370         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
92371         eliding outer quotes.
92372         * lib/quotearg.h: Document this.
92373         * tests/test-quotearg.c (result_strings, inputs, results_g)
92374         (flag_results, locale_results): Test it by adding a new string to
92375         each test group.
92376         (compare_strings): Test new string.
92378 2008-02-13  Eric Blake  <ebb9@byu.net>
92380         Avoid trigraph quoting in default output.
92381         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
92382         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
92383         unless explicitly requested.
92384         * tests/test-quotearg.c (flag_results, main): Add additional tests.
92386 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
92388         Don't rely on signed integer overflowing to negative value.
92389         * lib/getugroups.c (getugroups): Include <limits.h>.
92390         Instead, compare against INT_MAX, and increment only if the test passes.
92392 2008-02-13  Jim Meyering  <meyering@redhat.com>
92393         and Eric Blake  <ebb9@byu.net>
92395         Avoid shadowing warning and compile errors on Linux.
92396         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
92397         forwarding macros on Linux.
92398         (dcgettext): Define a stub, for Linux.
92399         (results_g, main): Avoid warnings.
92401 2008-02-12  Eric Blake  <ebb9@byu.net>
92403         Silence warning in last patch.
92404         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
92406         Quotearg part 4: add tests, fix c-maybe colon quoting.
92407         * lib/quotearg.h: Improve documentation.
92408         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
92409         escapes when adding outer quotes.  When quoting trigraphs, use
92410         valid C notation.  When quoting NUL, omit extra characters if next
92411         character is not digit.  Alter prototype.
92412         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
92413         callers.
92414         * modules/quotearg-tests: New module.
92415         * tests/test-quotearg.c: New test.
92417 2008-02-07  Eric Blake  <ebb9@byu.net>
92419         Quotearg part 3: add flag to control outer quote elision.
92420         * lib/quotearg.h (c_maybe_quoting_style): New style.
92421         (enum quoting_flags): Better documentation of flags.
92422         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
92423         c-maybe style.
92424         (quotearg_buffer_restyled): Handle new flag to elide outer
92425         quotes.
92427         Quotearg part 2: add flag that can control NUL elision.
92428         * lib/quotearg.h (set_quoting_flags): New prototype.
92429         * lib/quotearg.c (struct quoting_options): Add flag field.
92430         (set_quoting_flags): New function.
92431         (quotearg_buffer_restyled): Add flags parameter.
92432         (quotearg_alloc_mem): Set the flag if length cannot be returned.
92433         (quotearg_n_options): Set the flag, since length cannot be
92434         returned.
92435         (quoting_options_from_style): Default flags correctly.
92437         Quotearg part 1: more wrappers, restore quotearg_char state.
92438         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
92439         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
92440         (quotearg_colon_mem): New wrappers.
92441         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
92442         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
92443         functions.
92444         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
92445         (quotearg_colon_mem): New functions.
92447 2008-02-11  Bruno Haible  <bruno@clisp.org>
92449         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
92450         library in the current directory: it does not work with parallel make.
92451         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92453 2008-02-11  Bruno Haible  <bruno@clisp.org>
92455         * .gitattributes: New file.
92457 2008-02-11  Jim Meyering  <meyering@redhat.com>
92459         useless-if-before-free: Fix reversed exit values.
92460         * build-aux/useless-if-before-free: Use correct values
92461         for EXIT_MATCH and EXIT_NO_MATCH.
92463         * build-aux/useless-if-before-free: Close stdout carefully.
92465 2008-02-10  Bruno Haible  <bruno@clisp.org>
92467         New module 'git-merge-changelog'.
92468         * modules/git-merge-changelog: New file.
92469         * lib/git-merge-changelog.c: New file.
92471 2008-02-10  Jim Meyering  <meyering@redhat.com>
92473         useless-if-before-free: New option: --list (-l).
92475         useless-if-before-free: Don't exit immediately upon open failure.
92476         * build-aux/useless-if-before-free: Exit 2 for errors.
92477         Upon failure to open a file, don't exit immediately.
92478         Rather, just warn and continue with any remaining files.
92480 2008-02-10  Bruno Haible  <bruno@clisp.org>
92482         New abstract list operation 'node_set_value'.
92483         * lib/gl_list.h (gl_list_node_set_value): New function.
92484         (struct gl_list_implementation): New field node_set_value.
92485         * lib/gl_list.c (gl_list_node_set_value): New function.
92486         * lib/gl_array_list.c (gl_array_node_set_value): New function.
92487         (gl_array_list_implementation): Update.
92488         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
92489         (gl_carray_list_implementation): Update.
92490         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
92491         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
92492         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
92493         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
92494         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
92495         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
92496         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
92497         Update.
92498         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
92499         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
92500         (gl_sublist_list_implementation): Update.
92502 2008-02-10  Bruno Haible  <bruno@clisp.org>
92504         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
92505         Needed when ELEMENT is #defined to 'some_type *'.
92507 2008-02-10  Jim Meyering  <meyering@redhat.com>
92509         New script and module: useless-if-before-free
92510         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
92511         * build-aux/useless-if-before-free: New file.
92512         * modules/useless-if-before-free: New file.
92514         * build-aux/gitlog-to-changelog: Use committer date, not author date.
92516         xstrtol_error: Fix typo.
92517         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
92518         s/exit_failure/exit_status/.
92520 2008-02-09  Jim Meyering  <meyering@redhat.com>
92522         New script and module: gitlog-to-changelog
92523         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
92524         * modules/gitlog-to-changelog: New file.
92525         * build-aux/gitlog-to-changelog: New file.
92527 2008-02-08  Jim Meyering  <meyering@redhat.com>
92529         Avoid two "parameter unused" warnings.
92530         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
92531         Mark "st" as used.
92533         Use "git COMMAND", not "git-COMMAND".
92534         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
92535         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
92536         * build-aux/git-version-gen: Use "git status", not "git-status".
92538 2008-02-07  Bruno Haible  <bruno@clisp.org>
92540         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
92541         Avoids a crash on Windows Vista.
92542         Reported by Adam Strzelecki <ono@java.pl> via
92543         Simon Josefsson <simon@josefsson.org>.
92545 2008-02-06  Bruno Haible  <bruno@clisp.org>
92547         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
92548         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
92549         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
92550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
92551         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
92552         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
92553         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
92554         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
92555         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
92556         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
92557         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
92558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
92559         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
92560         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
92561         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
92562         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
92563         left-adjust flag.
92564         * tests/test-snprintf-posix.h (test_function): Likewise.
92565         * tests/test-sprintf-posix.h (test_function): Likewise.
92566         * tests/test-vasprintf-posix.c (test_function): Likewise.
92567         * doc/posix-functions/fprintf.texi: Update.
92568         * doc/posix-functions/printf.texi: Update.
92569         * doc/posix-functions/snprintf.texi: Update.
92570         * doc/posix-functions/sprintf.texi: Update.
92571         * doc/posix-functions/vfprintf.texi: Update.
92572         * doc/posix-functions/vprintf.texi: Update.
92573         * doc/posix-functions/vsnprintf.texi: Update.
92574         * doc/posix-functions/vsprintf.texi: Update.
92575         Reported by Peter Fales <psfales@alcatel-lucent.com>.
92577 2008-02-06  Bruno Haible  <bruno@clisp.org>
92579         Fix bug introduced on 2008-01-26.
92580         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
92582 2008-02-06  Bruno Haible  <bruno@clisp.org>
92584         Fix bug introduced on 2007-06-10.
92585         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
92586         !NEED_PRINTF_FLAG_ZERO.
92588 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
92590         getloadavg: use libperfstat on AIX5
92591         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
92593 2008-02-03  Bruno Haible  <bruno@clisp.org>
92595         * lib/diffseq.h: Add comments about required #includes.
92596         Reported by Michael Biggs <gnulib@doubleplum.net>.
92598 2008-02-01  Bruno Haible  <bruno@clisp.org>
92600         * users.txt: Add gnuit.
92602 2008-01-31  Bruno Haible  <bruno@clisp.org>
92604         * lib/md4.c (set_uint32): Mark as inline.
92605         * lib/md5.c (set_uint32): Likewise.
92606         * lib/sha1.c (set_uint32): Likewise.
92607         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
92608         * m4/md5.m4 (gl_MD5): Likewise.
92609         * m4/sha1.m4 (gl_SHA1): Likewise.
92611 2008-01-31  Jim Meyering  <meyering@redhat.com>
92613         Use "sizeof VAR", rather than a literal "4".
92614         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
92615         * lib/md4.c (md4_read_ctx): Likewise.
92616         * lib/sha1.c (sha1_read_ctx): Likewise.
92618 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92620         * tests/test-sha1.c: New file, based on test-md5.c.
92622         * modules/crypto/sha1-tests: New file.
92624 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92626         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
92628 2008-01-31  Jim Meyering  <meyering@redhat.com>
92630         Prefer "sizeof v" over the equivalent "4".
92631         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
92632         * lib/md5.c (set_uint32): Likewise.
92633         * lib/sha1.c (set_uint32): Likewise.
92635 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92637         * lib/sha1.c (set_uint32): Mark function as static.
92639 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92641         md2: clarify comments to say that alignment is not required.
92642         * lib/md2.h: Remove warning about alignment in comment.
92643         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
92644         never been required.
92646 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92648         md4: adapt alignment constraint fix from sha1.
92649         * lib/md4.c (set_uint32): New function, from sha1.c
92650         (md4_read_ctx): Use it.
92651         (md4_finish_ctx): Doc fix.
92652         * lib/md4.h: Doc fix.
92654 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92656         md5: adapt alignment constraint fix from sha1.
92657         * lib/md5.c (set_uint32): New function, from sha1.c
92658         (md5_read_ctx): Use it.
92659         (md5_finish_ctx): Doc fix.
92660         * lib/md5.h: Doc fix.
92662 2008-01-30  Peter Palfrader  <weasel@debian.org>
92664         sha1: remove the result buffer alignment constraint
92665         * lib/sha1.c (set_uint32): New function.
92666         (sha1_read_ctx): Rewrite to remove the result buffer alignment
92667         constraint.
92668         (sha1_finish_ctx): Remove comment warning about alignment constraint.
92669         * lib/sha1.h: Likewise.
92671 2008-01-30  Andreas Schwab  <schwab@suse.de>
92672             Bruno Haible  <bruno@clisp.org>
92674         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
92675         correct definition of LDBL_MIN_EXP.
92677 2008-01-30  Karl Berry  <karl@gnu.org>
92679         * config/srclist-update: try to preserve x bit on updates.
92680         * config/srclistvars.sh: update for karl.
92682 2008-01-29  Jim Meyering  <meyering@redhat.com>
92684         vasnprintf.c: Avoid warning about unused label
92685         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
92686         "overflow" label definition and associated code with the
92687         same cpp condition that guards the sole use of that label.
92689 2008-01-26  Bruno Haible  <bruno@clisp.org>
92691         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
92692         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
92693         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
92694         * lib/isnanl-nolibm.h (isnanl): Likewise.
92695         Reported by Paul Eggert <eggert@cs.ucla.edu>.
92697 2008-01-26  Bruno Haible  <bruno@clisp.org>
92699         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
92700         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
92702 2008-01-26  Bruno Haible  <bruno@clisp.org>
92704         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
92705         GCC >= 4.0 built-in.
92706         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
92708 2008-01-26  Bruno Haible  <bruno@clisp.org>
92710         Rename isnan, applicable to 'double' only, to isnand.
92711         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
92712         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
92713         (configure.ac): Update.
92714         (Include): Replace "isnan.h" with "isnand.h".
92715         * m4/isnand.m4: Renamed from m4/isnan.m4.
92716         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
92717         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
92718         instead of isnan.c.
92719         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
92720         instead of HAVE_ISNAN_IN_LIBC.
92721         (isnand): Renamed from isnan.
92722         * lib/isnand.c: New file.
92723         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
92724         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
92725         (Makefile.am): Update.
92726         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
92727         Include isnand.h instead of isnan.h.
92728         (main): Test isnand instead of isnan.
92729         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
92730         isnan-nolibm.
92731         * modules/frexp (Depends-on): Likewise.
92732         * modules/frexp-tests (Depends-on): Likewise.
92733         * modules/frexp-nolibm (Depends-on): Likewise.
92734         * modules/frexp-nolibm-tests (Depends-on): Likewise.
92735         * modules/isfinite (Depends-on): Likewise.
92736         * modules/round-tests (Depends-on): Likewise.
92737         * modules/signbit (Depends-on): Likewise.
92738         * modules/signbit-tests (Depends-on): Likewise.
92739         * modules/snprintf-posix (Depends-on): Likewise.
92740         * modules/sprintf-posix (Depends-on): Likewise.
92741         * modules/trunc-tests (Depends-on): Likewise.
92742         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
92743         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
92744         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
92745         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
92746         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
92747         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
92748         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
92749         * modules/vasnprintf-posix (Depends-on): Likewise.
92750         * modules/vasprintf-posix (Depends-on): Likewise.
92751         * modules/vfprintf-posix (Depends-on): Likewise.
92752         * modules/vsnprintf-posix (Depends-on): Likewise.
92753         * modules/vsprintf-posix (Depends-on): Likewise.
92754         * lib/frexp.c: Include isnand.h instead of isnan.h.
92755         (ISNAN): Set to isnand instead of isnan.
92756         * lib/isfinite.c: Include isnand.h instead of isnan.h.
92757         (gl_isfinited): Use isnand instead of isnan.
92758         * lib/signbitd.c: Include isnand.h instead of isnan.h.
92759         (gl_signbitd): Use isnand instead of isnan.
92760         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
92761         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
92762         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
92763         (main): Use isnand instead of isnan.
92764         * tests/test-round1.c: Include isnand.h.
92765         (main): Use isnand instead of isnan.
92766         * tests/test-round2.c: Include isnand.h instead of isnan.h.
92767         (ISNAN): Set to isnand instead of isnan.
92768         * tests/test-trunc1.c: Include isnand.h.
92769         (main): Use isnand instead of isnan.
92770         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
92771         (equal): Use isnand instead of isnan.
92772         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
92773         isnand-nolibm.
92774         * NEWS: Mention the change.
92776 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
92777             Bruno Haible  <bruno@clisp.org>
92779         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
92780         the GCC builtins for signbits are present and set
92781         REPLACE_SIGNBIT_USING_GCC if so.
92782         * lib/math.in.h (signbit): Define using GCC builtins if
92783         REPLACE_SIGNBIT_USING_GCC is set.
92784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
92785         REPLACE_SIGNBIT_USING_GCC.
92786         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
92788 2008-01-25  Jim Meyering  <meyering@redhat.com>
92790         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
92791         * lib/poll.c: Include <config.h>, not "config.h".
92792         * tests/test-getaddrinfo.c: Likewise.
92794 2008-01-25  Simon Josefsson  <simon@josefsson.org>
92796         * modules/sockets-tests: New file.
92798 2008-01-24  Simon Josefsson  <simon@josefsson.org>
92800         * modules/sockets: New module, can be used to call WSA_Startup and
92801         WSA_Cleanup when needed.
92803         * lib/sockets.h, lib/sockets.c: New files.
92805         * m4/sockets.m4: New file.
92807         * tests/test-sockets.c: New file.
92809 2008-01-19  Bruno Haible  <bruno@clisp.org>
92811         * doc/posix-headers: Renamed from doc/headers.
92812         * doc/posix-functions: Renamed from doc/functions.
92813         * doc/gnulib.texi: Update.
92815 2008-01-19  Bruno Haible  <bruno@clisp.org>
92817         * doc/glibc-functions/strcasestr.texi: Include contents of
92818         doc/functions/strcasestr.texi, fixing the list of platforms.
92819         * doc/functions/strcasestr.texi: Remove file.
92821 2008-01-19  Bruno Haible  <bruno@clisp.org>
92823         * doc/glibc-functions/memmem.texi: Include contents of
92824         doc/functions/memmem.texi.
92825         * doc/functions/memmem.texi: Remove file.
92827 2008-01-18  Bruno Haible  <bruno@clisp.org>
92829         * doc/glibc-functions/*.texi: New files.
92830         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
92831         to use the new files.
92833 2008-01-17  Bruno Haible  <bruno@clisp.org>
92835         * tests/test-gethostname.c (main): Fix printf statement.
92837 2008-01-17  Simon Josefsson  <simon@josefsson.org>
92839         * modules/gethostname-tests: New file.
92841         * tests/test-gethostname.c: New file.
92843 2008-01-17  Simon Josefsson  <simon@josefsson.org>
92845         * lib/gethostname.c: Include string.h unconditionally, strncpy is
92846         used by the UNAME case.  Reported by Bruno Haible
92847         <bruno@clisp.org>.
92849 2008-01-17  Eric Blake  <ebb9@byu.net>
92851         Convert c-strcasestr to be more efficient.
92852         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
92853         (Depends-on): Add c-strcase, remove malloca, strnlen.
92854         * tests/test-c-strcasestr.c (main): Enhance test.
92855         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
92857 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
92859         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
92860         Use it in creating po/Makevars.
92862 2008-01-15  Simon Josefsson  <simon@josefsson.org>
92864         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
92865         Applications that requires it should initialize libgcrypt
92866         manually.
92868 2008-01-16  Simon Josefsson  <simon@josefsson.org>
92870         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
92872 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
92874         Fix problem with getdate on mingw32 reported by Simon Josefsson
92875         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
92876         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
92877         tzname", when deciding whether to declare tzname.
92878         * lib/strftime.c (tzname): Likewise.
92880 2008-01-15  Bruno Haible  <bruno@clisp.org>
92882         Work around a MacOS X 10.5 bug in frexpl().
92883         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
92884         * doc/functions/frexpl.texi: Document the bug.
92885         Reported by Elias Pipping <pipping@gentoo.org>.
92887 2008-01-14  Eric Blake  <ebb9@byu.net>
92889         Touch up previous patch.
92890         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
92891         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
92893         Convert strcasestr module to use Two-Way algorithm.
92894         * modules/strcasestr-simple: New module, based on the old
92895         strcasestr, but with Two-Way rather than KMP.
92896         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
92897         * lib/string.in.h (rpl_strcasestr): Declare.
92898         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
92899         performance.
92900         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
92901         * modules/string (Makefile.am): Support strcasestr.
92902         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
92903         * modules/strcasestr-tests (Depends-on): Check for alarm.
92904         * tests/test-strcasestr.c: Augment test.
92905         * lib/str-two-way.h: Clean up stray macro.
92906         * NEWS: Document new module.
92907         * MODULES.html.sh (string handling): Likewise.
92908         * doc/functions/strcasestr.texi: New file.
92909         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
92910         here, since it is not a POSIX function.
92912 2008-01-14  Colin Watson  <cjwatson@debian.org>
92913             Bruno Haible  <bruno@clisp.org>
92915         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
92916         works fine; if not, set REPLACE_STRSIGNAL.
92917         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
92918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92919         REPLACE_STRSIGNAL.
92920         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
92921         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
92922         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
92924 2008-01-14  Bruno Haible  <bruno@clisp.org>
92926         * modules/strsignal (Include): Change to <string.h>.
92928 2008-01-14  Colin Watson  <cjwatson@debian.org>
92930         * modules/argp (Notice): Add a notice recommending to change
92931         XGETTEXT_OPTIONS.
92932         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
92934 2008-01-13  Colin Watson  <cjwatson@debian.org>
92936         * modules/strsignal-tests: New file.
92937         * tests/test-strsignal.c: New file.
92939         * lib/strsignal.c: New file, from glibc with modifications.
92940         * lib/siglist.h: New file, from glibc with modifications.
92941         * lib/string.in.h (strsignal): New declaration.
92942         * m4/strsignal.m4: New file.
92943         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92944         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
92945         * modules/strsignal: New file.
92946         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
92947         HAVE_DECL_STRSIGNAL.
92949 2008-01-13  Bruno Haible  <bruno@clisp.org>
92951         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
92952         locale encoding is not ASCII. Needed for OpenBSD 4.0.
92953         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
92954         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
92956 2008-01-13  Bruno Haible  <bruno@clisp.org>
92958         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
92959         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
92960         * lib/argp.h (__attribute__): Likewise.
92961         * lib/c-stack.c (__attribute__): Likewise.
92962         * lib/error.h (__attribute__): Likewise.
92963         * lib/fts.c (__attribute__): Likewise.
92964         * lib/openat.h (__attribute__): Likewise.
92965         * lib/stdio.in.h (__attribute__): Likewise.
92966         * lib/string.in.h (__attribute__): Likewise.
92967         * lib/utimens.c (__attribute__): Likewise.
92968         * lib/vasnprintf.h (__attribute__): Likewise.
92969         * lib/xalloc.h (__attribute__): Likewise.
92970         * lib/xprintf.h (__attribute__): Likewise.
92971         * lib/xstrtol.h (__attribute__): Likewise.
92972         * lib/xvasprintf.h (__attribute__): Likewise.
92974 2008-01-12  Bruno Haible  <bruno@clisp.org>
92976         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
92977         * doc/glibc-headers/a.out.texi: New file.
92978         * doc/glibc-headers/aliases.texi: New file.
92979         * doc/glibc-headers/alloca.texi: New file.
92980         * doc/glibc-headers/ar.texi: New file.
92981         * doc/glibc-headers/argp.texi: New file.
92982         * doc/glibc-headers/argz.texi: New file.
92983         * doc/glibc-headers/byteswap.texi: New file.
92984         * doc/glibc-headers/crypt.texi: New file.
92985         * doc/glibc-headers/endian.texi: New file.
92986         * doc/glibc-headers/envz.texi: New file.
92987         * doc/glibc-headers/err.texi: New file.
92988         * doc/glibc-headers/error.texi: New file.
92989         * doc/glibc-headers/execinfo.texi: New file.
92990         * doc/glibc-headers/fpu_control.texi: New file.
92991         * doc/glibc-headers/fstab.texi: New file.
92992         * doc/glibc-headers/fts.texi: New file.
92993         * doc/glibc-headers/getopt.texi: New file.
92994         * doc/glibc-headers/ieee754.texi: New file.
92995         * doc/glibc-headers/ifaddrs.texi: New file.
92996         * doc/glibc-headers/libintl.texi: New file.
92997         * doc/glibc-headers/mcheck.texi: New file.
92998         * doc/glibc-headers/mntent.texi: New file.
92999         * doc/glibc-headers/obstack.texi: New file.
93000         * doc/glibc-headers/paths.texi: New file.
93001         * doc/glibc-headers/printf.texi: New file.
93002         * doc/glibc-headers/pty.texi: New file.
93003         * doc/glibc-headers/resolv.texi: New file.
93004         * doc/glibc-headers/shadow.texi: New file.
93005         * doc/glibc-headers/sysexits.texi: New file.
93006         * doc/glibc-headers/ttyent.texi: New file.
93008 2008-01-12  Jim Meyering  <meyering@redhat.com>
93010         announce-gen: emit Gnulib's git-based version string.
93011         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
93012         New option --gnulib-version=V, where V is expected to be
93013         the output of running git describe in the gnulib directory.
93014         (get_tool_versions): Request feedback on xdelta.  I suspect it's
93015         not useful, and plan to stop publishing an xdelta file with each
93016         coreutils release.
93018         * build-aux/announce-gen: Also check for lzma-compressed files.
93020 2008-01-11  Bruno Haible  <bruno@clisp.org>
93022         * tests/test-memmem.c (main): Increase maximum allowed time.
93023         * tests/test-strstr.c (main): Likewise.
93025 2008-01-11  Bruno Haible  <bruno@clisp.org>
93027         * doc/functions/memmem.texi: Add more precisions about platforms.
93028         * doc/functions/strstr.texi: Likewise.
93030 2008-01-10  Eric Blake  <ebb9@byu.net>
93032         * m4/strstr.m4: Delete cruft from copy-n-paste.
93033         Reported by Bruno Haible.
93035 2008-01-10  Bruno Haible  <bruno@clisp.org>
93037         Make c-strstr rely on strstr.
93038         * lib/c-strstr.c: Don't include str-kmp.h.
93039         (c_strstr): Define in terms of strstr.
93040         * modules/c-strstr (Files): Remove lib/str-kmp.h.
93041         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
93043 2008-01-10  Bruno Haible  <bruno@clisp.org>
93045         * doc/gnulib.texi (String Functions in C Locale): New section.
93046         * doc/c-ctype.texi: New file.
93047         * doc/c-strcase.texi: New file.
93048         * doc/c-strcaseeq.texi: New file.
93049         * doc/c-strcasestr.texi: New file.
93050         * doc/c-strstr.texi: New file.
93051         * doc/c-strtod.texi: New file.
93052         * doc/c-strtold.texi: New file.
93054 2008-01-10  Eric Blake  <ebb9@byu.net>
93056         * lib/relocatable.h: Fix a comment.
93058 2008-01-10  Eric Blake  <ebb9@byu.net>
93060         Share two-way algorithm.
93061         * lib/str-two-way.h: New file, merged from...
93062         * lib/memmem.c: ...here...
93063         * lib/strstr.c: ...and here.
93064         * modules/memmem (Files): Use it.
93065         * modules/strstr (Files): Likewise.
93067         Avoid quadratic strstr implementations.
93068         * lib/strstr.c: New file.
93069         * m4/strstr.m4: Likewise.
93070         * modules/strstr: Likewise.
93071         * modules/strstr-tests: Likewise.
93072         * tests/test-strstr.c: Likewise.
93073         * lib/string.in.h (rpl_strstr): Declare.
93074         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
93075         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
93076         * modules/string (Makefile.am): Likewise.
93077         * MODULES.html.sh (string handling): Mention new module.
93078         * doc/functions/strstr.texi (strstr): Document the bug.
93080 2008-01-10  Bruno Haible  <bruno@clisp.org>
93082         * lib/relocatable.h (relocate): State whether result is freshly
93083         allocated or not.
93084         * lib/relocatable.c (relocate): Return a freshly allocated string
93085         instead of a pointer to a privately held string.
93086         Reported by Sylvain Beucler <beuc@gnu.org>.
93088 2008-01-10  Colin Watson  <cjwatson@debian.org>
93090         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
93091         s/S_ISNLK/S_ISLNK/.
93093 2008-01-09  Bruno Haible  <bruno@clisp.org>
93095         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
93096         and other files.
93097         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
93098         if it's only a guess.
93099         * modules/memmem: Simplify by depending on memmem-simple.
93101 2008-01-09  Bruno Haible  <bruno@clisp.org>
93103         Work around OpenBSD 4.0 tdelete() bug.
93104         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
93105         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
93106         macros and don't redefine the enum values.
93107         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
93108         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
93109         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
93111 2008-01-09  Bruno Haible  <bruno@clisp.org>
93113         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
93114         (main): Don't perform the tests if setlocale did not install a UTF-8
93115         locale. Needed on OpenBSD 4.0.
93116         * modules/wcwidth-tests (Depends-on): Add localcharset.
93118 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
93120         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
93121         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
93122         * NEWS: announce this.
93123         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
93125 2008-01-09  Simon Josefsson  <simon@josefsson.org>
93126         and Eric Blake  <ebb9@byu.net>
93128         Add memmem-simple module.
93129         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
93130         (gl_FUNC_MEMMEM): Separate performance from presence checks.
93131         * modules/memmem-simple: New file.
93132         * modules/memmem (Description): Tweak.
93133         * MODULES.html.sh (string handling): Mention new module.
93134         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
93135         addressed by memmem-simple.
93136         * NEWS: Document the difference.
93138 2008-01-09  Eric Blake  <ebb9@byu.net>
93140         Give gcc some memmem optimization hints.
93141         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
93142         (strcasestr): Declare as pure.
93143         * modules/memmem (Maintainer): Claim my implementation.
93145 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93147         Support AIX 6.1 and higher.
93148         * build-aux/config.libpath: Likewise.
93149         * build-aux/config.rpath: Likewise.
93151 2008-01-08  Jim Meyering  <meyering@redhat.com>
93152             Bruno Haible  <bruno@clisp.org>
93154         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
93155         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
93156         Reported by Peter Fales in
93157         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
93159 2008-01-08  Bruno Haible  <bruno@clisp.org>
93161         * modules/unictype/category-of (Depends-on): Add
93162         unictype/category-none.
93163         * modules/unictype/category-and-tests (Depends-on): Add
93164         unictype/category-{L,N,Lu,Nd}.
93165         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
93166         * modules/unictype/category-or-tests (Depends-on): Add
93167         unictype/category-{L,N}.
93168         * modules/unictype/category-name-tests (Depends-on): Add
93169         unictype/category-{Z,Nl}.
93170         Reported by Simon Josefsson.
93172 2008-01-08  Bruno Haible  <bruno@clisp.org>
93174         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
93175         convention better.
93176         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
93177         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
93178         Reported by Peter Miller <millerp@canb.auug.org.au>.
93180 2008-01-08  Eric Blake  <ebb9@byu.net>
93182         Rewrite memmem to guarantee linear complexity without malloc.
93183         * lib/memmem.c (memmem): Use Two-Way rather than
93184         Knuth-Morris-Pratt, to allow O(1) space usage.
93185         (critical_factorization, two_way_short_needle)
93186         (two_way_long_needle): New functions.
93187         (knuth_morris_pratt): Delete.
93188         * modules/memmem (Depends-on): No longer need malloca or stdbool.
93189         Add stdint.
93190         * tests/test-memmem.c (main): Add tests for periodic needle and
93191         sublinear performance.
93192         * doc/functions/memmem.texi (memmem): Document other deficiencies
93193         in cygwin and older glibc.
93195 2008-01-08  Bruno Haible  <bruno@clisp.org>
93197         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
93198         augmentation.
93200 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
93202         Add a configure time option: --disable-acl.
93203         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
93204         AC_ARG_ENABLE(acl).
93206 2008-01-06  Simon Josefsson  <simon@josefsson.org>
93208         * tests/test-localename.c: Don't include obsolete "setenv.h".
93210         * modules/localename-tests (Depends-on): Need unsetenv.
93212 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93214         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
93216 2008-01-06  Colin Watson  <cjwatson@debian.org>
93218         * users.txt: Add man-db.
93220 2008-01-07  Bruno Haible  <bruno@clisp.org>
93222         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
93223         previous section name.
93225 2008-01-07  Bruno Haible  <bruno@clisp.org>
93227         * lib/progname.c (set_program_name): Don't strip off a leading
93228         "lt-" prefix outside a .libs directory.
93229         Suggested by Paul Eggert.
93231 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
93232             Bruno Haible  <bruno@clisp.org>
93234         Improve memory cleanup in 'relocatable' module.
93235         * lib/relocatable.h (compute_curr_prefix): Change return type to
93236         'char *'.
93237         * lib/relocatable.c (compute_curr_prefix): Change return type to
93238         'char *'. Free curr_installdir after use.
93239         (relocate): Free curr_prefix_better after use.
93240         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
93242 2008-01-01  Bruno Haible  <bruno@clisp.org>
93244         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
93245         failure on older glibc systems.
93246         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93248 2008-01-05  Eric Blake  <ebb9@byu.net>
93250         Avoid quadratic system memmem.
93251         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
93252         Reported by Ralf Wildenhues.
93254         Fix memmem test for mingw.
93255         * modules/memmem-tests (configure.ac): Check for alarm.
93256         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
93257         it.
93258         * doc/functions/memmem.texi: New file.
93259         * doc/gnulib.texi (Function Substitutes): Add memmem.
93260         Reported by Bruno Haible.
93262 2008-01-04  Bruno Haible  <bruno@clisp.org>
93264         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
93265         Require gl_HEADER_STRINGS_H_DEFAULTS, not
93266         gl_HEADER_STRING_H_DEFAULTS.
93268 2008-01-04  Eric Blake  <ebb9@byu.net>
93270         Shorten duration of memmem test.
93271         * tests/test-memmem.c (main): Use alarm to declare failure if test
93272         is taking too long.
93273         Reported by Ralf Wildenhues.
93275 2007-12-21  Simon Josefsson  <simon@josefsson.org>
93277         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
93278         string, needed by strerror.
93280 2008-01-03  Colin Watson  <cjwatson@debian.org>
93281             Bruno Haible  <bruno@clisp.org>
93283         * doc/gnulib-tool.texi (Localization): New section.
93285 2008-01-02  Bruno Haible  <bruno@clisp.org>
93287         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
93288         variables to 'unsigned char *' type.
93289         Reported by Paul Eggert.
93291 2008-01-02  Jim Meyering  <jim@meyering.net>
93293         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
93295 2007-12-31  Jim Meyering  <jim@meyering.net>
93297         Avoid use of private FTS type name.
93298         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
93300 2007-12-30  Karl Berry  <karl@gnu.org>
93302         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
93303         work around defect in Texinfo and/or the standalone Info browser.
93305 2007-12-30  Bruno Haible  <bruno@clisp.org>
93307         Unify 5 copies of the KMP code.
93308         * lib/str-kmp.h: New file.
93309         * lib/c-strcasestr.c: Include str-kmp.h.
93310         (knuth_morris_pratt): Remove function.
93311         (c_strcasestr): Update.
93312         * lib/c-strstr.c: Include str-kmp.h.
93313         (knuth_morris_pratt): Remove function.
93314         (c_strcasestr): Update.
93315         * lib/mbscasestr.c: Include str-kmp.h.
93316         (knuth_morris_pratt_unibyte): Remove function.
93317         * lib/mbsstr.c: Include str-kmp.h.
93318         (knuth_morris_pratt_unibyte): Remove function.
93319         * lib/strcasestr.c: Include str-kmp.h.
93320         (knuth_morris_pratt): Remove function.
93321         (strcasestr): Update.
93322         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
93323         * modules/c-strstr (Files): Likewise.
93324         * modules/mbscasestr (Files): Likewise.
93325         * modules/mbsstr (Files): Likewise.
93326         * modules/strcasestr (Files): Likewise.
93327         Suggested by Paul Eggert.
93329 2007-12-30  Bruno Haible  <bruno@clisp.org>
93331         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
93332         defined.
93334 2007-12-30  Bruno Haible  <bruno@clisp.org>
93336         * lib/xmalloca.h: Include xalloc.h.
93337         (xnmalloca): New macro.
93339 2007-12-30  Bruno Haible  <bruno@clisp.org>
93341         * lib/malloca.h (nmalloca): New macro.
93342         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
93343         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
93344         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
93345         knuth_morris_pratt_multibyte): Likewise.
93346         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
93347         knuth_morris_pratt_multibyte): Likewise.
93348         * lib/memmem.c (knuth_morris_pratt): Likewise.
93349         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
93351 2007-12-25  Bruno Haible  <bruno@clisp.org>
93353         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
93354         * lib/glob.c: Don't include openat.h.
93355         (link_exists2_p): Add back the code that deals with the
93356         !GLOB_ALTDIRFUNC case.
93357         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
93358         let it do the filename concatenation.
93359         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
93360         * modules/glob (Depends-on): Remove openat.
93362 2007-12-31  Bruno Haible  <bruno@clisp.org>
93364         * modules/dirfd (License): Change to LGPLv2+.
93365         Approved by Jim Meyering.
93367 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
93369         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
93370         when multiplying M by sizeof (size_t).
93372 2007-12-10  Martin Lambers  <marlam@marlam.de>
93374         Override getpagesize on mingw.
93375         * lib/getpagesize.c: New file.
93376         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
93377         * modules/getpagesize (Files): Add lib/getpagesize.c.
93378         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
93379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
93380         REPLACE_GETPAGESIZE.
93381         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
93383 2007-12-25  Bruno Haible  <bruno@clisp.org>
93385         * modules/localcharset (Notice): New field.
93386         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
93387         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
93389 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
93390             Bruno Haible  <bruno@clisp.org>
93392         Avoid using the syntax symbol() in formatted documentation.
93393         * MODULES.html.sh (func_module): When replacing symbol() with a
93394         hyperlink, remove the parentheses. Show an error if some remain.
93395         Recognize and render the '...' syntax.
93396         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
93397         Rework. Add paragraph about GCC's inlining.
93398         * doc/alloca.texi: Likewise.
93399         * doc/error.texi: Remove parentheses from symbol reference.
93400         * doc/gnulib-intro.texi: Likewise.
93401         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
93402         * modules/fnmatch (Description): Reword to say "the ... function".
93403         * modules/full-read (Description): Likewise.
93404         * modules/full-write (Description): Likewise.
93405         * modules/safe-read (Description): Likewise.
93406         * modules/safe-write (Description): Likewise.
93407         * modules/strchrnul (Description): Likewise.
93408         * modules/trim (Description): Likewise.
93409         * modules/error (Description): Remove parentheses from symbol
93410         references.
93411         * modules/verror (Description): Likewise.
93412         Reported by Karl Berry.
93414 2007-12-25  Bruno Haible  <bruno@clisp.org>
93416         Fixup after 2007-10-16 commit.
93417         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
93419 2007-12-24  Bruno Haible  <bruno@clisp.org>
93421         Make --enable-relocatable work with DESTDIR.
93422         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
93423         to compute installdir from destprog.
93424         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
93425         also set the RELOC_DESTDIR variable.
93426         Reported by Левашев Иван <octagram@bluebottle.com>.
93428 2007-12-24  Bruno Haible  <bruno@clisp.org>
93430         Fix link error due to xalloc_die().
93431         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
93432         of xreadlink.
93433         * lib/relocwrapper.c: Update comments.
93434         * build-aux/install-reloc: Remove xreadlink.c from file list.
93435         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
93436         xreadlink.c.
93437         Reported by Левашев Иван <octagram@bluebottle.com>.
93439 2007-12-24  Bruno Haible  <bruno@clisp.org>
93441         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
93442         * lib/setenv.h: Remove file.
93443         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
93444         lib/setenv.h.
93445         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
93446         (Depends-on): Add stdlib.
93447         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
93448         gl_FUNC_UNSETENV.
93449         (Include): Replace setenv.h with <stdlib.h>.
93450         * modules/unsetenv: New file.
93451         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
93452         * lib/unsetenv.c: Include <stdlib.h> first.
93453         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
93454         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
93455         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
93456         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
93457         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
93458         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
93460         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93461         * doc/functions/unsetenv.texi: Update.
93462         * modules/xsetenv (Depends-on): Add unsetenv.
93463         * modules/getdate (Depends-on): Likewise.
93464         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
93465         * lib/xsetenv.c: Don't include setenv.h.
93466         * lib/getdate.y: Likewise.
93467         * lib/relocwrapper.c: Likewise.
93468         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
93469         (Depends-on): Add stdlib.
93470         * NEWS: Mention the changes.
93471         Reported by Левашев Иван <octagram@bluebottle.com>.
93473 2007-12-23  Bruno Haible  <bruno@clisp.org>
93475         * lib/memmem.c (memmem): Use lowercase variable names. Tab
93476         indentation.
93478 2007-12-23  Bruno Haible  <bruno@clisp.org>
93480         * lib/c-strcasestr.c: Add more comments.
93481         * lib/c-strstr.c: Likewise.
93482         * lib/mbscasestr.c: Likewise.
93483         * lib/mbsstr.c: Likewise.
93484         * lib/strcasestr.c: Likewise.
93485         * lib/memmem.c: Likewise.
93487 2007-12-23  Bruno Haible  <bruno@clisp.org>
93489         * tests/test-memmem.c: Include <string.h> first.
93491 2007-12-22  Bruno Haible  <bruno@clisp.org>
93493         * gnulib-tool (func_create_testdir): Change $auxdir while generating
93494         the contents of $testsbase.
93495         Reported by Ralf Wildenhues.
93497 2007-12-22  Bruno Haible  <bruno@clisp.org>
93499         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
93500         two variables local_ldadd_before, local_ldadd_last.
93502 2007-12-20  Eric Blake  <ebb9@byu.net>
93504         Work around circular library issue when cross-compiling.
93505         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
93506         that progname.o does not need to pull in rpl_memcmp.
93508 2007-12-19  Eric Blake  <ebb9@byu.net>
93510         Fix memmem to avoid O(n^2) worst-case complexity.
93511         * lib/memmem.c (knuth_morris_pratt): New function.
93512         (memmem): Use it if first few naive iterations fail.
93513         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
93514         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
93515         * modules/memchr (License): Likewise.
93516         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
93517         malloca.
93518         * tests/test-memmem.c: Rewrite, borrowing ideas from
93519         test-mbsstr1.c; the old version wouldn't even compile!
93520         * modules/memmem-tests: New file.
93521         * lib/string.in.h (rpl_memmem): Add declaration.
93522         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
93523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
93524         REPLACE_MEMMEM.
93526 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
93528         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
93529         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
93530         before any system include files, and undef after them all.  This
93531         should fix a problem on VMS reported by John E. Malmberg in
93532         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
93534 2007-12-17  Eric Blake  <ebb9@byu.net>
93536         Revert addition of verify, for BSD/OS.
93537         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
93538         can't handle large files, for the sake of obsolete platforms.
93539         * modules/fseeko (Depends-on): Remove verify.
93540         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
93541         * doc/functions/ftello.texi (ftello): Likewise.
93542         * doc/functions/fgetpos.texi (fgetpos): Likewise.
93543         Reported by Larry Jones.
93545 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
93547         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
93548         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
93550 2007-12-17  Jim Meyering  <meyering@redhat.com>
93552         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
93553         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
93554         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
93555         * modules/getcwd (Depends-on): Add openat.
93556         Reported by Petr Salinger.
93558 2007-12-17  Bruno Haible  <bruno@clisp.org>
93560         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
93561         avoid a segmentation fault of the configure test on x86_64 systems.
93563 2007-12-15  Jim Meyering  <meyering@redhat.com>
93565         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
93567 2007-12-13  Eric Blake  <ebb9@byu.net>
93569         Another fseek test.
93570         * tests/test-fseek.c (main): Also test ungetc handling.
93571         * tests/test-fseeko.c (main): Likewise.
93572         * modules/fseeko (Depends-on): Add verify.
93573         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
93574         large.
93575         Reported by Larry Jones.
93577         Fix fseeko on mingw.
93578         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
93579         seek.
93581         Beef up fseek tests.
93582         * tests/test-fseek.c (main): Also test eof handling.
93583         * tests/test-fseeko.c (main): Likewise.
93584         Reported by Larry Jones.
93586 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
93588         Fix fseeko on BSD-based platforms.
93589         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
93590         successful seek.
93592 2007-12-12  Eric Blake  <ebb9@byu.net>
93594         Allow circular dependency of separate libtests.a
93595         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
93596         when use_libtests.
93598 2007-12-11  Eric Blake  <ebb9@byu.net>
93600         Fix bug with -0.0L in previous patch.
93601         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
93602         * tests/test-isnan.c (main): Also test on zeroes.
93603         * tests/test-isnanf.c (main): Likewise.
93604         * tests/test-isnanl.h (main): Likewise.
93606         Detect pseudo-denormals on x86 even when cross-compiling.
93607         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
93608         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
93609         invalid bit patterns that happen to satisfy ==.
93611         Avoid link failures with separate libtests.a.
93612         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
93613         last, to satisfy circular dependencies.
93615 2007-12-11  Eric Blake  <ebb9@byu.net>
93616         and Bruno Haible  <bruno@clisp.org>
93618         Fix OpenBSD 4.0 <float.h> handling of long double.
93619         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
93620         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
93621         * doc/headers/float.texi (float.h): Document OpenBSD bug.
93623 2007-12-11  Jim Meyering  <meyering@redhat.com>
93625         * users.txt: Add libvirt.
93627         Support versions of autoconf prior to 2.59c.
93628         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
93629         if it is not already defined.
93631 2007-12-09  Bruno Haible  <bruno@clisp.org>
93633         Let 'gnulib-tool --import' collect sources needed for the tests in
93634         tests/ rather than in lib/.
93635         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
93636         argument. If true, add rules to generate libtests.a, and put libtests.a
93637         into $(LDADD). Consider source files in subdirectories and set
93638         uses_subdirs.
93639         (func_emit_initmacro_start, func_emit_initmacro_end,
93640         func_emit_initmacro_done): Pass all arguments explicitly.
93641         (func_import): Determine two module lists main_modules,
93642         testsrelated_modules. Determine use_libtests. Determine two variables
93643         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
93644         instead of just sed_transform_lib_file. Determine two variables
93645         main_files and testsrelated_files. Compute 'files' as the union of
93646         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
93647         func_add_or_update. In the generated gnulib-comp.m4, collect the
93648         object files for tests/ in different variables than those for lib/.
93649         Substitute LIBTESTS_LIBDEPS.
93650         (func_create_testdir): Combine the uses_subdirs results from
93651         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
93653 2007-12-09  Bruno Haible  <bruno@clisp.org>
93655         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
93656         the build-aux directory.
93658 2007-12-09  Bruno Haible  <bruno@clisp.org>
93660         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
93661         introduced on 2006-09-09.
93663 2007-12-07  Jim Meyering  <meyering@redhat.com>
93665         Let these macros work also with autoconf-2.59.
93666         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
93667         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
93668         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
93670 2007-12-06  Jim Meyering  <meyering@redhat.com>
93672         Avoid a configure-time syntax error in gl_FUNC_ACL.
93673         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
93674         function in each branch, before testing the cache variable.
93676 2007-12-04  Eric Blake  <ebb9@byu.net>
93678         Make scripts executable.
93679         * build-aux/config.guess: Add execute permissions.
93680         * build-aux/config.sub: Likewise.
93681         * build-aux/gendocs.sh: Likewise.
93683         Fix frexp on mingw.
93684         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
93685         cross-compiling.
93686         * doc/functions/frexp.texi (frexp): Document the bug.
93688         Make cygwin fseeko check more reliable.
93689         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
93690         version numbers, rather than unrelated feature check.
93691         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
93692         * doc/functions/ftello.texi (ftello): Likewise.
93693         Reported by Bruno Haible.
93695         * m4/strerror.m4: Bump version number.
93697 2007-12-03  Bruno Haible  <bruno@clisp.org>
93699         * doc/functions/mprotect.texi: Mention the mingw problem.
93701 2007-12-03  Eric Blake  <ebb9@byu.net>
93703         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
93704         REPLACE_STRERROR is initialized before this macro.
93706 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
93708         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
93709         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
93710         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
93711         put -lsec in even for programs other than 'ls'.  This fixes a problem
93712         for gettext reported by Bruno Haible in
93713         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
93714         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
93715         Add support for Solaris 10.  This isn't efficient, but should get the
93716         job done for now.
93718 2007-12-03  James Youngman  <jay@gnu.org>
93720         * doc/regexprops-generic.texi: change "an close-group" to "a
93721         close-group" and "illegal" to "not allowed".
93723 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93725         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
93726         pr_byname.h. Needed for the rare case when the maintainer has done
93727         "make maintainer-clean" in the source directory and then attempts a
93728         build outside the source directory.
93729         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
93730         scripts_byname.h.
93732 2007-12-02  Martin Lambers  <marlam@marlam.de>
93733             Bruno Haible  <bruno@clisp.org>
93735         * lib/getpagesize.h: Remove file.
93736         * lib/unistd.in.h: Include declaration of getpagesize here.
93737         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
93738         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
93739         HAVE_SYS_PARAM_H.
93740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
93741         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
93742         * modules/getpagesize (Files): Remove lib/getpagesize.h.
93743         (Depends-on): Add unistd.
93744         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
93745         (Include): Use <unistd.h> instead of getpagesize.h.
93746         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
93747         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
93748         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
93749         gl_GETPAGESIZE invocation, already handled by module dependency.
93750         * lib/pagealign_alloc.c: Don't include getpagesize.h.
93752 2007-12-02  Bruno Haible  <bruno@clisp.org>
93754         * modules/strings-tests: New file.
93755         * tests/test-strings.c: New file.
93757         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
93758         * lib/strings.in.h: New file.
93759         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
93760         * m4/strings_h.m4: New file.
93761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
93762         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
93763         * modules/strings: New file.
93764         * modules/string (Makefile.am): Update.
93765         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
93766         Reported by Karl Berry.
93768 2007-12-01  Eric Blake  <ebb9@byu.net>
93770         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
93771         accommodate fix in cygwin 1.5.25.
93773 2007-12-01  Jim Meyering  <meyering@redhat.com>
93775         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
93776         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
93777         that would inhibit utf8-optimization of a regexp containing line-
93778         or buffer-anchors, e.g., `^', `$'.
93780 2007-11-30  Bruno Haible  <bruno@clisp.org>
93782         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
93783         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
93784         glthread_recursive_lock_init.
93785         * lib/lock.c (glthread_recursive_lock_init)
93786         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
93787         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
93789 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
93791         New function qset_acl, like set_acl but with syscall semantics.
93792         * lib/acl.h (qset_acl): New decl.
93793         * lib/acl.c (qset_acl): New function.
93794         (set_acl): Use new function.  Use more-consistent diagnostics.
93796 2007-11-28  Jim Meyering  <meyering@redhat.com>
93798         * modules/physmem (License): Change from GPL to LGPLv2+.
93800 2007-11-26  Bruno Haible  <bruno@clisp.org>
93802         * lib/vasnprintf.c (decode_long_double): Don't abort if the
93803         'long double' type has excess precision.
93804         Reported by Jim Meyering in
93805         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
93807 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93809         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
93810         Sync from <http://gnu.org/licenses>.
93811         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
93812         with license text from same location.
93813         * doc/maintain.texi, doc/standards.texi:  Sync from
93814         <http://savannah.gnu.org/projects/gnustandards>.
93816 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
93817         and Jim Meyering  <meyering@redhat.com>
93819         Adjust getdate' grammar to accept a slightly more regular language.
93820         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
93821         Before, the former was rejected.
93822         * lib/getdate.y (digits_to_date_time): New function, factored
93823         out of ...
93824         (number): ...here.  Just call digits_to_date_time.
93825         (hybrid): New non-terminal to handle an <unsigned number,
93826         signed relative offset> sequence consistently.
93828 2007-11-18  Jim Meyering  <meyering@redhat.com>
93830         Pull my changes from coreutils:
93831         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
93832         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
93833         use of $gnulib_tool_option_extras, so that it's separated from the
93834         preceding argument.
93836         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
93837         * build-aux/bootstrap (cp_mark_as_generated): Create any required
93838         parent destination directories before copying a file into place.
93840 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
93842         bootstrap: work also with 4-argument variant of AC_INIT
93843         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
93845 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
93847         Port test-getaddrinfo to Solaris.
93848         Problem reported by Bruno Haible in
93849         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
93850         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
93851         explanation of setting 'hints'.
93852         Don't reject an implementation merely because it returns EAI_SERVICE.
93853         (EAI_SERVICE): Define to 0 if not defined.
93855 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
93857         The license of gnu-make and posix-shell is now "GPLed build tool".
93858         * modules/gnu-make (License): Likewise.
93859         * modules/posix-shell (License): Likewise.
93861         New module posix-shell, for determining a POSIX shell
93862         or perhaps something that is close enough to a POSIX shell.
93863         * m4/posix-shell.m4: New file.
93864         * modules/posix-shell: New file.
93866         * MODULES.html.sh: Mention new module.
93868         New module gnu-make, for determining whether we're using GNU Make.
93869         * m4/gnu-make.m4: New file.
93870         * modules/gnu-make: New file.
93871         * MODULES.html.sh: Mention new module.
93873 2007-11-14  Jim Meyering  <meyering@redhat.com>
93875         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
93876         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
93877         use this macro to create a function _definition_.
93878         Remove useless "#undef ARGMATCH_DIE".
93880 2007-11-14  Bruno Haible  <bruno@clisp.org>
93882         * lib/config.charset: Update for OpenBSD 4.1.
93883         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
93885 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
93887         Document 64-bit #if problems in stdint.texi.
93888         * doc/headers/stdint.texi (stdint.h): Mention problems with
93889         64-bit-#if, and how to work around them.
93891         Don't insist on 'long long int' support in the preprocessor.  It
93892         breaks too many things.  For example, PRIdMAX still uses a 'long
93893         long int' format with the latest Sun compiler, even though
93894         HAVE_LONG_LONG_INT isn't defined due to that compiler's
93895         preprocessor problem.  This causes the latest coreutils to dump
93896         core on Solaris 10 sparc with the Sun C compiler.
93897         Instead, fix the 2007-10-16 problem in a different way, by evaluating
93898         the troublesome expressions at configure-time, not at #if-time.
93899         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
93900         preprocessor.
93901         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
93902         compile-time C checks, done at 'configure'-time.
93903         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
93904         * modules/inttypes (Makefile): Substitute the new symbols that
93905         gl_INTTYPES_H now generates.
93906         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
93908 2007-11-12  Bruno Haible  <bruno@clisp.org>
93910         Tests for Unicode character classification functions.
93912         * modules/unictype/bidicategory-byname-tests: New file.
93913         * modules/unictype/bidicategory-name-tests: New file.
93914         * modules/unictype/bidicategory-of-tests: New file.
93915         * modules/unictype/bidicategory-test-tests: New file.
93916         * modules/unictype/block-list-tests: New file.
93917         * modules/unictype/block-of-tests: New file.
93918         * modules/unictype/block-test-tests: New file.
93919         * modules/unictype/category-C-tests: New file.
93920         * modules/unictype/category-Cc-tests: New file.
93921         * modules/unictype/category-Cf-tests: New file.
93922         * modules/unictype/category-Cn-tests: New file.
93923         * modules/unictype/category-Co-tests: New file.
93924         * modules/unictype/category-Cs-tests: New file.
93925         * modules/unictype/category-L-tests: New file.
93926         * modules/unictype/category-Ll-tests: New file.
93927         * modules/unictype/category-Lm-tests: New file.
93928         * modules/unictype/category-Lo-tests: New file.
93929         * modules/unictype/category-Lt-tests: New file.
93930         * modules/unictype/category-Lu-tests: New file.
93931         * modules/unictype/category-M-tests: New file.
93932         * modules/unictype/category-Mc-tests: New file.
93933         * modules/unictype/category-Me-tests: New file.
93934         * modules/unictype/category-Mn-tests: New file.
93935         * modules/unictype/category-N-tests: New file.
93936         * modules/unictype/category-Nd-tests: New file.
93937         * modules/unictype/category-Nl-tests: New file.
93938         * modules/unictype/category-No-tests: New file.
93939         * modules/unictype/category-P-tests: New file.
93940         * modules/unictype/category-Pc-tests: New file.
93941         * modules/unictype/category-Pd-tests: New file.
93942         * modules/unictype/category-Pe-tests: New file.
93943         * modules/unictype/category-Pf-tests: New file.
93944         * modules/unictype/category-Pi-tests: New file.
93945         * modules/unictype/category-Po-tests: New file.
93946         * modules/unictype/category-Ps-tests: New file.
93947         * modules/unictype/category-S-tests: New file.
93948         * modules/unictype/category-Sc-tests: New file.
93949         * modules/unictype/category-Sk-tests: New file.
93950         * modules/unictype/category-Sm-tests: New file.
93951         * modules/unictype/category-So-tests: New file.
93952         * modules/unictype/category-Z-tests: New file.
93953         * modules/unictype/category-Zl-tests: New file.
93954         * modules/unictype/category-Zp-tests: New file.
93955         * modules/unictype/category-Zs-tests: New file.
93956         * modules/unictype/category-and-not-tests: New file.
93957         * modules/unictype/category-and-tests: New file.
93958         * modules/unictype/category-byname-tests: New file.
93959         * modules/unictype/category-name-tests: New file.
93960         * modules/unictype/category-none-tests: New file.
93961         * modules/unictype/category-of-tests: New file.
93962         * modules/unictype/category-or-tests: New file.
93963         * modules/unictype/category-test-withtable-tests: New file.
93964         * modules/unictype/combining-class-tests: New file.
93965         * modules/unictype/ctype-alnum-tests: New file.
93966         * modules/unictype/ctype-alpha-tests: New file.
93967         * modules/unictype/ctype-blank-tests: New file.
93968         * modules/unictype/ctype-cntrl-tests: New file.
93969         * modules/unictype/ctype-digit-tests: New file.
93970         * modules/unictype/ctype-graph-tests: New file.
93971         * modules/unictype/ctype-lower-tests: New file.
93972         * modules/unictype/ctype-print-tests: New file.
93973         * modules/unictype/ctype-punct-tests: New file.
93974         * modules/unictype/ctype-space-tests: New file.
93975         * modules/unictype/ctype-upper-tests: New file.
93976         * modules/unictype/ctype-xdigit-tests: New file.
93977         * modules/unictype/decimal-digit-tests: New file.
93978         * modules/unictype/digit-tests: New file.
93979         * modules/unictype/mirror-tests: New file.
93980         * modules/unictype/numeric-tests: New file.
93981         * modules/unictype/property-alphabetic-tests: New file.
93982         * modules/unictype/property-ascii-hex-digit-tests: New file.
93983         * modules/unictype/property-bidi-arabic-digit-tests: New file.
93984         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
93985         * modules/unictype/property-bidi-block-separator-tests: New file.
93986         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
93987         * modules/unictype/property-bidi-common-separator-tests: New file.
93988         * modules/unictype/property-bidi-control-tests: New file.
93989         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
93990         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
93991         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
93992         * modules/unictype/property-bidi-european-digit-tests: New file.
93993         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
93994         * modules/unictype/property-bidi-left-to-right-tests: New file.
93995         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
93996         * modules/unictype/property-bidi-other-neutral-tests: New file.
93997         * modules/unictype/property-bidi-pdf-tests: New file.
93998         * modules/unictype/property-bidi-segment-separator-tests: New file.
93999         * modules/unictype/property-bidi-whitespace-tests: New file.
94000         * modules/unictype/property-byname-tests: New file.
94001         * modules/unictype/property-combining-tests: New file.
94002         * modules/unictype/property-composite-tests: New file.
94003         * modules/unictype/property-currency-symbol-tests: New file.
94004         * modules/unictype/property-dash-tests: New file.
94005         * modules/unictype/property-decimal-digit-tests: New file.
94006         * modules/unictype/property-default-ignorable-code-point-tests: New file.
94007         * modules/unictype/property-deprecated-tests: New file.
94008         * modules/unictype/property-diacritic-tests: New file.
94009         * modules/unictype/property-extender-tests: New file.
94010         * modules/unictype/property-format-control-tests: New file.
94011         * modules/unictype/property-grapheme-base-tests: New file.
94012         * modules/unictype/property-grapheme-extend-tests: New file.
94013         * modules/unictype/property-grapheme-link-tests: New file.
94014         * modules/unictype/property-hex-digit-tests: New file.
94015         * modules/unictype/property-hyphen-tests: New file.
94016         * modules/unictype/property-id-continue-tests: New file.
94017         * modules/unictype/property-id-start-tests: New file.
94018         * modules/unictype/property-ideographic-tests: New file.
94019         * modules/unictype/property-ids-binary-operator-tests: New file.
94020         * modules/unictype/property-ids-trinary-operator-tests: New file.
94021         * modules/unictype/property-ignorable-control-tests: New file.
94022         * modules/unictype/property-iso-control-tests: New file.
94023         * modules/unictype/property-join-control-tests: New file.
94024         * modules/unictype/property-left-of-pair-tests: New file.
94025         * modules/unictype/property-line-separator-tests: New file.
94026         * modules/unictype/property-logical-order-exception-tests: New file.
94027         * modules/unictype/property-lowercase-tests: New file.
94028         * modules/unictype/property-math-tests: New file.
94029         * modules/unictype/property-non-break-tests: New file.
94030         * modules/unictype/property-not-a-character-tests: New file.
94031         * modules/unictype/property-numeric-tests: New file.
94032         * modules/unictype/property-other-alphabetic-tests: New file.
94033         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
94034         * modules/unictype/property-other-grapheme-extend-tests: New file.
94035         * modules/unictype/property-other-id-continue-tests: New file.
94036         * modules/unictype/property-other-id-start-tests: New file.
94037         * modules/unictype/property-other-lowercase-tests: New file.
94038         * modules/unictype/property-other-math-tests: New file.
94039         * modules/unictype/property-other-uppercase-tests: New file.
94040         * modules/unictype/property-paired-punctuation-tests: New file.
94041         * modules/unictype/property-paragraph-separator-tests: New file.
94042         * modules/unictype/property-pattern-syntax-tests: New file.
94043         * modules/unictype/property-pattern-white-space-tests: New file.
94044         * modules/unictype/property-private-use-tests: New file.
94045         * modules/unictype/property-punctuation-tests: New file.
94046         * modules/unictype/property-quotation-mark-tests: New file.
94047         * modules/unictype/property-radical-tests: New file.
94048         * modules/unictype/property-sentence-terminal-tests: New file.
94049         * modules/unictype/property-soft-dotted-tests: New file.
94050         * modules/unictype/property-space-tests: New file.
94051         * modules/unictype/property-terminal-punctuation-tests: New file.
94052         * modules/unictype/property-test-tests: New file.
94053         * modules/unictype/property-titlecase-tests: New file.
94054         * modules/unictype/property-unassigned-code-value-tests: New file.
94055         * modules/unictype/property-unified-ideograph-tests: New file.
94056         * modules/unictype/property-uppercase-tests: New file.
94057         * modules/unictype/property-variation-selector-tests: New file.
94058         * modules/unictype/property-white-space-tests: New file.
94059         * modules/unictype/property-xid-continue-tests: New file.
94060         * modules/unictype/property-xid-start-tests: New file.
94061         * modules/unictype/property-zero-width-tests: New file.
94062         * modules/unictype/scripts-tests: New file.
94063         * modules/unictype/syntax-c-ident-tests: New file.
94064         * modules/unictype/syntax-c-whitespace-tests: New file.
94065         * modules/unictype/syntax-java-ident-tests: New file.
94066         * modules/unictype/syntax-java-whitespace-tests: New file.
94067         * tests/unictype/test-bidi_byname.c: New file.
94068         * tests/unictype/test-bidi_name.c: New file.
94069         * tests/unictype/test-bidi_of.c: New file.
94070         * tests/unictype/test-bidi_test.c: New file.
94071         * tests/unictype/test-block_list.c: New file.
94072         * tests/unictype/test-block_of.c: New file.
94073         * tests/unictype/test-block_test.c: New file.
94074         * tests/unictype/test-categ_and.c: New file.
94075         * tests/unictype/test-categ_and_not.c: New file.
94076         * tests/unictype/test-categ_byname.c: New file.
94077         * tests/unictype/test-categ_name.c: New file.
94078         * tests/unictype/test-categ_none.c: New file.
94079         * tests/unictype/test-categ_of.c: New file.
94080         * tests/unictype/test-categ_or.c: New file.
94081         * tests/unictype/test-categ_test_withtable.c: New file.
94082         * tests/unictype/test-combining.c: New file.
94083         * tests/unictype/test-decdigit.c: New file.
94084         * tests/unictype/test-digit.c: New file.
94085         * tests/unictype/test-mirror.c: New file.
94086         * tests/unictype/test-numeric.c: New file.
94087         * tests/unictype/test-pr_byname.c: New file.
94088         * tests/unictype/test-pr_test.c: New file.
94089         * tests/unictype/test-predicate-part1.h: New file.
94090         * tests/unictype/test-predicate-part2.h: New file.
94091         * tests/unictype/test-scripts.c: New file.
94092         * tests/unictype/test-sy_c_ident.c: New file.
94093         * tests/unictype/test-sy_java_ident.c: New file.
94095         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
94096         for Unicode 5.0.0.
94097         * tests/unictype/test-categ_Cc.c: Likewise.
94098         * tests/unictype/test-categ_Cf.c: Likewise.
94099         * tests/unictype/test-categ_Cn.c: Likewise.
94100         * tests/unictype/test-categ_Co.c: Likewise.
94101         * tests/unictype/test-categ_Cs.c: Likewise.
94102         * tests/unictype/test-categ_L.c: Likewise.
94103         * tests/unictype/test-categ_Ll.c: Likewise.
94104         * tests/unictype/test-categ_Lm.c: Likewise.
94105         * tests/unictype/test-categ_Lo.c: Likewise.
94106         * tests/unictype/test-categ_Lt.c: Likewise.
94107         * tests/unictype/test-categ_Lu.c: Likewise.
94108         * tests/unictype/test-categ_M.c: Likewise.
94109         * tests/unictype/test-categ_Mc.c: Likewise.
94110         * tests/unictype/test-categ_Me.c: Likewise.
94111         * tests/unictype/test-categ_Mn.c: Likewise.
94112         * tests/unictype/test-categ_N.c: Likewise.
94113         * tests/unictype/test-categ_Nd.c: Likewise.
94114         * tests/unictype/test-categ_Nl.c: Likewise.
94115         * tests/unictype/test-categ_No.c: Likewise.
94116         * tests/unictype/test-categ_P.c: Likewise.
94117         * tests/unictype/test-categ_Pc.c: Likewise.
94118         * tests/unictype/test-categ_Pd.c: Likewise.
94119         * tests/unictype/test-categ_Pe.c: Likewise.
94120         * tests/unictype/test-categ_Pf.c: Likewise.
94121         * tests/unictype/test-categ_Pi.c: Likewise.
94122         * tests/unictype/test-categ_Po.c: Likewise.
94123         * tests/unictype/test-categ_Ps.c: Likewise.
94124         * tests/unictype/test-categ_S.c: Likewise.
94125         * tests/unictype/test-categ_Sc.c: Likewise.
94126         * tests/unictype/test-categ_Sk.c: Likewise.
94127         * tests/unictype/test-categ_Sm.c: Likewise.
94128         * tests/unictype/test-categ_So.c: Likewise.
94129         * tests/unictype/test-categ_Z.c: Likewise.
94130         * tests/unictype/test-categ_Zl.c: Likewise.
94131         * tests/unictype/test-categ_Zp.c: Likewise.
94132         * tests/unictype/test-categ_Zs.c: Likewise.
94133         * tests/unictype/test-ctype_alnum.c: Likewise.
94134         * tests/unictype/test-ctype_alpha.c: Likewise.
94135         * tests/unictype/test-ctype_blank.c: Likewise.
94136         * tests/unictype/test-ctype_cntrl.c: Likewise.
94137         * tests/unictype/test-ctype_digit.c: Likewise.
94138         * tests/unictype/test-ctype_graph.c: Likewise.
94139         * tests/unictype/test-ctype_lower.c: Likewise.
94140         * tests/unictype/test-ctype_print.c: Likewise.
94141         * tests/unictype/test-ctype_punct.c: Likewise.
94142         * tests/unictype/test-ctype_space.c: Likewise.
94143         * tests/unictype/test-ctype_upper.c: Likewise.
94144         * tests/unictype/test-ctype_xdigit.c: Likewise.
94145         * tests/unictype/test-decdigit.h: Likewise.
94146         * tests/unictype/test-digit.h: Likewise.
94147         * tests/unictype/test-numeric.h: Likewise.
94148         * tests/unictype/test-pr_alphabetic.c: Likewise.
94149         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
94150         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
94151         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
94152         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
94153         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
94154         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
94155         * tests/unictype/test-pr_bidi_control.c: Likewise.
94156         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
94157         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
94158         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
94159         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
94160         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
94161         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
94162         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
94163         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
94164         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
94165         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
94166         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
94167         * tests/unictype/test-pr_combining.c: Likewise.
94168         * tests/unictype/test-pr_composite.c: Likewise.
94169         * tests/unictype/test-pr_currency_symbol.c: Likewise.
94170         * tests/unictype/test-pr_dash.c: Likewise.
94171         * tests/unictype/test-pr_decimal_digit.c: Likewise.
94172         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
94173         * tests/unictype/test-pr_deprecated.c: Likewise.
94174         * tests/unictype/test-pr_diacritic.c: Likewise.
94175         * tests/unictype/test-pr_extender.c: Likewise.
94176         * tests/unictype/test-pr_format_control.c: Likewise.
94177         * tests/unictype/test-pr_grapheme_base.c: Likewise.
94178         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
94179         * tests/unictype/test-pr_grapheme_link.c: Likewise.
94180         * tests/unictype/test-pr_hex_digit.c: Likewise.
94181         * tests/unictype/test-pr_hyphen.c: Likewise.
94182         * tests/unictype/test-pr_id_continue.c: Likewise.
94183         * tests/unictype/test-pr_id_start.c: Likewise.
94184         * tests/unictype/test-pr_ideographic.c: Likewise.
94185         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
94186         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
94187         * tests/unictype/test-pr_ignorable_control.c: Likewise.
94188         * tests/unictype/test-pr_iso_control.c: Likewise.
94189         * tests/unictype/test-pr_join_control.c: Likewise.
94190         * tests/unictype/test-pr_left_of_pair.c: Likewise.
94191         * tests/unictype/test-pr_line_separator.c: Likewise.
94192         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
94193         * tests/unictype/test-pr_lowercase.c: Likewise.
94194         * tests/unictype/test-pr_math.c: Likewise.
94195         * tests/unictype/test-pr_non_break.c: Likewise.
94196         * tests/unictype/test-pr_not_a_character.c: Likewise.
94197         * tests/unictype/test-pr_numeric.c: Likewise.
94198         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
94199         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
94200         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
94201         * tests/unictype/test-pr_other_id_continue.c: Likewise.
94202         * tests/unictype/test-pr_other_id_start.c: Likewise.
94203         * tests/unictype/test-pr_other_lowercase.c: Likewise.
94204         * tests/unictype/test-pr_other_math.c: Likewise.
94205         * tests/unictype/test-pr_other_uppercase.c: Likewise.
94206         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
94207         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
94208         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
94209         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
94210         * tests/unictype/test-pr_private_use.c: Likewise.
94211         * tests/unictype/test-pr_punctuation.c: Likewise.
94212         * tests/unictype/test-pr_quotation_mark.c: Likewise.
94213         * tests/unictype/test-pr_radical.c: Likewise.
94214         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
94215         * tests/unictype/test-pr_soft_dotted.c: Likewise.
94216         * tests/unictype/test-pr_space.c: Likewise.
94217         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
94218         * tests/unictype/test-pr_titlecase.c: Likewise.
94219         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
94220         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
94221         * tests/unictype/test-pr_uppercase.c: Likewise.
94222         * tests/unictype/test-pr_variation_selector.c: Likewise.
94223         * tests/unictype/test-pr_white_space.c: Likewise.
94224         * tests/unictype/test-pr_xid_continue.c: Likewise.
94225         * tests/unictype/test-pr_xid_start.c: Likewise.
94226         * tests/unictype/test-pr_zero_width.c: Likewise.
94227         * tests/unictype/test-sy_c_whitespace.c: Likewise.
94228         * tests/unictype/test-sy_java_whitespace.c: Likewise.
94230 2007-11-12  Bruno Haible  <bruno@clisp.org>
94232         Unicode character classification functions.
94233         * lib/unictype.h: New file.
94234         * modules/unictype/base: New file.
94235         * modules/unictype/category-L: New file.
94236         * modules/unictype/category-Lu: New file.
94237         * modules/unictype/category-Ll: New file.
94238         * modules/unictype/category-Lt: New file.
94239         * modules/unictype/category-Lm: New file.
94240         * modules/unictype/category-Lo: New file.
94241         * modules/unictype/category-M: New file.
94242         * modules/unictype/category-Mn: New file.
94243         * modules/unictype/category-Mc: New file.
94244         * modules/unictype/category-Me: New file.
94245         * modules/unictype/category-N: New file.
94246         * modules/unictype/category-Nd: New file.
94247         * modules/unictype/category-Nl: New file.
94248         * modules/unictype/category-No: New file.
94249         * modules/unictype/category-P: New file.
94250         * modules/unictype/category-Pc: New file.
94251         * modules/unictype/category-Pd: New file.
94252         * modules/unictype/category-Ps: New file.
94253         * modules/unictype/category-Pe: New file.
94254         * modules/unictype/category-Pi: New file.
94255         * modules/unictype/category-Pf: New file.
94256         * modules/unictype/category-Po: New file.
94257         * modules/unictype/category-S: New file.
94258         * modules/unictype/category-Sm: New file.
94259         * modules/unictype/category-Sc: New file.
94260         * modules/unictype/category-Sk: New file.
94261         * modules/unictype/category-So: New file.
94262         * modules/unictype/category-Z: New file.
94263         * modules/unictype/category-Zs: New file.
94264         * modules/unictype/category-Zl: New file.
94265         * modules/unictype/category-Zp: New file.
94266         * modules/unictype/category-C: New file.
94267         * modules/unictype/category-Cc: New file.
94268         * modules/unictype/category-Cf: New file.
94269         * modules/unictype/category-Cs: New file.
94270         * modules/unictype/category-Co: New file.
94271         * modules/unictype/category-Cn: New file.
94272         * modules/unictype/category-or: New file.
94273         * modules/unictype/category-of: New file.
94274         * modules/unictype/category-test: New file.
94275         * modules/unictype/category-test-withtable: New file.
94276         * modules/unictype/category-byname: New file.
94277         * modules/unictype/category-none: New file.
94278         * modules/unictype/category-and: New file.
94279         * modules/unictype/category-and-not: New file.
94280         * modules/unictype/category-name: New file.
94281         * modules/unictype/combining-class: New file.
94282         * modules/unictype/category-all: New file.
94283         * modules/unictype/bidicategory-all: New file.
94284         * modules/unictype/bidicategory-byname: New file.
94285         * modules/unictype/bidicategory-name: New file.
94286         * modules/unictype/bidicategory-of: New file.
94287         * modules/unictype/bidicategory-test: New file.
94288         * modules/unictype/decimal-digit: New file.
94289         * modules/unictype/digit: New file.
94290         * modules/unictype/numeric: New file.
94291         * modules/unictype/mirror: New file.
94292         * modules/unictype/property-white-space: New file.
94293         * modules/unictype/property-alphabetic: New file.
94294         * modules/unictype/property-other-alphabetic: New file.
94295         * modules/unictype/property-not-a-character: New file.
94296         * modules/unictype/property-default-ignorable-code-point: New file.
94297         * modules/unictype/property-other-default-ignorable-code-point: New
94298         file.
94299         * modules/unictype/property-deprecated: New file.
94300         * modules/unictype/property-logical-order-exception: New file.
94301         * modules/unictype/property-variation-selector: New file.
94302         * modules/unictype/property-private-use: New file.
94303         * modules/unictype/property-unassigned-code-value: New file.
94304         * modules/unictype/property-uppercase: New file.
94305         * modules/unictype/property-other-uppercase: New file.
94306         * modules/unictype/property-lowercase: New file.
94307         * modules/unictype/property-other-lowercase: New file.
94308         * modules/unictype/property-titlecase: New file.
94309         * modules/unictype/property-soft-dotted: New file.
94310         * modules/unictype/property-id-start: New file.
94311         * modules/unictype/property-other-id-start: New file.
94312         * modules/unictype/property-id-continue: New file.
94313         * modules/unictype/property-other-id-continue: New file.
94314         * modules/unictype/property-xid-start: New file.
94315         * modules/unictype/property-xid-continue: New file.
94316         * modules/unictype/property-pattern-white-space: New file.
94317         * modules/unictype/property-pattern-syntax: New file.
94318         * modules/unictype/property-join-control: New file.
94319         * modules/unictype/property-grapheme-base: New file.
94320         * modules/unictype/property-grapheme-extend: New file.
94321         * modules/unictype/property-other-grapheme-extend: New file.
94322         * modules/unictype/property-grapheme-link: New file.
94323         * modules/unictype/property-bidi-control: New file.
94324         * modules/unictype/property-bidi-left-to-right: New file.
94325         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
94326         * modules/unictype/property-bidi-arabic-right-to-left: New file.
94327         * modules/unictype/property-bidi-european-digit: New file.
94328         * modules/unictype/property-bidi-eur-num-separator: New file.
94329         * modules/unictype/property-bidi-eur-num-terminator: New file.
94330         * modules/unictype/property-bidi-arabic-digit: New file.
94331         * modules/unictype/property-bidi-common-separator: New file.
94332         * modules/unictype/property-bidi-block-separator: New file.
94333         * modules/unictype/property-bidi-segment-separator: New file.
94334         * modules/unictype/property-bidi-whitespace: New file.
94335         * modules/unictype/property-bidi-non-spacing-mark: New file.
94336         * modules/unictype/property-bidi-boundary-neutral: New file.
94337         * modules/unictype/property-bidi-pdf: New file.
94338         * modules/unictype/property-bidi-embedding-or-override: New file.
94339         * modules/unictype/property-bidi-other-neutral: New file.
94340         * modules/unictype/property-hex-digit: New file.
94341         * modules/unictype/property-ascii-hex-digit: New file.
94342         * modules/unictype/property-ideographic: New file.
94343         * modules/unictype/property-unified-ideograph: New file.
94344         * modules/unictype/property-radical: New file.
94345         * modules/unictype/property-ids-binary-operator: New file.
94346         * modules/unictype/property-ids-trinary-operator: New file.
94347         * modules/unictype/property-zero-width: New file.
94348         * modules/unictype/property-space: New file.
94349         * modules/unictype/property-non-break: New file.
94350         * modules/unictype/property-iso-control: New file.
94351         * modules/unictype/property-format-control: New file.
94352         * modules/unictype/property-dash: New file.
94353         * modules/unictype/property-hyphen: New file.
94354         * modules/unictype/property-punctuation: New file.
94355         * modules/unictype/property-line-separator: New file.
94356         * modules/unictype/property-paragraph-separator: New file.
94357         * modules/unictype/property-quotation-mark: New file.
94358         * modules/unictype/property-sentence-terminal: New file.
94359         * modules/unictype/property-terminal-punctuation: New file.
94360         * modules/unictype/property-currency-symbol: New file.
94361         * modules/unictype/property-math: New file.
94362         * modules/unictype/property-other-math: New file.
94363         * modules/unictype/property-paired-punctuation: New file.
94364         * modules/unictype/property-left-of-pair: New file.
94365         * modules/unictype/property-combining: New file.
94366         * modules/unictype/property-composite: New file.
94367         * modules/unictype/property-decimal-digit: New file.
94368         * modules/unictype/property-numeric: New file.
94369         * modules/unictype/property-diacritic: New file.
94370         * modules/unictype/property-extender: New file.
94371         * modules/unictype/property-ignorable-control: New file.
94372         * modules/unictype/property-test: New file.
94373         * modules/unictype/property-byname: New file.
94374         * modules/unictype/property-all: New file.
94375         * modules/unictype/scripts: New file.
94376         * modules/unictype/scripts-all: New file.
94377         * modules/unictype/block-of: New file.
94378         * modules/unictype/block-test: New file.
94379         * modules/unictype/block-list: New file.
94380         * modules/unictype/block-all: New file.
94381         * modules/unictype/syntax-c-whitespace: New file.
94382         * modules/unictype/syntax-java-whitespace: New file.
94383         * modules/unictype/syntax-c-ident: New file.
94384         * modules/unictype/syntax-java-ident: New file.
94385         * modules/unictype/ctype-alnum: New file.
94386         * modules/unictype/ctype-alpha: New file.
94387         * modules/unictype/ctype-cntrl: New file.
94388         * modules/unictype/ctype-digit: New file.
94389         * modules/unictype/ctype-graph: New file.
94390         * modules/unictype/ctype-lower: New file.
94391         * modules/unictype/ctype-print: New file.
94392         * modules/unictype/ctype-punct: New file.
94393         * modules/unictype/ctype-space: New file.
94394         * modules/unictype/ctype-upper: New file.
94395         * modules/unictype/ctype-xdigit: New file.
94396         * modules/unictype/ctype-blank: New file.
94397         * lib/unictype/bidi_byname.c: New file.
94398         * lib/unictype/bidi_name.c: New file.
94399         * lib/unictype/bidi_of.c: New file.
94400         * lib/unictype/bidi_test.c: New file.
94401         * lib/unictype/bitmap.h: New file.
94402         * lib/unictype/block_test.c: New file.
94403         * lib/unictype/blocks.c: New file.
94404         * lib/unictype/categ_C.c: New file.
94405         * lib/unictype/categ_Cc.c: New file.
94406         * lib/unictype/categ_Cf.c: New file.
94407         * lib/unictype/categ_Cn.c: New file.
94408         * lib/unictype/categ_Co.c: New file.
94409         * lib/unictype/categ_Cs.c: New file.
94410         * lib/unictype/categ_L.c: New file.
94411         * lib/unictype/categ_Ll.c: New file.
94412         * lib/unictype/categ_Lm.c: New file.
94413         * lib/unictype/categ_Lo.c: New file.
94414         * lib/unictype/categ_Lt.c: New file.
94415         * lib/unictype/categ_Lu.c: New file.
94416         * lib/unictype/categ_M.c: New file.
94417         * lib/unictype/categ_Mc.c: New file.
94418         * lib/unictype/categ_Me.c: New file.
94419         * lib/unictype/categ_Mn.c: New file.
94420         * lib/unictype/categ_N.c: New file.
94421         * lib/unictype/categ_Nd.c: New file.
94422         * lib/unictype/categ_Nl.c: New file.
94423         * lib/unictype/categ_No.c: New file.
94424         * lib/unictype/categ_P.c: New file.
94425         * lib/unictype/categ_Pc.c: New file.
94426         * lib/unictype/categ_Pd.c: New file.
94427         * lib/unictype/categ_Pe.c: New file.
94428         * lib/unictype/categ_Pf.c: New file.
94429         * lib/unictype/categ_Pi.c: New file.
94430         * lib/unictype/categ_Po.c: New file.
94431         * lib/unictype/categ_Ps.c: New file.
94432         * lib/unictype/categ_S.c: New file.
94433         * lib/unictype/categ_Sc.c: New file.
94434         * lib/unictype/categ_Sk.c: New file.
94435         * lib/unictype/categ_Sm.c: New file.
94436         * lib/unictype/categ_So.c: New file.
94437         * lib/unictype/categ_Z.c: New file.
94438         * lib/unictype/categ_Zl.c: New file.
94439         * lib/unictype/categ_Zp.c: New file.
94440         * lib/unictype/categ_Zs.c: New file.
94441         * lib/unictype/categ_and.c: New file.
94442         * lib/unictype/categ_and_not.c: New file.
94443         * lib/unictype/categ_byname.c: New file.
94444         * lib/unictype/categ_name.c: New file.
94445         * lib/unictype/categ_none.c: New file.
94446         * lib/unictype/categ_of.c: New file.
94447         * lib/unictype/categ_or.c: New file.
94448         * lib/unictype/categ_test.c: New file.
94449         * lib/unictype/combining.c: New file.
94450         * lib/unictype/ctype_alnum.c: New file.
94451         * lib/unictype/ctype_alpha.c: New file.
94452         * lib/unictype/ctype_blank.c: New file.
94453         * lib/unictype/ctype_cntrl.c: New file.
94454         * lib/unictype/ctype_digit.c: New file.
94455         * lib/unictype/ctype_graph.c: New file.
94456         * lib/unictype/ctype_lower.c: New file.
94457         * lib/unictype/ctype_print.c: New file.
94458         * lib/unictype/ctype_punct.c: New file.
94459         * lib/unictype/ctype_space.c: New file.
94460         * lib/unictype/ctype_upper.c: New file.
94461         * lib/unictype/ctype_xdigit.c: New file.
94462         * lib/unictype/decdigit.c: New file.
94463         * lib/unictype/digit.c: New file.
94464         * lib/unictype/identsyntaxmap.h: New file.
94465         * lib/unictype/mirror.c: New file.
94466         * lib/unictype/numeric.c: New file.
94467         * lib/unictype/pr_alphabetic.c: New file.
94468         * lib/unictype/pr_ascii_hex_digit.c: New file.
94469         * lib/unictype/pr_bidi_arabic_digit.c: New file.
94470         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
94471         * lib/unictype/pr_bidi_block_separator.c: New file.
94472         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
94473         * lib/unictype/pr_bidi_common_separator.c: New file.
94474         * lib/unictype/pr_bidi_control.c: New file.
94475         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
94476         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
94477         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
94478         * lib/unictype/pr_bidi_european_digit.c: New file.
94479         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
94480         * lib/unictype/pr_bidi_left_to_right.c: New file.
94481         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
94482         * lib/unictype/pr_bidi_other_neutral.c: New file.
94483         * lib/unictype/pr_bidi_pdf.c: New file.
94484         * lib/unictype/pr_bidi_segment_separator.c: New file.
94485         * lib/unictype/pr_bidi_whitespace.c: New file.
94486         * lib/unictype/pr_byname.c: New file.
94487         * lib/unictype/pr_byname.gperf: New file.
94488         * lib/unictype/pr_combining.c: New file.
94489         * lib/unictype/pr_composite.c: New file.
94490         * lib/unictype/pr_currency_symbol.c: New file.
94491         * lib/unictype/pr_dash.c: New file.
94492         * lib/unictype/pr_decimal_digit.c: New file.
94493         * lib/unictype/pr_default_ignorable_code_point.c: New file.
94494         * lib/unictype/pr_deprecated.c: New file.
94495         * lib/unictype/pr_diacritic.c: New file.
94496         * lib/unictype/pr_extender.c: New file.
94497         * lib/unictype/pr_format_control.c: New file.
94498         * lib/unictype/pr_grapheme_base.c: New file.
94499         * lib/unictype/pr_grapheme_extend.c: New file.
94500         * lib/unictype/pr_grapheme_link.c: New file.
94501         * lib/unictype/pr_hex_digit.c: New file.
94502         * lib/unictype/pr_hyphen.c: New file.
94503         * lib/unictype/pr_id_continue.c: New file.
94504         * lib/unictype/pr_id_start.c: New file.
94505         * lib/unictype/pr_ideographic.c: New file.
94506         * lib/unictype/pr_ids_binary_operator.c: New file.
94507         * lib/unictype/pr_ids_trinary_operator.c: New file.
94508         * lib/unictype/pr_ignorable_control.c: New file.
94509         * lib/unictype/pr_iso_control.c: New file.
94510         * lib/unictype/pr_join_control.c: New file.
94511         * lib/unictype/pr_left_of_pair.c: New file.
94512         * lib/unictype/pr_line_separator.c: New file.
94513         * lib/unictype/pr_logical_order_exception.c: New file.
94514         * lib/unictype/pr_lowercase.c: New file.
94515         * lib/unictype/pr_math.c: New file.
94516         * lib/unictype/pr_non_break.c: New file.
94517         * lib/unictype/pr_not_a_character.c: New file.
94518         * lib/unictype/pr_numeric.c: New file.
94519         * lib/unictype/pr_other_alphabetic.c: New file.
94520         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
94521         * lib/unictype/pr_other_grapheme_extend.c: New file.
94522         * lib/unictype/pr_other_id_continue.c: New file.
94523         * lib/unictype/pr_other_id_start.c: New file.
94524         * lib/unictype/pr_other_lowercase.c: New file.
94525         * lib/unictype/pr_other_math.c: New file.
94526         * lib/unictype/pr_other_uppercase.c: New file.
94527         * lib/unictype/pr_paired_punctuation.c: New file.
94528         * lib/unictype/pr_paragraph_separator.c: New file.
94529         * lib/unictype/pr_pattern_syntax.c: New file.
94530         * lib/unictype/pr_pattern_white_space.c: New file.
94531         * lib/unictype/pr_private_use.c: New file.
94532         * lib/unictype/pr_punctuation.c: New file.
94533         * lib/unictype/pr_quotation_mark.c: New file.
94534         * lib/unictype/pr_radical.c: New file.
94535         * lib/unictype/pr_sentence_terminal.c: New file.
94536         * lib/unictype/pr_soft_dotted.c: New file.
94537         * lib/unictype/pr_space.c: New file.
94538         * lib/unictype/pr_terminal_punctuation.c: New file.
94539         * lib/unictype/pr_test.c: New file.
94540         * lib/unictype/pr_titlecase.c: New file.
94541         * lib/unictype/pr_unassigned_code_value.c: New file.
94542         * lib/unictype/pr_unified_ideograph.c: New file.
94543         * lib/unictype/pr_uppercase.c: New file.
94544         * lib/unictype/pr_variation_selector.c: New file.
94545         * lib/unictype/pr_white_space.c: New file.
94546         * lib/unictype/pr_xid_continue.c: New file.
94547         * lib/unictype/pr_xid_start.c: New file.
94548         * lib/unictype/pr_zero_width.c: New file.
94549         * lib/unictype/scripts.c: New file.
94550         * lib/unictype/sy_c_ident.c: New file.
94551         * lib/unictype/sy_c_whitespace.c: New file.
94552         * lib/unictype/sy_java_ident.c: New file.
94553         * lib/unictype/sy_java_whitespace.c: New file.
94555         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
94556         Unicode 5.0.0.
94557         * lib/unictype/blocks.h: Likewise.
94558         * lib/unictype/categ_C.h: Likewise.
94559         * lib/unictype/categ_Cc.h: Likewise.
94560         * lib/unictype/categ_Cf.h: Likewise.
94561         * lib/unictype/categ_Cn.h: Likewise.
94562         * lib/unictype/categ_Co.h: Likewise.
94563         * lib/unictype/categ_Cs.h: Likewise.
94564         * lib/unictype/categ_L.h: Likewise.
94565         * lib/unictype/categ_Ll.h: Likewise.
94566         * lib/unictype/categ_Lm.h: Likewise.
94567         * lib/unictype/categ_Lo.h: Likewise.
94568         * lib/unictype/categ_Lt.h: Likewise.
94569         * lib/unictype/categ_Lu.h: Likewise.
94570         * lib/unictype/categ_M.h: Likewise.
94571         * lib/unictype/categ_Mc.h: Likewise.
94572         * lib/unictype/categ_Me.h: Likewise.
94573         * lib/unictype/categ_Mn.h: Likewise.
94574         * lib/unictype/categ_N.h: Likewise.
94575         * lib/unictype/categ_Nd.h: Likewise.
94576         * lib/unictype/categ_Nl.h: Likewise.
94577         * lib/unictype/categ_No.h: Likewise.
94578         * lib/unictype/categ_P.h: Likewise.
94579         * lib/unictype/categ_Pc.h: Likewise.
94580         * lib/unictype/categ_Pd.h: Likewise.
94581         * lib/unictype/categ_Pe.h: Likewise.
94582         * lib/unictype/categ_Pf.h: Likewise.
94583         * lib/unictype/categ_Pi.h: Likewise.
94584         * lib/unictype/categ_Po.h: Likewise.
94585         * lib/unictype/categ_Ps.h: Likewise.
94586         * lib/unictype/categ_S.h: Likewise.
94587         * lib/unictype/categ_Sc.h: Likewise.
94588         * lib/unictype/categ_Sk.h: Likewise.
94589         * lib/unictype/categ_Sm.h: Likewise.
94590         * lib/unictype/categ_So.h: Likewise.
94591         * lib/unictype/categ_Z.h: Likewise.
94592         * lib/unictype/categ_Zl.h: Likewise.
94593         * lib/unictype/categ_Zp.h: Likewise.
94594         * lib/unictype/categ_Zs.h: Likewise.
94595         * lib/unictype/categ_of.h: Likewise.
94596         * lib/unictype/combining.h: Likewise.
94597         * lib/unictype/ctype_alnum.h: Likewise.
94598         * lib/unictype/ctype_alpha.h: Likewise.
94599         * lib/unictype/ctype_blank.h: Likewise.
94600         * lib/unictype/ctype_cntrl.h: Likewise.
94601         * lib/unictype/ctype_digit.h: Likewise.
94602         * lib/unictype/ctype_graph.h: Likewise.
94603         * lib/unictype/ctype_lower.h: Likewise.
94604         * lib/unictype/ctype_print.h: Likewise.
94605         * lib/unictype/ctype_punct.h: Likewise.
94606         * lib/unictype/ctype_space.h: Likewise.
94607         * lib/unictype/ctype_upper.h: Likewise.
94608         * lib/unictype/ctype_xdigit.h: Likewise.
94609         * lib/unictype/decdigit.h: Likewise.
94610         * lib/unictype/digit.h: Likewise.
94611         * lib/unictype/mirror.h: Likewise.
94612         * lib/unictype/numeric.h: Likewise.
94613         * lib/unictype/pr_alphabetic.h: Likewise.
94614         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
94615         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
94616         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
94617         * lib/unictype/pr_bidi_block_separator.h: Likewise.
94618         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
94619         * lib/unictype/pr_bidi_common_separator.h: Likewise.
94620         * lib/unictype/pr_bidi_control.h: Likewise.
94621         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
94622         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
94623         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
94624         * lib/unictype/pr_bidi_european_digit.h: Likewise.
94625         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
94626         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
94627         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
94628         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
94629         * lib/unictype/pr_bidi_pdf.h: Likewise.
94630         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
94631         * lib/unictype/pr_bidi_whitespace.h: Likewise.
94632         * lib/unictype/pr_combining.h: Likewise.
94633         * lib/unictype/pr_composite.h: Likewise.
94634         * lib/unictype/pr_currency_symbol.h: Likewise.
94635         * lib/unictype/pr_dash.h: Likewise.
94636         * lib/unictype/pr_decimal_digit.h: Likewise.
94637         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
94638         * lib/unictype/pr_deprecated.h: Likewise.
94639         * lib/unictype/pr_diacritic.h: Likewise.
94640         * lib/unictype/pr_extender.h: Likewise.
94641         * lib/unictype/pr_format_control.h: Likewise.
94642         * lib/unictype/pr_grapheme_base.h: Likewise.
94643         * lib/unictype/pr_grapheme_extend.h: Likewise.
94644         * lib/unictype/pr_grapheme_link.h: Likewise.
94645         * lib/unictype/pr_hex_digit.h: Likewise.
94646         * lib/unictype/pr_hyphen.h: Likewise.
94647         * lib/unictype/pr_id_continue.h: Likewise.
94648         * lib/unictype/pr_id_start.h: Likewise.
94649         * lib/unictype/pr_ideographic.h: Likewise.
94650         * lib/unictype/pr_ids_binary_operator.h: Likewise.
94651         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
94652         * lib/unictype/pr_ignorable_control.h: Likewise.
94653         * lib/unictype/pr_iso_control.h: Likewise.
94654         * lib/unictype/pr_join_control.h: Likewise.
94655         * lib/unictype/pr_left_of_pair.h: Likewise.
94656         * lib/unictype/pr_line_separator.h: Likewise.
94657         * lib/unictype/pr_logical_order_exception.h: Likewise.
94658         * lib/unictype/pr_lowercase.h: Likewise.
94659         * lib/unictype/pr_math.h: Likewise.
94660         * lib/unictype/pr_non_break.h: Likewise.
94661         * lib/unictype/pr_not_a_character.h: Likewise.
94662         * lib/unictype/pr_numeric.h: Likewise.
94663         * lib/unictype/pr_other_alphabetic.h: Likewise.
94664         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
94665         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
94666         * lib/unictype/pr_other_id_continue.h: Likewise.
94667         * lib/unictype/pr_other_id_start.h: Likewise.
94668         * lib/unictype/pr_other_lowercase.h: Likewise.
94669         * lib/unictype/pr_other_math.h: Likewise.
94670         * lib/unictype/pr_other_uppercase.h: Likewise.
94671         * lib/unictype/pr_paired_punctuation.h: Likewise.
94672         * lib/unictype/pr_paragraph_separator.h: Likewise.
94673         * lib/unictype/pr_pattern_syntax.h: Likewise.
94674         * lib/unictype/pr_pattern_white_space.h: Likewise.
94675         * lib/unictype/pr_private_use.h: Likewise.
94676         * lib/unictype/pr_punctuation.h: Likewise.
94677         * lib/unictype/pr_quotation_mark.h: Likewise.
94678         * lib/unictype/pr_radical.h: Likewise.
94679         * lib/unictype/pr_sentence_terminal.h: Likewise.
94680         * lib/unictype/pr_soft_dotted.h: Likewise.
94681         * lib/unictype/pr_space.h: Likewise.
94682         * lib/unictype/pr_terminal_punctuation.h: Likewise.
94683         * lib/unictype/pr_titlecase.h: Likewise.
94684         * lib/unictype/pr_unassigned_code_value.h: Likewise.
94685         * lib/unictype/pr_unified_ideograph.h: Likewise.
94686         * lib/unictype/pr_uppercase.h: Likewise.
94687         * lib/unictype/pr_variation_selector.h: Likewise.
94688         * lib/unictype/pr_white_space.h: Likewise.
94689         * lib/unictype/pr_xid_continue.h: Likewise.
94690         * lib/unictype/pr_xid_start.h: Likewise.
94691         * lib/unictype/pr_zero_width.h: Likewise.
94692         * lib/unictype/scripts.h: Likewise.
94693         * lib/unictype/scripts_byname.gperf: Likewise.
94694         * lib/unictype/sy_c_ident.h: Likewise.
94695         * lib/unictype/sy_c_whitespace.h: Likewise.
94696         * lib/unictype/sy_java_ident.h: Likewise.
94697         * lib/unictype/sy_java_whitespace.h: Likewise.
94699         * lib/unictype/Makefile: New file.
94700         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
94701         glibc.
94702         * lib/unictype/3level.h: New file, copied from glibc.
94703         * lib/unictype/3levelbit.h: New file.
94705 2007-11-11  Bruno Haible  <bruno@clisp.org>
94707         * modules/gperf: New file.
94708         * modules/iconv_open (Depends-on): Add it.
94709         (Makefile.am): Remove the GPERF definition.
94711 2007-11-11  Bruno Haible  <bruno@clisp.org>
94713         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
94714         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
94716 2007-11-11  Bruno Haible  <bruno@clisp.org>
94718         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
94719         (usage): Remove function.
94721 2007-11-11  Bruno Haible  <bruno@clisp.org>
94723         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
94724         gl_FUNC_CEILF_LIBS.
94725         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
94726         gl_FUNC_CEIL_LIBS.
94727         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
94728         gl_FUNC_CEILL_LIBS.
94729         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
94730         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
94731         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
94733 2007-11-11  Bruno Haible  <bruno@clisp.org>
94735         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
94736         roundf were declared but do not exist on functions.
94737         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
94738         roundl were declared but do not exist on functions.
94739         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
94740         HAVE_FLOORL_AND_CEILL, respectively.
94741         Needed for Sun C on Solaris 10.
94743 2007-11-11  Bruno Haible  <bruno@clisp.org>
94745         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
94746         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
94747         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
94748         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
94749         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
94750         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
94751         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
94752         HAVE_DECL_ROUNDF.
94753         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
94754         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
94755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
94756         of HAVE_DECL_ROUND*.
94757         * modules/math (Makefile.am): Update.
94759 2007-11-10  Bruno Haible  <bruno@clisp.org>
94761         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
94762         ptrdiff_t as m4/intl.m4.
94764 2007-11-10  Jim Meyering  <meyering@redhat.com>
94766         Avoid link failure for the argmatch test.
94767         * tests/test-argmatch.c (usage): Define function to avoid a link
94768         failure: argmatch_die requires a usage function.
94770 2007-11-09  Bruno Haible  <bruno@clisp.org>
94772         * doc/functions/snprintf.texi: Mention BeOS deficiency.
94773         * doc/functions/vsnprintf.texi: Likewise.
94774         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
94775         with a size argument < 2.
94777 2007-11-09  Bruno Haible  <bruno@clisp.org>
94779         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
94780         buffer. Fixes an inefficiency introduced on 2007-11-03.
94782 2007-11-09  Bruno Haible  <bruno@clisp.org>
94784         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
94785         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
94787 2007-11-08  Jim Meyering  <meyering@redhat.com>
94789         Change cache variable name prefix "jm_" to "gl_" everywhere.
94790         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
94791         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
94792         * m4/uptime.m4: s/gl_/jm_/
94794 2007-11-07  Bruno Haible  <bruno@clisp.org>
94796         Update to GNU gettext 0.17.
94797         * m4/intl.m4: Update to GNU gettext 0.17.
94798         * m4/po.m4: Likewise.
94799         * modules/gettext (Files): Remove m4/ulonglong.m4.
94800         (configure.ac): Require gettext infrastructure from version 0.17.
94802 2007-11-06  Bruno Haible  <bruno@clisp.org>
94804         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
94805         symbolic values are not defined in a public header.
94806         * lib/freadable.c (freadable) [QNX]: Likewise.
94807         * lib/freadahead.c (freadahead) [QNX]: Likewise.
94808         * lib/freading.c (freading) [QNX]: Likewise.
94809         * lib/fseterr.c (fseterr) [QNX]: Likewise.
94810         * lib/fwritable.c (fwritable) [QNX]: Likewise.
94811         * lib/fwriting.c (fwriting) [QNX]: Likewise.
94812         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
94813         Reported by Alain Magloire.
94815         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
94817 2007-11-05  Bruno Haible  <bruno@clisp.org>
94819         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
94820         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
94821         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
94822         Reported by Eric Blake.
94824 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94825             Bruno Haible  <bruno@clisp.org>
94827         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
94828         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
94829         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
94830         (malloc): Undefine also before including <stdlib.h>.
94831         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
94832         Needed on OSF/1 4.0.
94834 2007-11-05  Jim Meyering  <meyering@redhat.com>
94836         git-version-gen: sync from coreutils.
94837         * build-aux/git-version-gen: Add comments.
94838         Change the first '-' to '.' in the snapshot version string,
94839         e.g., 6.9-377-08144 -> 6.9.377-08144
94840         Remove first parameter.
94841         Don't declare a version "-dirty" merely because a time
94842         stamp has changed.
94844 2007-11-04  Bruno Haible  <bruno@clisp.org>
94846         * lib/lock.h: Protect all macro definitions containing an 'if'
94847         statement through a "do { ... } while (0)".
94848         * lib/tls.h: Likewise.
94850 2007-11-04  Bruno Haible  <bruno@clisp.org>
94852         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
94854 2007-11-04  Bruno Haible  <bruno@clisp.org>
94856         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
94857         * modules/fprintf-posix (Depends-on): Add nocrash.
94858         * modules/snprintf-posix (Depends-on): Likewise.
94859         * modules/sprintf-posix (Depends-on): Likewise.
94860         * modules/vasnprintf-posix (Depends-on): Likewise.
94861         * modules/vasprintf-posix (Depends-on): Likewise.
94862         * modules/vfprintf-posix (Depends-on): Likewise.
94863         * modules/vsnprintf-posix (Depends-on): Likewise.
94864         * modules/vsprintf-posix (Depends-on): Likewise.
94865         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
94866         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
94867         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
94868         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
94869         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
94870         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
94871         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
94873 2007-11-04  Bruno Haible  <bruno@clisp.org>
94875         * modules/nocrash: New file.
94876         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
94877         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
94879 2007-11-04  Bruno Haible  <bruno@clisp.org>
94881         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
94882         precision handling.
94883         * tests/test-vasprintf-posix.c (test_function): Likewise.
94884         * tests/test-snprintf-posix.h (test_function): Likewise.
94885         * tests/test-sprintf-posix.h (test_function): Likewise.
94887         Fix *printf behaviour for large precisions on mingw and BeOS.
94888         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
94889         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
94890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
94891         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
94892         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
94893         gl_PRINTF_PRECISION and test its result. Invoke
94894         gl_PREREQ_VASNPRINTF_PRECISION.
94895         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
94896         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94897         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94898         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94899         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94900         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94901         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94902         * doc/functions/fprintf.texi: Update.
94903         * doc/functions/printf.texi: Update.
94904         * doc/functions/snprintf.texi: Update.
94905         * doc/functions/sprintf.texi: Update.
94906         * doc/functions/vfprintf.texi: Update.
94907         * doc/functions/vprintf.texi: Update.
94908         * doc/functions/vsnprintf.texi: Update.
94909         * doc/functions/vsprintf.texi: Update.
94911 2007-11-04  Bruno Haible  <bruno@clisp.org>
94913         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
94915 2007-11-04  Bruno Haible  <bruno@clisp.org>
94917         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
94918         Reported by Sylvain Beucler <beuc@gnu.org>.
94920 2007-11-03  Bruno Haible  <bruno@clisp.org>
94922         * tests/test-fprintf-posix2.sh: New file.
94923         * tests/test-fprintf-posix2.c: New file.
94924         * modules/fprintf-posix-tests (Files): Add them.
94925         (TESTS): Add test-fprintf-posix2.sh.
94926         (configure.ac): Check for getrlimit and setrlimit.
94927         (check_PROGRAMS): Add test-fprintf-posix2.
94929         * tests/test-printf-posix2.sh: New file.
94930         * tests/test-printf-posix2.c: New file.
94931         * modules/printf-posix-tests (Files): Add them.
94932         (TESTS): Add test-printf-posix2.sh.
94933         (configure.ac): Check for getrlimit and setrlimit.
94934         (check_PROGRAMS): Add test-printf-posix2.
94936         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
94937         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
94938         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
94939         (decode_double): New function, copied from decode_long_double.
94940         (scale10_round_decimal_decoded): New function, extracted from
94941         scale10_round_decimal_long_double.
94942         (scale10_round_decimal_long_double): Use it.
94943         (scale10_round_decimal_double): New function.
94944         (floorlog10): New function.
94945         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
94946         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
94947         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
94948         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
94949         gl_PRINTF_ENOMEM and test its result. Invoke
94950         gl_PREREQ_VASNPRINTF_ENOMEM.
94951         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
94952         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94953         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94954         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94955         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94956         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94957         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94958         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
94959         * modules/snprintf-posix (Depends-on): Likewise.
94960         * modules/sprintf-posix (Depends-on): Likewise.
94961         * modules/vasnprintf-posix (Depends-on): Likewise.
94962         * modules/vasprintf-posix (Depends-on): Likewise.
94963         * modules/vfprintf-posix (Depends-on): Likewise.
94964         * modules/vsnprintf-posix (Depends-on): Likewise.
94965         * modules/vsprintf-posix (Depends-on): Likewise.
94966         * doc/functions/fprintf.texi: Update.
94967         * doc/functions/printf.texi: Update.
94968         * doc/functions/snprintf.texi: Update.
94969         * doc/functions/sprintf.texi: Update.
94970         * doc/functions/vfprintf.texi: Update.
94971         * doc/functions/vprintf.texi: Update.
94972         * doc/functions/vsnprintf.texi: Update.
94973         * doc/functions/vsprintf.texi: Update.
94975 2007-11-03  Bruno Haible  <bruno@clisp.org>
94977         * modules/frexp-nolibm-tests: New file.
94979         * modules/frexp-nolibm: New file.
94980         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
94982 2007-11-03  Bruno Haible  <bruno@clisp.org>
94984         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
94985         value is C99 compliant.
94986         Needed for OSF/1 5.1.
94988 2007-11-03  Bruno Haible  <bruno@clisp.org>
94990         Fix out-of-memory handling of vasnprintf.
94991         * lib/printf-parse.c: Include <errno.h>.
94992         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
94993         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
94994         is already set.
94996 2007-11-02  Eric Blake  <ebb9@byu.net>
94998         Fix tests on cygwin.
94999         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
95001 2007-11-01  Bruno Haible  <bruno@clisp.org>
95003         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
95004         warning.
95005         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
95006         needed for POSIX compatibility.
95008 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
95010         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
95011         for compatibility with GNU.
95013 2007-11-01  Bruno Haible  <bruno@clisp.org>
95015         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
95016         (putenv): Renamed from rpl_putenv. Change argument type from
95017         'const char *' to 'char *'.
95018         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
95019         of defining putenv in config.h, just set REPLACE_PUTENV.
95020         * modules/putenv (Depends-on): Add stdlib.
95021         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95022         (Include): Use <stdlib.h>.
95023         * lib/stdlib.in.h (putenv): New declaration.
95024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
95025         REPLACE_PUTENV.
95026         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
95027         REPLACE_PUTENV.
95028         Needed for MacOS X 10.5.0.
95029         Reported by Peter O'Gorman <peter@pogma.com>.
95031 2007-11-01  Jim Meyering  <meyering@redhat.com>
95033         Treat an empty date string exactly like "0".
95034         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
95035         if the remaining date string (to be parsed) is empty, use "0".
95036         Reported by Mischa Molhoek and discussed in this thread:
95037         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
95039 2007-10-31  Bruno Haible  <bruno@clisp.org>
95041         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
95042         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
95043         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
95044         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
95045         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
95046         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
95048 2007-10-31  Bruno Haible  <bruno@clisp.org>
95050         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
95051         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
95052         (AC_TYPE_LONG_LONG_INT): Use it.
95053         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
95054         it as well.
95055         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
95056         to m4/longlong.m4.
95057         * modules/stdint (Files): Remove m4/ulonglong.m4.
95058         * modules/strtoull (Files): Use m4/longlong.m4 instead of
95059         m4/ulonglong.m4.
95060         * modules/strtoumax (Files): Likewise.
95062 2007-10-30  Bruno Haible  <bruno@clisp.org>
95064         * modules/xvasprintf-posix: New file.
95065         Suggested by Eric Blake.
95067 2007-10-30  Bruno Haible  <bruno@clisp.org>
95069         * modules/xprintf-posix-tests: New file.
95070         * tests/test-xprintf-posix.sh: New file.
95071         * tests/test-xprintf-posix.c: New file.
95072         * tests/test-xfprintf-posix.c: New file.
95074         * modules/xprintf-posix: New file.
95076 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95078         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
95079         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
95080         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
95082 2007-10-29  Bruno Haible  <bruno@clisp.org>
95084         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
95085         contain the special marker '_cv_'.
95086         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
95087         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
95088         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
95089         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
95090         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
95091         Reported by Ralf Wildenhues.
95093 2007-10-29  Bruno Haible  <bruno@clisp.org>
95095         * gnulib-tool (func_import): When --lgpl is not specified, set
95096         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
95097         GPLv3.
95098         Reported by Simon Josefsson.
95100 2007-10-28  Bruno Haible  <bruno@clisp.org>
95102         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
95103         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
95104         HAVE_DECL_ISFINITE.
95105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95106         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
95107         HAVE_DECL_ISFINITE.
95109 2007-10-28  Bruno Haible  <bruno@clisp.org>
95111         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
95112         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
95114 2007-10-28  Bruno Haible  <bruno@clisp.org>
95116         Fix link errors with Sun C 5.0 on Solaris 10.
95117         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
95118         function is declared but not present in the compiler's libm.
95119         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
95120         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
95121         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
95122         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
95123         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
95124         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
95125         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
95126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95127         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
95128         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
95129         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
95130         HAVE_DECL_FLOORL.
95132 2007-10-28  Bruno Haible  <bruno@clisp.org>
95134         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
95135         gl_FUNC_FLOORL. Cache the result.
95136         (gl_FUNC_FLOORL): Use it.
95137         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
95138         gl_FUNC_CEILL. Cache the result.
95139         (gl_FUNC_CEILL): Use it.
95141         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
95142         gl_FUNC_FLOOR. Cache the result.
95143         (gl_FUNC_FLOOR): Use it.
95144         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
95145         gl_FUNC_CEIL. Cache the result.
95146         (gl_FUNC_CEIL): Use it.
95148         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
95149         gl_FUNC_FLOORF. Cache the result.
95150         (gl_FUNC_FLOORF): Use it.
95151         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
95152         gl_FUNC_CEILF. Cache the result.
95153         (gl_FUNC_CEILF): Use it.
95155 2007-10-28  Bruno Haible  <bruno@clisp.org>
95157         * gnulib-tool: Allow specifying the LGPL version number through
95158         --lgpl=2 or --lgpl=3.
95159         (func_usage): Document --lgpl with argument.
95160         Handle --lgpl=... arguments.
95161         (func_import): Recognize also gl_LGPL calls with an argument. When
95162         --lgpl=2 is used and the module's license is just LGPL, report an
95163         error. Set sed_transform_lib_file according to the lgpl variable. In
95164         the generated files, use --lgpl or gl_LGPL invocations with argument,
95165         if necessary.
95166         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
95167         an LGPv2+ license.
95168         * doc/gnulib-tool.texi (Modified imports): Update explanation of
95169         gl_LGPL macro.
95171 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95172             Bruno Haible  <bruno@clisp.org>
95174         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
95175         (u16_uctomb_aux): Likewise.
95176         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
95177         !HAVE_INLINE.
95178         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
95180 2007-10-28  Bruno Haible  <bruno@clisp.org>
95182         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
95183         Invoke AM_GETTEXT_OPTION if it exists.
95184         * modules/vasprintf: Likewise.
95185         * modules/verror: Likewise.
95186         * modules/xprintf: Likewise.
95187         * modules/xvasprintf: Likewise.
95189 2007-10-27  Ben Pfaff  <blp@gnu.org>
95191         * lib/math.in.h: Define isfinite macro and prototypes for
95192         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
95193         implementations.
95194         * m4/math_h.m4: New substitutions for isfinite module.
95195         * lib/isfinite.c: New file.
95196         * m4/isfinite.m4: New file.
95197         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
95198         * modules/isfinite: New file.
95199         * modules/isfinite-tests: New file.
95200         * tests/tests-isfinite.c: New file.
95201         * doc/functions/isfinite.texi: Mention isfinite module.
95202         * MODULES.html.sh: Mention new module.
95204 2007-10-27  Ben Pfaff  <blp@gnu.org>
95206         Ralf Wildenhues reported that Tru64 4.0D declares the round
95207         functions but does not have definitions.
95208         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
95209         cannot be found in any library, set the output variable to
95210         "missing" instead of "".
95211         * m4/round.m4: Also use our substitute if we cannot find round in
95212         any library, even if it is declared.
95213         * m4/roundf.m4: Likewise for roundf.
95214         * m4/roundl.m4: Likewise for roundl.
95215         * lib/math.in.h: Undefine roundf, round, roundl before defining
95216         their replacements, to allow for hypothetical systems where these
95217         may be defined as macros but not available in libraries.
95219 2007-10-27  Bruno Haible  <bruno@clisp.org>
95221         * doc/gnulib.texi: Invoke @firstparagraphindent.
95222         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
95223         changes in gnulib.
95224         (Source changes): New section.
95226 2007-10-26  Bruno Haible  <bruno@clisp.org>
95228         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
95229         borrowed from autoconf.
95231 2007-10-26  Bruno Haible  <bruno@clisp.org>
95233         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
95234         strerror returned the empty string. Needed on HP-UX 11.00.
95236 2007-10-24  Micah Cowan  <micah@cowan.name>
95238         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
95239         * build-aux/bootstrap: Remove support for now-unnecessary option,
95240         --cvs-user, and envvars CVS_USER, CVS_RSH.
95242 2007-10-24  Jim Meyering  <meyering@redhat.com>
95244         Avoid diagnostics from sha1sum when there is no cached checksum.
95245         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
95246         if the po.s1 file hasn't been created yet.
95248         * build-aux/bootstrap: Sync from coreutils:
95249         2007-10-24  Jim Meyering  <meyering@redhat.com>
95250         Get gnulib from the git repository, not from an obsolete cvs one.
95251         * build-aux/bootstrap: Suggestion from Micah Cowan.
95252         2007-10-04  Jim Meyering  <jim@meyering.net>
95253         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
95254         (update_po_files): Work also when there are no .po files in po/.
95256 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95258         * README: Append ".git" to git and cg examples.
95259         Problem reported by Benoit Sigoure.
95261 2007-10-23  Micah Cowan  <micah@cowan.name>
95263         * users.txt: Add wget.
95265 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95267         Fix linking of some unistdio tests on FreeBSD.
95268         * modules/unistdio/u16-vsnprintf-tests
95269         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
95270         * modules/unistdio/u16-vsprintf-tests
95271         (test_u16_vsnprintf1_LDADD): Likewise.
95272         * modules/unistdio/u32-vsnprintf-tests
95273         (test_u32_vsnprintf1_LDADD): Likewise.
95274         * modules/unistdio/u32-vsprintf-tests
95275         (test_u32_vsprintf1_LDADD): Likewise.
95276         * modules/unistdio/u8-vsnprintf-tests
95277         (test_u8_vsnprintf1_LDADD): Likewise.
95278         * modules/unistdio/u8-vsprintf-tests
95279         (test_u8_vsprintf1_LDADD): Likewise.
95280         * modules/unistdio/ulc-vsnprintf-tests
95281         (test_ulc_vsnprintf1_LDADD): Likewise.
95282         * modules/unistdio/ulc-vsprintf-tests
95283         (test_ulc_vsprintf1_LDADD): Likewise.
95285         Fix linking of some uniconv tests on FreeBSD.
95286         * modules/uniconv/u16-conv-from-enc-tests
95287         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
95288         * modules/uniconv/u16-conv-to-enc-tests
95289         (test_u16_conv_to_enc_LDADD): Likewise.
95290         * modules/uniconv/u16-strconv-from-enc-tests
95291         (test_u16_strconv_from_enc_LDADD): Likewise.
95292         * modules/uniconv/u16-strconv-to-enc-tests
95293         (test_u16_strconv_to_enc_LDADD): Likewise.
95294         * modules/uniconv/u32-conv-from-enc-tests
95295         (test_u32_conv_from_enc_LDADD): Likewise.
95296         * modules/uniconv/u32-conv-to-enc-tests
95297         (test_u32_conv_to_enc_LDADD): Likewise.
95298         * modules/uniconv/u32-strconv-from-enc-tests
95299         (test_u32_strconv_from_enc_LDADD): Likewise.
95300         * modules/uniconv/u32-strconv-to-enc-tests
95301         (test_u32_strconv_to_enc_LDADD): Likewise.
95302         * modules/uniconv/u8-conv-from-enc-tests
95303         (test_u8_conv_from_enc_LDADD): Likewise.
95304         * modules/uniconv/u8-conv-to-enc-tests
95305         (test_u8_conv_to_enc_LDADD): Likewise.
95306         * modules/uniconv/u8-strconv-from-enc-tests
95307         (test_u8_strconv_from_enc_LDADD): Likewise.
95308         * modules/uniconv/u8-strconv-to-enc-tests
95309         (test_u8_strconv_to_enc_LDADD): Likewise.
95311 2007-10-22  Bruno Haible  <bruno@clisp.org>
95313         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
95314         size.
95316 2007-10-22  Eric Blake  <ebb9@byu.net>
95318         Tweak x*printf documentation.
95319         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
95320         variable name and comments.
95321         Suggested by Bruno Haible.
95323 2007-10-22  Bruno Haible  <bruno@clisp.org>
95325         * lib/acl.c (copy_acl): Fix file name in comment.
95327 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95329         Fix Tru64 problem with stdbool.h.
95330         * lib/stdbool.in.h (false, true):
95331         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
95332         Don't declare as an enum in this situation; it runs afoul of Tru64.
95333         Problem reported by Steven M. Schweda in
95334         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
95336 2007-10-22  Eric Blake  <ebb9@byu.net>
95338         Also wrap vf?printf.
95339         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
95340         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
95341         (xvprintf, xvfprintf): New functions.
95343 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95345         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
95346         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
95348         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
95349         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
95351 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95353         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
95354         by Bruno Haible.
95356 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95358         * lib/getloadavg.c
95359         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
95360         Undef `sys' after including sys/table.h, for Tru64 4.0D.
95362         * tests/test-i-ring.c: Work for C89.
95364 2007-10-22  Bruno Haible  <bruno@clisp.org>
95366         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
95367         -1u, in preprocessor expression, so that we don't test for the bug
95368         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
95369         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
95371 2007-10-22  Eric Blake  <ebb9@byu.net>
95373         * tests/test-yesno.sh: Silence stderr during test.
95375 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95377         * modules/crypto/gc-camellia: New file.
95379         * m4/gc-camellia.m4: New file.
95381         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
95383         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
95385 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95387         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
95388         --help to stdout.  Reported by sms@antinode.org (Steven
95389         M. Schweda).
95391 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95393         * users.txt: Fix link to libksba.
95395 2007-10-21  Ben Pfaff  <blp@gnu.org>
95397         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
95398         round.c roundf implementation that depends on floorf and ceilf to
95399         be tested unconditionally.
95401 2007-10-21  Ben Pfaff  <blp@gnu.org>
95403         * m4/check-libm-func.m4: Removed.
95404         * m4/check-math-lib.m4: New file.
95405         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
95406         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
95407         definition and lack of AC_LIBOBJ([roundf]).
95408         * m4/roundl.m4: Ditto, and similarly for roundl.
95409         * modules/round: Reference new m4 file.
95410         * modules/roundf: Ditto.
95411         * modules/roundl: Ditto.
95412         * tests/test-round2.c (main): Use ROUND instead of round.
95413         Bug report from Bruno Haible.
95415 2007-10-21  Bruno Haible  <bruno@clisp.org>
95417         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
95418         context.
95420 2007-10-21  Bruno Haible  <bruno@clisp.org>
95422         * tests/test-wcwidth.c (main): Allow negative result for some control
95423         characters.
95425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
95426         Needed on OSF/1 5.1.
95428 2007-10-21  Bruno Haible  <bruno@clisp.org>
95430         * tests/test-floorf1.c: Include isnanf.h.
95431         (main): Use isnanf() instead of isnan().
95432         * tests/test-ceilf1.c: Include isnanf.h.
95433         (main): Use isnanf() instead of isnan().
95434         * tests/test-truncf1.c: Include isnanf.h.
95435         (main): Use isnanf() instead of isnan().
95436         * tests/test-roundf1.c: Include isnanf.h.
95437         (main): Use isnanf() instead of isnan().
95439 2007-10-21  Eric Blake  <ebb9@byu.net>
95441         * users.txt: Update URL for m4.
95443 2007-10-21  Bruno Haible  <bruno@clisp.org>
95445         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
95447 2007-10-21  Bruno Haible  <bruno@clisp.org>
95449         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
95450         Git's management files if the CVS files are not present.
95452 2007-10-20  Bruno Haible  <bruno@clisp.org>
95454         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
95455         gcc-3.4.x.
95457 2007-10-20  Ben Pfaff  <blp@gnu.org>
95459         * lib/math.in.h: Declare round, roundf, roundl if we are providing
95460         implementations.
95461         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
95462         * lib/round.c: New file.
95463         * lib/roundf.c: New file.
95464         * lib/roundl.c: New file.
95465         * m4/round.m4: New file.
95466         * m4/roundf.m4: New file.
95467         * m4/roundl.m4: New file.
95468         * m4/check-libm-func-m4: New file.
95469         * modules/math: Replace round, roundf, roundl related @VARS@ in
95470         math.in.h.
95471         * modules/round: New file.
95472         * modules/round-tests: New file.
95473         * modules/roundf: New file.
95474         * modules/roundf-tests: New file.
95475         * modules/roundl: New file.
95476         * modules/roundl-tests: New file.
95477         * tests/test-round1.c: New file.
95478         * tests/test-round2.c: New file.
95479         * tests/test-roundf1.c: New file.
95480         * tests/test-roundf2.c: New file.
95481         * tests/test-roundl.c: New file.
95482         * doc/functions/round.texi: Mention round module.
95483         * doc/functions/roundf.texi: Mention roundf module.
95484         * doc/functions/roundl.texi: Mention roundl module.
95485         * MODULES.html.sh: Mention new modules.
95486         Thanks to Bruno Haible for suggestions.
95488 2007-10-20  Jim Meyering  <meyering@redhat.com>
95490         * lib/xprintf.c: Include <config.h> unconditionally.
95492         Change xprintf's license to GPL.
95493         * modules/xprintf (License): s/LGPL/GPL/, since this module
95494         depends on modules (exit and exitfail) which are GPL.
95495         Suggestion from Bruno Haible.
95497         xprintf fixes.
95498         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
95499         Use a clearer diagnostic.
95500         Patch from Bruno Haible.
95502 2007-10-20  Bruno Haible  <bruno@clisp.org>
95504         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
95505         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
95506         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95508 2007-10-20  Bruno Haible  <bruno@clisp.org>
95510         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
95511         precision in the comparison result > x - 1 or similar.
95512         * tests/test-ceilf2.c (correct_result_p): Likewise.
95513         * tests/test-truncf2.c (correct_result_p): Likewise.
95514         * tests/test-trunc2.c (correct_result_p): Likewise.
95515         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95517 2007-10-20  Bruno Haible  <bruno@clisp.org>
95519         * modules/ceil: New file.
95520         * m4/ceil.m4: New file.
95521         * doc/functions/ceil.texi: Mention the 'ceil' module.
95523 2007-10-20  Bruno Haible  <bruno@clisp.org>
95525         * modules/floor: New file.
95526         * m4/floor.m4: New file.
95527         * doc/functions/floor.texi: Mention the 'floor' module.
95529 2007-10-20  Bruno Haible  <bruno@clisp.org>
95531         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
95532         of %a.
95533         * modules/floorf-tests (Depends-on): Likewise.
95534         * modules/truncf-tests (Depends-on): Likewise.
95535         * modules/trunc-tests (Depends-on): Likewise.
95536         Reported by Ben Pfaff.
95538 2007-10-19  Jim Meyering  <meyering@redhat.com>
95540         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
95541         Don't bother testing specific errno values.  Just test ferror.
95543         New module: xprintf
95544         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
95546 2007-10-19  Bruno Haible  <bruno@clisp.org>
95548         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
95549         syntax.
95550         * modules/javaexec (Makefile.am): Likewise.
95551         * modules/relocatable-prog (Makefile.am): Likewise.
95552         Suggested by Jim Meyering.
95554 2007-10-18  Bruno Haible  <bruno@clisp.org>
95556         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
95557         Reported by Jim Meyering.
95559 2007-10-18  Eric Blake  <ebb9@byu.net>
95561         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
95563 2007-10-18  Bruno Haible  <bruno@clisp.org>
95565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
95566         the format string into writable memory. Needed in Fortify conditions.
95568 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
95569             Bruno Haible  <bruno@clisp.org>
95571         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
95572         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
95573         * modules/trim (Depends-on): Add mbchar.
95574         (configure.ac): Add gl_FUNC_MBRTOWC.
95575         (Makefile.am): Augment lib_SOURCES.
95577 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95579         Modify glob.c to use fstatat and dirfd, to simplify it.
95580         Suggested by Eric Blake.
95581         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
95582         Don't include <stdbool.h>; not used.
95583         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
95584         (link_exists_p): Simplify implementation, since we can now assume
95585         dirfd and fstatat.
95586         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
95588 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95590         * gnulib-tool (func_get_dependencies): Fix sed script to
95591         match only tests.
95593 2007-10-17  Bruno Haible  <bruno@clisp.org>
95595         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
95596         allow locale names without encoding suffix.
95597         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
95598         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
95600 2007-10-16  Bruno Haible  <bruno@clisp.org>
95602         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
95603         * lib/getgroups.c (getgroups): Likewise.
95604         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
95606 2007-10-16  Bruno Haible  <bruno@clisp.org>
95608         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
95609         * modules/malloc-posix (License): Likewise.
95610         * modules/realloc-posix (License): Likewise.
95611         * modules/calloc-posix (License): Likewise.
95612         * modules/intprops (License): Change from GPL to LGPL, with
95613         Paul Eggert's approval.
95615 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95617         Merge glibc changes into lib/glob.c.
95619         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
95620         2007-10-15 04:59:03 UTC.  Here are the changes:
95622         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
95624         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
95626         * lib/glob.c: Add some branch prediction throughout.
95628         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
95630         [BZ #5103]
95631         * lib/glob.c (glob): Recognize patterns starting \/.
95633         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
95635         [BZ #3996]
95636         * lib/glob.c (attribute_hidden): Define if not defined.
95637         (glob): Unescape dirname, filename or username when needed and not
95638         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
95639         is NULL.  Handle unescaped [ in pattern without closing ].
95640         Don't pass GLOB_CHECK down to recursive glob for directories.
95641         (__glob_pattern_type): New function.
95642         (__glob_pattern_p): Implement using __glob_pattern_type.
95643         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
95644         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
95645         Remove unreachable code.
95647         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
95649         * lib/glob.c (glob_in_dir): Add some comments and asserts to
95650         explain why there are no leaks.
95652         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
95654         [BZ #3253]
95655         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
95656         time, rather allocate increasingly bigger arrays of pointers, if
95657         possible with alloca, if too large with malloc.
95659 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95661         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
95662         Problem reported by H.Merijn Brand in
95663         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
95664         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
95665         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
95667 2007-10-15  Bruno Haible  <bruno@clisp.org>
95669         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
95670         with explicit rpl_ prefix.
95671         * lib/fopen.c (fopen): Likewise.
95672         * lib/freopen.c (freopen): Likewise.
95673         * lib/iconv.c (iconv): Likewise.
95674         * lib/iconv_close.c (iconv_close): Likewise.
95676 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95678         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
95680 2007-10-15  Bruno Haible  <bruno@clisp.org>
95682         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
95683         <stddef.h> instead of <stdlib.h> since we only need NULL.
95684         Reported by Ben Pfaff <blp@cs.stanford.edu>.
95686 2007-10-15  Bruno Haible  <bruno@clisp.org>
95688         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
95689         Replace paragraph talking about LIBOBJS.
95690         Reported by Colin Watson <cjwatson@debian.org>.
95692 2007-10-15  Bruno Haible  <bruno@clisp.org>
95694         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
95695         <stdlib.h> before using NULL.
95697 2007-10-15  Simon Josefsson  <simon@josefsson.org>
95699         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
95700         Reported by Albert Chin <china@thewrittenword.com>.
95702 2007-10-14  Bruno Haible  <bruno@clisp.org>
95704         * modules/iconv_open-utf-tests: New file.
95705         * tests/test-iconv-utf.c: New file.
95707         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
95708         * modules/iconv_open-utf: New file.
95709         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
95710         (iconv, iconv_close): New declarations.
95711         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
95712         be defined.
95713         (iconv_open): Add special handling of conversion between UTF-8 and
95714         UTF-{16,32}{BE,LE}.
95715         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
95716         * lib/iconv_close.c: New file.
95717         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
95718         gl_FUNC_ICONV_OPEN.
95719         (gl_FUNC_ICONV_OPEN): Use it.
95720         (gl_FUNC_ICONV_OPEN_UTF): New macro.
95721         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
95722         and REPLACE_ICONV_UTF.
95723         * modules/iconv_open (Depends-on): Add c-strcase.
95724         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
95725         ICONV_CONST.
95726         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
95728 2007-10-13  Albert Chin  <china@thewrittenword.com>
95729             Bruno Haible  <bruno@clisp.org>
95731         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
95732         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
95734 2007-10-13  Bruno Haible  <bruno@clisp.org>
95736         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
95737         defined, use the ISO C99 inline semantics.
95738         * lib/argp.h (ARGP_EI): Likewise.
95740 2007-10-13  Bruno Haible  <bruno@clisp.org>
95742         Handle 'inline' change in gcc 4.3.0.
95743         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
95744         argp_fmtstream_write, argp_fmtstream_set_lmargin,
95745         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
95746         argp_fmtstream_point): Disable 'extern' declaration if the function
95747         definition is going to be provided inline.
95748         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
95749         semantics, not the ISO C99 inline semantics.
95750         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
95751         'extern' declaration if the function definition is going to be provided
95752         inline.
95753         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
95754         the GNU C inline semantics, not the ISO C99 inline semantics. With
95755         GCC 4.2, avoid a warning.
95757 2007-10-13  Bruno Haible  <bruno@clisp.org>
95759         * lib/freading.h (freading): Enable the use of __freading for
95760         glibc >= 2.7.
95761         * lib/freading.c (freading): Likewise.
95763 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
95765         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
95766         "warning: C99 inline functions are not supported; using GNU89".
95768 2007-10-12  Bruno Haible  <bruno@clisp.org>
95770         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
95771         of 2.
95772         * tests/test-ceilf2.c: New file.
95773         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
95775         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
95776         * modules/ceilf-tests: Update.
95778 2007-10-12  Bruno Haible  <bruno@clisp.org>
95780         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
95781         of 2.
95782         * tests/test-floorf2.c: New file.
95783         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
95785         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
95786         * modules/floorf-tests: Update.
95788 2007-10-12  Bruno Haible  <bruno@clisp.org>
95790         * tests/test-trunc2.c: New file.
95791         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
95793         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
95794         * modules/trunc-tests: Update.
95796 2007-10-12  Bruno Haible  <bruno@clisp.org>
95798         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
95799         of 2.
95800         * tests/test-truncf2.c: New file.
95801         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
95803         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
95804         * modules/truncf-tests: Update.
95806 2007-10-11  Eric Blake  <ebb9@byu.net>
95808         Don't claim strerror is broken on Interix.
95809         * doc/functions/strerror.texi (strerror): Known broken systems are
95810         now Solaris 8, and not Interix.
95811         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
95812         Interix on cross-compile.
95813         Reported by Martin Koeppe in
95814         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
95816 2007-10-11  Bruno Haible  <bruno@clisp.org>
95818         * modules/i-ring-tests: New file.
95819         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
95820         instead of assert.
95822 2007-10-11  Bruno Haible  <bruno@clisp.org>
95824         * modules/filenamecat-tests: New file.
95825         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
95826         * lib/filenamecat.c: Remove test code.
95828 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
95830         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
95832         * lib/strerror.c: Include <string.h> always, to test interface,
95833         and to remove the need for the dummy.
95834         Include intprops.h to compute width instead of doing it ourselves
95835         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
95836         (strerror): Define it to return NULL if there's no system strerror.
95837         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
95838         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
95839         ancient pre-strerror Unix systems well any more.  Saying "unknown
95840         system error" is enough.
95841         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
95842         simpler strerror.c implementation.
95843         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
95844         Simplify the tests to reflect the simpler strerror implementation.
95845         * modules/strerror (Depends-on): Add intprops.
95847 2007-10-09  Eric Blake  <ebb9@byu.net>
95849         Silence test-fpending.
95850         * modules/fpending-tests (Files): Add wrapper script.
95851         * tests/test-fpending.sh: New file.
95853 2007-10-09  Bruno Haible  <bruno@clisp.org>
95855         * MODULES.html.sh (func_module): Don't create a hyperlink for
95856         function names like 'printf_frexp'.
95857         (Misc): Add crc, memxor.
95858         (Characteristics of floating types): New section.
95859         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
95860         isnanf-nolibm, signbit, trunc, truncf, truncl.
95861         (Enhancements for ISO C 99 functions): New subsection Input/output.
95862         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
95863         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
95864         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
95865         (Compatibility checks for POSIX:2001 functions): Add clock-time.
95866         (Enhancements for POSIX:2001 functions): Add chdir-long.
95867         (File system functions): Add areadlink, chdir-safer, read-file.
95868         Remove cycle-check.
95869         (File system as inode set): New section.
95870         (Date and time): Add gethrxtime.
95871         (Multithreading): Add openmp.
95872         (Internationalization functions): Add localename.
95873         (Unicode string functions): Add unistr/u*-mbsnlen.
95874         (Support for maintaining and releasing projects): Add git-version-gen.
95875         (Lone files): Remove directories.
95877 2007-10-08  Ben Pfaff  <blp@gnu.org>
95879         * lib/xmalloca.h: Fix typo in comment.
95881 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
95883         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
95884         when avoiding problems with integer overflow.  Use a portable test
95885         instead.
95887 2007-10-08  Simon Josefsson  <simon@josefsson.org>
95889         * modules/dummy (License): Change to LGPLv2+.
95890         * modules/float (License): Likewise
95891         * modules/realloc (License): Likewise
95892         * modules/stdlib (License): Likewise
95894 2007-10-07  Bruno Haible  <bruno@clisp.org>
95896         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
95897         * floor.c (TWO_MANT_DIG): Likewise.
95898         * ceil.c (TWO_MANT_DIG): Likewise.
95899         Reported by Ben Pfaff.
95901 2007-10-07  Bruno Haible  <bruno@clisp.org>
95903         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
95904         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
95905         * lib/frexp.c (FUNC): Likewise.
95906         * lib/printf-frexp.h (printf_frexp): Likewise.
95907         * lib/printf-frexpl.h (printf_frexpl): Likewise.
95908         * lib/printf-frexp.c (FUNC): Likewise.
95909         Suggested by Jim Meyering.
95911 2007-10-07  Jim Meyering  <meyering@redhat.com>
95913         Make xnanosleep's integer overflow test more robust.
95914         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
95915         so that gcc-4.3.0 doesn't optimize away this test for overflow.
95917 2007-10-07  Bruno Haible  <bruno@clisp.org>
95919         * NEWS: Mention the license change.
95921         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
95922         abbreviations in the modules files.
95924         Change copyright notice from GPLv2+ to GPLv3+.
95925         * README: Change copyright notice.
95926         * MODULES.html.sh: Likewise.
95927         * build-aux/bootstrap.conf: Likewise.
95928         * build-aux/config.libpath: Likewise.
95929         * build-aux/csharpcomp.sh.in: Likewise.
95930         * build-aux/csharpexec.sh.in: Likewise.
95931         * build-aux/install-reloc: Likewise.
95932         * build-aux/javacomp.sh.in: Likewise.
95933         * build-aux/javaexec.sh.in: Likewise.
95934         * build-aux/ldd.sh.in: Likewise.
95935         * build-aux/reloc-ldflags: Likewise.
95936         * build-aux/relocatable.sh.in: Likewise.
95937         * build-aux/x-to-1.in: Likewise.
95938         * check-module: Likewise.
95939         * config/srclistvars.sh: Likewise.
95940         * gnulib-tool: Likewise.
95941         * lib/acl-internal.h: Likewise.
95942         * lib/acl.c: Likewise.
95943         * lib/acl.h: Likewise.
95944         * lib/acl_entries.c: Likewise.
95945         * lib/areadlink-with-size.c: Likewise.
95946         * lib/areadlink.c: Likewise.
95947         * lib/areadlink.h: Likewise.
95948         * lib/argmatch.c: Likewise.
95949         * lib/argmatch.h: Likewise.
95950         * lib/argp-ba.c: Likewise.
95951         * lib/argp-eexst.c: Likewise.
95952         * lib/argp-fmtstream.c: Likewise.
95953         * lib/argp-fmtstream.h: Likewise.
95954         * lib/argp-fs-xinl.c: Likewise.
95955         * lib/argp-help.c: Likewise.
95956         * lib/argp-namefrob.h: Likewise.
95957         * lib/argp-parse.c: Likewise.
95958         * lib/argp-pin.c: Likewise.
95959         * lib/argp-pv.c: Likewise.
95960         * lib/argp-pvh.c: Likewise.
95961         * lib/argp-xinl.c: Likewise.
95962         * lib/argp.h: Likewise.
95963         * lib/at-func.c: Likewise.
95964         * lib/atanl.c: Likewise.
95965         * lib/backupfile.c: Likewise.
95966         * lib/backupfile.h: Likewise.
95967         * lib/basename.c: Likewise.
95968         * lib/binary-io.h: Likewise.
95969         * lib/byteswap.in.h: Likewise.
95970         * lib/c-stack.c: Likewise.
95971         * lib/c-stack.h: Likewise.
95972         * lib/c-strcasestr.c: Likewise.
95973         * lib/c-strcasestr.h: Likewise.
95974         * lib/c-strstr.c: Likewise.
95975         * lib/c-strstr.h: Likewise.
95976         * lib/c-strtod.c: Likewise.
95977         * lib/calloc.c: Likewise.
95978         * lib/canon-host.c: Likewise.
95979         * lib/canon-host.h: Likewise.
95980         * lib/canonicalize-lgpl.c: Likewise.
95981         * lib/canonicalize.c: Likewise.
95982         * lib/canonicalize.h: Likewise.
95983         * lib/ceil.c: Likewise.
95984         * lib/ceilf.c: Likewise.
95985         * lib/ceill.c: Likewise.
95986         * lib/chdir-long.c: Likewise.
95987         * lib/chdir-long.h: Likewise.
95988         * lib/chdir-safer.c: Likewise.
95989         * lib/chdir-safer.h: Likewise.
95990         * lib/chown.c: Likewise.
95991         * lib/classpath.c: Likewise.
95992         * lib/classpath.h: Likewise.
95993         * lib/clean-temp.c: Likewise.
95994         * lib/clean-temp.h: Likewise.
95995         * lib/cloexec.c: Likewise.
95996         * lib/close-stream.c: Likewise.
95997         * lib/closein.c: Likewise.
95998         * lib/closein.h: Likewise.
95999         * lib/closeout.c: Likewise.
96000         * lib/closeout.h: Likewise.
96001         * lib/concat-filename.c: Likewise.
96002         * lib/copy-file.c: Likewise.
96003         * lib/copy-file.h: Likewise.
96004         * lib/count-one-bits.h: Likewise.
96005         * lib/crc.c: Likewise.
96006         * lib/crc.h: Likewise.
96007         * lib/creat-safer.c: Likewise.
96008         * lib/csharpcomp.c: Likewise.
96009         * lib/csharpcomp.h: Likewise.
96010         * lib/csharpexec.c: Likewise.
96011         * lib/csharpexec.h: Likewise.
96012         * lib/cycle-check.c: Likewise.
96013         * lib/cycle-check.h: Likewise.
96014         * lib/diacrit.c: Likewise.
96015         * lib/diacrit.h: Likewise.
96016         * lib/diffseq.h: Likewise.
96017         * lib/dirchownmod.c: Likewise.
96018         * lib/dirent.in.h: Likewise.
96019         * lib/dirfd.c: Likewise.
96020         * lib/dirfd.h: Likewise.
96021         * lib/dirname.c: Likewise.
96022         * lib/dirname.h: Likewise.
96023         * lib/dummy.c: Likewise.
96024         * lib/dup-safer.c: Likewise.
96025         * lib/dup2.c: Likewise.
96026         * lib/eealloc.h: Likewise.
96027         * lib/error.c: Likewise.
96028         * lib/error.h: Likewise.
96029         * lib/euidaccess.c: Likewise.
96030         * lib/exclude.c: Likewise.
96031         * lib/exclude.h: Likewise.
96032         * lib/execute.c: Likewise.
96033         * lib/execute.h: Likewise.
96034         * lib/exitfail.c: Likewise.
96035         * lib/exitfail.h: Likewise.
96036         * lib/expl.c: Likewise.
96037         * lib/fatal-signal.c: Likewise.
96038         * lib/fatal-signal.h: Likewise.
96039         * lib/fbufmode.c: Likewise.
96040         * lib/fbufmode.h: Likewise.
96041         * lib/fchdir.c: Likewise.
96042         * lib/fchmodat.c: Likewise.
96043         * lib/fchownat.c: Likewise.
96044         * lib/fcntl--.h: Likewise.
96045         * lib/fcntl-safer.h: Likewise.
96046         * lib/fcntl.in.h: Likewise.
96047         * lib/fd-safer.c: Likewise.
96048         * lib/fflush.c: Likewise.
96049         * lib/file-has-acl.c: Likewise.
96050         * lib/file-set.c: Likewise.
96051         * lib/file-type.c: Likewise.
96052         * lib/file-type.h: Likewise.
96053         * lib/fileblocks.c: Likewise.
96054         * lib/filemode.c: Likewise.
96055         * lib/filemode.h: Likewise.
96056         * lib/filename.h: Likewise.
96057         * lib/filenamecat.c: Likewise.
96058         * lib/filenamecat.h: Likewise.
96059         * lib/findprog.c: Likewise.
96060         * lib/findprog.h: Likewise.
96061         * lib/float.in.h: Likewise.
96062         * lib/floor.c: Likewise.
96063         * lib/floorf.c: Likewise.
96064         * lib/floorl.c: Likewise.
96065         * lib/fopen-safer.c: Likewise.
96066         * lib/fopen.c: Likewise.
96067         * lib/fpending.c: Likewise.
96068         * lib/fpending.h: Likewise.
96069         * lib/fprintf.c: Likewise.
96070         * lib/fprintftime.h: Likewise.
96071         * lib/fpucw.h: Likewise.
96072         * lib/fpurge.c: Likewise.
96073         * lib/fpurge.h: Likewise.
96074         * lib/freadable.c: Likewise.
96075         * lib/freadable.h: Likewise.
96076         * lib/freadahead.c: Likewise.
96077         * lib/freadahead.h: Likewise.
96078         * lib/freading.c: Likewise.
96079         * lib/freading.h: Likewise.
96080         * lib/free.c: Likewise.
96081         * lib/freopen.c: Likewise.
96082         * lib/frexp.c: Likewise.
96083         * lib/frexpl.c: Likewise.
96084         * lib/fseek.c: Likewise.
96085         * lib/fseterr.c: Likewise.
96086         * lib/fseterr.h: Likewise.
96087         * lib/fstatat.c: Likewise.
96088         * lib/fstrcmp.c: Likewise.
96089         * lib/fstrcmp.h: Likewise.
96090         * lib/fsusage.c: Likewise.
96091         * lib/fsusage.h: Likewise.
96092         * lib/ftell.c: Likewise.
96093         * lib/ftello.c: Likewise.
96094         * lib/fts-cycle.c: Likewise.
96095         * lib/fts.c: Likewise.
96096         * lib/fts_.h: Likewise.
96097         * lib/full-read.c: Likewise.
96098         * lib/full-read.h: Likewise.
96099         * lib/full-write.c: Likewise.
96100         * lib/full-write.h: Likewise.
96101         * lib/fwritable.c: Likewise.
96102         * lib/fwritable.h: Likewise.
96103         * lib/fwriteerror.c: Likewise.
96104         * lib/fwriteerror.h: Likewise.
96105         * lib/fwriting.c: Likewise.
96106         * lib/fwriting.h: Likewise.
96107         * lib/gcd.c: Likewise.
96108         * lib/gcd.h: Likewise.
96109         * lib/getcwd.c: Likewise.
96110         * lib/getdate.h: Likewise.
96111         * lib/getdate.y: Likewise.
96112         * lib/getdomainname.c: Likewise.
96113         * lib/getdomainname.h: Likewise.
96114         * lib/getgroups.c: Likewise.
96115         * lib/gethostname.c: Likewise.
96116         * lib/gethrxtime.c: Likewise.
96117         * lib/gethrxtime.h: Likewise.
96118         * lib/getloadavg.c: Likewise.
96119         * lib/getndelim2.c: Likewise.
96120         * lib/getndelim2.h: Likewise.
96121         * lib/getnline.c: Likewise.
96122         * lib/getnline.h: Likewise.
96123         * lib/getopt.c: Likewise.
96124         * lib/getopt.in.h: Likewise.
96125         * lib/getopt1.c: Likewise.
96126         * lib/getopt_int.h: Likewise.
96127         * lib/getpagesize.h: Likewise.
96128         * lib/getsubopt.c: Likewise.
96129         * lib/gettime.c: Likewise.
96130         * lib/getugroups.c: Likewise.
96131         * lib/getugroups.h: Likewise.
96132         * lib/getusershell.c: Likewise.
96133         * lib/gl_anyavltree_list1.h: Likewise.
96134         * lib/gl_anyavltree_list2.h: Likewise.
96135         * lib/gl_anyhash_list1.h: Likewise.
96136         * lib/gl_anyhash_list2.h: Likewise.
96137         * lib/gl_anylinked_list1.h: Likewise.
96138         * lib/gl_anylinked_list2.h: Likewise.
96139         * lib/gl_anyrbtree_list1.h: Likewise.
96140         * lib/gl_anyrbtree_list2.h: Likewise.
96141         * lib/gl_anytree_list1.h: Likewise.
96142         * lib/gl_anytree_list2.h: Likewise.
96143         * lib/gl_anytree_oset.h: Likewise.
96144         * lib/gl_anytreehash_list1.h: Likewise.
96145         * lib/gl_anytreehash_list2.h: Likewise.
96146         * lib/gl_array_list.c: Likewise.
96147         * lib/gl_array_list.h: Likewise.
96148         * lib/gl_array_oset.c: Likewise.
96149         * lib/gl_array_oset.h: Likewise.
96150         * lib/gl_avltree_list.c: Likewise.
96151         * lib/gl_avltree_list.h: Likewise.
96152         * lib/gl_avltree_oset.c: Likewise.
96153         * lib/gl_avltree_oset.h: Likewise.
96154         * lib/gl_avltreehash_list.c: Likewise.
96155         * lib/gl_avltreehash_list.h: Likewise.
96156         * lib/gl_carray_list.c: Likewise.
96157         * lib/gl_carray_list.h: Likewise.
96158         * lib/gl_linked_list.c: Likewise.
96159         * lib/gl_linked_list.h: Likewise.
96160         * lib/gl_linkedhash_list.c: Likewise.
96161         * lib/gl_linkedhash_list.h: Likewise.
96162         * lib/gl_list.c: Likewise.
96163         * lib/gl_list.h: Likewise.
96164         * lib/gl_oset.c: Likewise.
96165         * lib/gl_oset.h: Likewise.
96166         * lib/gl_rbtree_list.c: Likewise.
96167         * lib/gl_rbtree_list.h: Likewise.
96168         * lib/gl_rbtree_oset.c: Likewise.
96169         * lib/gl_rbtree_oset.h: Likewise.
96170         * lib/gl_rbtreehash_list.c: Likewise.
96171         * lib/gl_rbtreehash_list.h: Likewise.
96172         * lib/gl_sublist.c: Likewise.
96173         * lib/gl_sublist.h: Likewise.
96174         * lib/group-member.c: Likewise.
96175         * lib/group-member.h: Likewise.
96176         * lib/hard-locale.c: Likewise.
96177         * lib/hard-locale.h: Likewise.
96178         * lib/hash-pjw.c: Likewise.
96179         * lib/hash-pjw.h: Likewise.
96180         * lib/hash-triple.c: Likewise.
96181         * lib/hash.c: Likewise.
96182         * lib/hash.h: Likewise.
96183         * lib/human.c: Likewise.
96184         * lib/human.h: Likewise.
96185         * lib/i-ring.c: Likewise.
96186         * lib/i-ring.h: Likewise.
96187         * lib/idcache.c: Likewise.
96188         * lib/imaxabs.c: Likewise.
96189         * lib/imaxdiv.c: Likewise.
96190         * lib/inet_pton.c: Likewise.
96191         * lib/inet_pton.h: Likewise.
96192         * lib/intprops.h: Likewise.
96193         * lib/inttostr.c: Likewise.
96194         * lib/inttostr.h: Likewise.
96195         * lib/inttypes.in.h: Likewise.
96196         * lib/isapipe.c: Likewise.
96197         * lib/isdir.c: Likewise.
96198         * lib/isnan.c: Likewise.
96199         * lib/isnan.h: Likewise.
96200         * lib/isnanf.c: Likewise.
96201         * lib/isnanf.h: Likewise.
96202         * lib/isnanl-nolibm.h: Likewise.
96203         * lib/isnanl.c: Likewise.
96204         * lib/isnanl.h: Likewise.
96205         * lib/javacomp.c: Likewise.
96206         * lib/javacomp.h: Likewise.
96207         * lib/javaexec.c: Likewise.
96208         * lib/javaexec.h: Likewise.
96209         * lib/javaversion.c: Likewise.
96210         * lib/javaversion.h: Likewise.
96211         * lib/javaversion.java: Likewise.
96212         * lib/lbrkprop.h: Likewise.
96213         * lib/lchmod.h: Likewise.
96214         * lib/lchown.c: Likewise.
96215         * lib/ldexpl.c: Likewise.
96216         * lib/linebreak.c: Likewise.
96217         * lib/linebreak.h: Likewise.
96218         * lib/linebuffer.c: Likewise.
96219         * lib/linebuffer.h: Likewise.
96220         * lib/locale.in.h: Likewise.
96221         * lib/logl.c: Likewise.
96222         * lib/long-options.c: Likewise.
96223         * lib/long-options.h: Likewise.
96224         * lib/lstat.c: Likewise.
96225         * lib/lstat.h: Likewise.
96226         * lib/math.in.h: Likewise.
96227         * lib/mbchar.c: Likewise.
96228         * lib/mbchar.h: Likewise.
96229         * lib/mbfile.h: Likewise.
96230         * lib/mbiter.h: Likewise.
96231         * lib/mbscasecmp.c: Likewise.
96232         * lib/mbscasestr.c: Likewise.
96233         * lib/mbschr.c: Likewise.
96234         * lib/mbscspn.c: Likewise.
96235         * lib/mbslen.c: Likewise.
96236         * lib/mbsncasecmp.c: Likewise.
96237         * lib/mbsnlen.c: Likewise.
96238         * lib/mbspbrk.c: Likewise.
96239         * lib/mbspcasecmp.c: Likewise.
96240         * lib/mbsrchr.c: Likewise.
96241         * lib/mbssep.c: Likewise.
96242         * lib/mbsspn.c: Likewise.
96243         * lib/mbsstr.c: Likewise.
96244         * lib/mbstok_r.c: Likewise.
96245         * lib/mbswidth.c: Likewise.
96246         * lib/mbswidth.h: Likewise.
96247         * lib/mbuiter.h: Likewise.
96248         * lib/memcasecmp.c: Likewise.
96249         * lib/memcasecmp.h: Likewise.
96250         * lib/memchr.c: Likewise.
96251         * lib/memcmp.c: Likewise.
96252         * lib/memcoll.c: Likewise.
96253         * lib/memcoll.h: Likewise.
96254         * lib/memcpy.c: Likewise.
96255         * lib/memrchr.c: Likewise.
96256         * lib/mkancesdirs.c: Likewise.
96257         * lib/mkdir-p.c: Likewise.
96258         * lib/mkdir-p.h: Likewise.
96259         * lib/mkdir.c: Likewise.
96260         * lib/mkdirat.c: Likewise.
96261         * lib/mkdtemp.c: Likewise.
96262         * lib/mkstemp-safer.c: Likewise.
96263         * lib/mkstemp.c: Likewise.
96264         * lib/modechange.c: Likewise.
96265         * lib/modechange.h: Likewise.
96266         * lib/mountlist.c: Likewise.
96267         * lib/mountlist.h: Likewise.
96268         * lib/mpsort.c: Likewise.
96269         * lib/nanosleep.c: Likewise.
96270         * lib/obstack.c: Likewise.
96271         * lib/obstack.h: Likewise.
96272         * lib/open-safer.c: Likewise.
96273         * lib/open.c: Likewise.
96274         * lib/openat-die.c: Likewise.
96275         * lib/openat-priv.h: Likewise.
96276         * lib/openat-proc.c: Likewise.
96277         * lib/openat.c: Likewise.
96278         * lib/openat.h: Likewise.
96279         * lib/pagealign_alloc.c: Likewise.
96280         * lib/pagealign_alloc.h: Likewise.
96281         * lib/physmem.c: Likewise.
96282         * lib/physmem.h: Likewise.
96283         * lib/pipe-safer.c: Likewise.
96284         * lib/pipe.c: Likewise.
96285         * lib/pipe.h: Likewise.
96286         * lib/posixtm.c: Likewise.
96287         * lib/posixtm.h: Likewise.
96288         * lib/posixver.c: Likewise.
96289         * lib/printf-frexp.c: Likewise.
96290         * lib/printf-frexp.h: Likewise.
96291         * lib/printf-frexpl.c: Likewise.
96292         * lib/printf-frexpl.h: Likewise.
96293         * lib/printf.c: Likewise.
96294         * lib/progname.c: Likewise.
96295         * lib/progname.h: Likewise.
96296         * lib/progreloc.c: Likewise.
96297         * lib/putenv.c: Likewise.
96298         * lib/quote.c: Likewise.
96299         * lib/quote.h: Likewise.
96300         * lib/quotearg.c: Likewise.
96301         * lib/quotearg.h: Likewise.
96302         * lib/raise.c: Likewise.
96303         * lib/readline.c: Likewise.
96304         * lib/readline.h: Likewise.
96305         * lib/readlink.c: Likewise.
96306         * lib/readtokens.c: Likewise.
96307         * lib/readtokens.h: Likewise.
96308         * lib/readtokens0.c: Likewise.
96309         * lib/readtokens0.h: Likewise.
96310         * lib/readutmp.c: Likewise.
96311         * lib/readutmp.h: Likewise.
96312         * lib/realloc.c: Likewise.
96313         * lib/relocwrapper.c: Likewise.
96314         * lib/rename-dest-slash.c: Likewise.
96315         * lib/rename.c: Likewise.
96316         * lib/rmdir.c: Likewise.
96317         * lib/rpmatch.c: Likewise.
96318         * lib/safe-read.c: Likewise.
96319         * lib/safe-read.h: Likewise.
96320         * lib/safe-write.c: Likewise.
96321         * lib/safe-write.h: Likewise.
96322         * lib/same-inode.h: Likewise.
96323         * lib/same.c: Likewise.
96324         * lib/same.h: Likewise.
96325         * lib/save-cwd.c: Likewise.
96326         * lib/save-cwd.h: Likewise.
96327         * lib/savedir.c: Likewise.
96328         * lib/savedir.h: Likewise.
96329         * lib/savewd.c: Likewise.
96330         * lib/savewd.h: Likewise.
96331         * lib/search.in.h: Likewise.
96332         * lib/setenv.c: Likewise.
96333         * lib/setenv.h: Likewise.
96334         * lib/settime.c: Likewise.
96335         * lib/sh-quote.c: Likewise.
96336         * lib/sh-quote.h: Likewise.
96337         * lib/sig2str.c: Likewise.
96338         * lib/sig2str.h: Likewise.
96339         * lib/signal.in.h: Likewise.
96340         * lib/signbitd.c: Likewise.
96341         * lib/signbitf.c: Likewise.
96342         * lib/signbitl.c: Likewise.
96343         * lib/sigprocmask.c: Likewise.
96344         * lib/sincosl.c: Likewise.
96345         * lib/sleep.c: Likewise.
96346         * lib/sprintf.c: Likewise.
96347         * lib/sqrtl.c: Likewise.
96348         * lib/stat-time.h: Likewise.
96349         * lib/stdio--.h: Likewise.
96350         * lib/stdio-safer.h: Likewise.
96351         * lib/stdlib--.h: Likewise.
96352         * lib/stdlib-safer.h: Likewise.
96353         * lib/stdlib.in.h: Likewise.
96354         * lib/stpcpy.c: Likewise.
96355         * lib/stpncpy.c: Likewise.
96356         * lib/strchrnul.c: Likewise.
96357         * lib/strcspn.c: Likewise.
96358         * lib/strerror.c: Likewise.
96359         * lib/strftime.c: Likewise.
96360         * lib/strftime.h: Likewise.
96361         * lib/striconveh.c: Likewise.
96362         * lib/striconveh.h: Likewise.
96363         * lib/striconveha.c: Likewise.
96364         * lib/striconveha.h: Likewise.
96365         * lib/stripslash.c: Likewise.
96366         * lib/strnlen1.c: Likewise.
96367         * lib/strnlen1.h: Likewise.
96368         * lib/strtod.c: Likewise.
96369         * lib/strtoimax.c: Likewise.
96370         * lib/strtok_r.c: Likewise.
96371         * lib/strtol.c: Likewise.
96372         * lib/strtoll.c: Likewise.
96373         * lib/strtoul.c: Likewise.
96374         * lib/strtoull.c: Likewise.
96375         * lib/sysexits.in.h: Likewise.
96376         * lib/tempname.c: Likewise.
96377         * lib/tempname.h: Likewise.
96378         * lib/timespec.h: Likewise.
96379         * lib/tls.c: Likewise.
96380         * lib/tls.h: Likewise.
96381         * lib/tmpdir.c: Likewise.
96382         * lib/tmpdir.h: Likewise.
96383         * lib/tmpfile-safer.c: Likewise.
96384         * lib/tmpfile.c: Likewise.
96385         * lib/trigl.c: Likewise.
96386         * lib/trigl.h: Likewise.
96387         * lib/trim.c: Likewise.
96388         * lib/trim.h: Likewise.
96389         * lib/trunc.c: Likewise.
96390         * lib/truncf.c: Likewise.
96391         * lib/truncl.c: Likewise.
96392         * lib/tsearch.c: Likewise.
96393         * lib/unicodeio.c: Likewise.
96394         * lib/unicodeio.h: Likewise.
96395         * lib/unistd--.h: Likewise.
96396         * lib/unistd-safer.h: Likewise.
96397         * lib/unistdio/ulc-fprintf.c: Likewise.
96398         * lib/unistdio/ulc-vfprintf.c: Likewise.
96399         * lib/unlinkdir.c: Likewise.
96400         * lib/unlinkdir.h: Likewise.
96401         * lib/unlocked-io.h: Likewise.
96402         * lib/unsetenv.c: Likewise.
96403         * lib/userspec.c: Likewise.
96404         * lib/utime.c: Likewise.
96405         * lib/utimecmp.c: Likewise.
96406         * lib/utimecmp.h: Likewise.
96407         * lib/utimens.c: Likewise.
96408         * lib/verify.h: Likewise.
96409         * lib/verror.c: Likewise.
96410         * lib/verror.h: Likewise.
96411         * lib/version-etc-fsf.c: Likewise.
96412         * lib/version-etc.c: Likewise.
96413         * lib/version-etc.h: Likewise.
96414         * lib/vfprintf.c: Likewise.
96415         * lib/vprintf.c: Likewise.
96416         * lib/vsprintf.c: Likewise.
96417         * lib/w32spawn.h: Likewise.
96418         * lib/wait-process.c: Likewise.
96419         * lib/wait-process.h: Likewise.
96420         * lib/wcwidth.c: Likewise.
96421         * lib/write-any-file.c: Likewise.
96422         * lib/xalloc-die.c: Likewise.
96423         * lib/xalloc.h: Likewise.
96424         * lib/xasprintf.c: Likewise.
96425         * lib/xgetcwd.c: Likewise.
96426         * lib/xgetcwd.h: Likewise.
96427         * lib/xgetdomainname.c: Likewise.
96428         * lib/xgetdomainname.h: Likewise.
96429         * lib/xgethostname.c: Likewise.
96430         * lib/xmalloc.c: Likewise.
96431         * lib/xmalloca.c: Likewise.
96432         * lib/xmalloca.h: Likewise.
96433         * lib/xmemcoll.c: Likewise.
96434         * lib/xnanosleep.c: Likewise.
96435         * lib/xreadlink.c: Likewise.
96436         * lib/xreadlink.h: Likewise.
96437         * lib/xsetenv.c: Likewise.
96438         * lib/xsetenv.h: Likewise.
96439         * lib/xstriconv.c: Likewise.
96440         * lib/xstriconv.h: Likewise.
96441         * lib/xstrndup.c: Likewise.
96442         * lib/xstrndup.h: Likewise.
96443         * lib/xstrtod.c: Likewise.
96444         * lib/xstrtod.h: Likewise.
96445         * lib/xstrtol-error.c: Likewise.
96446         * lib/xstrtol.c: Likewise.
96447         * lib/xstrtol.h: Likewise.
96448         * lib/xtime.h: Likewise.
96449         * lib/xvasprintf.c: Likewise.
96450         * lib/xvasprintf.h: Likewise.
96451         * lib/yesno.c: Likewise.
96452         * lib/yesno.h: Likewise.
96453         * posix-modules: Likewise.
96454         * tests/test-alloca-opt.c: Likewise.
96455         * tests/test-arcfour.c: Likewise.
96456         * tests/test-arctwo.c: Likewise.
96457         * tests/test-argmatch.c: Likewise.
96458         * tests/test-argp-2.sh: Likewise.
96459         * tests/test-argp.c: Likewise.
96460         * tests/test-arpa_inet.c: Likewise.
96461         * tests/test-array_list.c: Likewise.
96462         * tests/test-array_oset.c: Likewise.
96463         * tests/test-atexit.c: Likewise.
96464         * tests/test-avltree_list.c: Likewise.
96465         * tests/test-avltree_oset.c: Likewise.
96466         * tests/test-avltreehash_list.c: Likewise.
96467         * tests/test-base64.c: Likewise.
96468         * tests/test-binary-io.c: Likewise.
96469         * tests/test-byteswap.c: Likewise.
96470         * tests/test-c-ctype.c: Likewise.
96471         * tests/test-c-strcasecmp.c: Likewise.
96472         * tests/test-c-strcasestr.c: Likewise.
96473         * tests/test-c-strncasecmp.c: Likewise.
96474         * tests/test-c-strstr.c: Likewise.
96475         * tests/test-canonicalize-lgpl.c: Likewise.
96476         * tests/test-canonicalize.c: Likewise.
96477         * tests/test-carray_list.c: Likewise.
96478         * tests/test-ceilf.c: Likewise.
96479         * tests/test-ceill.c: Likewise.
96480         * tests/test-count-one-bits.c: Likewise.
96481         * tests/test-crc.c: Likewise.
96482         * tests/test-dirname.c: Likewise.
96483         * tests/test-fbufmode.c: Likewise.
96484         * tests/test-fcntl.c: Likewise.
96485         * tests/test-fflush.c: Likewise.
96486         * tests/test-floorf.c: Likewise.
96487         * tests/test-floorl.c: Likewise.
96488         * tests/test-fopen.c: Likewise.
96489         * tests/test-fprintf-posix.c: Likewise.
96490         * tests/test-fprintf-posix.h: Likewise.
96491         * tests/test-fpurge.c: Likewise.
96492         * tests/test-freadable.c: Likewise.
96493         * tests/test-freadahead.c: Likewise.
96494         * tests/test-freading.c: Likewise.
96495         * tests/test-freopen.c: Likewise.
96496         * tests/test-frexp.c: Likewise.
96497         * tests/test-frexpl.c: Likewise.
96498         * tests/test-fseek.c: Likewise.
96499         * tests/test-fseeko.c: Likewise.
96500         * tests/test-fseterr.c: Likewise.
96501         * tests/test-fstrcmp.c: Likewise.
96502         * tests/test-ftell.c: Likewise.
96503         * tests/test-ftello.c: Likewise.
96504         * tests/test-fwritable.c: Likewise.
96505         * tests/test-fwriting.c: Likewise.
96506         * tests/test-getaddrinfo.c: Likewise.
96507         * tests/test-getpass.c: Likewise.
96508         * tests/test-gettimeofday.c: Likewise.
96509         * tests/test-hmac-md5.c: Likewise.
96510         * tests/test-hmac-sha1.c: Likewise.
96511         * tests/test-iconv.c: Likewise.
96512         * tests/test-iconvme.c: Likewise.
96513         * tests/test-inttypes.c: Likewise.
96514         * tests/test-isnan.c: Likewise.
96515         * tests/test-isnanf.c: Likewise.
96516         * tests/test-isnanl-nolibm.c: Likewise.
96517         * tests/test-isnanl.c: Likewise.
96518         * tests/test-isnanl.h: Likewise.
96519         * tests/test-ldexpl.c: Likewise.
96520         * tests/test-linked_list.c: Likewise.
96521         * tests/test-linkedhash_list.c: Likewise.
96522         * tests/test-locale.c: Likewise.
96523         * tests/test-localename.c: Likewise.
96524         * tests/test-lock.c: Likewise.
96525         * tests/test-lseek.c: Likewise.
96526         * tests/test-malloca.c: Likewise.
96527         * tests/test-math.c: Likewise.
96528         * tests/test-mbscasecmp.c: Likewise.
96529         * tests/test-mbscasestr1.c: Likewise.
96530         * tests/test-mbscasestr2.c: Likewise.
96531         * tests/test-mbscasestr3.c: Likewise.
96532         * tests/test-mbscasestr4.c: Likewise.
96533         * tests/test-mbschr.c: Likewise.
96534         * tests/test-mbscspn.c: Likewise.
96535         * tests/test-mbsncasecmp.c: Likewise.
96536         * tests/test-mbspbrk.c: Likewise.
96537         * tests/test-mbspcasecmp.c: Likewise.
96538         * tests/test-mbsrchr.c: Likewise.
96539         * tests/test-mbsspn.c: Likewise.
96540         * tests/test-mbsstr1.c: Likewise.
96541         * tests/test-mbsstr2.c: Likewise.
96542         * tests/test-mbsstr3.c: Likewise.
96543         * tests/test-md5.c: Likewise.
96544         * tests/test-memmem.c: Likewise.
96545         * tests/test-netinet_in.c: Likewise.
96546         * tests/test-open.c: Likewise.
96547         * tests/test-printf-frexp.c: Likewise.
96548         * tests/test-printf-frexpl.c: Likewise.
96549         * tests/test-printf-posix.c: Likewise.
96550         * tests/test-printf-posix.h: Likewise.
96551         * tests/test-rbtree_list.c: Likewise.
96552         * tests/test-rbtree_oset.c: Likewise.
96553         * tests/test-rbtreehash_list.c: Likewise.
96554         * tests/test-read-file.c: Likewise.
96555         * tests/test-rijndael.c: Likewise.
96556         * tests/test-search.c: Likewise.
96557         * tests/test-signbit.c: Likewise.
96558         * tests/test-sleep.c: Likewise.
96559         * tests/test-snprintf-posix.c: Likewise.
96560         * tests/test-snprintf-posix.h: Likewise.
96561         * tests/test-snprintf.c: Likewise.
96562         * tests/test-sprintf-posix.c: Likewise.
96563         * tests/test-sprintf-posix.h: Likewise.
96564         * tests/test-stat-time.c: Likewise.
96565         * tests/test-stdbool.c: Likewise.
96566         * tests/test-stdint.c: Likewise.
96567         * tests/test-stdio.c: Likewise.
96568         * tests/test-stdlib.c: Likewise.
96569         * tests/test-stpncpy.c: Likewise.
96570         * tests/test-strcasestr.c: Likewise.
96571         * tests/test-striconv.c: Likewise.
96572         * tests/test-striconveh.c: Likewise.
96573         * tests/test-striconveha.c: Likewise.
96574         * tests/test-string.c: Likewise.
96575         * tests/test-sys_select.c: Likewise.
96576         * tests/test-sys_socket.c: Likewise.
96577         * tests/test-sys_stat.c: Likewise.
96578         * tests/test-sys_time.c: Likewise.
96579         * tests/test-sysexits.c: Likewise.
96580         * tests/test-time.c: Likewise.
96581         * tests/test-tls.c: Likewise.
96582         * tests/test-trunc.c: Likewise.
96583         * tests/test-truncf.c: Likewise.
96584         * tests/test-truncl.c: Likewise.
96585         * tests/test-unistd.c: Likewise.
96586         * tests/test-vasnprintf-posix.c: Likewise.
96587         * tests/test-vasnprintf-posix2.c: Likewise.
96588         * tests/test-vasnprintf.c: Likewise.
96589         * tests/test-vasprintf-posix.c: Likewise.
96590         * tests/test-vasprintf.c: Likewise.
96591         * tests/test-verify.c: Likewise.
96592         * tests/test-vfprintf-posix.c: Likewise.
96593         * tests/test-vprintf-posix.c: Likewise.
96594         * tests/test-vsnprintf-posix.c: Likewise.
96595         * tests/test-vsnprintf.c: Likewise.
96596         * tests/test-vsprintf-posix.c: Likewise.
96597         * tests/test-wchar.c: Likewise.
96598         * tests/test-wctype.c: Likewise.
96599         * tests/test-wcwidth.c: Likewise.
96600         * tests/test-xstrtol.c: Likewise.
96601         * tests/test-xvasprintf.c: Likewise.
96602         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
96603         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
96604         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
96605         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
96606         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
96607         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
96608         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
96609         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
96610         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
96611         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
96612         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
96613         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
96614         * tests/uniname/test-uninames.c: Likewise.
96615         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
96616         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
96617         * tests/unistdio/test-u16-printf1.h: Likewise.
96618         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
96619         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
96620         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
96621         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
96622         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
96623         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
96624         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
96625         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
96626         * tests/unistdio/test-u32-printf1.h: Likewise.
96627         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
96628         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
96629         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
96630         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
96631         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
96632         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
96633         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
96634         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
96635         * tests/unistdio/test-u8-printf1.h: Likewise.
96636         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
96637         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
96638         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
96639         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
96640         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
96641         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
96642         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
96643         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
96644         * tests/unistdio/test-ulc-printf1.h: Likewise.
96645         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
96646         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
96647         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
96648         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
96649         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
96650         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
96651         * tests/uniwidth/test-u16-strwidth.c: Likewise.
96652         * tests/uniwidth/test-u16-width.c: Likewise.
96653         * tests/uniwidth/test-u32-strwidth.c: Likewise.
96654         * tests/uniwidth/test-u32-width.c: Likewise.
96655         * tests/uniwidth/test-u8-strwidth.c: Likewise.
96656         * tests/uniwidth/test-u8-width.c: Likewise.
96657         * tests/uniwidth/test-uc_width.c: Likewise.
96658         * config/srclist-update: Likewise.
96659         (fixlicense): Update to GPLv3+.
96661         Change copyright notice from LGPLv2.1+ to LGPLv3+.
96662         * tests/test-tsearch.c: Change copyright notice.
96664         Change copyright notice from LGPLv2.0+ to LGPLv3+.
96665         * lib/c-strcaseeq.h: Change copyright notice.
96666         * lib/streq.h: Likewise.
96667         * lib/uniconv.h: Likewise.
96668         * lib/uniconv/u-conv-from-enc.h: Likewise.
96669         * lib/uniconv/u-conv-to-enc.h: Likewise.
96670         * lib/uniconv/u-strconv-from-enc.h: Likewise.
96671         * lib/uniconv/u-strconv-to-enc.h: Likewise.
96672         * lib/uniconv/u16-conv-from-enc.c: Likewise.
96673         * lib/uniconv/u16-conv-to-enc.c: Likewise.
96674         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
96675         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
96676         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
96677         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
96678         * lib/uniconv/u32-conv-from-enc.c: Likewise.
96679         * lib/uniconv/u32-conv-to-enc.c: Likewise.
96680         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
96681         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
96682         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
96683         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
96684         * lib/uniconv/u8-conv-from-enc.c: Likewise.
96685         * lib/uniconv/u8-conv-to-enc.c: Likewise.
96686         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
96687         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
96688         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
96689         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
96690         * lib/uniname.h: Likewise.
96691         * lib/uniname/uniname.c: Likewise.
96692         * lib/unistdio.h: Likewise.
96693         * lib/unistdio/u-asnprintf.h: Likewise.
96694         * lib/unistdio/u-asprintf.h: Likewise.
96695         * lib/unistdio/u-printf-args.c: Likewise.
96696         * lib/unistdio/u-printf-args.h: Likewise.
96697         * lib/unistdio/u-printf-parse.h: Likewise.
96698         * lib/unistdio/u-snprintf.h: Likewise.
96699         * lib/unistdio/u-sprintf.h: Likewise.
96700         * lib/unistdio/u-vasprintf.h: Likewise.
96701         * lib/unistdio/u-vsnprintf.h: Likewise.
96702         * lib/unistdio/u-vsprintf.h: Likewise.
96703         * lib/unistdio/u16-asnprintf.c: Likewise.
96704         * lib/unistdio/u16-asprintf.c: Likewise.
96705         * lib/unistdio/u16-printf-parse.c: Likewise.
96706         * lib/unistdio/u16-snprintf.c: Likewise.
96707         * lib/unistdio/u16-sprintf.c: Likewise.
96708         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
96709         * lib/unistdio/u16-u16-asprintf.c: Likewise.
96710         * lib/unistdio/u16-u16-snprintf.c: Likewise.
96711         * lib/unistdio/u16-u16-sprintf.c: Likewise.
96712         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
96713         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
96714         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
96715         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
96716         * lib/unistdio/u16-vasnprintf.c: Likewise.
96717         * lib/unistdio/u16-vasprintf.c: Likewise.
96718         * lib/unistdio/u16-vsnprintf.c: Likewise.
96719         * lib/unistdio/u16-vsprintf.c: Likewise.
96720         * lib/unistdio/u32-asnprintf.c: Likewise.
96721         * lib/unistdio/u32-asprintf.c: Likewise.
96722         * lib/unistdio/u32-printf-parse.c: Likewise.
96723         * lib/unistdio/u32-snprintf.c: Likewise.
96724         * lib/unistdio/u32-sprintf.c: Likewise.
96725         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
96726         * lib/unistdio/u32-u32-asprintf.c: Likewise.
96727         * lib/unistdio/u32-u32-snprintf.c: Likewise.
96728         * lib/unistdio/u32-u32-sprintf.c: Likewise.
96729         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
96730         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
96731         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
96732         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
96733         * lib/unistdio/u32-vasnprintf.c: Likewise.
96734         * lib/unistdio/u32-vasprintf.c: Likewise.
96735         * lib/unistdio/u32-vsnprintf.c: Likewise.
96736         * lib/unistdio/u32-vsprintf.c: Likewise.
96737         * lib/unistdio/u8-asnprintf.c: Likewise.
96738         * lib/unistdio/u8-asprintf.c: Likewise.
96739         * lib/unistdio/u8-printf-parse.c: Likewise.
96740         * lib/unistdio/u8-snprintf.c: Likewise.
96741         * lib/unistdio/u8-sprintf.c: Likewise.
96742         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
96743         * lib/unistdio/u8-u8-asprintf.c: Likewise.
96744         * lib/unistdio/u8-u8-snprintf.c: Likewise.
96745         * lib/unistdio/u8-u8-sprintf.c: Likewise.
96746         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
96747         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
96748         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
96749         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
96750         * lib/unistdio/u8-vasnprintf.c: Likewise.
96751         * lib/unistdio/u8-vasprintf.c: Likewise.
96752         * lib/unistdio/u8-vsnprintf.c: Likewise.
96753         * lib/unistdio/u8-vsprintf.c: Likewise.
96754         * lib/unistdio/ulc-asnprintf.c: Likewise.
96755         * lib/unistdio/ulc-asprintf.c: Likewise.
96756         * lib/unistdio/ulc-printf-parse.c: Likewise.
96757         * lib/unistdio/ulc-snprintf.c: Likewise.
96758         * lib/unistdio/ulc-sprintf.c: Likewise.
96759         * lib/unistdio/ulc-vasnprintf.c: Likewise.
96760         * lib/unistdio/ulc-vasprintf.c: Likewise.
96761         * lib/unistdio/ulc-vsnprintf.c: Likewise.
96762         * lib/unistdio/ulc-vsprintf.c: Likewise.
96763         * lib/unistr.h: Likewise.
96764         * lib/unistr/u-cpy-alloc.h: Likewise.
96765         * lib/unistr/u-cpy.h: Likewise.
96766         * lib/unistr/u-endswith.h: Likewise.
96767         * lib/unistr/u-move.h: Likewise.
96768         * lib/unistr/u-set.h: Likewise.
96769         * lib/unistr/u-startswith.h: Likewise.
96770         * lib/unistr/u-stpcpy.h: Likewise.
96771         * lib/unistr/u-stpncpy.h: Likewise.
96772         * lib/unistr/u-strcat.h: Likewise.
96773         * lib/unistr/u-strcpy.h: Likewise.
96774         * lib/unistr/u-strcspn.h: Likewise.
96775         * lib/unistr/u-strdup.h: Likewise.
96776         * lib/unistr/u-strlen.h: Likewise.
96777         * lib/unistr/u-strncat.h: Likewise.
96778         * lib/unistr/u-strncpy.h: Likewise.
96779         * lib/unistr/u-strnlen.h: Likewise.
96780         * lib/unistr/u-strpbrk.h: Likewise.
96781         * lib/unistr/u-strspn.h: Likewise.
96782         * lib/unistr/u-strstr.h: Likewise.
96783         * lib/unistr/u-strtok.h: Likewise.
96784         * lib/unistr/u16-check.c: Likewise.
96785         * lib/unistr/u16-chr.c: Likewise.
96786         * lib/unistr/u16-cmp.c: Likewise.
96787         * lib/unistr/u16-cpy-alloc.c: Likewise.
96788         * lib/unistr/u16-cpy.c: Likewise.
96789         * lib/unistr/u16-endswith.c: Likewise.
96790         * lib/unistr/u16-mblen.c: Likewise.
96791         * lib/unistr/u16-mbsnlen.c: Likewise.
96792         * lib/unistr/u16-mbtouc-aux.c: Likewise.
96793         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
96794         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
96795         * lib/unistr/u16-mbtouc.c: Likewise.
96796         * lib/unistr/u16-mbtoucr.c: Likewise.
96797         * lib/unistr/u16-move.c: Likewise.
96798         * lib/unistr/u16-next.c: Likewise.
96799         * lib/unistr/u16-prev.c: Likewise.
96800         * lib/unistr/u16-set.c: Likewise.
96801         * lib/unistr/u16-startswith.c: Likewise.
96802         * lib/unistr/u16-stpcpy.c: Likewise.
96803         * lib/unistr/u16-stpncpy.c: Likewise.
96804         * lib/unistr/u16-strcat.c: Likewise.
96805         * lib/unistr/u16-strchr.c: Likewise.
96806         * lib/unistr/u16-strcmp.c: Likewise.
96807         * lib/unistr/u16-strcpy.c: Likewise.
96808         * lib/unistr/u16-strcspn.c: Likewise.
96809         * lib/unistr/u16-strdup.c: Likewise.
96810         * lib/unistr/u16-strlen.c: Likewise.
96811         * lib/unistr/u16-strmblen.c: Likewise.
96812         * lib/unistr/u16-strmbtouc.c: Likewise.
96813         * lib/unistr/u16-strncat.c: Likewise.
96814         * lib/unistr/u16-strncmp.c: Likewise.
96815         * lib/unistr/u16-strncpy.c: Likewise.
96816         * lib/unistr/u16-strnlen.c: Likewise.
96817         * lib/unistr/u16-strpbrk.c: Likewise.
96818         * lib/unistr/u16-strrchr.c: Likewise.
96819         * lib/unistr/u16-strspn.c: Likewise.
96820         * lib/unistr/u16-strstr.c: Likewise.
96821         * lib/unistr/u16-strtok.c: Likewise.
96822         * lib/unistr/u16-to-u32.c: Likewise.
96823         * lib/unistr/u16-to-u8.c: Likewise.
96824         * lib/unistr/u16-uctomb-aux.c: Likewise.
96825         * lib/unistr/u16-uctomb.c: Likewise.
96826         * lib/unistr/u32-check.c: Likewise.
96827         * lib/unistr/u32-chr.c: Likewise.
96828         * lib/unistr/u32-cmp.c: Likewise.
96829         * lib/unistr/u32-cpy-alloc.c: Likewise.
96830         * lib/unistr/u32-cpy.c: Likewise.
96831         * lib/unistr/u32-endswith.c: Likewise.
96832         * lib/unistr/u32-mblen.c: Likewise.
96833         * lib/unistr/u32-mbsnlen.c: Likewise.
96834         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
96835         * lib/unistr/u32-mbtouc.c: Likewise.
96836         * lib/unistr/u32-mbtoucr.c: Likewise.
96837         * lib/unistr/u32-move.c: Likewise.
96838         * lib/unistr/u32-next.c: Likewise.
96839         * lib/unistr/u32-prev.c: Likewise.
96840         * lib/unistr/u32-set.c: Likewise.
96841         * lib/unistr/u32-startswith.c: Likewise.
96842         * lib/unistr/u32-stpcpy.c: Likewise.
96843         * lib/unistr/u32-stpncpy.c: Likewise.
96844         * lib/unistr/u32-strcat.c: Likewise.
96845         * lib/unistr/u32-strchr.c: Likewise.
96846         * lib/unistr/u32-strcmp.c: Likewise.
96847         * lib/unistr/u32-strcpy.c: Likewise.
96848         * lib/unistr/u32-strcspn.c: Likewise.
96849         * lib/unistr/u32-strdup.c: Likewise.
96850         * lib/unistr/u32-strlen.c: Likewise.
96851         * lib/unistr/u32-strmblen.c: Likewise.
96852         * lib/unistr/u32-strmbtouc.c: Likewise.
96853         * lib/unistr/u32-strncat.c: Likewise.
96854         * lib/unistr/u32-strncmp.c: Likewise.
96855         * lib/unistr/u32-strncpy.c: Likewise.
96856         * lib/unistr/u32-strnlen.c: Likewise.
96857         * lib/unistr/u32-strpbrk.c: Likewise.
96858         * lib/unistr/u32-strrchr.c: Likewise.
96859         * lib/unistr/u32-strspn.c: Likewise.
96860         * lib/unistr/u32-strstr.c: Likewise.
96861         * lib/unistr/u32-strtok.c: Likewise.
96862         * lib/unistr/u32-to-u16.c: Likewise.
96863         * lib/unistr/u32-to-u8.c: Likewise.
96864         * lib/unistr/u32-uctomb.c: Likewise.
96865         * lib/unistr/u8-check.c: Likewise.
96866         * lib/unistr/u8-chr.c: Likewise.
96867         * lib/unistr/u8-cmp.c: Likewise.
96868         * lib/unistr/u8-cpy-alloc.c: Likewise.
96869         * lib/unistr/u8-cpy.c: Likewise.
96870         * lib/unistr/u8-endswith.c: Likewise.
96871         * lib/unistr/u8-mblen.c: Likewise.
96872         * lib/unistr/u8-mbsnlen.c: Likewise.
96873         * lib/unistr/u8-mbtouc-aux.c: Likewise.
96874         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
96875         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
96876         * lib/unistr/u8-mbtouc.c: Likewise.
96877         * lib/unistr/u8-mbtoucr.c: Likewise.
96878         * lib/unistr/u8-move.c: Likewise.
96879         * lib/unistr/u8-next.c: Likewise.
96880         * lib/unistr/u8-prev.c: Likewise.
96881         * lib/unistr/u8-set.c: Likewise.
96882         * lib/unistr/u8-startswith.c: Likewise.
96883         * lib/unistr/u8-stpcpy.c: Likewise.
96884         * lib/unistr/u8-stpncpy.c: Likewise.
96885         * lib/unistr/u8-strcat.c: Likewise.
96886         * lib/unistr/u8-strchr.c: Likewise.
96887         * lib/unistr/u8-strcmp.c: Likewise.
96888         * lib/unistr/u8-strcpy.c: Likewise.
96889         * lib/unistr/u8-strcspn.c: Likewise.
96890         * lib/unistr/u8-strdup.c: Likewise.
96891         * lib/unistr/u8-strlen.c: Likewise.
96892         * lib/unistr/u8-strmblen.c: Likewise.
96893         * lib/unistr/u8-strmbtouc.c: Likewise.
96894         * lib/unistr/u8-strncat.c: Likewise.
96895         * lib/unistr/u8-strncmp.c: Likewise.
96896         * lib/unistr/u8-strncpy.c: Likewise.
96897         * lib/unistr/u8-strnlen.c: Likewise.
96898         * lib/unistr/u8-strpbrk.c: Likewise.
96899         * lib/unistr/u8-strrchr.c: Likewise.
96900         * lib/unistr/u8-strspn.c: Likewise.
96901         * lib/unistr/u8-strstr.c: Likewise.
96902         * lib/unistr/u8-strtok.c: Likewise.
96903         * lib/unistr/u8-to-u16.c: Likewise.
96904         * lib/unistr/u8-to-u32.c: Likewise.
96905         * lib/unistr/u8-uctomb-aux.c: Likewise.
96906         * lib/unistr/u8-uctomb.c: Likewise.
96907         * lib/unitypes.h: Likewise.
96908         * lib/uniwidth.h: Likewise.
96909         * lib/uniwidth/cjk.h: Likewise.
96910         * lib/uniwidth/u16-strwidth.c: Likewise.
96911         * lib/uniwidth/u16-width.c: Likewise.
96912         * lib/uniwidth/u32-strwidth.c: Likewise.
96913         * lib/uniwidth/u32-width.c: Likewise.
96914         * lib/uniwidth/u8-strwidth.c: Likewise.
96915         * lib/uniwidth/u8-width.c: Likewise.
96916         * lib/uniwidth/width.c: Likewise.
96918 2007-10-07  Bruno Haible  <bruno@clisp.org>
96920         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
96921         The file is still under LGPL (see modules/inttypes).
96923 2007-10-06  Bruno Haible  <bruno@clisp.org>
96925         * modules/trunc (Dependencies): Add 'extensions'.
96926         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
96927         Reported by Ben Pfaff <blp@gnu.org>.
96929 2007-10-06  Bruno Haible  <bruno@clisp.org>
96931         * modules/freopen-tests: New file.
96932         * tests/test-freopen.c: New file.
96934         * modules/fopen-tests: New file.
96935         * tests/test-fopen.c: New file.
96937         * modules/fopen: New file.
96938         * lib/fopen.c: New file.
96939         * m4/fopen.m4: New file.
96940         * modules/freopen: New file.
96941         * lib/freopen.c: New file.
96942         * m4/freopen.m4: New file.
96943         * lib/stdio.in.h (fopen, freopen): New declarations.
96944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
96945         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
96946         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
96947         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
96948         * doc/functions/fopen.texi: Mention the 'fopen' module.
96949         * doc/functions/freopen.texi: Mention the 'freopen' module.
96951 2007-10-06  Bruno Haible  <bruno@clisp.org>
96953         * modules/open-tests: New file.
96954         * tests/test-open.c: New file.
96956         * modules/open: New file.
96957         * lib/open.c: New file.
96958         * m4/open.m4: New file.
96959         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
96960         lib/open.c does.
96961         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
96962         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
96963         macros.
96964         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
96965         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
96966         REPLACE_OPEN.
96967         * doc/functions/open.texi: Mention the 'open' module.
96969 2007-10-04  Bruno Haible  <bruno@clisp.org>
96971         * modules/ceill-tests: New file.
96972         * tests/test-ceill.c: New file.
96974         * modules/ceill: New file.
96975         * lib/ceill.c: Replace entire file.
96976         * m4/ceill.m4: New file.
96977         * lib/math.in.h (ceill): Replace declaration.
96978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
96979         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
96980         * doc/functions/ceill.texi: Mention the 'ceill' module.
96981         * modules/mathl (Files): Remove lib/ceill.c.
96982         (Depends-on): Add ceill.
96984 2007-10-04  Bruno Haible  <bruno@clisp.org>
96986         * modules/ceilf-tests: New file.
96987         * tests/test-ceilf.c: New file.
96989         * modules/ceilf: New file.
96990         * lib/ceil.c: New file.
96991         * lib/ceilf.c: New file.
96992         * m4/ceilf.m4: New file.
96993         * lib/math.in.h (ceilf): New declaration.
96994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
96995         HAVE_DECL_CEILF.
96996         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
96997         HAVE_DECL_CEILF.
96998         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
97000 2007-10-04  Bruno Haible  <bruno@clisp.org>
97002         * modules/floorl-tests: New file.
97003         * tests/test-floorl.c: New file.
97005         * modules/floorl: New file.
97006         * lib/floorl.c: Replace entire file.
97007         * m4/floorl.m4: New file.
97008         * lib/math.in.h (floorl): Replace declaration.
97009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
97010         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
97011         * doc/functions/floorl.texi: Mention the 'floorl' module.
97012         * modules/mathl (Files): Remove lib/floorl.c.
97013         (Depends-on): Add floorl.
97015 2007-10-04  Bruno Haible  <bruno@clisp.org>
97017         * modules/floorf-tests: New file.
97018         * tests/test-floorf.c: New file.
97020         * modules/floorf: New file.
97021         * lib/floor.c: New file.
97022         * lib/floorf.c: New file.
97023         * m4/floorf.m4: New file.
97024         * lib/math.in.h (floorf): New declaration.
97025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
97026         HAVE_DECL_FLOORF.
97027         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
97028         HAVE_DECL_FLOORF.
97029         * doc/functions/floorf.texi: Mention the 'floorf' module.
97031 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
97032             Bruno Haible  <bruno@clisp.org>
97034         Advertise for the Git server instead of the CVS server.
97035         * doc/gnulib-intro.texi (Steady Development): Mention the Git
97036         repository instead of the CVS one.
97037         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
97038         about all VCS systems generically.
97039         * doc/gnulib.texi (Introduction): Capitalize `Git'.
97041 2007-10-04  Bruno Haible  <bruno@clisp.org>
97043         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
97044         means.
97045         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
97047 2007-10-04  Bruno Haible  <bruno@clisp.org>
97049         * modules/truncl-tests: New file.
97050         * tests/test-truncl.c: New file.
97052         * modules/truncl: New file.
97053         * lib/truncl.c: New file.
97054         * m4/truncl.m4: New file.
97055         * lib/math.in.h (truncl): New declaration.
97056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
97057         HAVE_DECL_TRUNCL.
97058         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
97059         HAVE_DECL_TRUNCL.
97060         * doc/functions/truncl.texi: Mention the 'truncl' module.
97062 2007-10-04  Bruno Haible  <bruno@clisp.org>
97064         * modules/truncf-tests: New file.
97065         * tests/test-truncf.c: New file.
97067         * modules/truncf: New file.
97068         * lib/trunc.c: Make paramerizable through USE_* macros.
97069         * lib/truncf.c: New file.
97070         * m4/truncf.m4: New file.
97071         * lib/math.in.h (truncf): New declaration.
97072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
97073         HAVE_DECL_TRUNCF.
97074         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
97075         HAVE_DECL_TRUNCF.
97076         * doc/functions/truncf.texi: Mention the 'truncf' module.
97078 2007-10-03  Bruno Haible  <bruno@clisp.org>
97080         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
97081         augmentation also for tests modules.
97082         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
97083         * modules/atexit-tests (Makefile.am): Likewise.
97084         * modules/binary-io-tests (Makefile.am): Likewise.
97085         * modules/c-strcase-tests (Makefile.am): Likewise.
97086         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
97087         * modules/canonicalize-tests (Makefile.am): Likewise.
97088         * modules/closein-tests (Makefile.am): Likewise.
97089         * modules/fprintf-posix-tests (Makefile.am): Likewise.
97090         * modules/freadahead-tests (Makefile.am): Likewise.
97091         * modules/fseek-tests (Makefile.am): Likewise.
97092         * modules/fseeko-tests (Makefile.am): Likewise.
97093         * modules/ftell-tests (Makefile.am): Likewise.
97094         * modules/ftello-tests (Makefile.am): Likewise.
97095         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
97096         * modules/isnanl-tests (Makefile.am): Likewise.
97097         * modules/lseek-tests (Makefile.am): Likewise.
97098         * modules/mbscasecmp-tests (Makefile.am): Likewise.
97099         * modules/mbscasestr-tests (Makefile.am): Likewise.
97100         * modules/mbschr-tests (Makefile.am): Likewise.
97101         * modules/mbscspn-tests (Makefile.am): Likewise.
97102         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
97103         * modules/mbspbrk-tests (Makefile.am): Likewise.
97104         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
97105         * modules/mbsrchr-tests (Makefile.am): Likewise.
97106         * modules/mbsspn-tests (Makefile.am): Likewise.
97107         * modules/mbsstr-tests (Makefile.am): Likewise.
97108         * modules/printf-posix-tests (Makefile.am): Likewise.
97109         * modules/snprintf-posix-tests (Makefile.am): Likewise.
97110         * modules/sprintf-posix-tests (Makefile.am): Likewise.
97111         * modules/tsearch-tests (Makefile.am): Likewise.
97112         * modules/uniname/uniname-tests (Makefile.am): Likewise.
97113         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
97114         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
97115         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
97116         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
97117         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
97118         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
97119         * modules/vprintf-posix-tests (Makefile.am): Likewise.
97120         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
97121         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
97122         * modules/xstrtoimax-tests (Makefile.am): Likewise.
97123         * modules/xstrtol-tests (Makefile.am): Likewise.
97124         * modules/xstrtoumax-tests (Makefile.am): Likewise.
97125         * modules/yesno-tests (Makefile.am): Likewise.
97127 2007-10-03  Bruno Haible  <bruno@clisp.org>
97129         * modules/trunc-tests: New file.
97130         * tests/test-trunc.c: New file.
97132         * modules/trunc: New file.
97133         * lib/trunc.c: New file.
97134         * m4/trunc.m4: New file.
97135         * lib/math.in.h (trunc): New declaration.
97136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
97137         HAVE_DECL_TRUNC.
97138         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
97139         HAVE_DECL_TRUNC.
97140         * doc/functions/trunc.texi: Mention the 'trunc' module.
97142 2007-10-03  Bruno Haible  <bruno@clisp.org>
97144         * tests/test-fpending.c: New file, mostly copied
97145         from coreutils/lib/t-fpending.c.
97146         * modules/fpending-tests: New file.
97148 2007-10-03  Bruno Haible  <bruno@clisp.org>
97150         Port the stdio extensions to QNX (untested).
97151         * lib/fseterr.c (fseterr): Add support for QNX.
97152         * lib/fbufmode.c (fbufmode): Likewise.
97153         * lib/freadable.c (freadable): Likewise.
97154         * lib/fwritable.c (fwritable): Likewise.
97155         * lib/freading.c (freading): Likewise.
97156         * lib/fwriting.c (fwriting): Likewise.
97157         * lib/freadahead.c (freadahed): Likewise.
97158         * lib/fpurge.c (fpurge): Likewise.
97159         * lib/fseeko.c (rpl_fseeko): Likewise.
97161 2007-10-03  Bruno Haible  <bruno@clisp.org>
97162             Jim Meyering  <jim@meyering.net>
97163             Eric Blake  <ebb9@byu.net>
97165         * doc/relocatable.texi: Use @command instead of @program.
97167 2007-10-02  Jim Meyering  <jim@meyering.net>
97169         Perform one more "_.h" -> ".in.h" substitution.
97170         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
97171         instead of unistd_.h here, too.
97173 2007-10-01  Bruno Haible  <bruno@clisp.org>
97175         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
97176         Needed for the alloca-opt module.
97178 2007-09-30  Bruno Haible  <bruno@clisp.org>
97180         * lib/alloca.in.h: Renamed from lib/alloca_.h.
97181         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
97182         alloca_.h.
97183         * lib/argz.in.h: Renamed from lib/argz_.h.
97184         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
97185         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
97186         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
97187         byteswap_.h.
97188         * lib/dirent.in.h: Renamed from lib/dirent_.h.
97189         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
97190         dirent_.h.
97191         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
97192         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
97193         fcntl_.h.
97194         * lib/float.in.h: Renamed from lib/float_.h.
97195         * modules/float (Files, Makefile.am): Use float.in.h instead of
97196         float_.h.
97197         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
97198         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
97199         fnmatch_.h.
97200         * lib/getopt.in.h: Renamed from lib/getopt_.h.
97201         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
97202         getopt_.h.
97203         * lib/glob.in.h: Renamed from lib/glob_.h.
97204         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
97205         * lib/iconv.in.h: Renamed from lib/iconv_.h.
97206         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
97207         iconv_.h.
97208         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
97209         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
97210         inttypes_.h.
97211         * lib/locale.in.h: Renamed from lib/locale_.h.
97212         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
97213         locale_.h.
97214         * lib/math.in.h: Renamed from lib/math_.h.
97215         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
97216         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
97217         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
97218         of netinet_in_.h. Add dependency.
97219         * lib/poll.in.h: Renamed from lib/poll_.h.
97220         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
97221         * lib/search.in.h: Renamed from lib/search_.h.
97222         * modules/search (Files, Makefile.am): Use search.in.h instead of
97223         search_.h.
97224         * lib/signal.in.h: Renamed from lib/signal_.h.
97225         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
97226         _signal.h.
97227         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
97228         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
97229         stdbool_.h.
97230         * lib/stdint.in.h: Renamed from lib/stdint_.h.
97231         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
97232         stdint_.h.
97233         * lib/stdio.in.h: Renamed from lib/stdio_.h.
97234         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
97235         stdio_.h.
97236         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
97237         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
97238         stdlib_.h.
97239         * lib/string.in.h: Renamed from lib/string_.h.
97240         * modules/string (Files, Makefile.am): Use string.in.h instead of
97241         string_.h.
97242         * doc/gnulib-tool.texi (Initial import): Update.
97243         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
97244         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
97245         of sys_select_.h. Add dependency.
97246         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
97247         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
97248         of sys_socket_.h.
97249         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
97250         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
97251         sys_stat_.h.
97252         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
97253         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
97254         sys_time_.h.
97255         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
97256         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
97257         sysexits_.h.
97258         * lib/time.in.h: Renamed from lib/time_.h.
97259         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
97260         * lib/unistd.in.h: Renamed from lib/unistd_.h.
97261         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
97262         unistd_.h.
97263         * lib/wchar.in.h: Renamed from lib/wchar_.h.
97264         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
97265         wchar_.h.
97266         * lib/wctype.in.h: Renamed from lib/wctype_.h.
97267         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
97268         wctype_.h.
97269         * build-aux/bootstrap (slurp): Update.
97270         * lib/.cppi-disable: Update.
97272 2007-09-30  Bruno Haible  <bruno@clisp.org>
97274         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
97275         Needed on BeOS.
97277 2007-09-30  Bruno Haible  <bruno@clisp.org>
97279         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
97281 2007-09-29  Bruno Haible  <bruno@clisp.org>
97283         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
97285 2007-09-29  Bruno Haible  <bruno@clisp.org>
97287         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
97288         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
97289         * build-aux/install-reloc: Compile also areadlink.c.
97290         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
97292 2007-09-29  Bruno Haible  <bruno@clisp.org>
97294         * gnulib-tool (func_emit_initmacro_done): Indentation.
97296 2007-09-29  Bruno Haible  <bruno@clisp.org>
97298         * README: Add CVS checkout update instructions.
97299         Info from Bob Proulx <bob@proulx.com>.
97301 2007-09-28  Eric Blake  <ebb9@byu.net>
97303         Provide move-if-change.
97304         * build-aux/move-if-change: New file, based on best practice
97305         rather than any canonical upstream location.
97307 2007-09-28  Jim Meyering  <jim@meyering.net>
97309         Fix canonicalize loop-detection corner case.
97310         Do not attempt to stat the symlink values stored via seen_triple.
97311         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
97312         on linux-2.6.18, (but not 2.6.22).
97313         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
97314         triple_compare.  The former compares dev,ino,filename, while the latter
97315         would actually stat dirname(filename) when dev and ino were equal.
97316         * lib/hash-triple.c: Install <string.h>.
97317         (STREQ): Define.
97318         (triple_compare_ino_str): New function.
97319         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
97321 2007-09-28  Eric Blake  <ebb9@byu.net>
97323         Enforce that AC_REPLACE_FUNCS files exist.
97324         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
97325         override check for typos.
97327         Fix test-closein on Solaris 10.
97328         * tests/test-closein.c (main): Don't assume stdin can be inherited
97329         closed on all systems.
97330         * tests/test-closein.sh: Likewise.
97331         Reported by Piotr Tarnowski.
97333 2007-09-28  Jim Meyering  <jim@meyering.net>
97335         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
97337 2007-09-27  Jim Meyering  <jim@meyering.net>
97339         canonicalize: Avoid a false-positive cycle failure.
97340         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
97341         Sort.  Remove cycle-check.
97342         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
97343         not cycle-check.h.
97344         (seen_triple): New function.
97345         (canonicalize_filename_mode): Use it instead of cycle-check.
97346         * tests/test-canonicalize.c: Add a test for this bug.
97347         * tests/test-canonicalize.sh: Set up and run the test.
97349         New module, file-set, from coreutils.
97350         * modules/file-set: Define it.
97351         * lib/file-set.c, lib/file-set.h: Implement.
97353         New module, hash-triple, from coreutils.
97354         * modules/hash-triple: Define it.
97355         * lib/hash-triple.c, lib/hash-triple.h: Implement.
97357 2007-09-25  Eric Blake  <ebb9@byu.net>
97359         Fix strerror on Interix.
97360         * lib/string_.h (strerror): Declare replacement.
97361         * doc/functions/strerror.texi (strerror): Document the Interix
97362         shortcoming.
97363         * modules/string (Makefile.am): Support new hooks.
97364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
97365         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
97366         gl_FUNC_STRERROR_SEPARATE.
97367         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
97368         * lib/strerror.c (rpl_strerror): Provide replacement.
97369         * modules/strerror (Depends-on): Add string.
97370         (configure.ac): Detect use of module.
97371         * tests/test-strerror.c: New file.
97372         * modules/strerror-tests: New test module.
97373         * modules/argp (Depends-on): Add strerror.
97374         * modules/error (Depends-on): Likewise.
97375         Reported by Martin Koeppe.
97377 2007-09-24  Bruno Haible  <bruno@clisp.org>
97379         * README: Update git instructions.
97381 2007-09-24  Eric Blake  <ebb9@byu.net>
97383         Revert fpending breakage from 2007-09-08.
97384         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
97385         __fpending.c.
97387 2007-09-24  Jim Meyering  <jim@meyering.net>
97389         filenamecat.c: Add a test.
97390         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
97391         showing how the function works when DIR is the empty string.
97393 2007-09-21  Simon Josefsson  <simon@josefsson.org>
97395         * tests/test-canonicalize.sh: Turn on executable bit.
97397 2007-09-19  Eric Blake  <ebb9@byu.net>
97399         * README: Update CVS instructions.
97401 2007-09-18  Bruno Haible  <bruno@clisp.org>
97403         * modules/areadlink: New file.
97404         * lib/areadlink.h (areadlink): New declaration.
97405         * lib/areadlink.c: New file, based on lib/xreadlink.c.
97407 2007-09-17  Jim Meyering  <jim@meyering.net>
97409         * lib/savewd.c (ESTALE) [!defined]: Define.
97410         Reported to be required on Interix by Martin Koeppe.
97412 2007-09-17  Bruno Haible  <bruno@clisp.org>
97414         * gnulib-tool (func_version): Use $version.
97416 2007-09-16  Bruno Haible  <bruno@clisp.org>
97418         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
97419         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
97420         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
97421         Reported by Greg Schafer <gschafer@zip.com.au>.
97423 2007-09-15  Bruno Haible  <bruno@clisp.org>
97425         * gnulib-tool (sed): Try a little harder to make bash understand the
97426         alias.
97427         Reported by Bruce Korb <bruce.korb@gmail.com>.
97429 2007-09-13  Eric Blake  <ebb9@byu.net>
97431         * ChangeLog: Remove conflict markers.
97433 2007-09-13  Simon Josefsson  <simon@josefsson.org>
97435         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
97436         Reported by Bruno Haible <bruno@clisp.org>.
97438 2007-09-12  Bruno Haible  <bruno@clisp.org>
97440         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
97441         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
97442         is not defined.
97444 2007-09-12  Eric Blake  <ebb9@byu.net>
97446         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
97447         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
97448         Autoconf definition.
97449         * modules/euidaccess (Depends-on): Add extensions, for
97450         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
97451         * modules/fnmatch (Depends-on): Likewise.
97452         * modules/getaddrinfo (Depends-on): Likewise.
97453         * modules/getdelim (Depends-on): Likewise.
97454         * modules/getline (Depends-on): Likewise.
97455         * modules/getsubopt (Depends-on): Likewise.
97456         * modules/gettext (Depends-on): Likewise.
97457         * modules/group-member (Depends-on): Likewise.
97458         * modules/mbchar (Depends-on): Likewise.
97459         * modules/memmem (Depends-on): Likewise.
97460         * modules/mempcpy (Depends-on): Likewise.
97461         * modules/memrchr (Depends-on): Likewise.
97462         * modules/pagealign_alloc (Depends-on): Likewise.
97463         * modules/readutmp (Depends-on): Likewise.
97464         * modules/stpcpy (Depends-on): Likewise.
97465         * modules/stpncpy (Depends-on): Likewise.
97466         * modules/strchrnul (Depends-on): Likewise.
97467         * modules/strndup (Depends-on): Likewise.
97468         * modules/strsep (Depends-on): Likewise.
97469         * modules/strverscmp (Depends-on): Likewise.
97470         * modules/vasprintf (Depends-on): Likewise.
97471         * modules/wcwidth (Depends-on): Likewise.
97472         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
97473         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
97474         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
97475         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
97476         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97477         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
97478         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
97479         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97480         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
97481         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
97482         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
97483         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
97484         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
97485         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
97486         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
97487         * m4/readutmp.m4 (gl_READUTMP): Likewise.
97488         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
97489         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
97490         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
97491         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
97492         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
97493         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
97494         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
97495         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
97496         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
97497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
97498         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
97499         so that lock.m4 can be used in gettext without extensions module.
97501 2007-09-11  Bruno Haible  <bruno@clisp.org>
97503         * m4/isc-posix.m4: Remove file.
97504         Suggested by Eric Blake.
97506 2007-09-11  Eric Blake  <ebb9@byu.net>
97508         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
97510 2007-09-10  Bruno Haible  <bruno@clisp.org>
97512         * posix-modules: Fix typo in error message.
97513         Reported by Matt <mkraai@beckman.com>.
97515 2007-09-09  Bruno Haible  <bruno@clisp.org>
97517         * doc/functions/getdelim.texi: Update list of platforms lacking the
97518         function.
97519         * doc/functions/getline.texi: Likewise.
97521 2007-09-09  Jim Meyering  <jim@meyering.net>
97523         * lib/hash.c (hash_initialize): Detect calloc failure.
97524         Reported by Bruno Haible.
97526 2007-09-09  Bruno Haible  <bruno@clisp.org>
97528         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
97529         malloc or realloc fails.
97531 2007-09-09  Bruno Haible  <bruno@clisp.org>
97533         * modules/getcwd (Depends-on): Add malloc-posix.
97534         * modules/glob (Depends-on): Likewise.
97535         * modules/putenv (Depends-on): Likewise.
97536         * modules/strdup (Depends-on): Likewise.
97537         * modules/getdelim (Depends-on): Add realloc-posix.
97538         * modules/read-file (Depends-on): Likewise.
97540 2007-09-09  Bruno Haible  <bruno@clisp.org>
97542         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
97543         (gl_FUNC_MALLOC_POSIX): Require it.
97544         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
97545         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
97546         * modules/realloc (Files): Add m4/malloc.m4.
97547         * modules/calloc (Files): Likewise.
97549 2007-09-09  Bruno Haible  <bruno@clisp.org>
97551         * modules/malloc-posix: New file.
97552         * modules/malloc (Depends-on): Add malloc-posix.
97553         * lib/malloc.c: Include errno.h.
97554         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
97555         and a POSIX-compatible malloc into a single function. Set ENOMEM
97556         when returning NULL.
97557         * m4/malloc.m4: New file.
97558         * doc/functions/malloc.texi: Mention the malloc-posix module.
97559         * lib/stdlib_.h (malloc): New declaration.
97560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97561         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
97562         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
97563         and HAVE_MALLOC_POSIX.
97565 2007-09-09  Bruno Haible  <bruno@clisp.org>
97567         * modules/realloc-posix: New file.
97568         * modules/realloc (Depends-on): Add realloc-posix.
97569         * lib/realloc.c: Include errno.h.
97570         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
97571         and a POSIX-compatible realloc into a single function. Set ENOMEM
97572         when returning NULL.
97573         * m4/realloc.m4: New file.
97574         * doc/functions/realloc.texi: Mention the realloc-posix module.
97575         * lib/stdlib_.h (realloc): New declaration.
97576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97577         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
97578         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
97579         and HAVE_REALLOC_POSIX.
97581 2007-09-09  Bruno Haible  <bruno@clisp.org>
97583         * modules/calloc-posix: New file.
97584         * modules/calloc (Depends-on): Add calloc-posix.
97585         * lib/calloc.c: Include errno.h.
97586         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
97587         and a POSIX-compatible calloc into a single function. Set ENOMEM
97588         when returning NULL.
97589         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
97590         * doc/functions/calloc.texi: Mention the calloc-posix module.
97591         * lib/stdlib_.h (calloc): New declaration.
97592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97593         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
97594         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
97595         and HAVE_CALLOC_POSIX.
97597 2007-09-09  Bruno Haible  <bruno@clisp.org>
97599         Allow for modules to show an arbitrary notice.
97600         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
97601         * gnulib-tool: New option --extract-notice.
97602         (func_usage): Document it.
97603         (sed_extract_prog): Update.
97604         (func_get_notice): New function.
97605         (func_modules_notice): New function.
97606         (func_import, func_create_testdir): Invoke it.
97607         Suggested by Jim Meyering.
97609 2007-09-09  Bruno Haible  <bruno@clisp.org>
97611         * gnulib-tool: New options --verbose, --quiet.
97612         (func_usage): Document them.
97613         (verbose): New variable.
97614         (func_execute_command): New function.
97615         (func_import): Don't show the module list and the file list if
97616         $verbose < 0.
97617         (func_create_testdir): Likewise. Use func_execute_command.
97618         (func_create_megatestdir): Use func_execute_command.
97620 2007-09-08  Bruno Haible  <bruno@clisp.org>
97622         * gnulib-tool (func_import): Prefer rsync over wget when available,
97623         for fetching the PO files.
97625 2007-09-08  Bruno Haible  <bruno@clisp.org>
97627         * posix-modules: New file. Portions copied from gnulib-tool.
97628         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
97630 2007-09-08  Jim Meyering  <jim@meyering.net>
97632         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
97633         * lib/fpending.h: Rename from __fpending.h.
97634         * lib/fpending.c: Rename from __fpending.c.
97635         Include "fpending.h", not "__fpending.h".
97636         * lib/__fpending.h, lib/__fpending.c: Remove files.
97637         * modules/fpending (Files): Reflect new file names.
97638         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
97640 2007-09-08  Bruno Haible  <bruno@clisp.org>
97642         * m4/inttypes-h.m4: Remove stub file.
97644 2007-09-07  Simon Josefsson  <simon@josefsson.org>
97646         * doc/headers/stdint.texi: Discuss #include_next issue.
97648 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
97650         * build-aux/bootstrap: Remove obsolete comment about wget --help.
97652 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97654         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
97655         in variable name.
97657 2007-09-03  Jim Meyering  <jim@meyering.net>
97659         New module: git-version-gen.
97660         * modules/git-version-gen: New file.
97662         Import changes from coreutils for bootstrap script.
97664         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
97666         bootstrap: uses rsync to download the .po files
97667         * build-aux/bootstrap (po_download_command_format): New global.
97668         (download_po_files): Use rsync.
97669         (update_po_files): Don't remove .po files after download,
97670         so future rsync runs can take advantage of the copies.
97672         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
97674         Solve the unnecessary-.po-file-regeneration problem once and for all.
97675         * build-aux/bootstrap (download_po_files): New function, renamed from
97676         get_translations.  Now, downloads, but doesn't update LINGUAS.
97677         (update_po_files): New function.
97679         bootstrap: Ignore more.
97680         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
97681         uniwidth to e.g., lib/.gitignore.
97682         (slurp): Handle the sys_stat_.h -> sys mapping, too.
97684         * build-aux/bootstrap: New setting: vc_ignore.
97685         (insert_sorted_if_absent): Create $file if absent.
97686         Adapt to new, possibly empty, list: $vc_ignore.
97688         bootstrap: generate more ignorable names
97689         * build-aux/bootstrap (slurp): When generating ignorable names,
97690         also map .sin to .sed, .gperf to .c, and .y to .c.
97692 2007-09-03  Jim Meyering  <jim@meyering.net>
97694         * build-aux/git-version-gen: New file, from coreutils.  For details, see
97695         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
97697 2007-09-02  Bruno Haible  <bruno@clisp.org>
97699         Fix mis-recognition of 'mcs' on QNX 6.
97700         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
97701         output contains the string "Mono".
97702         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
97703         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
97705 2007-09-01  Bruno Haible  <bruno@clisp.org>
97707         Fix collision between uniwidth/* and linebreak modules.
97708         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
97709         u32_width): Remove declarations.
97710         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
97711         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
97712         streq3, streq2, streq1, streq0): Remove functions.
97713         (STREQ): Remove macro.
97714         (is_cjk_encoding): Remove function.
97715         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
97716         (uc_width, u8_width, u16_width, u32_width): Remove functions.
97717         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
97718         * NEWS: Document the change.
97720 2007-09-01  Bruno Haible  <bruno@clisp.org>
97722         * lib/streq.h: Add double-inclusion guard.
97724 2007-09-01  Karl Berry  <karl@gnu.org>
97726         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
97728 2007-08-28  Jim Meyering  <jim@meyering.net>
97730         Rename mreadlink_with_size to areadlink_with_size.
97731         * NEWS: Document the change.
97732         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
97733         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
97734         * lib/mreadlink.h: Rename this to...
97735         * lib/areadlink.h: ...this.
97736         * modules/mreadlink-with-size: Rename this to...
97737         * modules/areadlink-with-size: ...this.
97738         * lib/canonicalize.c: Reflect the renaming.
97739         * modules/canonicalize: Likewise.
97741 2007-08-26  Bruno Haible  <bruno@clisp.org>
97743         * gnulib-tool (func_import): When deciding which files to remove,
97744         consider also dangling symbolic links.
97745         Reported by Eric Blake.
97747 2007-08-26  Bruno Haible  <bruno@clisp.org>
97749         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
97751 2007-08-23  Simon Josefsson  <simon@josefsson.org>
97753         * lib/readline.c: Don't include getline.h, the prototype is now
97754         found in stdio.h.
97756 2007-08-23  Jim Meyering  <jim@meyering.net>
97758         Getdelim touchup.
97759         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
97760         around the funlockfile call, since funlockfile never sets errno.
97761         Don't set errno upon failed realloc.
97763 2007-08-22  Eric Blake  <ebb9@byu.net>
97765         Getline touchups.
97766         * lib/getdelim.c (getdelim): Revert regression that required *n to
97767         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
97768         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
97769         getdelim, rather than whether implementation is missing.
97770         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
97771         * lib/stdio_.h (getline): Also declare if replacement is
97772         required.
97773         * doc/functions/getdelim.texi: New file.
97774         * doc/functions/getline.texi: Likewise.
97775         * doc/gnulib.texi (Function Substitutes): Add new files.
97776         Reported by Bruno Haible.
97778 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
97780         * users.txt: Add Guile.
97782 2007-08-22  Eric Blake  <ebb9@byu.net>
97784         * tests/test-getdelim.c (main): Use remove, not unlink.
97785         * tests/test-getline.c (main): Likewise.
97787         Move getline and getdelim into stdio.h, per POSIX 200x.
97788         * modules/getline (Files): Remove getline.h.
97789         (Depends-on): Add stdio.
97790         (configure.ac): Add module indicator.
97791         * modules/getdelim (Files): Remove getdelim.h.
97792         (Depends-on): Add stdio.
97793         (configure.ac): Add module indicator.
97794         * modules/stdio (Makefile.am): Work with new indicators.
97795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
97796         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
97797         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
97798         * lib/getdelim.h: Delete.
97799         * lib/getline.h: Delete.
97800         * lib/stdio_.h (getdelim, getline): Declare.
97801         * modules/getdelim-tests: New module.
97802         * modules/getline-tests: Likewise.
97803         * tests/test-getdelim.c: New file.
97804         * tests/test-getline.c: Likewise.
97805         * NEWS: Document the change.
97806         * lib/getline.c: Update choice of header.
97807         * lib/csharpcomp.c: Likewise.
97808         * lib/getpass.c: Likewise.
97809         * lib/javacomp.c: Likewise.
97810         * lib/javaversion.c: Likewise.
97811         * lib/yesno.c: Likewise.
97812         * lib/getdelim.c: Likewise.
97813         (getdelim): Set errno on failure, and avoid memory leak.
97815 2007-08-19  Bruno Haible  <bruno@clisp.org>
97817         * modules/closein (Depends-on): Add freadahead.
97818         * lib/closein.c: Include freadahead.h.
97819         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
97820         is zero.
97822 2007-08-19  Bruno Haible  <bruno@clisp.org>
97824         * modules/freadahead-tests: New file.
97825         * tests/test-freadahead.sh: New file.
97826         * tests/test-freadahead.c: New file.
97828         * modules/freadahead: New file.
97829         * lib/freadahead.h: New file.
97830         * lib/freadahead.c: New file.
97831         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
97832         fbufmode, fpurge, freadable, fwritable.
97834 2007-08-19  Eric Blake  <ebb9@byu.net>
97836         Test yesno in combination with closein.
97837         * lib/yesno.c (yesno): Document use of stdin.
97838         * modules/yesno-tests (Files): New module.
97839         * tests/test-yesno.c (main): New file.
97840         * tests/test-yesno.sh: Likewise.
97842 2007-08-19  Bruno Haible  <bruno@clisp.org>
97844         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
97845         * lib/fseeko.c (rpl_fseeko): Likewise.
97846         * lib/fseterr.c (fseterr): Likewise.
97848 2007-08-19  Bruno Haible  <bruno@clisp.org>
97850         * tests/test-lseek.c (main): Disable a test for BeOS.
97851         * doc/functions/lseek.texi: Document the BeOS bug.
97853 2007-08-19  Bruno Haible  <bruno@clisp.org>
97854             Eric Blake  <ebb9@byu.net>
97856         * lib/lseek.c: Include <sys/stat.h>.
97857         (rpl_lseek): Add workaround code also for Unix platforms.
97858         Needed for BeOS.
97859         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
97860         * doc/functions/lseek.texi: Document BeOS definiency.
97862 2007-08-18  Bruno Haible  <bruno@clisp.org>
97864         * modules/fstrcmp-tests: New file.
97865         * tests/test-fstrcmp.c: New file.
97867 2007-08-18  Bruno Haible  <bruno@clisp.org>
97869         * modules/fstrcmp: New file, from GNU gettext with modifications.
97870         * lib/fstrcmp.h: New file, from GNU gettext.
97871         * lib/fstrcmp.c: New file, from GNU gettext.
97872         * MODULES.html.sh (String handling): Add fstrcmp.
97874 2007-08-18  Bruno Haible  <bruno@clisp.org>
97876         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
97877         'bool'.
97878         (diag, compareseq): Remove const from the ctxt argument.
97879         (USE_HEURISTIC): Undefine at the end.
97881 2007-08-18  Jim Meyering  <jim@meyering.net>
97883         New file: lib/idcache.h
97884         * NEWS: Mention the addition.
97885         * modules/idcache (Files): Add lib/idcache.h
97886         * lib/idcache.c: Include "idcache.h".
97887         Don't include <sys/types.h>.
97888         Add a FIXME comment.
97889         Move file-scoped "static" declarations to the top.
97890         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
97892 2007-08-17  Bruno Haible  <bruno@clisp.org>
97893         and Paul Eggert  <eggert@cs.ucla.edu>
97895         * MODULES.html.sh: Add diffseq.
97896         * modules/diffseq: New file.
97897         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
97898         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
97900 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97902         Import changes from coreutils for bootstrap script.
97904         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
97906         * build-aux/bootstrap (slurp): Work even in environments where
97907         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
97908         current code does not slurp files whose names start with ".", and
97909         this looks like it might be a troublesome area.
97911         2007-07-11  Jim Meyering  <jim@meyering.net>
97913         If there's a GPL vN copyright comment, require that N == 3.
97915         2007-07-08  Jim Meyering  <jim@meyering.net>
97917         Run the coreutils-specific code only if tests/Makefile.am.in exists.
97918         * build-aux/bootstrap (mam_template): Move definition out of loop.
97920         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
97922         * build-aux/bootstrap (symlink_to_dir): Rename function from
97923         symlink_to_gnulib.  Add a directory parameter.  Update all
97924         callers.
97925         (cp_mark_as_generated): Also check for -- and link to -- files in
97926         gl/.
97928         2007-07-08  Jim Meyering  <jim@meyering.net>
97930         Adapt to deeper hierarchy in gnulib.
97931         * build-aux/bootstrap (symlink_to_dir): If the destination
97932         directory doesn't exist, create it. This is required at least for
97933         "lib/uniwidth/cjk.h".
97935         2007-05-15  Jim Meyering  <jim@meyering.net>
97937         * build-aux/bootstrap: Now that generated Makefile.am files
97938         are no longer under version control, they must be created at
97939         bootstrap time.
97941 2007-08-14  Ben Pfaff  <blp@gnu.org>
97943         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
97945 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
97947         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
97948         given the changes below.
97949         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
97950         even on hosts that have padding bits beyond the supported 64.
97952 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
97954         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
97955         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
97956         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
97957         depends on it.
97958         (xstrtol_error): Remove.
97959         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
97960         but with a different signature.
97961         (ATTRIBUTE_NORETURN, __attribute__): New macros.
97962         * lib/xstrtol-error.c: Include exitfail.h.
97963         (xstrtol_fatal): New function, with a different signature from the
97964         old xstrtol_error, so that the caller need not worry about passing
97965         in an exit status, or about storage management of the option argument.
97966         (xstrtol_error): Now a static function.  Redo signature to
97967         implement xstrtol_fatal.  Output the correct number of hyphens in
97968         front of the option so that the caller need not worry about
97969         storage management.
97970         (N_): New macro.
97971         (_): Remove; not used now.
97972         * modules/xstrtol: Depend on getopt.
97973         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
97974         of old STRTOL_FATAL_ERROR macro.
97975         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
97976         of test program.
97977         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
97978         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
97980 2007-08-08  Eric Blake  <ebb9@byu.net>
97982         * lib/xstrtol-error.c: Add missing include.
97984         Move xstrtol messages into gnulib domain, when --pobase is used.
97985         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
97986         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
97987         * modules/xstrtol (Files): Distribute new file.
97988         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
97989         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
97990         * tests/test-xstrtol.c: ...into new file.
97991         * tests/test-xstrtoul.c: Also test xstrtoul.
97992         * tests/test-xstrtoimax.c: Also test xstrtoimax.
97993         * tests/test-xstrtoumax.c: Also test xstrtoumax.
97994         * tests/test-xstrtol.sh: Drive the tests.
97995         * tests/test-xstrtoimax.sh: Likewise.
97996         * tests/test-xstrtoumax.sh: Likewise.
97997         * modules/xstrtol-tests: New module.
97998         * modules/xstrtoimax-tests: Likewise.
97999         * modules/xstrtoumax-tests: Likewise.
98001 2007-08-08  Jim Meyering  <jim@meyering.net>
98003         New function: mfile_name_concat.
98004         * lib/filenamecat.c (mfile_name_concat): New function, just like
98005         file_name_concat, but return NULL upon failure rather than exiting
98006         with a diagnostic.
98007         * lib/filenamecat.h: Declare it.
98009 2007-08-07  Bruno Haible  <bruno@clisp.org>
98011         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
98012         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
98013         warning from gcc.
98014         Reported by Eric Blake.
98016 2007-08-07  Simon Josefsson  <simon@josefsson.org>
98018         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
98019         * modules/crypto/arcfour (License): Likewise.
98020         * modules/crypto/des-tests (License): Likewise.
98021         * modules/crypto/gc-arctwo-tests (License): Likewise.
98022         * modules/crypto/gc-des-tests (License): Likewise.
98023         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
98024         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
98025         * modules/crypto/gc-md2-tests (License): Likewise.
98026         * modules/crypto/gc-md4-tests (License): Likewise.
98027         * modules/crypto/gc-md5-tests (License): Likewise.
98028         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
98029         * modules/crypto/gc-rijndael-tests (License): Likewise.
98030         * modules/crypto/gc-sha1-tests (License): Likewise.
98031         * modules/crypto/gc-tests (License): Likewise.
98032         * modules/crypto/hmac-md5 (License): Likewise.
98033         * modules/crypto/hmac-sha1 (License): Likewise.
98034         * modules/crypto/md2-tests (License): Likewise.
98035         * modules/crypto/md4-tests (License): Likewise.
98036         * modules/crypto/md5 (License): Likewise.
98037         * modules/crypto/rijndael (License): Likewise.
98038         * modules/crypto/sha1 (License): Likewise.
98039         * modules/memxor (License): Likewise.
98041 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
98042         and Bruno Haible  <bruno@clisp.org>
98044         * NEWS: Describe interface changes to human, xstrtol.
98045         * lib/human.h: Include <xstrtol.h>.
98046         (human_options): Return enum strtol_error, not int.  Remove
98047         bool arg; take int * instead.
98048         * lib/human.c: Don't include "gettext.h".
98049         (_): Remove; no longer used.
98050         Don't include <xstrtol.h>, since human.h does it.
98051         (human_options): Adjust to abovementioned interface changes.
98052         Do not report error to stderr; that's now the caller's
98053         responsibility.
98054         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
98055         interface change.
98056         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
98057         Str, Argument_type_string.  All uses changed.  Put " argument"
98058         in diagnostics to make them clearer.  Change wording of suffix
98059         message for clarity.
98060         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
98061         Argument_type_string.
98062         (STRTOL_FATAL_WARN): Remove; no longer used.
98063         * modules/human (Depends-on): Remove gettext-h.
98065 2007-08-06  Simon Josefsson  <simon@josefsson.org>
98067         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
98069 2007-07-31  Bruno Haible  <bruno@clisp.org>
98071         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
98072         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
98073         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
98075 2007-07-31  Bruno Haible  <bruno@clisp.org>
98077         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
98078         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
98080 2007-07-30  Bruno Haible  <bruno@clisp.org>
98082         * modules/base64 (License): Use the synonymous term "LGPLv2+".
98083         * modules/c-ctype (License): Likewise.
98084         * modules/c-strcase (License): Likewise.
98085         * modules/check-version (License): Likewise.
98086         * modules/iconv (License): Likewise.
98087         * modules/iconv_open (License): Likewise.
98088         * modules/read-file (License): Likewise.
98089         * modules/striconv (License): Likewise.
98090         * modules/strverscmp (License): Likewise.
98091         * modules/vasprintf (License): Likewise.
98092         * modules/crypto/des (License): Likewise.
98093         * modules/crypto/gc (License): Likewise.
98094         * modules/crypto/gc-arcfour (License): Likewise.
98095         * modules/crypto/gc-arctwo (License): Likewise.
98096         * modules/crypto/gc-des (License): Likewise.
98097         * modules/crypto/gc-hmac-md5 (License): Likewise.
98098         * modules/crypto/gc-hmac-sha1 (License): Likewise.
98099         * modules/crypto/gc-md2 (License): Likewise.
98100         * modules/crypto/gc-md4 (License): Likewise.
98101         * modules/crypto/gc-md5 (License): Likewise.
98102         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
98103         * modules/crypto/gc-random (License): Likewise.
98104         * modules/crypto/gc-rijndael (License): Likewise.
98105         * modules/crypto/gc-sha1 (License): Likewise.
98106         * modules/crypto/md2 (License): Likewise.
98107         * modules/crypto/md4 (License): Likewise.
98109 2007-07-30  Jim Meyering  <jim@meyering.net>
98111         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
98112         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
98113         it has valid stat data.  This bug would cause du not to count the
98114         sizes of inaccessible directories.
98115         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
98116         in <http://bugzilla.redhat.com/250077>.
98118 2007-07-25  Peter O'Gorman  <peter@pogma.com>
98119             Bruno Haible  <bruno@clisp.org>
98121         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
98122         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
98123         #include_next, gives a diagnostic about it, but reports no error in
98124         the exit code.
98125         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
98127 2007-07-24  Ben Pfaff  <blp@gnu.org>
98129         Improve name: "count-one-bits" is better than "popcount".
98130         * MODULES.html.sh: Update name.
98131         * lib/popcount.h: Renamed lib/count-one-bits.h.
98132         (popcount): Renamed count_one_bits.
98133         (popcountl): Renamed count_one_bits_l.
98134         (popcountll): Renamed count_one_bits_ll.
98135         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
98136         * modules/popcount: Renamed module/count-one-bits.
98137         * modules/popcount-tests: Renamed module/count-one-bits-tests.
98138         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
98140 2007-07-23  Ben Pfaff  <blp@gnu.org>
98142         * lib/popcount.h (popcount32): Reduce size of constants, to allow
98143         better code generation, and add U to large constants to avoid
98144         warnings, in non-GCC case.
98145         Suggested by Bruno Haible.
98147 2007-07-23  Ben Pfaff  <blp@gnu.org>
98149         * lib/popcount.h: Use verify_true instead of if...abort.
98150         * modules/popcount: Depend on verify module.
98151         Suggested by Jim Meyering.
98153 2007-07-23  Bruno Haible  <bruno@clisp.org>
98155         * gnulib-tool (func_import): Create a .cvsignore file also when the
98156         directory is not yet in CVS but the toplevel directory is. When
98157         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
98158         Reported by Karl Berry.
98160 2007-07-22  Ben Pfaff  <blp@gnu.org>
98162         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
98163         case.
98164         Suggested by Eric Blake.
98166 2007-07-22  Ben Pfaff  <blp@gnu.org>
98168         New module: popcount.
98169         * MODULES.html.sh: Add popcount.
98170         * modules/popcount: New file.
98171         * modules/popcount-tests: New file.
98172         * tests/test-popcount.c: New file.
98173         * lib/popcount.h: New file.
98174         * m4/popcount.m4: New file.
98176 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98178         * build-aux/announce-gen: Update to GPLv3.
98180         * build-aux/config.guess: Update from config.
98182 2007-07-21  Bruno Haible  <bruno@clisp.org>
98184         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
98185         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
98187 2007-07-20  Jim Meyering  <jim@meyering.net>
98189         * check-module: Diagnose a self-dependency.
98191 2007-07-19  Bruno Haible  <bruno@clisp.org>
98193         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
98194         empty.
98195         Reported by Eric Blake.
98197 2007-07-18  Bruno Haible  <bruno@clisp.org>
98199         * gnulib-tool: New options --po-base, --po-domain.
98200         (func_usage): Document them.
98201         (pobase, po_domain): New variables.
98202         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
98203         DEFAULT_TEXT_DOMAIN.
98204         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
98205         (func_import): Consider pobase and po_domain. Create a po/ directory.
98206         (func_create_testdir): Set pobase and po_domain to empty.
98207         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
98208         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
98210 2007-07-18  Bruno Haible  <bruno@clisp.org>
98212         * gnulib-tool (func_get_automake_snippet): Synthesize also an
98213         EXTRA_DIST augmentation for files in build-aux/.
98215 2007-07-16  Bruno Haible  <bruno@clisp.org>
98217         * modules/lseek (License): Use the synonymous term "LGPLv2+".
98218         * modules/getdelim (License): Likewise.
98220 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98222         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
98223         * modules/d-type (License): Likewise.
98224         * modules/extensions (License): Likewise.
98225         * modules/fnmatch (License): Likewise.
98226         * modules/fseeko (License): Likewise.
98227         * modules/getaddrinfo (License): Likewise.
98228         * modules/getline (License): Likewise.
98229         * modules/getlogin_r (License): Likewise.
98230         * modules/getpass (License): Likewise.
98231         * modules/gettimeofday (License): Likewise.
98232         * modules/glob (License): Likewise.
98233         * modules/inet_ntop (License): Likewise.
98234         * modules/malloc (License): Likewise.
98235         * modules/malloca (License): Likewise.
98236         * modules/memmem (License): Likewise.
98237         * modules/mempcpy (License): Likewise.
98238         * modules/memset (License): Likewise.
98239         * modules/minmax (License): Likewise.
98240         * modules/mktime (License): Likewise.
98241         * modules/netinet_in (License): Likewise.
98242         * modules/pathmax (License): Likewise.
98243         * modules/poll (License): Likewise.
98244         * modules/regex (License): Likewise.
98245         * modules/snprintf (License): Likewise.
98246         * modules/stdbool (License): Likewise.
98247         * modules/stdint (License): Likewise.
98248         * modules/stdio (License): Likewise.
98249         * modules/strcase (License): Likewise.
98250         * modules/strcasestr (License): Likewise.
98251         * modules/strdup (License): Likewise.
98252         * modules/string (License): Likewise.
98253         * modules/strndup (License): Likewise.
98254         * modules/strnlen (License): Likewise.
98255         * modules/strpbrk (License): Likewise.
98256         * modules/strptime (License): Likewise.
98257         * modules/strsep (License): Likewise.
98258         * modules/sys_select (License): Likewise.
98259         * modules/sys_socket (License): Likewise.
98260         * modules/sys_stat (License): Likewise.
98261         * modules/sys_time (License): Likewise.
98262         * modules/time (License): Likewise.
98263         * modules/time_r (License): Likewise.
98264         * modules/timegm (License): Likewise.
98265         * modules/unistd (License): Likewise.
98266         * modules/vsnprintf (License): Likewise.
98267         * modules/wctype (License): Likewise.
98269 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98271         * modules/argz (License): LGPLv2+.
98273 2007-07-15  Karl Berry  <karl@gnu.org>
98275         * doc/gnulib.texi: revise node structure per new fdl.texi.
98277 2007-07-14  Bruno Haible  <bruno@clisp.org>
98279         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
98280         the output file.
98281         * lib/uniname/uninames.h: Regenerated.
98283 2007-07-14  Karl Berry  <karl@gnu.org>
98285         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
98286         omitting sectioning and index commands.
98288 2007-07-13  Bruno Haible  <bruno@clisp.org>
98290         New gnulib-tool option --more-symlinks.
98291         * gnulib-tool (func_usage): Document --more-symlinks.
98292         (do_copyrights): New variable.
98293         Recognize option --more-symlinks.
98294         (func_import): Don't add a copyright notice transform to
98295         sed_transform_lib_file if do_copyrights is empty.
98297 2007-07-13  Bruno Haible  <bruno@clisp.org>
98299         * lib/vasnprintf.c (decimal_point_char): Define also if
98300         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
98301         && !NEED_PRINTF_DIRECTIVE_A.
98302         Reported by Clemens Koller <clemens.koller@anagramm.de> via
98303         Gary V. Vaughan <gary@gnu.org>.
98305 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
98307         * lib/inttypes_.h: Undo previous change, since it was fixed
98308         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
98310 2007-07-13  Bruno Haible  <bruno@clisp.org>
98312         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
98313         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
98315 2007-07-13  Jim Meyering  <jim@meyering.net>
98317         df: Don't fail for Tru64's "file-on-file mount".
98318         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
98319         so we fall through and use statfs instead.  Details here:
98320         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
98321         Reported by Albert Chin.
98323 2007-07-13  Bruno Haible  <bruno@clisp.org>
98325         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
98326         * modules/configmake (License): Likewise.
98327         * modules/gettext (License): Likewise.
98328         * modules/gettext-h (License): Likewise.
98329         * modules/include_next (License): Likewise.
98330         * modules/link-warning (License): Likewise.
98331         * modules/localcharset (License): Likewise.
98332         * modules/localename (License): Likewise.
98333         * modules/lock (License): Likewise.
98334         * modules/relocatable-lib-lgpl (License): Likewise.
98335         * modules/size_max (License): Likewise.
98336         * modules/vasnprintf (License): Likewise.
98337         * modules/wchar (License): Likewise.
98338         * modules/xsize (License): Likewise.
98340 2007-07-13  Bruno Haible  <bruno@clisp.org>
98342         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
98343         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
98345 2007-07-12  Bruno Haible  <bruno@clisp.org>
98347         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
98348         in the modules files.
98350 2007-07-11  Karl Berry  <karl@gnu.org>
98352         * MODULES.html.sh (func_module): use
98353          sed -e '\|^'"${includefile}"'$|d'
98354          instead of /.../d, to avoid errors on $includefile's containing /.
98356 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
98358         * gnulib-tool (func_import): Avoid duplication of --avoid
98359         statements
98360         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
98361         names to `_' in variable names.
98363 2007-07-10  Eric Blake  <ebb9@byu.net>
98365         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
98366         * NEWS: Document this change.
98368 2007-07-08  Bruno Haible  <bruno@clisp.org>
98370         Update to Unicode 5.0.
98371         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
98372         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
98373         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
98374         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
98375         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
98376         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
98377         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
98378         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
98379         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
98380         U+10A3F, U+1D242..U+1D244.
98381         (nonspacing_table_ind): Update.
98382         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
98383         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
98385 2007-07-08  Bruno Haible  <bruno@clisp.org>
98387         Update to Unicode 5.0.
98388         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
98389         code transform. Extend the name index field of unicode_name_to_code and
98390         unicode_code_to_name from 16 to 24 bits.
98391         * lib/uniname/uniname.c (unicode_character_name,
98392         unicode_name_character): Add the range 0x12xxx to the code transform.
98393         * lib/uniname/uninames.h: Regenerated.
98394         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
98396 2007-07-07  Bruno Haible  <bruno@clisp.org>
98398         * modules/wcwidth-tests: New file.
98399         * tests/test-wcwidth.c: New file.
98401         Work around MacOS X wcwidth() bug.
98402         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
98403         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
98404         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
98405         original wcwidth in non-UTF-8 locales.
98406         * modules/wcwidth (Depends-on): Add localcharset, streq,
98407         uniwidth/width.
98408         * doc/functions/wcwidth.texi: Update.
98410 2007-07-07  Bruno Haible  <bruno@clisp.org>
98412         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
98413         (wcwidth): New declaration.
98414         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
98415         macros.
98416         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
98417         here. Prepare for creating <wchar.h> unconditionally.
98418         * modules/wchar (Depends-on): Add link-warning.
98419         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
98420         REPLACE_WCWIDTH, and GL_LINK_WARNING.
98421         * lib/wcwidth.h: Remove file.
98422         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
98423         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
98424         * modules/wcwidth (Files): Remove lib/wcwidth.h.
98425         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
98426         (Include): Replace wcwidth.h with <wchar.h>.
98427         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
98428         * lib/mbchar.h: Don't include wcwidth.h.
98429         * lib/mbswidth.c: Likewise.
98430         * NEWS: Mention the change.
98432 2007-07-07  Bruno Haible  <bruno@clisp.org>
98434         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
98435         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
98436         definition with an external declaration.
98437         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
98438         defined as a function. Remove AC_C_INLINE requirement.
98439         * modules/wcwidth (Files): Add lib/wcwidth.c.
98440         (Makefile.am): Remove redundant statement.
98442 2007-07-07  Bruno Haible  <bruno@clisp.org>
98444         * MODULES.html.sh (Unicode string functions): Add the new modules.
98446         * tests/uniwidth/test-u32-strwidth.c: New file.
98447         * modules/uniwidth/u32-strwidth-tests: New file.
98449         * lib/uniwidth/u32-strwidth.c: New file.
98450         * modules/uniwidth/u32-strwidth: New file.
98452         * tests/uniwidth/test-u16-strwidth.c: New file.
98453         * modules/uniwidth/u16-strwidth-tests: New file.
98455         * lib/uniwidth/u16-strwidth.c: New file.
98456         * modules/uniwidth/u16-strwidth: New file.
98458         * tests/uniwidth/test-u8-strwidth.c: New file.
98459         * modules/uniwidth/u8-strwidth-tests: New file.
98461         * lib/uniwidth/u8-strwidth.c: New file.
98462         * modules/uniwidth/u8-strwidth: New file.
98464         * tests/uniwidth/test-u32-width.c: New file.
98465         * modules/uniwidth/u32-width-tests: New file.
98467         * lib/uniwidth/u32-width.c: New file.
98468         * modules/uniwidth/u32-width: New file.
98470         * tests/uniwidth/test-u16-width.c: New file.
98471         * modules/uniwidth/u16-width-tests: New file.
98473         * lib/uniwidth/u16-width.c: New file.
98474         * modules/uniwidth/u16-width: New file.
98476         * tests/uniwidth/test-u8-width.c: New file.
98477         * modules/uniwidth/u8-width-tests: New file.
98479         * lib/uniwidth/u8-width.c: New file.
98480         * modules/uniwidth/u8-width: New file.
98482         * tests/uniwidth/test-uc_width.c: New file.
98483         * modules/uniwidth/width-tests: New file.
98485         * lib/uniwidth/width.c: New file, from GNU libiconv.
98486         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
98487         * modules/uniwidth/width: New file.
98489         * lib/uniwidth.h: New file, from GNU libiconv.
98490         * modules/uniwidth/base: New file.
98492 2007-07-07  Bruno Haible  <bruno@clisp.org>
98494         * lib/uniname.h: New file, from GNU gettext.
98495         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
98496         * lib/uniname/uninames.h: New file, from GNU gettext.
98497         * lib/uniname/uniname.c: New file, from GNU gettext.
98498         * tests/uniname/test-uninames.sh: New file.
98499         * tests/uniname/test-uninames.c: New file, from GNU gettext.
98500         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
98501         * modules/uniname/base: New file.
98502         * modules/uniname/uniname: New file.
98503         * modules/uniname/uniname-tests: New file.
98504         * MODULES.html.sh (Unicode string functions): Add the new modules.
98506 2007-07-06  Bruno Haible  <bruno@clisp.org>
98508         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
98510 2007-07-06  Bruno Haible  <bruno@clisp.org>
98512         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
98513         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
98514         includes <cygwin/sys_time.h> which includes <sys/select.h> which
98515         include <sys/time.h>.
98516         Reported by Eric Blake.
98518 2007-07-06  Eric Blake  <ebb9@byu.net>
98520         Fix testing canonicalize on cygwin.
98521         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
98522         Revert patch from 2007-06-19.
98523         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
98524         canonicalize module is also in use.
98525         * tests/test-canonicalize.c: New file.
98526         * tests/test-canonicalize.sh: Likewise.
98527         * modules/canonicalize-tests: Likewise.
98529 2007-07-06  Jim Meyering  <jim@meyering.net>
98531         * lib/getugroups.c (getugroups): Detect getgrent failure.
98532         Adjust comment to reflect reality: this function may return -1.
98534 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
98536         * build-aux/bootstrap (TP_URL,get_translations): Update to use
98537         the new TP address.
98538         (usage): Fix typo
98539         (gnulib_mk): New variable.
98541 2007-07-05  Jim Meyering  <jim@meyering.net>
98543         Don't let endgrent clobber errno, no matter how improbable.
98544         * lib/getugroups.c (getugroups): Save and restore errno around
98545         endgrent call.
98547         Close the group DB even when failing with 2^31 or more members.
98548         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
98550 2007-07-04  Jim Meyering  <jim@meyering.net>
98552         * lib/getugroups.h: New file.
98553         * lib/getugroups.c: Include "getugroups.h".
98554         Remove uses of "register" keyword.
98555         Move local variable, "cp", down into scope where used.
98556         Give "username" parameter the "const" attribute.
98557         * modules/getugroups (Files): Add lib/getugroups.h
98559 2007-07-04  Karl Berry  <karl@gnu.org>
98561         * MODULES.html.sh (func_all_modules): Complete rename of
98562         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
98564 2007-07-02  Bruno Haible  <bruno@clisp.org>
98566         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
98567         mode, when inttypes.h comes from gnulib.
98568         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
98570 2007-07-02  Simon Josefsson  <simon@josefsson.org>
98572         * NEWS: Mention lgpl module name change.
98574         * modules/lgpl-2.1: Renamed from lgpl.
98576         * NEWS: Mention gpl module name change.
98578         * modules/gpl-3.0: New file, based on gpl-2.0.
98580         * modules/gpl-2.0: Renamed from gpl.
98582         * modules/gpl: Fix filename, doc/gpl.texi is now found at
98583         doc/gpl-2.0.texi.
98585 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
98587         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
98588         #define __STDC_LIMIT_MACROS temporarily while including
98589         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
98590         Problem reported by Joel E. Denny in
98591         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
98593 2007-07-01  Bruno Haible  <bruno@clisp.org>
98595         * lib/unistdio.h: New file.
98596         * lib/unistdio/u-asnprintf.h: New file.
98597         * lib/unistdio/u-asprintf.h: New file.
98598         * lib/unistdio/u-printf-args.c: New file.
98599         * lib/unistdio/u-printf-args.h: New file.
98600         * lib/unistdio/u-printf-parse.h: New file.
98601         * lib/unistdio/u-snprintf.h: New file.
98602         * lib/unistdio/u-sprintf.h: New file.
98603         * lib/unistdio/u-vasprintf.h: New file.
98604         * lib/unistdio/u-vsnprintf.h: New file.
98605         * lib/unistdio/u-vsprintf.h: New file.
98606         * lib/unistdio/ulc-asnprintf.c: New file.
98607         * lib/unistdio/ulc-asprintf.c: New file.
98608         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
98609         * lib/unistdio/ulc-printf-parse.c: New file.
98610         * lib/unistdio/ulc-snprintf.c: New file.
98611         * lib/unistdio/ulc-sprintf.c: New file.
98612         * lib/unistdio/ulc-vasnprintf.c: New file.
98613         * lib/unistdio/ulc-vasprintf.c: New file.
98614         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
98615         * lib/unistdio/ulc-vsnprintf.c: New file.
98616         * lib/unistdio/ulc-vsprintf.c: New file.
98617         * lib/unistdio/u8-asnprintf.c: New file.
98618         * lib/unistdio/u8-asprintf.c: New file.
98619         * lib/unistdio/u8-printf-parse.c: New file.
98620         * lib/unistdio/u8-snprintf.c: New file.
98621         * lib/unistdio/u8-sprintf.c: New file.
98622         * lib/unistdio/u8-vasnprintf.c: New file.
98623         * lib/unistdio/u8-vasprintf.c: New file.
98624         * lib/unistdio/u8-vsnprintf.c: New file.
98625         * lib/unistdio/u8-vsprintf.c: New file.
98626         * lib/unistdio/u8-u8-asnprintf.c: New file.
98627         * lib/unistdio/u8-u8-asprintf.c: New file.
98628         * lib/unistdio/u8-u8-snprintf.c: New file.
98629         * lib/unistdio/u8-u8-sprintf.c: New file.
98630         * lib/unistdio/u8-u8-vasnprintf.c: New file.
98631         * lib/unistdio/u8-u8-vasprintf.c: New file.
98632         * lib/unistdio/u8-u8-vsnprintf.c: New file.
98633         * lib/unistdio/u8-u8-vsprintf.c: New file.
98634         * lib/unistdio/u16-asnprintf.c: New file.
98635         * lib/unistdio/u16-asprintf.c: New file.
98636         * lib/unistdio/u16-printf-parse.c: New file.
98637         * lib/unistdio/u16-snprintf.c: New file.
98638         * lib/unistdio/u16-sprintf.c: New file.
98639         * lib/unistdio/u16-vasnprintf.c: New file.
98640         * lib/unistdio/u16-vasprintf.c: New file.
98641         * lib/unistdio/u16-vsnprintf.c: New file.
98642         * lib/unistdio/u16-vsprintf.c: New file.
98643         * lib/unistdio/u16-u16-asnprintf.c: New file.
98644         * lib/unistdio/u16-u16-asprintf.c: New file.
98645         * lib/unistdio/u16-u16-snprintf.c: New file.
98646         * lib/unistdio/u16-u16-sprintf.c: New file.
98647         * lib/unistdio/u16-u16-vasnprintf.c: New file.
98648         * lib/unistdio/u16-u16-vasprintf.c: New file.
98649         * lib/unistdio/u16-u16-vsnprintf.c: New file.
98650         * lib/unistdio/u16-u16-vsprintf.c: New file.
98651         * lib/unistdio/u32-asnprintf.c: New file.
98652         * lib/unistdio/u32-asprintf.c: New file.
98653         * lib/unistdio/u32-printf-parse.c: New file.
98654         * lib/unistdio/u32-snprintf.c: New file.
98655         * lib/unistdio/u32-sprintf.c: New file.
98656         * lib/unistdio/u32-vasnprintf.c: New file.
98657         * lib/unistdio/u32-vasprintf.c: New file.
98658         * lib/unistdio/u32-vsnprintf.c: New file.
98659         * lib/unistdio/u32-vsprintf.c: New file.
98660         * lib/unistdio/u32-u32-asnprintf.c: New file.
98661         * lib/unistdio/u32-u32-asprintf.c: New file.
98662         * lib/unistdio/u32-u32-snprintf.c: New file.
98663         * lib/unistdio/u32-u32-sprintf.c: New file.
98664         * lib/unistdio/u32-u32-vasnprintf.c: New file.
98665         * lib/unistdio/u32-u32-vasprintf.c: New file.
98666         * lib/unistdio/u32-u32-vsnprintf.c: New file.
98667         * lib/unistdio/u32-u32-vsprintf.c: New file.
98668         * tests/unistdio/test-ulc-asnprintf1.c: New file.
98669         * tests/unistdio/test-ulc-asnprintf1.h: New file.
98670         * tests/unistdio/test-ulc-printf1.h: New file.
98671         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
98672         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
98673         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
98674         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
98675         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
98676         * tests/unistdio/test-ulc-vasprintf1.c: New file.
98677         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
98678         * tests/unistdio/test-ulc-vsprintf1.c: New file.
98679         * tests/unistdio/test-u8-asnprintf1.c: New file.
98680         * tests/unistdio/test-u8-asnprintf1.h: New file.
98681         * tests/unistdio/test-u8-printf1.h: New file.
98682         * tests/unistdio/test-u8-vasnprintf1.c: New file.
98683         * tests/unistdio/test-u8-vasnprintf2.c: New file.
98684         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
98685         * tests/unistdio/test-u8-vasnprintf3.c: New file.
98686         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
98687         * tests/unistdio/test-u8-vasprintf1.c: New file.
98688         * tests/unistdio/test-u8-vsnprintf1.c: New file.
98689         * tests/unistdio/test-u8-vsprintf1.c: New file.
98690         * tests/unistdio/test-u16-asnprintf1.c: New file.
98691         * tests/unistdio/test-u16-asnprintf1.h: New file.
98692         * tests/unistdio/test-u16-printf1.h: New file.
98693         * tests/unistdio/test-u16-vasnprintf1.c: New file.
98694         * tests/unistdio/test-u16-vasnprintf2.c: New file.
98695         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
98696         * tests/unistdio/test-u16-vasnprintf3.c: New file.
98697         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
98698         * tests/unistdio/test-u16-vasprintf1.c: New file.
98699         * tests/unistdio/test-u16-vsnprintf1.c: New file.
98700         * tests/unistdio/test-u16-vsprintf1.c: New file.
98701         * tests/unistdio/test-u32-asnprintf1.c: New file.
98702         * tests/unistdio/test-u32-asnprintf1.h: New file.
98703         * tests/unistdio/test-u32-printf1.h: New file.
98704         * tests/unistdio/test-u32-vasnprintf1.c: New file.
98705         * tests/unistdio/test-u32-vasnprintf2.c: New file.
98706         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
98707         * tests/unistdio/test-u32-vasnprintf3.c: New file.
98708         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
98709         * tests/unistdio/test-u32-vasprintf1.c: New file.
98710         * tests/unistdio/test-u32-vsnprintf1.c: New file.
98711         * tests/unistdio/test-u32-vsprintf1.c: New file.
98712         * modules/unistdio/base: New file.
98713         * modules/unistdio/u-printf-args: New file.
98714         * modules/unistdio/ulc-asnprintf: New file.
98715         * modules/unistdio/ulc-asprintf: New file.
98716         * modules/unistdio/ulc-fprintf: New file.
98717         * modules/unistdio/ulc-printf-parse: New file.
98718         * modules/unistdio/ulc-snprintf: New file.
98719         * modules/unistdio/ulc-sprintf: New file.
98720         * modules/unistdio/ulc-vasnprintf: New file.
98721         * modules/unistdio/ulc-vasprintf: New file.
98722         * modules/unistdio/ulc-vfprintf: New file.
98723         * modules/unistdio/ulc-vsnprintf: New file.
98724         * modules/unistdio/ulc-vsprintf: New file.
98725         * modules/unistdio/u8-asnprintf: New file.
98726         * modules/unistdio/u8-asprintf: New file.
98727         * modules/unistdio/u8-printf-parse: New file.
98728         * modules/unistdio/u8-snprintf: New file.
98729         * modules/unistdio/u8-sprintf: New file.
98730         * modules/unistdio/u8-vasnprintf: New file.
98731         * modules/unistdio/u8-vasprintf: New file.
98732         * modules/unistdio/u8-vsnprintf: New file.
98733         * modules/unistdio/u8-vsprintf: New file.
98734         * modules/unistdio/u8-u8-asnprintf: New file.
98735         * modules/unistdio/u8-u8-asprintf: New file.
98736         * modules/unistdio/u8-u8-snprintf: New file.
98737         * modules/unistdio/u8-u8-sprintf: New file.
98738         * modules/unistdio/u8-u8-vasnprintf: New file.
98739         * modules/unistdio/u8-u8-vasprintf: New file.
98740         * modules/unistdio/u8-u8-vsnprintf: New file.
98741         * modules/unistdio/u8-u8-vsprintf: New file.
98742         * modules/unistdio/u16-asnprintf: New file.
98743         * modules/unistdio/u16-asprintf: New file.
98744         * modules/unistdio/u16-printf-parse: New file.
98745         * modules/unistdio/u16-snprintf: New file.
98746         * modules/unistdio/u16-sprintf: New file.
98747         * modules/unistdio/u16-vasnprintf: New file.
98748         * modules/unistdio/u16-vasprintf: New file.
98749         * modules/unistdio/u16-vsnprintf: New file.
98750         * modules/unistdio/u16-vsprintf: New file.
98751         * modules/unistdio/u16-u16-asnprintf: New file.
98752         * modules/unistdio/u16-u16-asprintf: New file.
98753         * modules/unistdio/u16-u16-snprintf: New file.
98754         * modules/unistdio/u16-u16-sprintf: New file.
98755         * modules/unistdio/u16-u16-vasnprintf: New file.
98756         * modules/unistdio/u16-u16-vasprintf: New file.
98757         * modules/unistdio/u16-u16-vsnprintf: New file.
98758         * modules/unistdio/u16-u16-vsprintf: New file.
98759         * modules/unistdio/u32-asnprintf: New file.
98760         * modules/unistdio/u32-asprintf: New file.
98761         * modules/unistdio/u32-printf-parse: New file.
98762         * modules/unistdio/u32-snprintf: New file.
98763         * modules/unistdio/u32-sprintf: New file.
98764         * modules/unistdio/u32-vasnprintf: New file.
98765         * modules/unistdio/u32-vasprintf: New file.
98766         * modules/unistdio/u32-vsnprintf: New file.
98767         * modules/unistdio/u32-vsprintf: New file.
98768         * modules/unistdio/u32-u32-asnprintf: New file.
98769         * modules/unistdio/u32-u32-asprintf: New file.
98770         * modules/unistdio/u32-u32-snprintf: New file.
98771         * modules/unistdio/u32-u32-sprintf: New file.
98772         * modules/unistdio/u32-u32-vasnprintf: New file.
98773         * modules/unistdio/u32-u32-vasprintf: New file.
98774         * modules/unistdio/u32-u32-vsnprintf: New file.
98775         * modules/unistdio/u32-u32-vsprintf: New file.
98776         * modules/unistdio/ulc-asnprintf-tests: New file.
98777         * modules/unistdio/ulc-vasnprintf-tests: New file.
98778         * modules/unistdio/ulc-vasprintf-tests: New file.
98779         * modules/unistdio/ulc-vsnprintf-tests: New file.
98780         * modules/unistdio/ulc-vsprintf-tests: New file.
98781         * modules/unistdio/u8-asnprintf-tests: New file.
98782         * modules/unistdio/u8-vasnprintf-tests: New file.
98783         * modules/unistdio/u8-vasprintf-tests: New file.
98784         * modules/unistdio/u8-vsnprintf-tests: New file.
98785         * modules/unistdio/u8-vsprintf-tests: New file.
98786         * modules/unistdio/u16-asnprintf-tests: New file.
98787         * modules/unistdio/u16-vasnprintf-tests: New file.
98788         * modules/unistdio/u16-vasprintf-tests: New file.
98789         * modules/unistdio/u16-vsnprintf-tests: New file.
98790         * modules/unistdio/u16-vsprintf-tests: New file.
98791         * modules/unistdio/u32-asnprintf-tests: New file.
98792         * modules/unistdio/u32-vasnprintf-tests: New file.
98793         * modules/unistdio/u32-vasprintf-tests: New file.
98794         * modules/unistdio/u32-vsnprintf-tests: New file.
98795         * modules/unistdio/u32-vsprintf-tests: New file.
98796         * MODULES.html.sh (Unicode string functions): Add the new modules.
98798 2007-07-01  Bruno Haible  <bruno@clisp.org>
98800         * lib/sprintf.c (sprintf): Limit the available length estimation,
98801         to avoid address wraparound.
98802         * lib/vsprintf.c (vsprintf): Likewise.
98803         * modules/sprintf-posix (Dependencies): Add stdint.
98804         * modules/vsprintf-posix (Dependencies): Likewise.
98806 2007-07-01  Bruno Haible  <bruno@clisp.org>
98808         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
98809         Windows PATH as well. Conservative double-quoting. Comments.
98811 2007-07-01  Bruno Haible  <bruno@clisp.org>
98812             Eric Blake  <ebb9@byu.net>
98813             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98815         * gnulib-tool (self_abspathname): Fix algorithm to cope with
98816         empty components in $PATH, denoting '.'.
98818 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98820         * gnulib-tool: Fix indentation.
98821         (func_create_megatestdir): Likewise.
98822         Report by Bruno Haible.
98824 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98826         Sync from Automake.
98827         * build-aux/gnupload: Fix shell portability issues with for loops.
98828         Report by Karl Berry.
98830 2007-06-29  Simon Josefsson  <simon@josefsson.org>
98832         * build-aux/maint.mk (POURL): Use translationproject.org.
98834 2007-06-27  Simon Josefsson  <simon@josefsson.org>
98835             Bruno Haible  <bruno@clisp.org>
98837         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
98838         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
98839         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
98840         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
98841         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
98843 2007-06-27  Bruno Haible  <bruno@clisp.org>
98845         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
98846         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
98848 2007-06-26  Karl Berry  <karl@gnu.org>
98850         * MODULES.html.sh: remove xreadlink-with-size.
98852 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
98854         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
98855         method that I hope also handles the double-include problem noted
98856         by Bruno Haible in
98857         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
98859 2007-06-23  Bruno Haible  <bruno@clisp.org>
98861         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98862         Don't let the 'mostlyclean' target fail if the last subdirectory could
98863         not be removed.
98864         Reported by Karl Berry.
98866 2007-06-23  Bruno Haible  <bruno@clisp.org>
98868         * gnulib-tool (echo): Add a speedier workaround for ksh.
98869         * tests/test-echo.sh: Likewise.
98871 2007-06-23  Bruno Haible  <bruno@clisp.org>
98873         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
98874         * tests/test-echo.sh: Likewise.
98876 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98878         * gnulib-tool (IFS): Initialize early, so we don't set it to
98879         empty later.
98880         (self_abspathname): Rewrite algorithm to set it, reindent.
98881         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
98882         (func_create_megatestdir): Merge some sed scripts.
98884 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
98886         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
98887         exposed by Sun Studio 11 cc on Solaris 8.
98889 2007-06-22  Bruno Haible  <bruno@clisp.org>
98891         * gnulib-tool (echo): Ensure the echo primitive does not interpret
98892         backslashes.
98893         * tests/test-echo.sh: New file.
98895 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98897         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
98898         simplify `sed_replace_build_aux' scripts, they are portable but
98899         echoing them with `echo' is not.
98900         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
98902 2007-06-21  Karl Berry  <karl@gnu.org>
98904         * config/srclist.txt: guess we can't handle the licenses via
98905         srclist at the moment.
98907 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
98909         * MODULES.html.sh: Add include_next.
98910         * modules/include_next: New file.
98912 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
98914         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
98915         INCLUDE_NEXT.
98916         (gl_CHECK_NEXT_HEADERS): New macro.
98917         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
98918         the obsolescent gl_ABSOLUTE_HEADER.
98919         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
98920         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
98921         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
98922         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
98923         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
98924         * m4/math_h.m4 (gl_MATH_H): Likewise.
98925         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
98926         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
98927         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
98928         * m4/stdint.m4 (gl_STDINT_H): Likewise.
98929         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
98930         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
98931         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
98932         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
98933         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
98934         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
98935         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
98936         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
98937         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
98938         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
98939         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
98940         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
98941         * m4/inttypes.m4 (gl_INTTYPES_H): Define
98942         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
98943         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
98944         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
98945         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
98946         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
98947         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
98948         * lib/float_.h: Likewise.
98949         * lib/inttypes_.h: Likewise.
98950         * lib/math_.h: Likewise.
98951         * lib/search_.h: Likewise.
98952         * lib/signal_.h: Likewise.
98953         * lib/stdint_.h: Likewise.
98954         * lib/stdio_.h: Likewise.
98955         * lib/stdlib_.h: Likewise.
98956         * lib/string_.h: Likewise.
98957         * lib/sys_stat_.h: Likewise.
98958         * lib/sys_time_.h: Likewise.
98959         * lib/time_.h: Likewise.
98960         * lib/unistd_.h: Likewise.
98961         * lib/wchar_.h: Likewise.
98962         * lib/wctype_.h: Likewise.
98963         * lib/dirent_.h: Likewise.
98964         * lib/iconv_.h: Likewise.
98965         * lib/locale_.h: Likewise.
98966         * lib/netinet_in_.h: Likewise.
98967         * lib/sys_select_.h: Likewise.
98968         * lib/sys_socket_.h: Likewise.
98969         * lib/sysexits_.h: Likewise.
98970         * modules/fcntl (Depends-on): Depend on include_next, not
98971         absolute_header.
98972         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
98973         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
98974         * modules/fchdir: Likewise.
98975         * modules/float: Likewise.
98976         * modules/iconv_open: Likewise.
98977         * modules/inttypes: Likewise.
98978         * modules/locale: Likewise.
98979         * modules/math: Likewise.
98980         * modules/netinet_in: Likewise.
98981         * modules/search: Likewise.
98982         * modules/signal: Likewise.
98983         * modules/stdint: Likewise.
98984         * modules/stdio: Likewise.
98985         * modules/stdlib: Likewise.
98986         * modules/string: Likewise.
98987         * modules/sys_select: Likewise.
98988         * modules/sys_socket: Likewise.
98989         * modules/sys_stat: Likewise.
98990         * modules/sys_time: Likewise.
98991         * modules/sysexits: Likewise.
98992         * modules/time: Likewise.
98993         * modules/unistd: Likewise.
98994         * modules/wchar: Likewise.
98995         * modules/wctype: Likewise.
98996         * modules/sys_stat: Change maintainer to "all".
98997         * modules/unistd: Likewise.
98999 2007-06-20  Karl Berry  <karl@gnu.org>
99001         * config/srclist.txt: track www changes in license files.
99003 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
99005         * build-aux/bootstrap: Remove stray dot.
99006         Make sure build_aux settings are honored when linking
99007         gnulib_extra_files.
99009 2007-06-19  Eric Blake  <ebb9@byu.net>
99011         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99012         Allow compilation on cygwin.
99014 2007-06-19  Jim Meyering  <jim@meyering.net>
99016         xreadlink-with-size: Remove module.  No longer used.
99017         Ex-callers now use xreadlink or mreadlink-with-size.
99018         * modules/xreadlink-with-size: Remove module.
99019         * lib/xreadlink-with-size.c: Remove file.
99020         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
99021         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
99022         just before the function definition *is* accurate.
99024         Eliminate one way canonicalize_filename_mode could exit.
99025         * lib/canonicalize.c (canonicalize_filename_mode):
99026         Use mreadlink_with_size, not xreadlink_with_size.
99028 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
99030         Detect porting problems to FreeBSD/arm, which has time_t wider than
99031         long int.  Original problem reported for GNU diff by Xin Li in
99032         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
99033         * modules/getdate (Depends-on): Add intprops, verify.
99034         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
99035         is an integer type no wider than long int.
99037 2007-06-18  Jim Meyering  <jim@meyering.net>
99039         New module: mreadlink-with-size.
99040         * MODULES.html.sh: Add mreadlink-with-size.
99041         * modules/mreadlink-with-size: New module
99042         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
99043         not xreadlink-with-size.
99044         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
99046 2007-06-16  Bruno Haible  <bruno@clisp.org>
99048         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
99049         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
99050         Reported by Gary V. Vaughan <gary@gnu.org>.
99052 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
99054         Revamp lchown so that it lives in unistd.h where it belongs.
99055         * lib/lchown.h: Remove.
99056         * lib/dirchownmod.c: Don't include lib/lchown.h.
99057         * lib/fchownat.c: Likewise.
99058         * lib/openat.c: Likewise.
99059         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
99060         does not follow symlinks.
99061         (EOPNOTSUPP): Define if not defined.
99062         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
99063         is defined to 0.
99064         (lchown): New decl.
99065         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
99066         Do not check for lchown decl.
99067         Set REPLACE_LCHOWN.
99068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
99069         REPLACE_LCHOWN.
99070         * modules/chown: Make it clear it follows symlinks.
99071         * modules/lchown: Make it clear it doesn't follow symlinks.
99072         (Files): Remove lib/lchown.h
99073         (Depends-on): Add unistd.
99074         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
99075         (Include): Include <unistd.h>, not "lchown.h".
99076         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
99077         REPLACE_LCHOWN.
99079 2007-06-15  Jim Meyering  <jim@meyering.net>
99081         Change license (GPL to LGPL) of fsusage and dependents.
99082         * modules/fsusage (License): Change to LGPL.
99083         * modules/full-read (License): Likewise.
99084         * modules/full-write (License): Likewise.
99085         * modules/safe-read (License): Likewise.
99086         * modules/safe-write (License): Likewise.
99088 2007-06-14  Ben Pfaff  <blp@gnu.org>
99090         Missing part of allocsa -> malloca transition.
99091         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
99092         gl_MALLOCA.
99094 2007-06-12  Bruno Haible  <bruno@clisp.org>
99096         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
99097         to ia64, x86_64, i386.
99098         Reported by Eric Blake.
99100 2007-06-12  Bruno Haible  <bruno@clisp.org>
99102         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
99103         cross-compiling to x86_64.
99105 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
99107         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
99108         glitch reported by Ralf Wildenhues in
99109         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
99111         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
99112         Vin Shelton.
99114 2007-06-11  Bruno Haible  <bruno@clisp.org>
99116         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
99117         replacement string.
99118         Reported by Eric Blake.
99120 2007-06-10  Bruno Haible  <bruno@clisp.org>
99122         Prepare vasnprintf code for use with Unicode strings.
99123         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
99124         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
99125         TYPE_U32_STRING.
99126         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
99127         a_u32_string variants.
99128         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99129         * lib/printf-args.c: Don't include config.h and the specification
99130         header if PRINTF_FETCHARGS is already defined.
99131         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99132         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
99133         TYPE_U16_STRING, TYPE_U32_STRING.
99134         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
99135         u16_directive, u16_directives, u32_directive, u32_directives): New
99136         types.
99137         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
99138         New declarations.
99139         * lib/printf-parse.c: Don't include config.h and the specification
99140         header if PRINTF_PARSE is already defined. Eliminate the set of
99141         parameters for WIDE_CHAR_VERSION; the user of this file must provide
99142         them now. Include c-ctype.h.
99143         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
99144         directive and CHAR_T_ONLY_ASCII.
99145         * lib/vasnprintf.c: Don't include config.h and the specification header
99146         if VASNPRINTF is already defined.
99147         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
99148         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
99149         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
99150         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
99151         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
99152         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
99153         code accordingly.
99154         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
99155         pad_ourselves also in this case, with the 'c' and 's' directives, and
99156         with a different notion of "width".
99157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
99159 2007-06-10  Bruno Haible  <bruno@clisp.org>
99161         * modules/unistr/u32-mbsnlen: New file.
99162         * lib/unistr/u32-mbsnlen.c: New file.
99164         * modules/unistr/u16-mbsnlen: New file.
99165         * lib/unistr/u16-mbsnlen.c: New file.
99167         * modules/unistr/u8-mbsnlen: New file.
99168         * lib/unistr/u8-mbsnlen.c: New file.
99170         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
99171         declarations.
99173 2007-06-10  Bruno Haible  <bruno@clisp.org>
99175         * lib/string_.h (mbsnlen): New declaration.
99176         * lib/mbsnlen.c: New file.
99177         * m4/mbsnlen.m4: New file.
99178         * modules/mbsnlen: New file.
99179         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
99180         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
99181         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
99183 2007-06-10  Bruno Haible  <bruno@clisp.org>
99185         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
99187 2007-06-10  Bruno Haible  <bruno@clisp.org>
99189         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
99190         * lib/mbuiter.h: Likewise.
99192 2007-06-10  Bruno Haible  <bruno@clisp.org>
99194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
99195         declaration.
99197 2007-06-10  Karl Berry  <karl@gnu.org>
99199         * config/srclist.txt: remove gettext entries, Bruno prefers
99200         to update individually.
99202 2007-06-10  Bruno Haible  <bruno@clisp.org>
99204         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
99205         'maxlen'. Ensure only length + width bytes are allocated, not
99206         length + 1 + width.
99208 2007-06-09  Bruno Haible  <bruno@clisp.org>
99210         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
99211         (CHAR_T): Remove macro.
99212         (VASNPRINTF): Update.
99214 2007-06-09  Bruno Haible  <bruno@clisp.org>
99216         * MODULES.html.sh (Unicode string functions): Add the new modules.
99218         * modules/uniconv/u32-conv-to-enc: New file.
99219         * lib/uniconv/u32-conv-to-enc.c: New file.
99220         * modules/uniconv/u32-conv-to-enc-tests: New file.
99221         * tests/uniconv/test-u32-conv-to-enc.c: New file.
99223         * modules/uniconv/u16-conv-to-enc: New file.
99224         * lib/uniconv/u16-conv-to-enc.c: New file.
99225         * lib/uniconv/u-conv-to-enc.h: New file.
99226         * modules/uniconv/u16-conv-to-enc-tests: New file.
99227         * tests/uniconv/test-u16-conv-to-enc.c: New file.
99229         * modules/uniconv/u8-conv-to-enc: New file.
99230         * lib/uniconv/u8-conv-to-enc.c: New file.
99231         * modules/uniconv/u8-conv-to-enc-tests: New file.
99232         * tests/uniconv/test-u8-conv-to-enc.c: New file.
99234         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
99235         u32_conv_to_encoding): New declarations.
99237 2007-06-09  Bruno Haible  <bruno@clisp.org>
99239         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
99241 2007-06-09  Bruno Haible  <bruno@clisp.org>
99243         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
99244         * modules/malloca: Renamed from modules/allocsa, updated.
99245         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
99246         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
99247         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
99248         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
99249         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
99250         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
99251         * modules/xmalloca: Renamed from modules/xallocsa, updated.
99252         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
99253         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
99254         * modules/c-strcasestr (Depends-on): Update.
99255         * lib/c-strcasestr.c: Update.
99256         * modules/c-strstr (Depends-on): Update.
99257         * lib/c-strstr.c: Update.
99258         * modules/canonicalize-lgpl (Depends-on): Update.
99259         * lib/canonicalize-lgpl.c: Update.
99260         * modules/clean-temp (Depends-on): Update.
99261         * lib/clean-temp.c: Update.
99262         * modules/csharpcomp (Depends-on): Update.
99263         * lib/csharpcomp.c: Update.
99264         * modules/csharpexec (Depends-on): Update.
99265         * lib/csharpexec.c: Update.
99266         * modules/javacomp (Depends-on): Update.
99267         * lib/javacomp.c: Update.
99268         * modules/javaexec (Depends-on): Update.
99269         * lib/javaexec.c: Update.
99270         * modules/mbscasestr (Depends-on): Update.
99271         * lib/mbscasestr.c: Update.
99272         * modules/mbsstr (Depends-on): Update.
99273         * lib/mbsstr.c: Update.
99274         * modules/setenv (Depends-on): Update.
99275         * lib/setenv.c: Update.
99276         * modules/strcasestr (Depends-on): Update.
99277         * lib/strcasestr.c: Update.
99278         * modules/striconveha (Depends-on): Update.
99279         * lib/striconveha.c: Update.
99280         * modules/relocatable-prog-wrapper (Files): Update.
99281         * lib/relocwrapper.c: Update.
99282         * build-aux/install-reloc: Update.
99283         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
99285 2007-06-08  Bruno Haible  <bruno@clisp.org>
99287         Port to uClibc.
99288         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
99289         * lib/fpurge.c (fpurge): Likewise.
99290         * lib/freading.c (freading): Likewise.
99291         * lib/fseeko.c (rpl_fseeko): Likewise.
99292         * lib/fseterr.c (fseterr): Likewise.
99293         * lib/fwriting.c (fwriting): Likewise.
99294         * tests/test-fflush.c (main): Avoid a failure on uClibc.
99296 2007-06-08  Bruno Haible  <bruno@clisp.org>
99298         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
99299         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
99300         * modules/gettext (Files): Add m4/intlmacosx.m4.
99302 2007-06-07  Bruno Haible  <bruno@clisp.org>
99304         * modules/localename-tests: New file.
99305         * tests/test-localename.c: New file.
99307         New module 'localename'.
99308         * lib/localename.h: New file.
99309         * lib/localename.c: New file, from GNU gettext.
99310         * m4/localename.m4: New file.
99311         * modules/localename: New file.
99313 2007-06-07  Bruno Haible  <bruno@clisp.org>
99315         Work around the lack of <wchar.h> on some builds of uClibc.
99316         * doc/headers/wchar.texi: Update.
99317         * lib/wchar_.h: Include <wchar.h> only if it exists.
99318         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
99319         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
99320         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
99321         doesn't exist.
99322         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
99323         * modules/mbfile (Depends-on): Add wchar.
99324         * modules/mbiter (Depends-on): Likewise.
99325         * modules/mbuiter (Depends-on): Likewise.
99326         Reported by Simon Josefsson.
99328 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
99330         Work around problem reported by Steven M. Schweda in
99331         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
99332         Tru64 5.1B with the Compaq compiler environment installed declares
99333         an 'isblank' function but does not define it in the C library.
99334         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
99335         * lib/regex_internal.h (isblank): Likewise.
99336         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
99337         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
99339 2007-06-05  Bruno Haible  <bruno@clisp.org>
99341         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
99342         ia64.
99343         * modules/printf-safe: New file.
99344         * modules/fprintf-posix (Depends-on): Add printf-safe.
99345         * modules/printf-posix (Depends-on): Likewise.
99346         * modules/snprintf-posix (Depends-on): Likewise.
99347         * modules/sprintf-posix (Depends-on): Likewise.
99348         * modules/vasnprintf-posix (Depends-on): Likewise.
99349         * modules/vasprintf-posix (Depends-on): Likewise.
99350         * modules/vfprintf-posix (Depends-on): Likewise.
99351         * modules/vprintf-posix (Depends-on): Likewise.
99352         * modules/vsnprintf-posix (Depends-on): Likewise.
99353         * modules/vsprintf-posix (Depends-on): Likewise.
99354         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
99355         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
99356         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
99357         "no" on i386, x86_64, ia64.
99358         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
99359         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99360         on i386, x86_64, ia64.
99361         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
99362         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99363         on i386, x86_64, ia64.
99364         * tests/test-vasnprintf-posix.c: Include float.h.
99365         (LDBL80_WORDS): New macro.
99366         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99367         on i386, x86_64, ia64.
99368         * tests/test-vasprintf-posix.c: Include float.h.
99369         (LDBL80_WORDS): New macro.
99370         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99371         on i386, x86_64, ia64.
99372         * tests/test-snprintf-posix.c: Include float.h.
99373         * tests/test-sprintf-posix.c: Likewise.
99374         * tests/test-vsnprintf-posix.c: Likewise.
99375         * tests/test-vsprintf-posix.c: Likewise.
99377 2007-06-05  Bruno Haible  <bruno@clisp.org>
99379         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
99380         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
99381         non-IEEE numbers on i386, x86_64, ia64.
99382         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
99383         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
99384         * tests/test-isnanl.h: Include float.h.
99385         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
99387 2007-06-05  Bruno Haible  <bruno@clisp.org>
99389         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
99390         also the %a / %A. Handle the %a / %A code before this extra handling.
99392 2007-06-05  Bruno Haible  <bruno@clisp.org>
99394         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
99395         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
99397 2007-06-05  Bruno Haible  <bruno@clisp.org>
99399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
99400         typo in variable name.
99402 2007-06-05  Eric Blake  <ebb9@byu.net>
99404         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
99405         Reported by Simon Josefsson.
99407 2007-06-04  Bruno Haible  <bruno@clisp.org>
99409         Avoid test failures on some PowerPC platforms.
99410         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
99411         Define differently for PowerPC.
99412         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
99413         Reported by Gary V. Vaughan <gary@gnu.org>.
99415 2007-06-02  Bruno Haible  <bruno@clisp.org>
99417         Fix test-stdint failure on FreeBSD/ia64.
99418         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
99419         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
99420         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
99421         * doc/headers/stdint.texi: Update.
99423 2007-06-01  Bruno Haible  <bruno@clisp.org>
99425         * tests/test-binary-io.c (main): Pass a third argument to open().
99426         Reported by Gary V. Vaughan <gary@gnu.org>.
99428 2007-06-01  Bruno Haible  <bruno@clisp.org>
99430         * doc/functions/frexpl.texi: Update for mingw.
99432 2007-06-01  Bruno Haible  <bruno@clisp.org>
99434         * tests/test-lseek.c (main): Disable test of errno for invalid third
99435         argument.
99436         * doc/functions/lseek.texi: Update.
99437         Reported by Gary V. Vaughan <gary@gnu.org>.
99439 2007-05-28  Bruno Haible  <bruno@clisp.org>
99441         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
99443 2007-05-31  Eric Blake  <ebb9@byu.net>
99445         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
99446         cross compiling.
99448 2007-05-30  Eric Blake  <ebb9@byu.net>
99449         and Bruno Haible  <bruno@clisp.org>
99451         Work around mingw test failures exposed by m4-1.4.9b.
99452         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
99453         * tests/test-unistd.c: Disable uid_t and git_t tests for the
99454         moment.
99456 2007-05-30  Bruno Haible  <bruno@clisp.org>
99458         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
99459         assuming that they are closed. Needed on HP-UX 11.
99461 2007-05-29  Bruno Haible  <bruno@clisp.org>
99463         Fix a problem with #include_next.
99464         * lib/dirent_.h: Split the double-inclusion guard.
99465         * lib/fcntl_.h: Likewise.
99466         * lib/float_.h: Likewise.
99467         * lib/iconv_.h: Likewise.
99468         * lib/inttypes_.h: Likewise.
99469         * lib/locale_.h: Likewise.
99470         * lib/math_.h: Likewise.
99471         * lib/netinet_in_.h: Likewise.
99472         * lib/search_.h: Likewise.
99473         * lib/signal_.h: Likewise.
99474         * lib/stdint_.h: Likewise.
99475         * lib/stdio_.h: Likewise.
99476         * lib/stdlib_.h: Likewise.
99477         * lib/string_.h: Likewise.
99478         * lib/sys_select_.h: Likewise.
99479         * lib/sys_socket_.h: Likewise.
99480         * lib/sys_stat_.h: Likewise.
99481         * lib/sys_time_.h: Likewise.
99482         * lib/sysexits_.h: Likewise.
99483         * lib/time_.h: Likewise.
99484         * lib/unistd_.h: Likewise.
99485         * lib/wchar_.h: Likewise.
99486         * lib/wctype_.h: Likewise.
99488 2007-05-29  Bruno Haible  <bruno@clisp.org>
99490         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
99491         for the moment.
99493 2007-05-29  Bruno Haible  <bruno@clisp.org>
99495         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
99496         invocation.
99497         Reported by Eric Blake.
99499 2007-05-29  Bruno Haible  <bruno@clisp.org>
99501         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
99502         compiling case.
99504 2007-05-29  Eric Blake  <ebb9@byu.net>
99505             Bruno Haible  <bruno@clisp.org>
99507         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
99508         cross compiles.
99510 2007-05-28  Eric Blake  <ebb9@byu.net>
99512         * modules/closein-tests (test_closein_LDADD): Support test on
99513         cygwin with libtool.
99515 2007-05-28  Bruno Haible  <bruno@clisp.org>
99517         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
99518         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
99519         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
99520         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
99521         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
99522         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
99523         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
99524         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
99525         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
99527 2007-05-28  Eric Blake  <ebb9@byu.net>
99529         Unconditionally include <config.h> in unit tests.
99530         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
99531         * tests/test-allocsa.c, tests/test-arcfour.c,
99532         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
99533         tests/test-array_list.c, tests/test-array_oset.c,
99534         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
99535         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
99536         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
99537         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
99538         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
99539         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
99540         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
99541         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
99542         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
99543         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
99544         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
99545         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
99546         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
99547         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
99548         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
99549         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
99550         test-md5.c, test-memmem.c, test-printf-posix.c,
99551         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
99552         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
99553         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
99554         test-strcasestr.c, test-striconv.c, test-striconveh.c,
99555         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
99556         test-vasnprintf-posix2.c, test-vasnprintf.c,
99557         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
99558         test-vfprintf-posix.c, test-vprintf-posix.c,
99559         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
99560         test-xvasprintf.c: Likewise.
99562 2007-05-28  Bruno Haible  <bruno@clisp.org>
99564         * gnulib-tool (func_import): Remember the --with-tests command-line
99565         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
99566         Reported by Eric Blake.
99568 2007-05-28  Bruno Haible  <bruno@clisp.org>
99570         * modules/ftell-tests: New file.
99571         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
99572         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
99574         * lib/ftell.c: New file.
99575         * modules/ftell: New file.
99576         * m4/ftell.m4: New file.
99577         * doc/functions/ftell.texi: Update.
99578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
99579         REPLACE_FTELL.
99580         * lib/stdio_.h (rpl_ftell): New declaration.
99581         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
99582         REPLACE_FTELL.
99584 2007-05-28  Eric Blake  <ebb9@byu.net>
99586         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
99588 2007-05-28  Bruno Haible  <bruno@clisp.org>
99590         * modules/fseek-tests: New file.
99591         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
99592         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
99594         * lib/fseek.c: New file.
99595         * modules/fseek: New file.
99596         * m4/fseek.m4: New file.
99597         * doc/functions/fseek.texi: Update.
99598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
99599         REPLACE_FSEEK.
99600         * lib/stdio_.h (rpl_fseek): New declaration.
99601         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
99602         REPLACE_FSEEK.
99604 2007-05-28  Bruno Haible  <bruno@clisp.org>
99606         * lib/stdio_.h (fflush): More comments.
99608 2007-05-28  Bruno Haible  <bruno@clisp.org>
99610         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
99611         runtime test.
99613 2007-05-28  Eric Blake  <ebb9@byu.net>
99615         Improve lseek module.
99616         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
99617         * lib/unistd_.h (lseek): Scale back link warning message.
99618         * tests/test-lseek.c: Beef up test.
99619         * tests/test-lseek.sh: Exercise more facets of lseek.
99620         Reported by Bruno Haible.
99622 2007-05-28  Bruno Haible  <bruno@clisp.org>
99624         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
99625         to define.
99627 2007-05-27  Bruno Haible  <bruno@clisp.org>
99629         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
99631 2007-05-27  Bruno Haible  <bruno@clisp.org>
99633         * modules/openmp: New file.
99634         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
99635         Noah Misch.
99637 2007-05-26  Bruno Haible  <bruno@clisp.org>
99639         * modules/chdir-long (Depends-on): Add fchdir.
99640         * modules/chdir-safer (Depends-on): Likewise.
99641         * modules/fts (Depends-on): Likewise.
99642         * modules/fts-lgpl (Depends-on): Likewise.
99643         * modules/openat (Depends-on): Likewise.
99644         * modules/savewd (Depends-on): Likewise.
99646 2007-05-24  Eric Blake  <ebb9@byu.net>
99648         Fix lseek on mingw.
99649         * modules/lseek: New module.
99650         * m4/lseek.m4: New file.
99651         * lib/lseek.c: New file.
99652         * modules/lseek-tests: New file.
99653         * tests/test-lseek.c: New file.
99654         * tests/test-lseek.sh: New file.
99655         * MODULES.html.sh: Document lseek module.
99656         * modules/fflush (Depends-on): Add lseek, fseeko.
99657         * modules/fseeko (Depends-on): Likewise.
99658         * modules/ftello (Depends-on): Likewise.
99659         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
99660         broken.
99661         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
99662         broken.
99663         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
99664         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
99665         * lib/ftello.c (rpl_ftello): Likewise.
99666         * tests/test-fseeko.c (main): Test this.
99667         * tests/test-fseeko.sh: Likewise.
99668         * tests/test-ftello.c (main): Likewise.
99669         * tests/test-ftello.sh: Likewise.
99670         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
99671         implies replacing fseek.
99672         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
99673         HAVE_FTELLO.
99674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
99675         * modules/unistd (Makefile.am): Likewise.
99676         * lib/unistd_.h (lseek): Declare a replacement.
99677         * doc/functions/lseek.texi (lseek): Document this fix.
99678         * doc/functions/fseek.texi (fseek): Likewise.
99679         * doc/functions/ftell.texi (ftell): Likewise.
99681 2007-05-24  Bruno Haible  <bruno@clisp.org>
99683         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
99684         in the printed representation of a NaN.
99685         * tests/test-vasprintf-posix.c (test_function): Likewise.
99686         * tests/test-snprintf-posix.h (test_function): Likewise.
99687         * tests/test-sprintf-posix.h (test_function): Likewise.
99688         Reported by Eric Blake.
99690 2007-05-23  Eric Blake  <ebb9@byu.net>
99692         Fix fseeko/ftello on cygwin 1.5.24.
99693         * doc/functions/fseeko.texi (fseeko): Document the fix.
99694         * doc/functions/ftello.texi (ftello): Document the fix.
99695         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
99696         * doc/functions/stdout.text (stdout): New file.
99697         * doc/functions/stderr.text (stderr): New file.
99698         * doc/gnulib.texi (Function Substitutes): Use new files.
99699         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
99700         prior to 1.7.0.
99701         * tests/test-ftello.c (main): Likewise for ftello.
99702         * tests/test-fseeko.sh: New file.
99703         * tests/test-ftello.sh: New file.
99704         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
99705         with seekable stdin.
99706         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
99707         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
99708         (gl_REPLACE_FSEEKO): New macro.
99709         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
99710         * modules/fseeko (Files): Distribute fseeko.c.
99711         * modules/ftello (Files): Distribute ftello.c.
99712         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
99713         mode.
99714         * lib/ftello.c (rpl_ftello): New file.
99715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
99716         fseeko, ftello.
99717         (gl_STDIN_LARGE_OFFSET): New macro.
99718         * modules/stdio (Makefile.am): Perform the replacement.
99719         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
99721 2007-05-23  Bruno Haible  <bruno@clisp.org>
99723         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
99724         GNULIB_POSIXCHECK is defined.
99726 2007-05-21  Bruno Haible  <bruno@clisp.org>
99728         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
99729         Check also the output for NaN arguments. When cross-compiling, guess
99730         no on IRIX.
99731         * lib/vasnprintf.c: Update comments.
99732         * tests/test-vasnprintf-posix.c (strisnan): New function.
99733         (test_function): Use it.
99734         * tests/test-vasprintf-posix.c (strisnan): New function.
99735         (test_function): Use it.
99736         * tests/test-snprintf-posix.h (strisnan): New function.
99737         (test_function): Use it.
99738         * tests/test-sprintf-posix.h (strisnan): New function.
99739         (test_function): Use it.
99740         Reported by Eric Blake.
99742 2007-05-20  Bruno Haible  <bruno@clisp.org>
99744         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
99745         numbers that fails on BeOS.
99746         * doc/functions/frexpl.texi: Update.
99748 2007-05-20  Jim Meyering  <jim@meyering.net>
99750         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
99751         forced upon us by glibc-2.6.
99753 2007-05-20  Bruno Haible  <bruno@clisp.org>
99755         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
99756         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
99757         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
99758         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
99759         NEED_PRINTF_INFINITE.
99760         (is_infinitel): New function.
99761         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
99762         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
99763         gl_PREREQ_VASNPRINTF_INFINITE.
99764         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
99765         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99766         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
99767         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
99768         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
99769         gl_PREREQ_VASNPRINTF_INFINITE.
99770         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99771         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99772         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99773         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99774         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99775         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99776         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99777         * doc/functions/fprintf.texi: Update.
99778         * doc/functions/printf.texi: Update.
99779         * doc/functions/snprintf.texi: Update.
99780         * doc/functions/sprintf.texi: Update.
99781         * doc/functions/vfprintf.texi: Update.
99782         * doc/functions/vprintf.texi: Update.
99783         * doc/functions/vsnprintf.texi: Update.
99784         * doc/functions/vsprintf.texi: Update.
99786 2007-05-20  Bruno Haible  <bruno@clisp.org>
99788         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
99789         was not found in libc.
99790         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
99792 2007-05-20  Bruno Haible  <bruno@clisp.org>
99794         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
99795         printed as "-nan" instead of "nan".
99796         * tests/test-vasprintf-posix.c (test_function): Likewise.
99797         * tests/test-snprintf-posix.h (test_function): Likewise.
99798         * tests/test-sprintf-posix.h (test_function): Likewise.
99799         Needed for HP-UX 11.
99801 2007-05-20  Jim Meyering  <jim@meyering.net>
99803         Fix buggy test for the fchownat-deref bug.
99804         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
99805         symlink required for the run-test.  Without it, this test would
99806         always declare that fchownat doesn't work, and client code would
99807         unnecessarily use the replacement function with fixed libc.
99808         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
99809         Reported by Greg Schafer.
99811 2007-05-19  Bruno Haible  <bruno@clisp.org>
99813         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
99814         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
99815         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
99816         Needed for IRIX 6.5 and Solaris 2.5.1.
99818 2007-05-19  Bruno Haible  <bruno@clisp.org>
99820         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
99821         (test_function): Skip tests involving -0.0 on platforms where
99822         -0.0 = 0.0.
99823         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
99824         (test_function): Skip tests involving -0.0 on platforms where
99825         -0.0 = 0.0.
99826         * tests/test-snprintf-posix.h (have_minus_zero): New function.
99827         (test_function): Skip tests involving -0.0 on platforms where
99828         -0.0 = 0.0.
99829         * tests/test-sprintf-posix.h (have_minus_zero): New function.
99830         (test_function): Skip tests involving -0.0 on platforms where
99831         -0.0 = 0.0.
99832         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
99833         tests.
99834         * tests/test-printf-posix.h (test_function): Likewise.
99835         * tests/test-printf-posix.output: Remove all -0.0 related results.
99836         Needed for IRIX 6.5.
99838 2007-05-19  Bruno Haible  <bruno@clisp.org>
99840         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
99841         printed as "nan0x7fffffff" instead of "nan".
99842         * tests/test-vasprintf-posix.c (test_function): Likewise.
99843         * tests/test-snprintf-posix.h (test_function): Likewise.
99844         * tests/test-sprintf-posix.h (test_function): Likewise.
99845         * tests/test-fprintf-posix.h (NaN): Remove macro.
99846         (test_function): Remove all NaN related tests.
99847         * tests/test-printf-posix.h (NaN): Remove macro.
99848         (test_function): Remove all NaN related tests.
99849         * tests/test-printf-posix.output: Remove all NaN related results.
99850         Needed for IRIX 6.5.
99852 2007-05-19  Bruno Haible  <bruno@clisp.org>
99854         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
99855         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
99857 2007-05-19  Bruno Haible  <bruno@clisp.org>
99859         * lib/float_.h: New file.
99860         * m4/float_h.m4: New file.
99861         * modules/float: New file.
99862         * modules/isnanl (Dependencies): Add float.
99863         * modules/isnanl-nolibm (Dependencies): Likewise.
99864         * modules/mathl (Dependencies): Likewise.
99865         * modules/printf-frexpl (Dependencies): Likewise.
99866         * modules/signbit (Dependencies): Likewise.
99867         * modules/vasnprintf (Dependencies): Likewise.
99868         * doc/headers/float.texi: Update.
99870 2007-05-19  Jim Meyering  <jim@meyering.net>
99872         * lib/utimens.c (gl_futimens): Rename from futimens,
99873         now that glibc-2.6 declares futimens.
99874         * lib/utimens.h: Likewise.
99876 2007-05-19  Bruno Haible  <bruno@clisp.org>
99878         Avoid test failures on mingw.
99879         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
99880         * tests/test-printf-posix.sh: Likewise.
99881         * tests/test-vfprintf-posix.sh: Likewise.
99882         * tests/test-vprintf-posix.sh: Likewise.
99884 2007-05-19  Bruno Haible  <bruno@clisp.org>
99886         Fix *printf result for NaN, Inf, -0.0 on mingw.
99887         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
99888         * lib/vasnprintf.c: Include math.h and isnan.h.
99889         (is_infinite_or_zero): New function.
99890         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
99891         values in the %f, %F, %e, %E, %g, %G directives.
99892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
99893         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99894         gl_PRINTF_INFINITE and test its result. Invoke
99895         gl_PREREQ_VASNPRINTF_INFINITE.
99896         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99897         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99898         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99899         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99900         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99902         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99903         * doc/functions/fprintf.texi: Update.
99904         * doc/functions/printf.texi: Update.
99905         * doc/functions/snprintf.texi: Update.
99906         * doc/functions/sprintf.texi: Update.
99907         * doc/functions/vfprintf.texi: Update.
99908         * doc/functions/vprintf.texi: Update.
99909         * doc/functions/vsnprintf.texi: Update.
99910         * doc/functions/vsprintf.texi: Update.
99912 2007-05-19  Bruno Haible  <bruno@clisp.org>
99914         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
99915         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
99916         Instead of multiplying with 10^k, set extra_zeroes to k.
99917         (scale10_round_long_double): Remove function.
99919 2007-05-18  Bruno Haible  <bruno@clisp.org>
99921         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
99922         introduced on 2007-05-06.
99924 2007-05-18  Bruno Haible  <bruno@clisp.org>
99926         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
99927         %g directives.
99928         * tests/test-vasprintf-posix.c (test_function): Likewise.
99929         * tests/test-snprintf-posix.h (test_function): Likewise.
99930         * tests/test-sprintf-posix.h (test_function): Likewise.
99932 2007-05-18  Bruno Haible  <bruno@clisp.org>
99934         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
99935         (strmatch): New function.
99936         (test_function): Test the %f directive on numbers of various exponents.
99937         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
99938         (strmatch): New function.
99939         (test_function): Test the %f directive on numbers of various exponents.
99940         * tests/test-snprintf-posix.h (strmatch): New function.
99941         (test_function): Test the %f directive on numbers of various exponents.
99942         * tests/test-sprintf-posix.h (strmatch): New function.
99943         (test_function): Test the %f directive on numbers of various exponents.
99944         * tests/test-snprintf-posix.c (SIZEOF): New macro.
99945         * tests/test-sprintf-posix.c (SIZEOF): New macro.
99946         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
99947         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
99949 2007-05-18  Bruno Haible  <bruno@clisp.org>
99951         Add support for 'long double' number output.
99952         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
99953         * lib/vasnprintf.c: Include math.h and float+.h.
99954         (mp_limb_t): New type.
99955         (GMP_LIMB_BITS): New macro.
99956         (mp_twolimb_t): New type.
99957         (GMP_TWOLIMB_BITS): New macro.
99958         (mpn_t): New type.
99959         (multiply, divide, convert_to_decimal, decode_long_double,
99960         scale10_round_long_double, scale10_round_decimal_long_double,
99961         floorlog10l): New functions.
99962         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
99963         for the %f, %F, %e, %E, %g, %G directives.
99964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
99965         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99966         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
99967         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
99968         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99969         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99970         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99971         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99972         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99973         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99974         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99975         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
99976         * modules/snprintf-posix (Depends-on): Likewise.
99977         * modules/sprintf-posix (Depends-on): Likewise.
99978         * modules/vasnprintf-posix (Depends-on): Likewise.
99979         * modules/vasprintf-posix (Depends-on): Likewise.
99980         * modules/vfprintf-posix (Depends-on): Likewise.
99981         * modules/vsnprintf-posix (Depends-on): Likewise.
99982         * modules/vsprintf-posix (Depends-on): Likewise.
99983         * modules/vasnprintf (Files): Add lib/float+.h.
99984         * doc/functions/fprintf.texi: Update.
99985         * doc/functions/printf.texi: Update.
99986         * doc/functions/snprintf.texi: Update.
99987         * doc/functions/sprintf.texi: Update.
99988         * doc/functions/vfprintf.texi: Update.
99989         * doc/functions/vprintf.texi: Update.
99990         * doc/functions/vsnprintf.texi: Update.
99991         * doc/functions/vsprintf.texi: Update.
99993 2007-05-18  Bruno Haible  <bruno@clisp.org>
99995         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
99997 2007-05-18  Bruno Haible  <bruno@clisp.org>
99999         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
100000         for printing 64-bit integers. Needed for mingw.
100002 2007-05-18  Bruno Haible  <bruno@clisp.org>
100004         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
100005         gl_FUNC_FREXPL_WORKS.
100006         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
100008 2007-05-18  Bruno Haible  <bruno@clisp.org>
100010         * modules/frexpl-nolibm-tests: New file.
100012         * modules/frexpl-nolibm: New file.
100013         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
100015 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
100017         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
100018         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100019         GCC 4.2, which otherwise issues a lot of warnings.
100020         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
100021         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
100022         Likewise.
100023         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
100024         * modules/iconv_open (iconv.h): Likewise.
100025         * modules/locale (locale.h): Likewise.
100026         * modules/netinet_in (netinet/in.h): Likewise.
100027         * modules/sys_select (sys_select.h): Likewise.
100028         * modules/sys_socket (sys/socket.h): Likewise.
100029         * modules/sys_stat (sys/stat.h): Likewise.
100030         * modules/sysexits (sysexits.h): Likewise.
100031         * modules/unistd (unistd.h): Likewise.
100033 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100035         * modules/closein-tests (Makefile.am): Distribute
100036         `test-closein.sh'.
100038 2007-05-17  Bruno Haible  <bruno@clisp.org>
100040         * tests/test-printf-posix.output: Renamed from
100041         tests/test-fprintf-posix.out.
100042         * modules/fprintf-posix-tests: Update.
100043         * modules/printf-posix-tests: Update.
100044         * modules/vfprintf-posix-tests: Update.
100045         * modules/vprintf-posix-tests: Update.
100046         * tests/test-fprintf-posix.sh: Update.
100047         * tests/test-printf-posix.sh: Update.
100048         * tests/test-vfprintf-posix.sh: Update.
100049         * tests/test-vprintf-posix.sh: Update.
100050         Reported by Ralf Wildenhues.
100052 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
100054         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
100055         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100056         GCC 4.2, which otherwise issues a lot of warnings.
100057         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
100058         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
100059         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
100060         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
100061         it should no longer be needed.
100062         * lib/string_.h: Likewise.
100063         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
100064         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
100065         * modules/inttypes (inttypes.h): Likewise.
100066         * modules/math (math.h): Likewise.
100067         * modules/search (search.h): Likewise.
100068         * modules/signal (signal.h): Likewise.
100069         * modules/stdint (stdint.h): Likewise.
100070         * modules/stdio (stdio.h): Likewise.
100071         * modules/stdlib (stdlib.h): Likewise.
100072         * modules/string (string.h): Likewise.
100073         * modules/sys_time (sys/time.h): Likewise.
100074         * modules/time (time.h): Likewise.
100075         * modules/wchar (wchar.h): Likewise.
100076         * modules/wctype (wtype.h): Likewise.
100078 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
100080         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
100082 2007-05-13  Bruno Haible  <bruno@clisp.org>
100084         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
100085         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100086         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
100087         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
100088         (gl_PREREQ_STRTOK_R): Don't require it here.
100090 2007-05-13  Bruno Haible  <bruno@clisp.org>
100092         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
100093         when used in C++ mode.
100095 2007-05-12  Bruno Haible  <bruno@clisp.org>
100097         * lib/linebuffer.h: Tweak doc.
100098         * lib/linebuffer.c: Likewise.
100100 2007-05-12  James Youngman  <jay@gnu.org>
100102         * lib/linebuffer.c (readlinebuffer_delim): New function,
100103         like readlinebuffer, but use a caller-specified delimiter.
100104         (readlinebuffer): Just call readlinebuffer_delim with '\n'
100105         as the delimiter.
100106         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
100108 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
100110         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
100111         * modules/openat (Files): Remove openat-die.c.
100112         (Depends-on): Add openat-die.
100113         * modules/openat-die: New module.
100115 2007-05-06  Bruno Haible  <bruno@clisp.org>
100117         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
100118         Update with info about Cygwin.
100119         * doc/functions/fprintf.texi: Update.
100120         * doc/functions/printf.texi: Update.
100121         * doc/functions/snprintf.texi: Update.
100122         * doc/functions/sprintf.texi: Update.
100123         * doc/functions/vfprintf.texi: Update.
100124         * doc/functions/vprintf.texi: Update.
100125         * doc/functions/vsnprintf.texi: Update.
100126         * doc/functions/vsprintf.texi: Update.
100127         Reported by Eric Blake.
100129 2007-05-06  Bruno Haible  <bruno@clisp.org>
100131         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
100132         padding ourselves for the floating-point directives.
100133         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
100134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
100135         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100136         gl_PRINTF_FLAG_ZERO and test its result. Invoke
100137         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
100138         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100139         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100140         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100141         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100142         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100143         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100144         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100145         * tests/test-snprintf-posix.h (test_function): Also check the width
100146         and some flags in the %f directive.
100147         * tests/test-sprintf-posix.h (test_function): Likewise.
100148         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100149         * tests/test-vasprintf-posix.c (test_function): Likewise.
100150         * doc/functions/fprintf.texi: Update.
100151         * doc/functions/printf.texi: Update.
100152         * doc/functions/snprintf.texi: Update.
100153         * doc/functions/sprintf.texi: Update.
100154         * doc/functions/vfprintf.texi: Update.
100155         * doc/functions/vprintf.texi: Update.
100156         * doc/functions/vsnprintf.texi: Update.
100157         * doc/functions/vsprintf.texi: Update.
100159 2007-05-06  Bruno Haible  <bruno@clisp.org>
100161         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
100162         pass the ' flag character to sprintf or snprintf.
100163         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
100164         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
100165         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100166         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
100167         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
100168         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100169         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100170         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100171         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100172         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100173         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100174         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100175         * tests/test-snprintf-posix.h (test_function): Also check the grouping
100176         flag.
100177         * tests/test-sprintf-posix.h (test_function): Likewise.
100178         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100179         * tests/test-vasprintf-posix.c (test_function): Likewise.
100180         * doc/functions/fprintf.texi: Update.
100181         * doc/functions/printf.texi: Update.
100182         * doc/functions/snprintf.texi: Update.
100183         * doc/functions/sprintf.texi: Update.
100184         * doc/functions/vfprintf.texi: Update.
100185         * doc/functions/vprintf.texi: Update.
100186         * doc/functions/vsnprintf.texi: Update.
100187         * doc/functions/vsprintf.texi: Update.
100189 2007-05-01  Bruno Haible  <bruno@clisp.org>
100191         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
100193 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
100195         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
100196         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
100198 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100200         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
100201         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
100202         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
100204 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
100206         * lib/argp-help.c (struct hol_entry): New member `ord'.
100207         (HOL_ENTRY_PTRCMP): Use ord for comparison
100208         (hol_sort): Initialize ord.
100210 2007-05-01  Bruno Haible  <bruno@clisp.org>
100212         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
100213         Reported by Eric Blake.
100214         * doc/gnulib.texi (Function Substitutes): Update.
100216 2007-05-01  Bruno Haible  <bruno@clisp.org>
100218         * doc/functions.texi: Remove file, now redundant through
100219         doc/functions/*.texi.
100221 2007-05-01  Bruno Haible  <bruno@clisp.org>
100223         * modules/argp (Depends-on): Add sleep.
100225 2007-05-01  Bruno Haible  <bruno@clisp.org>
100227         * modules/sleep-tests: New file.
100228         * tests/test-sleep.c: New file.
100230         * modules/sleep: New file.
100231         * lib/sleep.c: New file.
100232         * m4/sleep.m4: New file.
100233         * lib/unistd_.h (sleep): New declaration.
100234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
100235         HAVE_SLEEP.
100236         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
100237         * doc/functions/sleep.texi: Document the sleep module.
100239 2007-05-01  Bruno Haible  <bruno@clisp.org>
100241         * lib/sigprocmask.h: Remove file.
100242         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
100243         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
100244         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
100245         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
100246         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
100247         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
100248         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
100249         HAVE_SIGSET_T as a shell variable.
100250         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
100251         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
100252         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
100253         (Depends-on): Add signal. Remove verify.
100254         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
100255         (Include): Mention <signal.h> instead of sigprocmask.h.
100256         * NEWS: Mention the change.
100257         * lib/fatal-signal.c: Don't include sigprocmask.h.
100259 2007-05-01  Bruno Haible  <bruno@clisp.org>
100261         * modules/signal: New file.
100262         * lib/signal_.h: New file.
100263         * m4/signal_h.m4: New file.
100265 2007-05-01  Bruno Haible  <bruno@clisp.org>
100267         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
100268         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
100269         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
100270         HAVE_WCTYPE_CTMP_BUG into wctype.h.
100272 2007-05-01  Bruno Haible  <bruno@clisp.org>
100274         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
100275         configure time.
100276         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
100277         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
100278         * modules/sys_stat (Makefile.am): Substitute their values into
100279         sys/stat.h.
100281 2007-05-01  Bruno Haible  <bruno@clisp.org>
100283         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
100284         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
100285         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
100287 2007-05-01  Bruno Haible  <bruno@clisp.org>
100289         * doc/header/assert.texi: Undo last change: don't mention the gnulib
100290         'assert' module here.
100292 2007-05-01  Bruno Haible  <bruno@clisp.org>
100294         * doc/functions/*.texi: New files.
100295         * doc/functions/google-ranking.txt: New file.
100296         * doc/gnulib.texi (Function Substitutes): New chapter.
100297         (ctime, inet_ntoa): Remove sections.
100298         * doc/ctime.texi: Remove file.
100299         * doc/inet_ntoa.texi: Remove file.
100300         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
100301         dependencies.
100302         (%.info): New rule, specifying a --reference-limit.
100304 2007-05-01  Bruno Haible  <bruno@clisp.org>
100306         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
100308 2007-05-01  Bruno Haible  <bruno@clisp.org>
100310         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
100311         the portability of 'mkdir' to mingw systems.
100313 2007-05-01  Bruno Haible  <bruno@clisp.org>
100315         * doc/headers/google-ranking.txt: New file.
100317 2007-04-30  Eric Blake  <ebb9@byu.net>
100319         Prefer fseeko to fseek.
100320         * modules/getpass (Depends-on): Add fseeko.
100321         * lib/getpass.c (getpass): Use fseeko, not fseek.
100323 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
100325         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
100326         assumes the sorting is stable, while most qsort implementations
100327         are not.  Use argument addresses to ensure they never compare as
100328         equal.
100330         * tests/test-argp-2.sh (usage-indent test): Fix output
100331         (func_compare): Restore diff options
100332         * tests/test-argp.c: Restore #include "progname.h"
100334 2007-04-29  Bruno Haible  <bruno@clisp.org>
100336         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
100337         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100338         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
100339         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100340         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
100341         (configure.ac): Define CHECK_SNPRINTF_POSIX.
100342         (TESTS, check_PROGRAMS): Add test-snprintf.
100343         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
100344         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
100345         (TESTS, check_PROGRAMS): Add test-vsnprintf.
100346         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
100347         assertions that fail on HP-UX, OSF/1, or IRIX.
100348         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
100350 2007-04-29  Bruno Haible  <bruno@clisp.org>
100352         * MODULES.html.sh (posix_functions): Remove 'contents'.
100354 2007-04-29  Karl Berry  <karl@gnu.org>
100356         * config/srclist.txt (gendocs_template_min): new entry.
100358 2007-04-29  Bruno Haible  <bruno@clisp.org>
100360         Work around fpurge bug on BSD systems.
100361         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
100362         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
100363         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
100364         fpurge to rpl_fpurge if the system already has this function.
100365         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
100366         the case where the system already has this function. Correct invariants
100367         on BSD systems.
100368         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
100369         BSD systems.
100371 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
100373         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
100374         proposed by Sven Verdoolaege.
100376         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
100377         options.
100378         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
100379         (usage and help tests): Update
100381 2007-04-29  Bruno Haible  <bruno@clisp.org>
100383         * tests/test-fflush.c (main): Use a file of size 17, not 10.
100384         Print more information in case of failure. Disable a test on BeOS.
100386 2007-04-29  Bruno Haible  <bruno@clisp.org>
100388         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
100389         This helps debugging on systems on which no gdb is available.
100391 2007-04-29  Bruno Haible  <bruno@clisp.org>
100393         * lib/freading.h: Improve comments.
100394         * lib/fwriting.h: Likewise.
100395         * tests/test-freading.c (main): Don't check freading immediately after
100396         repositioning. Needed for glibc.
100398 2007-04-29  Bruno Haible  <bruno@clisp.org>
100400         * lib/freading.c (freading): Trivial simplification.
100402 2007-04-28  Bruno Haible  <bruno@clisp.org>
100404         * tests/test-fwriting.c (main): Also test the interaction between
100405         fflush and fwriting.
100406         * modules/fwriting-tests (Depends-on): Add fflush.
100408         * tests/test-freading.c (main): Also test the interaction between
100409         fflush and freading.
100410         * modules/freading-tests (Depends-on): Add fflush.
100412 2007-04-28  Bruno Haible  <bruno@clisp.org>
100414         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
100415         fseeko and ftello.
100416         Suggested by Eric Blake.
100418 2007-04-28  Jim Meyering  <jim@meyering.net>
100420         Avoid false-negative in gl_STDINT_H's C99 conformance test.
100421         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
100422         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
100424 2007-04-27  Eric Blake  <ebb9@byu.net>
100426         * doc/headers/assert.texi (assert.h): Document assert module use.
100428 2007-04-27  Bruno Haible  <bruno@clisp.org>
100430         * doc/headers/*.texi: New files.
100431         * doc/gnulib.texi (Header File Substitutes): New chapter.
100432         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
100433         dependencies.
100434         (standards.info ,standards.html, standards.dvi): Update dependencies.
100435         (mostlyclean, clean): New targets.
100437 2007-04-27  Bruno Haible  <bruno@clisp.org>
100439         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
100440         * modules/sysexits (Files, Makefile.am): Update.
100442         * lib/sys_socket_.h: Renamed from lib/socket_.h.
100443         * modules/sys_socket (Files, Makefile.am): Update.
100445         * lib/sys_stat_.h: Renamed from lib/stat_.h.
100446         * modules/sys_stat (Files, Makefile.am): Update.
100448 2007-04-27  Eric Blake  <ebb9@byu.net>
100450         * lib/freading.h: Improve comments.
100451         * lib/fwriting.h: Likewise.
100452         * lib/fflush.c: Likewise.
100454         Fix closein for mingw.
100455         * modules/closein-tests: Add tests for closein.
100456         * tests/test-closein.c: New file.
100457         * tests/test-closein.sh: Likewise.
100458         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
100459         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
100461 2007-04-27  Bruno Haible  <bruno@clisp.org>
100463         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
100464         version is < 6.
100465         * lib/math_.h [__DECC]: Likewise.
100466         * lib/stdio_.h [__DECC]: Likewise.
100467         * lib/stdlib_.h [__DECC]: Likewise.
100468         * lib/string_.h [__DECC]: Likewise.
100469         * lib/time_.h [__DECC]: Likewise.
100470         * lib/wchar_.h [__DECC]: Likewise.
100471         * lib/wctype_.h [__DECC]: Likewise.
100473 2007-04-27  Bruno Haible  <bruno@clisp.org>
100475         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
100477 2007-04-27  Bruno Haible  <bruno@clisp.org>
100479         * lib/fflush.c: Add comments.
100480         * modules/fpurge-tests (Depends-on): Add fflush.
100481         * modules/freadable-tests (Depends-on): Likewise.
100482         * modules/fwritable-tests (Depends-on): Likewise.
100484 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
100486         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
100487         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
100488         Report by Bruno Haible <bruno@clisp.org>.
100490 2007-04-26  Eric Blake  <ebb9@byu.net>
100492         Fix fflush on mingw.
100493         * modules/fflush (Depends-on): Add freading.
100494         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
100495         but unread data.
100497 2007-04-26  Eric Blake  <ebb9@byu.net>
100498         and Bruno Haible  <bruno@clisp.org>
100500         Implement freading and fwriting.
100501         * lib/freading.c: New file.
100502         * lib/freading.h: Likewise.
100503         * m4/freading.m4: Likewise.
100504         * modules/freading: Likewise.
100505         * modules/freading-tests: Likewise.
100506         * tests/test-freading.c: Likewise.
100507         * lib/fwriting.c: New file.
100508         * lib/fwriting.h: Likewise.
100509         * m4/fwriting.m4: Likewise.
100510         * modules/fwriting: Likewise.
100511         * modules/fwriting-tests: Likewise.
100512         * tests/test-fwriting.c: Likewise.
100513         * MODULES.html.sh (File stream based Input/Output): Mention them.
100515 2007-04-26  Bruno Haible  <bruno@clisp.org>
100517         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
100518         'long' when we assume it.
100519         Suggested by Eric Blake.
100521 2007-04-26  Bruno Haible  <bruno@clisp.org>
100523         Ensure fseeko, ftello are declared on glibc systems.
100524         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
100525         * modules/fseeko (configure.ac-early): Likewise.
100526         * modules/ftello (configure.ac-early): Likewise.
100527         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
100528         AC_FUNC_FSEEKO for this.
100529         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
100530         (gl_CHECK_FSEEKO): Remove macro.
100532 2007-04-26  Bruno Haible  <bruno@clisp.org>
100534         * tests/test-fflush.c (main): Also check the ftell result after
100535         fflush and fseek/fseeko.
100536         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
100537         file descriptor position cache in the stream.
100538         * lib/fseeko.c (rpl_fseeko): Likewise.
100540 2007-04-26  Bruno Haible  <bruno@clisp.org>
100542         * modules/fflush-tests (Depends-on): Add fseeko.
100544 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
100545             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100547         * lib/argz_.h: ensure error_t definition is obtained in same
100548         mechanism system argz.h would have.
100549         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
100550         argz facilities are known bad.  Err on the side of caution if
100551         cross-compiling.
100553 2007-04-25  Eric Blake  <ebb9@byu.net>
100555         * lib/fpurge.c (includes): Use stdlib.h for free.
100556         * tests/test-fflush.c (main): Also test fflush-fseeko.
100558 2007-04-25  Bruno Haible  <bruno@clisp.org>
100560         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
100561         * lib/fseeko.c: New file.
100562         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
100563         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
100564         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
100565         gl_FUNC_FSEEKO.
100566         (gl_FUNC_FSEEKO): Invoke it.
100567         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
100568         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
100569         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
100571 2007-04-25  Bruno Haible  <bruno@clisp.org>
100573         * modules/fflush (Depends-on): Add ftello.
100575 2007-04-25  Bruno Haible  <bruno@clisp.org>
100577         * modules/ftello-tests: New file.
100578         * tests/test-ftello.c: New file.
100580         * modules/ftello: New file.
100581         * m4/ftello.m4: New file.
100582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
100583         HAVE_FTELLO.
100584         * lib/stdio_.h (ftello): New declaration.
100585         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
100586         HAVE_FTELLO.
100588 2007-04-25  Bruno Haible  <bruno@clisp.org>
100590         * modules/fseeko-tests: New file.
100591         * tests/test-fseeko.c: New file.
100593         * modules/fseeko: New file.
100594         * m4/fseeko.m4: New file.
100595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
100596         HAVE_FSEEKO.
100597         * lib/stdio_.h (fseeko): New declaration.
100598         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
100599         HAVE_FSEEKO.
100601 2007-04-25  Bruno Haible  <bruno@clisp.org>
100603         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
100605 2007-04-25  Bruno Haible  <bruno@clisp.org>
100607         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
100608         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
100609         * tests/test-unistd.c: Likewise.
100610         * tests/test-fcntl.c: Likewise.
100612 2007-04-23  Eric Blake  <ebb9@byu.net>
100614         * lib/fflush.c: Fix missing include.
100615         Reported by Bruno Haible.
100617 2007-04-23  Bruno Haible  <bruno@clisp.org>
100619         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
100620         Reported by Eric Blake.
100622 2007-04-23  Bruno Haible  <bruno@clisp.org>
100624         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
100626 2007-04-23  Bruno Haible  <bruno@clisp.org>
100628         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
100630 2007-04-23  Bruno Haible  <bruno@clisp.org>
100632         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
100633         Needed on HP-UX 11.
100635 2007-04-16  Eric Blake  <ebb9@byu.net>
100637         Make fflush rely on fpurge.
100638         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
100639         open coding all variants.
100640         * modules/fflush (Depends-on): Add fpurge and unistd.
100641         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
100642         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
100644         Fix --with-tests compilation on cygwin.
100645         * modules/argmatch-tests (Makefile.am): List gnulib library first
100646         in LDADD.
100647         * modules/argp-tests (Makefile.am): Likewise.
100648         * modules/array-list-tests (Makefile.am): Likewise.
100649         * modules/array-oset-tests (Makefile.am): Likewise.
100650         * modules/avltree-list-tests (Makefile.am): Likewise.
100651         * modules/avltree-oset-tests (Makefile.am): Likewise.
100652         * modules/avltreehash-list-tests (Makefile.am): Likewise.
100653         * modules/carray-list-tests (Makefile.am): Likewise.
100654         * modules/dirname-tests (Makefile.am): Likewise.
100655         * modules/frexp-tests (Makefile.am): Likewise.
100656         * modules/isnanl-tests (Makefile.am): Likewise.
100657         * modules/linked-list-tests (Makefile.am): Likewise.
100658         * modules/linkedhash-list-tests (Makefile.am): Likewise.
100659         * modules/lock-tests (Makefile.am): Likewise.
100660         * modules/rbtree-list-tests (Makefile.am): Likewise.
100661         * modules/rbtree-oset-tests (Makefile.am): Likewise.
100662         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
100663         * modules/tls-tests (Makefile.am): Likewise.
100664         * modules/tsearch-tests (Makefile.am): Likewise.
100665         * modules/xvasprintf-tests (Makefile.am): Likewise.
100667         Fix fpurge for cygwin.
100668         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
100669         value.
100670         * modules/fpurge-tests (Depends-on): Clean up trash.
100672 2007-04-16  Simon Josefsson  <simon@josefsson.org>
100674         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
100676         * m4/autobuild.m4: Re-indent.
100678 2007-04-13  Bruno Haible  <bruno@clisp.org>
100680         * modules/fpurge-tests: New file.
100681         * tests/test-fpurge.c: New file.
100683         * modules/fpurge: New file.
100684         * lib/fpurge.h: New file.
100685         * lib/fpurge.c: New file.
100686         * m4/fpurge.m4: New file.
100688 2007-04-13  Bruno Haible  <bruno@clisp.org>
100690         * modules/fbufmode-tests: New file.
100691         * tests/test-fbufmode.c: New file.
100693         * modules/fbufmode: New file.
100694         * lib/fbufmode.h: New file.
100695         * lib/fbufmode.c: New file.
100696         * m4/fbufmode.m4: New file.
100698 2007-04-13  Bruno Haible  <bruno@clisp.org>
100700         * modules/fwritable-tests: New file.
100701         * tests/test-fwritable.c: New file.
100703         * modules/fwritable: New file.
100704         * lib/fwritable.h: New file.
100705         * lib/fwritable.c: New file.
100706         * m4/fwritable.m4: New file.
100708 2007-04-13  Bruno Haible  <bruno@clisp.org>
100710         * modules/freadable-tests: New file.
100711         * tests/test-freadable.c: New file.
100713         * modules/freadable: New file.
100714         * lib/freadable.h: New file.
100715         * lib/freadable.c: New file.
100716         * m4/freadable.m4: New file.
100718 2007-04-13  Bruno Haible  <bruno@clisp.org>
100720         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
100721         MOSTLYCLEANFILES.
100723 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
100725         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
100726         gzip bootstrap.conf to avoid dragging in i18n machinery.
100727         (gnulib_tool_option): Use it.
100729 2007-04-13  Bruno Haible  <bruno@clisp.org>
100731         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
100732         %F directives.
100733         * tests/test-vasprintf-posix.c (test_function): Likewise.
100734         * tests/test-snprintf-posix.h (test_function): Likewise.
100735         * tests/test-sprintf-posix.h (test_function): Likewise.
100736         * tests/test-fprintf-posix.h (test_function): Likewise.
100737         * tests/test-printf-posix.h (test_function): Likewise.
100738         * tests/test-fprintf-posix.out: Likewise.
100740 2007-04-13  Bruno Haible  <bruno@clisp.org>
100742         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
100743         * modules/tls-tests (configure.ac): Likewise.
100744         Reported by Arto C. Nirkko <anirkko@insel.ch>.
100746 2007-04-13  Bruno Haible  <bruno@clisp.org>
100748         * lib/tls.c (glthread_tls_get): Fix return type.
100749         Patch by Arto C. Nirkko <anirkko@insel.ch>.
100751 2007-04-12  Eric Blake  <ebb9@byu.net>
100753         * modules/gettime (Depends-on): Remove gettime.
100754         Reported by Dmitry V. Levin.
100756 2007-04-12  Bruno Haible  <bruno@clisp.org>
100758         * modules/fflush (Include): Mention <stdio.h>.
100759         * modules/strtoimax (Include): Mention <inttypes.h>.
100760         * modules/strtoumax (Include): Likewise.
100762 2007-04-12  Eric Blake  <ebb9@byu.net>
100764         * .cvsignore: New file.
100765         * .gitignore: Likewise.
100767 2007-04-12  Bruno Haible  <bruno@clisp.org>
100769         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
100770         not before, since $(LDADD) often contains libgnu.a.
100771         * modules/striconv-tests (test_striconv_LDADD): Likewise.
100772         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
100773         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
100774         Needed on Cygwin.
100776 2007-04-12  Eric Blake  <ebb9@byu.net>
100778         Work around glibc's failure to flush stdin on fclose.
100779         * lib/closein.c (close_stdin): Flush stdin before closing.
100781         Work around glibc's failure to reset seekable stdin on exit.
100782         * modules/closein: New module.
100783         * lib/closein.c: New file.
100784         * lib/closein.h: Likewise.
100785         * m4/closein.m4: Likewise.
100786         * MODULES.html.sh (File stream based Input/Output): Document it.
100788 2007-04-12  Simon Josefsson  <simon@josefsson.org>
100790         * gnulib-tool: Rename generated 'autobuild' script to
100791         'do-autobuild' in --create-megatestdir output.
100793         * doc/gnulib.texi (Build robot for gnulib): Fix.
100795 2007-04-12  Simon Josefsson  <simon@josefsson.org>
100797         * modules/sysexits (Depends-on): Add absolute-header.
100799 2007-04-12  Eric Blake  <ebb9@byu.net>
100801         No need to preserve errno on success.
100802         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
100803         Reported by Bruno Haible.
100805 2007-04-12  Simon Josefsson  <simon@josefsson.org>
100807         * MODULES.html.sh (Support for maintaining and releasing
100808         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
100810 2007-04-12  Simon Josefsson  <simon@josefsson.org>
100812         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
100814 2007-04-12  Simon Josefsson  <simon@josefsson.org>
100816         * modules/autobuild: New module.
100818         * m4/autobuild.m4: New file.
100820 2007-04-11  Bruno Haible  <bruno@clisp.org>
100822         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
100823         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
100824         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
100825         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
100826         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100827         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100828         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100829         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100830         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100831         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100832         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
100833         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100834         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100835         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
100836         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100837         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100838         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
100839         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100840         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100841         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
100842         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100843         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100844         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
100845         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100846         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
100848         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100849         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100850         Reported by Eric Blake.
100852 2007-04-11  Bruno Haible  <bruno@clisp.org>
100854         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
100856 2007-04-10  Bruno Haible  <bruno@clisp.org>
100858         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
100859         for NaN and Infinity. Needed on FreeBSD 6.1.
100860         * tests/test-vasnprintf-posix.c (test_function): Undo last change
100861         regarding results for "%010a" of Infinity and NaN.
100862         * tests/test-vasprintf-posix.c (test_function): Likewise.
100863         * tests/test-snprintf-posix.h (test_function): Likewise.
100864         * tests/test-sprintf-posix.h (test_function): Likewise.
100865         * tests/test-fprintf-posix.h (test_function): Likewise.
100866         * tests/test-printf-posix.h (test_function): Likewise.
100867         * tests/test-fprintf-posix.out: Likewise.
100869 2007-04-10  Bruno Haible  <bruno@clisp.org>
100871         * modules/locale-tests: New file.
100872         * tests/test-locale.c: New file.
100874         * modules/locale: New file.
100875         * lib/locale_.h: New file.
100876         * m4/locale_h.m4: New file.
100878 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
100879             Bruno Haible  <bruno@clisp.org>
100881         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
100882         be determined, test for availability of the copysignf, copysign,
100883         copysignl functions.
100884         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
100885         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
100886         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
100888 2007-04-09  Eric Blake  <ebb9@byu.net>
100890         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
100891         * modules/stdio (Makefile.am): Support fflush.
100892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
100893         * modules/fflush: New file.
100894         * lib/fflush.c: Likewise.
100895         * m4/fflush.m4: Likewise.
100896         * modules/fflush-tests: New test.
100897         * tests/test-fflush.c: Likewise.
100898         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
100900 2007-04-06  Bruno Haible  <bruno@clisp.org>
100902         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
100903         (VASNPRINTF): Use signbit for faster determination whether to print a
100904         minus sign.
100905         * modules/vasnprintf (Files): Remove lib/float+.h.
100906         * modules/fprintf-posix (Depends-on): Add signbit.
100907         * modules/snprintf-posix (Depends-on): Likewise.
100908         * modules/sprintf-posix (Depends-on): Likewise.
100909         * modules/vasnprintf-posix (Depends-on): Likewise.
100910         * modules/vasprintf-posix (Depends-on): Likewise.
100911         * modules/vfprintf-posix (Depends-on): Likewise.
100912         * modules/vsnprintf-posix (Depends-on): Likewise.
100913         * modules/vsprintf-posix (Depends-on): Likewise.
100915 2007-04-06  Bruno Haible  <bruno@clisp.org>
100917         * tests/test-frexp.c (main): Test also the sign bit of zero results.
100918         * tests/test-frexpl.c (main): Likewise.
100919         * tests/test-ldexpl.c (main): Likewise.
100920         * modules/frexp-tests (Depends-on): Add signbit.
100921         * modules/frexpl-tests (Depdends-on): Likewise.
100922         * modules/ldexpl-tests (Depdends-on): Likewise.
100924 2007-04-06  Bruno Haible  <bruno@clisp.org>
100926         * modules/signbit-tests: New file.
100927         * tests/test-signbit.c: New file.
100929         * modules/signbit: New file.
100930         * lib/signbitf.c: New file.
100931         * lib/signbitd.c: New file.
100932         * lib/signbitl.c: New file.
100933         * m4/signbit.m4: New file.
100934         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
100935         (signbit): New macro.
100936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
100937         REPLACE_SIGNBIT.
100938         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
100939         REPLACE_FREXPL into math.h.
100941 2007-04-06  Bruno Haible  <bruno@clisp.org>
100943         * modules/isnanf-nolibm-tests: New file.
100944         * tests/test-isnanf.c: New file.
100946         * modules/isnanf-nolibm: New file.
100947         * lib/isnanf.h: New file.
100948         * lib/isnanf.c: New file.
100949         * lib/isnan.c: Consider the USE_FLOAT macro.
100950         * m4/isnanf.m4: New file.
100952 2007-04-06  Bruno Haible  <bruno@clisp.org>
100954         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
100955         (Link): New section.
100957         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
100959 2007-04-06  Bruno Haible  <bruno@clisp.org>
100961         Assume the 'long double' type.
100962         * m4/longdouble.m4: Remove file.
100963         * config/srclist.txt: Don't mention longdouble.m4.
100964         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
100965         * lib/float+.h: Likewise.
100966         * lib/frexp.c: Likewise.
100967         * lib/printf-args.h: Likewise.
100968         * lib/printf-args.c: Likewise.
100969         * lib/printf-frexp.c: Likewise.
100970         * lib/printf-parse.c: Likewise.
100971         * lib/vasnprintf.c: Likewise.
100972         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
100973         * m4/intl.m4: Likewise.
100974         * m4/isnanl.m4: Likewise.
100975         * m4/printf.m4: Likewise.
100976         * m4/printf-frexpl.m4: Likewise.
100977         * m4/vasnprintf.m4: Likewise.
100978         * modules/allocsa (Files): Remove m4/longdouble.m4.
100979         * modules/gettext (Files): Likewise.
100980         * modules/relocatable-prog-wrapper (Files): Likewise.
100981         * modules/vasnprintf (Files): Likewise.
100982         * modules/isnanl (Files): Likewise.
100983         (Include): Simplify.
100984         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
100985         (Include): Simplify.
100986         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
100987         (Include): Simplify.
100988         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
100989         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
100990         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
100991         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
100992         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
100993         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
100994         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
100995         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
100996         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
100997         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
100998         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
100999         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101000         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
101001         * tests/test-isnanl.c: Likewise.
101002         * tests/test-snprintf-posix.h: Likewise.
101003         * tests/test-sprintf-posix.h: Likewise.
101004         * tests/test-vasnprintf-posix.c: Likewise.
101005         * tests/test-vasnprintf-posix2.c: Likewise.
101006         * tests/test-vasprintf-posix.c: Likewise.
101008 2007-04-06  Bruno Haible  <bruno@clisp.org>
101010         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
101011         * lib/math_.h [__DECC]: Include the overridden include file through
101012         #include_next, outside the double-inclusion guard.
101013         * lib/stdio_.h [__DECC]: Likewise.
101014         * lib/stdlib_.h [__DECC]: Likewise.
101015         * lib/string_.h [__DECC]: Likewise.
101016         * lib/time_.h [__DECC]: Likewise.
101017         * lib/wchar_.h [__DECC]: Likewise.
101018         * lib/wctype_.h [__DECC]: Likewise.
101019         * lib/inttypes_.h [__DECC]: Likewise.
101020         Reported by Albert Chin <china@thewrittenword.com> in
101021         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
101023 2007-04-04  Eric Blake  <ebb9@byu.net>
101025         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
101026         1.5.x.
101028 2007-04-04  Bruno Haible  <bruno@clisp.org>
101030         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
101031         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
101033 2007-04-04  Bruno Haible  <bruno@clisp.org>
101035         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
101036         results for "%010a" of Infinity and NaN.
101037         * tests/test-vasprintf-posix.c (test_function): Likewise.
101038         * tests/test-snprintf-posix.h (test_function): Likewise.
101039         * tests/test-sprintf-posix.h (test_function): Likewise.
101040         * tests/test-fprintf-posix.h (test_function): Remove these tests.
101041         * tests/test-printf-posix.h (test_function): Likewise.
101042         * tests/test-fprintf-posix.out: Update.
101043         Needed for FreeBSD 6.1.
101045 2007-04-04  Bruno Haible  <bruno@clisp.org>
101047         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
101048         directly used by the gnulib modules nor by gnulib-tool.
101050 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
101052         * DEPENDENCIES: Give overall description of version dependency
101053         desirability.  Use more-typical names for apps.
101054         Add shell, coreutils, diffutils, grep, tar, gzip.
101056 2007-04-04  Simon Josefsson  <simon@josefsson.org>
101058         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
101060 2007-04-04  Karl Berry  <karl@gnu.org>
101062         * MODULES.html.sh (func_module): missing '.
101064 2007-04-03  Bruno Haible  <bruno@clisp.org>
101066         * modules/argmatch-tests (Makefile.am): New variable
101067         test_argmatch_LDADD.
101068         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
101069         * modules/array-list-tests (Makefile.am): New variable
101070         test_array_list_LDADD.
101071         * modules/array-oset-tests (Makefile.am): New variable
101072         test_array_oset_LDADD.
101073         * modules/avltree-list-tests (Makefile.am): New variable
101074         test_avltree_list_LDADD.
101075         * modules/avltree-oset-tests (Makefile.am): New variable
101076         test_avltree_oset_LDADD.
101077         * modules/avltreehash-list-tests (Makefile.am): New variable
101078         test_avltreehash_list_LDADD.
101079         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
101080         test_canonicalize_lgpl_LDADD.
101081         * modules/carray-list-tests (Makefile.am): New variable
101082         test_carray_list_LDADD.
101083         * modules/dirname-tests (Makefile.am): New variable
101084         test_dirname_LDADD.
101085         * modules/linked-list-tests (Makefile.am): New variable
101086         test_linked_list_LDADD.
101087         * modules/linkedhash-list-tests (Makefile.am): New variable
101088         test_linkedhash_list_LDADD.
101089         * modules/rbtree-list-tests (Makefile.am): New variable
101090         test_rbtree_list_LDADD.
101091         * modules/rbtree-oset-tests (Makefile.am): New variable
101092         test_rbtree_oset_LDADD.
101093         * modules/rbtreehash-list-tests (Makefile.am): New variable
101094         test_rbtreehash_list_LDADD.
101095         * modules/xvasprintf-tests (Makefile.am): New variable
101096         test_xvasprintf_LDADD.
101097         Reported by Eric Blake.
101099 2007-04-03  Eric Blake  <ebb9@byu.net>
101101         * DEPENDENCIES: Weaken m4 requirements.
101103 2007-04-03  Bruno Haible  <bruno@clisp.org>
101105         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
101106         * modules/isnanl-tests (configure.ac): Likewise.
101108 2007-04-03  Ben Pfaff  <blp@gnu.org>
101110         * modules/iconv_open: Add $(srcdir)/ to source directory
101111         references in Makefile fragments that call gperf, to fix VPATH
101112         builds.
101114 2007-04-03  Bruno Haible  <bruno@clisp.org>
101116         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
101117         * lib/ldexpl.c: Undo last change.
101119 2007-04-03  Bruno Haible  <bruno@clisp.org>
101121         * modules/printf-frexpl (Depends-on): Undo last change.
101122         (Files): Add m4/ldexpl.m4.
101124 2007-04-03  Bruno Haible  <bruno@clisp.org>
101126         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
101127         * modules/isnanl (Link): New section.
101129         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
101130         * modules/frexp (Link): New section.
101132         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
101133         * modules/frexpl (Link): New section.
101135         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
101136         * modules/ldexpl (Link): New section.
101138 2007-04-03  Bruno Haible  <bruno@clisp.org>
101140         * modules/TEMPLATE-EXTENDED: New file.
101141         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
101143 2007-04-03  Bruno Haible  <bruno@clisp.org>
101145         * DEPENDENCIES: New file.
101146         Suggested by Simon Josefsson.
101148 2007-04-03  Bruno Haible  <bruno@clisp.org>
101150         * doc/gnulib.texi: Escape @.
101152 2007-04-03  James Youngman  <jay@gnu.org>
101153         and Paul Eggert  <eggert@cs.ucla.edu>
101155         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
101156         birthtime on all systems that have birthtime, not just those which
101157         use st_birthtimensec rather than st_birthtim.  Putting zero in
101158         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
101159         that the birth time is not available for files on an NFS mount.
101161 2007-04-03  Simon Josefsson  <simon@josefsson.org>
101163         * modules/memxor: Move back from crypto/, suggested by Bruno.
101164         * modules/crypto/hmac-sha1: Fix memxor dependency.
101166         * modules/crypto/gc: Moved from ../.
101168 2007-04-02  Eric Blake  <ebb9@byu.net>
101170         * lib/ldexpl.c (includes): Avoid libm.
101172         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
101174 2007-04-02  Bruno Haible  <bruno@clisp.org>
101176         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
101177         on IRIX.
101179 2007-04-02  Bruno Haible  <bruno@clisp.org>
101181         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
101182         x86 or x86_64 platforms running MacOS X.
101183         Reported by Ryan Schmidt <@ryandesign.com>.
101185 2007-04-02  Bruno Haible  <bruno@clisp.org>
101187         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
101188         i386.
101190 2007-04-01  Simon Josefsson  <simon@josefsson.org>
101192         * modules/crypto/arcfour: Moved from ../.
101193         * modules/crypto/arcfour-tests: Moved from ../.
101194         * modules/crypto/arctwo: Moved from ../.
101195         * modules/crypto/arctwo-tests: Moved from ../.
101196         * modules/crypto/des: Moved from ../.
101197         * modules/crypto/des-tests: Moved from ../.
101198         * modules/crypto/gc-arcfour: Moved from ../.
101199         * modules/crypto/gc-arcfour-tests: Moved from ../.
101200         * modules/crypto/gc-arctwo: Moved from ../.
101201         * modules/crypto/gc-arctwo-tests: Moved from ../.
101202         * modules/crypto/gc-des: Moved from ../.
101203         * modules/crypto/gc-des-tests: Moved from ../.
101204         * modules/crypto/gc-hmac-md5: Moved from ../.
101205         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
101206         * modules/crypto/gc-hmac-sha1: Moved from ../.
101207         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
101208         * modules/crypto/gc-md2: Moved from ../.
101209         * modules/crypto/gc-md2-tests: Moved from ../.
101210         * modules/crypto/gc-md4: Moved from ../.
101211         * modules/crypto/gc-md4-tests: Moved from ../.
101212         * modules/crypto/gc-md5: Moved from ../.
101213         * modules/crypto/gc-md5-tests: Moved from ../.
101214         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
101215         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
101216         * modules/crypto/gc-random: Moved from ../.
101217         * modules/crypto/gc-rijndael: Moved from ../.
101218         * modules/crypto/gc-rijndael-tests: Moved from ../.
101219         * modules/crypto/gc-sha1: Moved from ../.
101220         * modules/crypto/gc-sha1-tests: Moved from ../.
101221         * modules/crypto/gc-tests: Moved from ../.
101222         * modules/crypto/hmac-md5: Moved from ../.
101223         * modules/crypto/hmac-md5-tests: Moved from ../.
101224         * modules/crypto/hmac-sha1: Moved from ../.
101225         * modules/crypto/hmac-sha1-tests: Moved from ../.
101226         * modules/crypto/md2: Moved from ../.
101227         * modules/crypto/md2-tests: Moved from ../.
101228         * modules/crypto/md4: Moved from ../.
101229         * modules/crypto/md4-tests: Moved from ../.
101230         * modules/crypto/md5: Moved from ../.
101231         * modules/crypto/md5-tests: Moved from ../.
101232         * modules/crypto/memxor: Moved from ../.
101233         * modules/crypto/rijndael: Moved from ../.
101234         * modules/crypto/rijndael-tests: Moved from ../.
101235         * modules/crypto/sha1: Moved from ../.
101237 2007-03-30  James Youngman  <jay@gnu.org>
101239         * tests/test-stat-time.c (prepare_test): use chmod() rather than
101240         rename() to change the ctime of a file (because ctime is unaffected
101241         by rename on jfs2 on AIX 5.1).
101242         (main): Start by doing cleanup, in case a previous run failed leaving
101243         test files behind.
101245 2007-03-31  Bruno Haible  <bruno@clisp.org>
101247         Support old proprietary implementations of iconv.
101248         * modules/iconv_open: New file.
101249         * lib/iconv_.h: New file.
101250         * m4/iconv_h.m4: New file.
101251         * lib/iconv_open.c: New file.
101252         * lib/iconv_open-aix.gperf: New file.
101253         * lib/iconv_open-hpux.gperf: New file.
101254         * lib/iconv_open-irix.gperf: New file.
101255         * lib/iconv_open-osf.gperf: New file.
101256         * m4/iconv_open.m4: New file.
101257         * modules/linebreak (Depends-on): Add iconv_open.
101258         * modules/striconv (Depends-on): Likewise.
101259         * modules/striconveh (Depends-on): Likewise.
101260         * modules/unicodeio (Depends-on): Likewise.
101261         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
101262         (iconv_t)(-1).
101263         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
101264         conversion if cd is (iconv_t)(-1).
101265         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
101266         is not possible.
101268 2007-03-31  Bruno Haible  <bruno@clisp.org>
101270         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101271         work on Solaris either. Protect also second use of "autodetect_jp".
101273 2007-03-31  Bruno Haible  <bruno@clisp.org>
101275         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
101276         the function is not present.
101278 2007-03-31  Bruno Haible  <bruno@clisp.org>
101280         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
101281         the function is not present.
101283 2007-03-31  Bruno Haible  <bruno@clisp.org>
101285         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
101286         a bug in HP-UX iconv_open().
101288 2007-03-31  Bruno Haible  <bruno@clisp.org>
101290         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
101291         (Mathematics <math.h>): New section, add fpieee.
101292         (Input/output <stdio.h>): Add fseterr.
101293         (Mathematics <math.h>): New section, add printf-frexp.
101294         (Container data structures): Add sublist.
101295         (Core language properties): Add fpucw, inline.
101296         (Functions for greatest-width integer types <inttypes.h>): Add
101297         imaxabs, imaxdiv, inttypes.
101298         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
101299         isnanl-nolibm, ldexp.
101300         (Mathematics <math.h>): New section, add printf-frexpl.
101301         (Support for systems lacking POSIX:2001): Add fprintf-posix,
101302         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
101303         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
101304         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
101305         (Unicode string functions): Add unistr/u*-mbtoucr.
101306         (Java): Add javacomp-script, javaexec-script.
101307         (C#): Add csharpcomp-script, csharpexec-script.
101308         (Support for building libraries and executables): Add havelib,
101309         relocatable-*.
101310         (Support for maintaining and releasing projects): Renamed from
101311         'Support for maintaining and release projects'. Add announce-gen.
101313 2007-03-31  Bruno Haible  <bruno@clisp.org>
101315         * README: Talk primarily about git.
101316         (git and CVS): Renamed from CVS.
101317         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
101318         gnulib is available through git.
101319         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
101321 2007-03-30  Bruno Haible  <bruno@clisp.org>
101323         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
101324         * lib/poll_.h: Likewise.
101325         * lib/stat_.h: Likewise.
101326         * lib/sys_time_.h: Likewise.
101327         * lib/sysexit_.h: Likewise.
101328         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
101329         * lib/stdbool_.h: Likewise.
101330         * lib/byteswap_.h: Add double-inclusion guard.
101332 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
101334         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
101336 2007-03-30  Karl Berry  <karl@gnu.org>
101338         * config/srclist-update: double space after USA in the license
101339         substitution, since that's how it's usually (?) written.
101341 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
101343         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
101344         reported by Bruno Haible.
101346 2007-03-29  Bruno Haible  <bruno@clisp.org>
101348         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
101349         a bug in AIX iconv().
101351 2007-03-29  Bruno Haible  <bruno@clisp.org>
101353         * modules/ldexpl-tests: New file.
101354         * tests/test-ldexpl.c: New file.
101356 2007-03-29  Bruno Haible  <bruno@clisp.org>
101358         * lib/ldexpl.c: Include fpucw.h.
101359         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
101360         multiplication.
101361         * modules/ldexpl (Depends-on): Add fpucw.
101363 2007-03-29  Bruno Haible  <bruno@clisp.org>
101365         * modules/ldexpl: New file.
101366         * m4/ldexpl.m4: New file.
101367         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
101368         set.
101369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
101370         REPLACE_LDEXPL.
101371         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
101372         REPLACE_LDEXPL.
101373         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
101374         gl_FUNC_LDEXPL_WORKS.
101375         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
101376         * modules/mathl (Files): Remove lib/ldexpl.c.
101377         (Depends-on): Add ldexpl.
101379 2007-03-29  Bruno Haible  <bruno@clisp.org>
101381         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
101383 2007-03-29  Bruno Haible  <bruno@clisp.org>
101385         * tests/test-striconveh.c (main): Don't assume that a direct conversion
101386         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
101387         and possibly also HP-UX.
101388         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101389         work on AIX, IRIX, HP-UX, OSF/1.
101390         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
101391         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
101392         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
101393         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
101394         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
101395         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
101397 2007-03-29  Bruno Haible  <bruno@clisp.org>
101399         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
101401 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101403         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
101404         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
101406 2007-03-29  Eric Blake  <ebb9@byu.net>
101408         * lib/acl-internal.h: Remove redundant include.
101409         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
101410         Cygwin when a file is locked.
101412 2007-03-29  Bruno Haible  <bruno@clisp.org>
101414         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
101415         file.
101416         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
101418 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101420         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
101421         try to remove a parent directory if the child couldn't be removed
101422         (except for the first rmdir, which could fail because the child
101423         doesn't exist).  Problem reported by Jeff Blaine in
101424         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
101426 2007-03-28  Bruno Haible  <bruno@clisp.org>
101428         * lib/striconveh.c (utf8conv_carefully): New function.
101429         (mem_cd_iconveh_internal): Invoke it.
101431 2007-03-28  Bruno Haible  <bruno@clisp.org>
101433         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
101434         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
101435         input.
101436         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
101437         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
101438         unistr/u8-uctomb.
101440 2007-03-28  Bruno Haible  <bruno@clisp.org>
101442         * modules/unistr/u8-mbtoucr: New file.
101443         * lib/unistr/u8-mbtoucr.c: New file.
101444         * modules/unistr/u16-mbtoucr: New file.
101445         * lib/unistr/u16-mbtoucr.c: New file.
101446         * modules/unistr/u16-mbtoucr: New file.
101447         * lib/unistr/u16-mbtoucr.c: New file.
101448         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
101450 2007-03-27  Simon Josefsson  <simon@josefsson.org>
101451             Bruno Haible  <bruno@clisp.org>
101453         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
101454         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
101455         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
101457         * m4/stdio_h.m4: Add stubs for vasprintf too.
101459         * modules/stdio: Support vasprintf in sed command.
101461         * modules/vasprintf: Depend on stdio for prototypes.  Remove
101462         vasprintf.h.  Add stdio module indicator.
101464         * lib/stdio_.h: Declare asprintf and vasprintf, based on
101465         vasprintf.h.
101467         * lib/vasprintf.h: File removed.
101469         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
101470         * lib/vasprintf.c: Ditto.
101471         * lib/xvasprintf.c: Ditto.
101472         * tests/test-vasprintf-posix.c: Ditto.
101473         * tests/test-vasprintf.c: Ditto.
101475 2007-03-27  Bruno Haible  <bruno@clisp.org>
101477         Make vasnprintf multithread-safe.
101478         * lib/vasnprintf.c (decimal_point_char): New function.
101479         (VASNPRINTF): Use it.
101480         Suggested by Simon Josefsson.
101482 2007-03-27  Eric Blake  <ebb9@byu.net>
101484         Support sub-second birthtime on cygwin.
101485         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
101486         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
101487         (get_stat_birthtime): Also work with st_birthtim.
101489 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
101491         * lib/stat-time.h (USE_BIRTHTIME): Remove.
101492         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
101493         (get_stat_birthtime_ns): Do not try to use "spare" fields.
101494         (get_stat_birthtime_ns): Simplify compile-time tests.
101495         (get_stat_birthtime): Change the API to look like
101496         get_stat_mtime etc., except return a negative tv_nsec on error.
101497         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
101498         Don't check for "spare" fields.
101499         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
101500         or for struct stat.st_birthtime, as these tests aren't used.
101501         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
101503 2007-03-27  Bruno Haible  <bruno@clisp.org>
101505         * lib/stat-time.h: Include <sys/stat.h>.
101507 2007-03-27  James Youngman  <jay@gnu.org>
101509         * lib/stat-time.h (get_stat_birthtime): New function for
101510           retrieving st_birthtime as provided by UFS2 (hence *BSD).
101511         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
101512           and its variants.
101513         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
101514         * modules/stat-time-test: New file.
101515         * tests/test-stat-time.c: New test, devised by Bruno Haible.
101517 2007-03-26  Bruno Haible  <bruno@clisp.org>
101519         Better support of signalling NaNs.
101520         * lib/atanl.c: Include isnanl.h.
101521         (atanl): Perform test for NaN at the beginning of the function and
101522         through a call to isnanl.
101523         * lib/cosl.c: Include isnanl.h.
101524         (cosl): Perform test for NaN at the beginning of the function and
101525         through a call to isnanl.
101526         * lib/ldexpl.c: Include isnanl.h.
101527         (ldexpl): Perform test for NaN through a call to isnanl.
101528         * lib/logl.c: Include isnanl.h.
101529         (logl): Perform test for NaN at the beginning of the function and
101530         through a call to isnanl.
101531         * lib/sinl.c: Include isnanl.h.
101532         (sinl): Perform test for NaN at the beginning of the function and
101533         through a call to isnanl.
101534         * lib/sqrtl.c: Include isnanl.h.
101535         (sqrtl): Perform test for NaN at the beginning of the function and
101536         through a call to isnanl.
101537         * lib/tanl.c: Include isnanl.h.
101538         (tanl): Perform test for NaN at the beginning of the function and
101539         through a call to isnanl.
101540         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
101541         * modules/mathl (Depends-on): Add isnanl.
101543 2007-03-26  Eric Blake  <ebb9@byu.net>
101545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
101546         regression in logic sense of previous patch.
101548 2007-03-26  Bruno Haible  <bruno@clisp.org>
101550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
101551         unportable shell command "if ! ...".
101552         Reported by Ralf Wildenhues.
101554 2007-03-25  Bruno Haible  <bruno@clisp.org>
101556         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
101557         <sysexits.h> file, and only add EX_CONFIG.
101558         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
101559         absolute file name and whether it is sufficient. Substitute also
101560         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
101561         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
101562         ABSOLUTE_SYSEXITS_H into sysexits.h.
101564 2007-03-25  Bruno Haible  <bruno@clisp.org>
101566         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
101567         hints is NULL.
101569 2007-03-25  Bruno Haible  <bruno@clisp.org>
101571         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
101572         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
101574 2007-03-25  Bruno Haible  <bruno@clisp.org>
101576         * lib/vasnprintf.c: Include langinfo.h.
101577         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
101578         multithread-safe.
101579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
101580         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
101581         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101582         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101583         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101584         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101585         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101586         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
101587         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101588         Reported by Simon Josefsson.
101590 2007-03-25  Bruno Haible  <bruno@clisp.org>
101592         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
101593         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
101594         * modules/vasnprintf (Depends-on): Add stdint.
101596 2007-03-25  Bruno Haible  <bruno@clisp.org>
101598         * modules/fpieee: New file.
101599         * m4/fpieee.m4: New file.
101600         * modules/isnan-nolibm (Depends-on): Add fpieee.
101601         * modules/isnanl-nolibm (Depends-on): Add fpieee.
101602         * modules/isnanl (Depends-on): Add fpieee.
101604 2007-03-25  Bruno Haible  <bruno@clisp.org>
101606         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
101608 2007-03-25  Bruno Haible  <bruno@clisp.org>
101610         Avoid test failures on IRIX 6.5.
101611         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
101612         (main): Use it.
101613         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
101614         macros.
101615         (main): Use them.
101617 2007-03-25  Bruno Haible  <bruno@clisp.org>
101619         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
101620         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
101621         exists but doesn't work.
101622         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
101623         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
101624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
101625         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
101626         math.h.
101628 2007-03-25  Bruno Haible  <bruno@clisp.org>
101630         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
101631         returns inf. Needed on IRIX 6.5.
101633 2007-03-25  Bruno Haible  <bruno@clisp.org>
101635         * tests/test-frexpl.c: Include isnanl-nolibm.h.
101636         (main): Use isnanl instead of x != x idiom.
101637         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
101639         * tests/test-frexp.c: Include isnan.h.
101640         (main): Use isnan instead of x != x idiom.
101641         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
101643 2007-03-25  Bruno Haible  <bruno@clisp.org>
101645         * tests/test-frexp.c (NaN): New function/macro.
101646         (main): Use it instead of 0.0 / 0.0.
101647         * tests/test-isnan.c (NaN): New function/macro.
101648         (main): Use it instead of 0.0 / 0.0.
101649         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
101650         (test_function): Use it instead of 0.0 / 0.0.
101651         * tests/test-vasprintf-posix.c (NaN): New function/macro.
101652         (test_function): Use it instead of 0.0 / 0.0.
101653         * tests/test-snprintf-posix.h (NaN): New function/macro.
101654         (test_function): Use it instead of 0.0 / 0.0.
101655         * tests/test-sprintf-posix.h (NaN): New function/macro.
101656         (test_function): Use it instead of 0.0 / 0.0.
101657         * tests/test-fprintf-posix.h (NaN): New function/macro.
101658         (test_function): Use it instead of 0.0 / 0.0.
101659         * tests/test-printf-posix.h (NaN): New function/macro.
101660         (test_function): Use it instead of 0.0 / 0.0.
101662         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
101664 2007-03-25  Bruno Haible  <bruno@clisp.org>
101666         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
101668 2007-03-25  Bruno Haible  <bruno@clisp.org>
101670         * lib/regexec.c (merge_state_with_log): Make static.
101672 2007-03-25  Bruno Haible  <bruno@clisp.org>
101674         * lib/trigl.c (kernel_rem_pio2): Make static.
101676 2007-03-25  Bruno Haible  <bruno@clisp.org>
101678         * lib/sincosl.c (sincosl_table): Make static.
101680 2007-03-25  Bruno Haible  <bruno@clisp.org>
101682         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
101683         if the compiler does not support C99.
101685 2007-03-25  Bruno Haible  <bruno@clisp.org>
101687         * modules/time (Makefile.am): Ensure all rule action lines start with a
101688         tab.
101690 2007-03-24  Bruno Haible  <bruno@clisp.org>
101692         * modules/tsearch-tests: New file.
101693         * tests/test-tsearch.sh: New file.
101694         * tests/test-tsearch.c: New file, mostly copied from glibc.
101696         * modules/search-tests: New file.
101697         * tests/test-search.c: New file.
101699         * modules/search: New file.
101700         * lib/search_.h: New file, incorporating lib/tsearch.h.
101701         * m4/search_h.m4: New file.
101702         * lib/tsearch.h: Remove file.
101703         * lib/tsearch.c: Include search.h instead of tsearch.h.
101704         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
101705         HAVE_TSEARCH.
101706         * modules/tsearch (Files): Remove lib/tsearch.h.
101707         (Depends-on): Add search.
101708         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
101709         (Include): Change tsearch.h into search.h.
101711 2007-03-24  Bruno Haible  <bruno@clisp.org>
101713         * modules/fpucw: New file.
101714         * lib/fpucw.h: New file.
101715         * lib/frexp.c: Include fpucw.h.
101716         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
101717         (FUNC): Use them.
101718         * lib/printf-frexp.c: Include fpucw.h.
101719         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
101720         (FUNC): Use them.
101721         * lib/vasnprintf.c: Include fpucw.h.
101722         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
101723         'long double' calculations.
101724         * tests/test-frexpl.c: Include fpucw.h.
101725         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
101726         * tests/test-printf-frexpl.c: Include fpucw.h.
101727         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
101728         * modules/frexpl (Depends-on): Add fpucw.
101729         * modules/printf-frexpl (Depends-on): Likewise.
101730         * modules/fprintf-posix (Depends-on): Likewise.
101731         * modules/snprintf-posix (Depends-on): Likewise.
101732         * modules/sprintf-posix (Depends-on): Likewise.
101733         * modules/vasnprintf-posix (Depends-on): Likewise.
101734         * modules/vasprintf-posix (Depends-on): Likewise.
101735         * modules/vfprintf-posix (Depends-on): Likewise.
101736         * modules/vsnprintf-posix (Depends-on): Likewise.
101737         * modules/vsprintf-posix (Depends-on): Likewise.
101738         * modules/frexpl-tests (Depends-on): Likewise.
101739         * modules/printf-frexpl-tests (Depends-on): Likewise.
101741 2007-03-24  Bruno Haible  <bruno@clisp.org>
101743         * lib/float+.h: New file.
101744         * lib/isnan.c: Include float+.h.
101745         (SIZE): New macro.
101746         (FUNC): Compare only SIZE bytes of the value.
101747         * lib/vasnprintf.c: Include float+.h.
101748         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
101749         SIZEOF_LDBL or SIZEOF_DBL bytes.
101750         * modules/isnan-nolibm (Files): Add lib/float+.h.
101751         * modules/isnanl-nolibm (Files): Add lib/float+.h.
101752         * modules/isnanl (Files): Add lib/float+.h.
101753         * modules/vasnprintf (Files): Add lib/float+.h.
101755 2007-03-24  Bruno Haible  <bruno@clisp.org>
101757         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
101758         include isnanl-nolibm.h.
101760 2007-03-24  Bruno Haible  <bruno@clisp.org>
101762         * tests/test-read-file.c (main): Don't produce spurious output for
101763         expected situations. Make the test fail if it encountered unexpected
101764         results.
101766 2007-03-24  Bruno Haible  <bruno@clisp.org>
101768         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
101769         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
101771 2007-03-24  Bruno Haible  <bruno@clisp.org>
101773         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
101775 2007-03-24  Bruno Haible  <bruno@clisp.org>
101777         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
101778         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
101780         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
101781         * modules/utf8-ucs4: Turn into a symbolic link to module
101782         unistr/u8-mbtouc.
101784         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
101785         utf8-ucs4-unsafe.
101786         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
101787         unistr/u8-mbtouc-unsafe.
101789         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
101790         * modules/utf16-ucs4: Turn into a symbolic link to module
101791         unistr/u16-mbtouc.
101793         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
101794         utf16-ucs4-unsafe.
101795         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
101796         unistr/u16-mbtouc-unsafe.
101798         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
101799         * modules/ucs4-utf8: Turn into a symbolic link to module
101800         unistr/u8-ubtomb.
101802         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
101803         * modules/ucs4-utf16: Turn into a symbolic link to module
101804         unistr/u16-ubtomb.
101806 2007-03-24  Bruno Haible  <bruno@clisp.org>
101808         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
101809         Enable the function only if HAVE_INLINE.
101810         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
101811         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
101812         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
101813         Enable the function only if HAVE_INLINE.
101814         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
101815         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
101816         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
101817         Enable the function only if HAVE_INLINE.
101818         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
101819         Enable the function only if HAVE_INLINE.
101820         * modules/utf8-ucs4: Update.
101821         * modules/utf8-ucs4-unsafe: Update.
101822         * modules/utf16-ucs4: Update.
101823         * modules/utf16-ucs4-unsafe: Update.
101824         * modules/ucs4-utf8: Update.
101825         * modules/ucs4-utf16: Update.
101827 2007-03-24  Bruno Haible  <bruno@clisp.org>
101829         * lib/utf8-ucs4.h: Remove file.
101830         * lib/utf8-ucs4-unsafe.h: Remove file.
101831         * lib/utf16-ucs4.h: Remove file.
101832         * lib/utf16-ucs4-unsafe.h: Remove file.
101833         * lib/ucs4-utf8.h: Remove file.
101834         * lib/ucs4-utf16.h: Remove file.
101835         * lib/unistr.h: Include their previous contents.
101836         * m4/utf-ucs4.m4: Remove file.
101837         * m4/ucs4-utf.m4: Remove file.
101838         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
101839         (Depends-on): Add unistr/base.
101840         (configure.ac): Remove gl_UTF_UCS4.
101841         (Makefile.am): Update.
101842         (Include): Change to unistr.h.
101843         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
101844         (Depends-on): Add unistr/base.
101845         (configure.ac): Remove gl_UTF_UCS4.
101846         (Makefile.am): Update.
101847         (Include): Change to unistr.h.
101848         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
101849         (Depends-on): Add unistr/base.
101850         (configure.ac): Remove gl_UTF_UCS4.
101851         (Makefile.am): Update.
101852         (Include): Change to unistr.h.
101853         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
101854         (Depends-on): Add unistr/base.
101855         (configure.ac): Remove gl_UTF_UCS4.
101856         (Makefile.am): Update.
101857         (Include): Change to unistr.h.
101858         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
101859         (Depends-on): Add unistr/base.
101860         (configure.ac): Remove gl_UCS4_UTF.
101861         (Makefile.am): Update.
101862         (Include): Change to unistr.h.
101863         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
101864         (Depends-on): Add unistr/base.
101865         (configure.ac): Remove gl_UCS4_UTF.
101866         (Makefile.am): Update.
101867         (Include): Change to unistr.h.
101868         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
101869         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
101870         utf8-ucs4-unsafe.h.
101871         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
101872         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
101873         utf16-ucs4-unsafe.h.
101874         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
101875         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
101876         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
101877         * lib/unistr/u8-strchr.c: Likewise.
101878         * lib/unistr/u8-strrchr.c: Likewise.
101879         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
101880         * lib/unistr/u16-strchr.c: Likewise.
101881         * lib/unistr/u16-strrchr.c: Likewise.
101882         * lib/striconveh.c: Update.
101883         * lib/linebreak.c: Update.
101885 2007-03-24  Bruno Haible  <bruno@clisp.org>
101887         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
101888         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
101890 2007-03-22  Bruno Haible  <bruno@clisp.org>
101892         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
101894 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
101896         * MODULES.html.sh (File system functions): New module write-any-file.
101897         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
101898         * m4/write-any-file.m4: New files.
101900 2007-03-23  Eric Blake  <ebb9@byu.net>
101902         * gnulib-tool: Rearrange space-tab sequences, since some editors
101903         like to eat them.
101905 2007-03-23  Eric Blake  <ebb9@byu.net>
101907         * lib/version-etc.c (version_etc_va): Update license wording to
101908         be more concise.  Recommended by Richard Stallman.
101910 2007-03-22  Bruno Haible  <bruno@clisp.org>
101912         * lib/poll.c (MSG_PEEK): New fallback definition.
101914 2007-03-22  Bruno Haible  <bruno@clisp.org>
101916         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
101917         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
101918         (main): Update.
101919         Fixes a compilation error on BeOS.
101921 2007-03-22  Bruno Haible  <bruno@clisp.org>
101923         * modules/frexpl-tests: New file.
101924         * tests/test-frexpl.c: New file.
101926         * modules/frexpl: New file.
101927         * m4/frexpl.m4: New file.
101928         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
101929         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
101930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
101931         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
101932         (Depends-on): Add frexpl. Remove isnanl-nolibm.
101933         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
101935 2007-03-22  Bruno Haible  <bruno@clisp.org>
101937         * lib/frexpl.c: Share code with lib/frexp.c.
101938         * modules/mathl (Files): Add lib/frexp.c.
101939         (Depends-on): Add isnanl-nolibm.
101941 2007-03-22  Bruno Haible  <bruno@clisp.org>
101943         * modules/printf-frexp (Files): Add m4/frexp.m4.
101944         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
101945         only if the found frexp function actually works.
101947 2007-03-22  Bruno Haible  <bruno@clisp.org>
101949         * lib/frexp.c: Remove older implementation that uses divisions.
101951 2007-03-21  Bruno Haible  <bruno@clisp.org>
101953         * modules/frexp-tests: New file.
101954         * tests/test-frexp.c: New file.
101956         * modules/frexp: New file.
101957         * lib/frexp.c: New file.
101958         * m4/frexp.m4: New file.
101959         * lib/math_.h (frexp): New declaration.
101960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
101961         REPLACE_FREXP.
101962         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
101964 2007-03-21  Bruno Haible  <bruno@clisp.org>
101966         * modules/isnanl-tests: New file.
101967         * tests/test-isnanl.c: New file.
101969         * modules/isnanl: New file.
101970         * lib/isnanl.h: New file.
101971         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
101972         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
101973         gl_FUNC_ISNANL_WORKS.
101974         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
101975         New macros.
101977 2007-03-21  Bruno Haible  <bruno@clisp.org>
101979         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
101980         lib/isnanl.h.
101981         (Include): Update.
101982         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
101983         * lib/vasnprintf.c: Update.
101984         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
101985         tests/test-isnanl.h, remove tests/test-isnanl.c.
101986         (Makefile.am): Update.
101987         * tests/test-isnanl-nolibm.c: New file.
101988         * tests/test-isnanl.h: New file.
101989         * tests/test-isnanl.c: Remove file.
101991 2007-03-21  Jim Meyering  <jim@meyering.net>
101993         When trying to open ".", treat ESTALE like EACCES.
101994         * lib/savewd.c (savewd_save): Resort to forking not just upon
101995         failure with EACCES, but also when errno is ESTALE.
101997 2007-03-20  Bruno Haible  <bruno@clisp.org>
101999         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
102000         Needed on AIX 5.1. Reported by Matthew Woehlke.
102002 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102004         Suggestions by Bruno Haible:
102005         * lib/acl-internal.h: Include "gettext.h" rather than rolling
102006         our own.
102007         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
102008         * modules/acl (Depends-on): Add gettext.
102010 2007-03-19  Bruno Haible  <bruno@clisp.org>
102012         * modules/iconvme: Remove file.
102013         * lib/iconvme.h: Remove file.
102014         * lib/iconvme.c: Remove file.
102015         * m4/iconvme.m4: Remove file.
102017 2007-03-19  Bruno Haible  <bruno@clisp.org>
102019         * doc/relocatable-maint.texi: Break long shell script line.
102020         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102022 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102024         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
102025         handle file_has_acl.
102026         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
102027         * lib/acl.c: Move header inclusions and related macro defns into
102028         lib/acl-internal.h.
102029         (S_ISLNK): Remove defn, since that's now done for us.
102030         (file_has_acl): Move to lib/file-has-acl.c.
102031         Call acl_trivial if available.  This is the crucial part of the fix.
102032         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
102033         shared within the library.  Rewrite a bit, partly to make it compatible
102034         with the GNU coding style.
102035         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
102036         Remove unnecessary double-quotes.
102037         Don't test for acl_to_text; the build will catch that.
102038         Replace acl_entries if it doesn't exist and it is needed.
102039         Check for -lsec and acl_trivial (as used on Solaris 10).
102040         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
102041         lib/file-has-acl.c.
102042         (Depends-on): Add sys_stat, for S_ISLNK.
102044 2007-03-19  Ben Pfaff  <blp@gnu.org>
102046         * doc/gnulib.texi: Fix typos.
102047         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102049 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102051         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
102052         If size is zero here, buf must be zero.
102054 2007-03-19  Simon Josefsson  <simon@josefsson.org>
102056         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
102057         <bruno@clisp.org>.
102059 2007-03-18  Bruno Haible  <bruno@clisp.org>
102061         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
102062         Suggested by Eric Blake.
102064 2007-03-18  Ben Pfaff  <blp@gnu.org>
102066         * doc/relocatable.texi: Recommend using as prefix a directory
102067         that does not exist and will never be created.  Based on
102068         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
102069         and others.
102071 2007-03-17  Bruno Haible  <bruno@clisp.org>
102073         * lib/fchownat.c: Include lchown.h.
102075 2007-03-17  Bruno Haible  <bruno@clisp.org>
102077         Fix endless loop when the given allocated size was > INT_MAX.
102078         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
102079         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
102080         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
102081         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
102082         * lib/sprintf.c (sprintf): Likewise.
102084 2007-03-17  Bruno Haible  <bruno@clisp.org>
102086         * tests/test-argp-2.sh (func_compare): Output a context diff.
102088 2007-03-17  Bruno Haible  <bruno@clisp.org>
102090         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
102091         locale's decimal-point character.
102093 2007-03-17  Bruno Haible  <bruno@clisp.org>
102095         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
102096         before comparing it. Needed because on some platforms (e.g. x86) a
102097         'long double' occupies less bytes than sizeof (long double).
102099 2007-03-17  Bruno Haible  <bruno@clisp.org>
102101         * tests/test-crc.c (main): Make printf statements 64-bit clean.
102102         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
102103         * tests/test-getaddrinfo.c (simple): Likewise.
102104         * tests/test-read-file.c (main): Likewise.
102106 2007-03-17  Bruno Haible  <bruno@clisp.org>
102108         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
102110 2007-03-17  Bruno Haible  <bruno@clisp.org>
102112         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
102113         unused variable.
102115 2007-03-17  Bruno Haible  <bruno@clisp.org>
102117         * tests/test-c-strcasecmp.c: Include c-strcase.h.
102118         * tests/test-c-strncasecmp.c: Likewise.
102120 2007-03-17  Bruno Haible  <bruno@clisp.org>
102122         * modules/stdlib (Depends-on): Add unistd.
102123         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
102124         Needed for MacOS X 10.3.
102126 2007-03-17  Bruno Haible  <bruno@clisp.org>
102128         * lib/unistr/u-strdup.h: Include <stdlib.h>.
102130 2007-03-17  Bruno Haible  <bruno@clisp.org>
102132         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
102134 2007-03-17  Bruno Haible  <bruno@clisp.org>
102136         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
102137         to reflect files copied from gnulib (with or without modifications).
102138         Suggested by Jim Meyering.
102140 2007-03-17  Eric Blake  <ebb9@byu.net>
102142         * NEWS: Document stdlib change from 2007-02-18.
102144 2007-03-17  Jim Meyering  <jim@meyering.net>
102146         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
102147         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
102148         someone uses a name containing shell meta-characters.
102149         Reported by Alfred M. Szmidt.
102151         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
102153 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102155         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
102156         and copy gettext configuration files only if configure.ac contains
102157         a use of AM_GNU_GETTEXT_VERSION.
102159 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102161         * build-aux/bootstrap (gnulib_name): New variable.
102162         (gnulib_tool_options): Use it.
102164 2007-03-13  Simon Josefsson  <simon@josefsson.org>
102166         * tests/test-des.c: Use new namespace.
102168 2007-03-15  Bruno Haible  <bruno@clisp.org>
102170         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
102171         Reported by James Youngman <jay@gnu.org>.
102173 2007-03-15  Bruno Haible  <bruno@clisp.org>
102175         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
102176         declared prototype. Needed with cc on OSF/1 5.1.
102178 2007-03-15  Bruno Haible  <bruno@clisp.org>
102180         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
102181         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
102182         (struct gl_list_implementation): Add dispose_fn argument to the
102183         'create_empty', 'create' methods.
102184         (struct gl_list_impl_base): Add field 'dispose_fn'.
102185         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
102186         argument.
102187         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
102188         dispose_fn argument.
102189         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
102190         dispose_fn on the dropped values.
102191         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
102192         dispose_fn argument.
102193         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
102194         dropped values.
102195         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
102196         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102197         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
102198         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102199         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
102200         argument.
102201         (gl_tree_list_free): Call dispose_fn on the dropped values.
102202         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
102203         the dropped values.
102204         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
102205         Add dispose_fn argument.
102206         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
102207         Call dispose_fn on the dropped values.
102208         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
102209         Add dispose_fn argument.
102210         (gl_sublist_create): Initialize the 'dispose_fn' field.
102211         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
102212         * tests/test-array_list.c (main): Update.
102213         * tests/test-carray_list.c (main): Update.
102214         * tests/test-avltree_list.c (main): Update.
102215         * tests/test-rbtree_list.c (main): Update.
102216         * tests/test-avltreehash_list.c (main): Update.
102217         * tests/test-rbtreehash_list.c (main): Update.
102218         * tests/test-linked_list.c (main): Update.
102219         * tests/test-linkedhash_list.c (main): Update.
102220         * tests/test-array_oset.c (main): Update.
102222 2007-03-15  Bruno Haible  <bruno@clisp.org>
102224         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
102225         (gl_oset_create_empty): Add dispose_fn argument.
102226         (struct gl_oset_implementation): Add dispose_fn argument to
102227         'create_empty' method.
102228         (struct gl_oset_impl_base): Add dispose_fn field.
102229         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
102230         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
102231         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
102232         values.
102233         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
102234         (gl_tree_oset_free): Call dispose_fn on the dropped values.
102235         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102236         dropped value.
102237         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102238         dropped value.
102239         * tests/test-array_oset.c (main): Update.
102240         * tests/test-avltree_oset.c (main): Update.
102241         * tests/test-rbtree_oset.c (main): Update.
102242         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
102244 2007-03-13  Bruno Haible  <bruno@clisp.org>
102246         * tests/test-stdbool.c (i): Update after last patch.
102248 2007-03-12  Bruno Haible  <bruno@clisp.org>
102250         * lib/quotearg.c: Include <wctype.h> early, before the definition of
102251         the iswprint macro. Needed on Solaris 2.5.1.
102253 2007-03-12  Bruno Haible  <bruno@clisp.org>
102255         * tests/test-printf-frexp.c (main): Declare x as volatile.
102257 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102259         * doc/gnulib.texi (Build robot for gnulib): New section.
102261 2007-03-12  Jim Meyering  <jim@meyering.net>
102263         * build-aux/bootstrap: New file.
102264         * build-aux/bootstrap.conf: New file, from coreutils.
102266 2007-03-11  Bruno Haible  <bruno@clisp.org>
102268         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
102270 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102272         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
102273         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
102274         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
102276 2007-03-11  Bruno Haible  <bruno@clisp.org>
102278         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
102279         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
102281 2007-03-11  Bruno Haible  <bruno@clisp.org>
102283         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
102284         formula. Needed for SunPRO C 5.0.
102286 2007-03-11  Bruno Haible  <bruno@clisp.org>
102288         * modules/long-options (Depends-on): Add getopt.
102290 2007-03-11  Bruno Haible  <bruno@clisp.org>
102292         * modules/modechange (Depends-on): Add stdbool.
102294 2007-03-11  Bruno Haible  <bruno@clisp.org>
102296         * modules/i-ring (Depends-on): Add stdbool.
102298 2007-03-11  Bruno Haible  <bruno@clisp.org>
102300         * modules/gc-des (Depends-on): Add stdbool.
102302 2007-03-11  Bruno Haible  <bruno@clisp.org>
102304         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
102306 2007-03-11  Bruno Haible  <bruno@clisp.org>
102308         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
102310 2007-03-11  Bruno Haible  <bruno@clisp.org>
102312         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
102314 2007-03-11  Bruno Haible  <bruno@clisp.org>
102316         * lib/vasnprintf.c (sprintf): Undefine.
102318 2007-03-11  Bruno Haible  <bruno@clisp.org>
102320         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
102321         initializers in SunPRO C and Compaq C compilers.
102323 2007-03-11  Bruno Haible  <bruno@clisp.org>
102325         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
102326         decrementing code ANSI C compliant.
102328 2007-03-11  Bruno Haible  <bruno@clisp.org>
102330         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
102331         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
102333 2007-03-11  Bruno Haible  <bruno@clisp.org>
102335         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
102336         <stdbool.h> substitute doesn't pass.
102338 2007-03-11  Bruno Haible  <bruno@clisp.org>
102340         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
102342 2007-03-11  Bruno Haible  <bruno@clisp.org>
102344         * gnulib-tool (func_create_megatestdir): Create also an autobuild
102345         script, for submission to autobuild.josefsson.org.
102347 2007-03-10  Bruno Haible  <bruno@clisp.org>
102349         * modules/canonicalize-lgpl-tests: New file.
102350         * tests/test-canonicalize-lgpl.sh: New file.
102351         * tests/test-canonicalize-lgpl.c: New file.
102353         * modules/c-strcase-tests: New file.
102354         * tests/test-c-strcase.sh: New file.
102355         * tests/test-c-strcasecmp.c: New file.
102356         * tests/test-c-strncasecmp.c: New file.
102358         * modules/atexit-tests: New file.
102359         * tests/test-atexit.sh: New file.
102360         * tests/test-atexit.c: New file.
102362 2007-03-10  Bruno Haible  <bruno@clisp.org>
102364         * tests/test-binary-io.sh: Use temporary filenames that are not so
102365         likely to clash with those of other tests (in a parallel make).
102366         * tests/test-binary-io.c: Likewise.
102368 2007-03-10  Bruno Haible  <bruno@clisp.org>
102370         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
102371         fallback; use #error instead.
102372         Suggested by Simon Josefsson.
102374 2007-03-10  Bruno Haible  <bruno@clisp.org>
102376         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
102377         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
102378         first and the last.
102380 2007-03-10  Bruno Haible  <bruno@clisp.org>
102382         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
102384 2007-03-10  Bruno Haible  <bruno@clisp.org>
102386         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
102387         "make distcheck".
102388         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
102389         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
102390         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
102392 2007-03-10  Bruno Haible  <bruno@clisp.org>
102394         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
102395         variable.
102396         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
102397         variable.
102399 2007-03-09  Eric Blake  <ebb9@byu.net>
102400         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
102402         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
102403         types are not being provided by gnulib.
102404         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
102405         types are supported.
102407 2007-03-10  Bruno Haible  <bruno@clisp.org>
102409         * lib/stdio_.h (__attribute__): New macro.
102410         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
102411         vsprintf): Specify __attribute__ __format__ for GCC.
102412         Suggested by Eric Blake.
102414 2007-03-09  Bruno Haible  <bruno@clisp.org>
102416         * modules/printf-posix-tests: New file.
102417         * tests/test-printf-posix.sh: New file.
102418         * tests/test-printf-posix.c: New file.
102420         * modules/printf-posix: New file.
102421         * lib/printf.c: New file.
102422         * m4/printf-posix-rpl.m4: New file.
102423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
102424         REPLACE_PRINTF.
102425         * lib/stdio_.h (printf): New declaration.
102426         (format, __format__, ____printf____, ____scanf____, ____strftime____,
102427         ____strfmon____): New macros.
102428         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
102429         REPLACE_PRINTF.
102431 2007-03-09  Bruno Haible  <bruno@clisp.org>
102433         * tests/test-vasnprintf-posix2.sh: New file.
102434         * tests/test-vasnprintf-posix2.c: New file.
102435         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
102436         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
102437         (Makefile.am): Activate test-vasnprintf-posix2.sh.
102439         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
102440         a locale dependent decimal point, rather than always '.'.
102442 2007-03-09  Eric Blake  <ebb9@byu.net>
102444         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
102445         spite of platforms like Tandem/NSK that define it to -1.
102447 2007-03-08  Bruno Haible  <bruno@clisp.org>
102449         * modules/vprintf-posix-tests: New file.
102450         * tests/test-vprintf-posix.sh: New file.
102451         * tests/test-vprintf-posix.c: New file.
102452         * tests/test-printf-posix.h: New file.
102454         * modules/vprintf-posix: New file.
102455         * lib/vprintf.c: New file.
102456         * m4/vprintf-posix.m4: New file.
102457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
102458         REPLACE_VPRINTF.
102459         * lib/stdio_.h (vprintf): New declaration.
102460         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
102461         REPLACE_VPRINTF.
102463 2007-03-08  Bruno Haible  <bruno@clisp.org>
102465         * modules/fprintf-posix-tests: New file.
102466         * tests/test-fprintf-posix.sh: New file.
102467         * tests/test-fprintf-posix.c: New file.
102469         * modules/fprintf-posix: New file.
102470         * lib/fprintf.c: New file.
102471         * m4/fprintf-posix.m4: New file.
102472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
102473         REPLACE_FPRINTF.
102474         * lib/stdio_.h (fprintf): New declaration.
102475         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
102476         REPLACE_FPRINTF.
102478 2007-03-08  Bruno Haible  <bruno@clisp.org>
102480         * modules/vfprintf-posix-tests: New file.
102481         * tests/test-vfprintf-posix.sh: New file.
102482         * tests/test-vfprintf-posix.c: New file.
102483         * tests/test-fprintf-posix.h: New file.
102484         * tests/test-fprintf-posix.out: New file.
102486         * modules/vfprintf-posix: New file.
102487         * lib/vfprintf.c: New file.
102488         * m4/vfprintf-posix.m4: New file.
102489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
102490         REPLACE_VFPRINTF.
102491         * lib/stdio_.h (vfprintf): New declaration.
102492         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
102493         REPLACE_VFPRINTF.
102495 2007-03-08  Bruno Haible  <bruno@clisp.org>
102497         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
102499 2007-03-08  Bruno Haible  <bruno@clisp.org>
102501         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
102502         instead of 'expr' invocations.
102503         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102504         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102505         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102506         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102507         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102508         Suggested by Paul Eggert.
102510 2007-03-08  Bruno Haible  <bruno@clisp.org>
102512         * modules/fseterr-tests: New file.
102513         * tests/test-fseterr.c: New file.
102515         * modules/fseterr: New file.
102516         * lib/fseterr.h: New file.
102517         * lib/fseterr.c: New file.
102519 2007-03-08  Bruno Haible  <bruno@clisp.org>
102521         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
102522         * lib/getopt_.h: Likewise.
102523         * lib/mbswidth.h: Likewise.
102524         * lib/setenv.h: Likewise.
102525         * lib/vasnprintf.h: Likewise.
102526         * lib/vasprintf.h: Likewise.
102527         * lib/verror.h: Likewise.
102528         * lib/xsetenv.h: Likewise.
102529         * lib/xvasprintf.h: Likewise.
102531 2007-03-08  Jim Meyering  <jim@meyering.net>
102533         * users.txt: Add parted.
102535         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
102537 2007-03-07  Bruno Haible  <bruno@clisp.org>
102539         * m4/printf.m4: Make the shell script snippets copy&pastable.
102541 2007-03-02  Bruno Haible  <bruno@clisp.org>
102543         * lib/netinet_in_.h: New file.
102544         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
102545         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
102546         * modules/netinet_in (Files): Add lib/netinet_in_.h.
102547         (Depends-on): Add absolute-header.
102548         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
102549         into netinet/in.h.
102551 2007-03-03  Bruno Haible  <bruno@clisp.org>
102553         * lib/sys_select_.h: New file.
102554         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
102555         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
102556         * modules/sys_select (Files): Add lib/sys_select_.h.
102557         (Depends-on): Add absolute-header.
102558         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
102559         into sys/select.h.
102561 2007-03-02  Bruno Haible  <bruno@clisp.org>
102563         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
102564         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
102565         values.
102566         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
102567         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
102568         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
102569         * modules/sys_socket (Depends-on): Add absolute-header.
102570         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
102571         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
102572         (Include): Remove requirement of inclusion of <sys/types.h>.
102574 2007-03-02  Bruno Haible  <bruno@clisp.org>
102576         * lib/byteswap_.h (bswap_32): Fix formula.
102578 2007-03-06  Bruno Haible  <bruno@clisp.org>
102580         * modules/sprintf-posix-tests: New file.
102581         * tests/test-sprintf-posix.c: New file.
102583         * modules/sprintf-posix: New file.
102584         * lib/sprintf.c: New file.
102585         * m4/sprintf-posix.m4: New file.
102586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
102587         REPLACE_SPRINTF.
102588         * lib/stdio_.h (sprintf): New declaration.
102589         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
102590         REPLACE_SPRINTF.
102592 2007-03-06  Bruno Haible  <bruno@clisp.org>
102594         * modules/vsprintf-posix-tests: New file.
102595         * tests/test-vsprintf-posix.c: New file.
102596         * tests/test-sprintf-posix.h: New file.
102598         * modules/vsprintf-posix: New file.
102599         * lib/vsprintf.c: New file.
102600         * m4/vsprintf-posix.m4: New file.
102601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
102602         REPLACE_VSPRINTF.
102603         * lib/stdio_.h (vsprintf): New declaration.
102604         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
102605         REPLACE_VSPRINTF.
102607 2007-03-06  Bruno Haible  <bruno@clisp.org>
102609         * modules/vsnprintf (Depend-on): Remove minmax.
102611 2007-03-06  Bruno Haible  <bruno@clisp.org>
102613         * modules/snprintf-posix-tests: New file.
102614         * tests/test-snprintf-posix.c: New file.
102616         * modules/snprintf-posix: New file.
102617         * m4/snprintf-posix.m4: New file.
102618         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
102619         gl_FUNC_SNPRINTF.
102620         (gl_FUNC_SNPRINTF): Invoke it.
102621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
102622         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
102623         is set.
102624         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
102626 2007-03-06  Bruno Haible  <bruno@clisp.org>
102628         * modules/vsnprintf-posix-tests: New file.
102629         * tests/test-vsnprintf-posix.c: New file.
102630         * tests/test-snprintf-posix.h: New file.
102632         * modules/vsnprintf-posix: New file.
102633         * m4/vsnprintf-posix.m4: New file.
102634         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
102635         gl_FUNC_VSNPRINTF.
102636         (gl_FUNC_VSNPRINTF): Invoke it.
102637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
102638         * lib/stdio_.h (vsnprintf): Define as a replacement if
102639         REPLACE_VSNPRINTF is set.
102640         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
102642 2007-03-06  Bruno Haible  <bruno@clisp.org>
102644         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
102645         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
102647 2007-03-06  Bruno Haible  <bruno@clisp.org>
102649         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
102650         (asinl): Declare also if HAVE_DECL_ASINL is set.
102651         (atanl): Declare also if HAVE_DECL_ATANL is set.
102652         (ceill): Declare also if HAVE_DECL_CEILL is set.
102653         (cosl): Declare also if HAVE_DECL_COSL is set.
102654         (expl): Declare also if HAVE_DECL_EXPL is set.
102655         (floorl): Declare also if HAVE_DECL_FLOORL is set.
102656         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
102657         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
102658         (logl): Declare also if HAVE_DECL_LOGL is set.
102659         (sinl): Declare also if HAVE_DECL_SINL is set.
102660         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
102661         (tanl): Declare also if HAVE_DECL_TANL is set.
102662         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
102663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
102664         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
102665         declaration of frexpl, ldexpl.
102666         * modules/printf-frexpl (Depends-on): Add math.
102667         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
102669 2007-03-05  Bruno Haible  <bruno@clisp.org>
102671         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
102672         frexpl and ldexpl are declared.
102673         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
102675 2007-03-05  Bruno Haible  <bruno@clisp.org>
102677         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
102678         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
102680 2007-03-05  Bruno Haible  <bruno@clisp.org>
102682         * lib/stdio_.h: Include <stddef.h>.
102684 2007-03-05  Bruno Haible  <bruno@clisp.org>
102686         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
102688 2007-03-05  Bruno Haible  <bruno@clisp.org>
102690         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
102691         NetBSD 4, from Ralf Wildenhues.
102693 2007-03-04  Bruno Haible  <bruno@clisp.org>
102695         * lib/vasprintf.h: Update #if logic for the case when the functions
102696         exist but are overridden.
102698 2007-03-04  Bruno Haible  <bruno@clisp.org>
102700         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
102701         implementations: glibc-2.4 and MacOS X 10.3.
102702         * tests/test-vasnprintf-posix.c (test_function): Test also the case
102703         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
102704         * tests/test-vasprintf-posix.c (test_function): Likewise.
102706 2007-03-04  Bruno Haible  <bruno@clisp.org>
102708         * modules/vasprintf-posix-tests: New file.
102709         * tests/test-vasprintf-posix.c: New file.
102711         * modules/vasprintf-posix: New file.
102712         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
102713         defined.
102714         * m4/vasprintf-posix.m4: New file.
102715         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
102716         gl_FUNC_VASPRINTF.
102717         (gl_FUNC_VASPRINTF): Invoke it.
102718         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
102719         here.
102720         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
102722 2007-03-04  Bruno Haible  <bruno@clisp.org>
102724         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
102725         REPLACE_GETTIMEOFDAY.
102726         * modules/sys_time (Makefile.am): Likewise.
102727         * m4/sys_time_h.m4: Likewise.
102728         * m4/gettimeofday.m4: Likewise.
102730 2007-03-04  Bruno Haible  <bruno@clisp.org>
102732         * modules/vasnprintf-posix-tests: New file.
102733         * tests/test-vasnprintf-posix.c: New file.
102735         * modules/vasnprintf-posix: New file.
102736         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
102737         printf-frexpl.h.
102738         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
102739         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
102740         REPLACE_VASNPRINTF is defined.
102741         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
102742         gl_FUNC_VASNPRINTF.
102743         (gl_FUNC_VASNPRINTF): Invoke it.
102744         * m4/vasnprintf-posix.m4: New file.
102745         * m4/printf.m4: New file.
102747 2007-03-04  Bruno Haible  <bruno@clisp.org>
102749         Compile progreloc.c only if --enable-relocatable is specified.
102750         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
102751         if --enable-relocatable was specified.
102752         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
102753         lib_SOURCES.
102755 2007-03-04  Jim Meyering  <jim@meyering.net>
102757         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
102758         Use it consistently, rather than enumerating errno constants.
102760 2007-03-04  Bruno Haible  <bruno@clisp.org>
102762         * modules/xvasprintf-tests: New file.
102763         * tests/test-xvasprintf.c: New file.
102765         * modules/vasprintf-tests: New file.
102766         * tests/test-vasprintf.c: New file.
102768         * modules/vasnprintf-tests: New file.
102769         * tests/test-vasnprintf.c: New file.
102771         * modules/vsnprintf-tests: New file.
102772         * tests/test-vsnprintf.c: New file.
102774         * modules/snprintf-tests: New file.
102775         * tests/test-snprintf.c: New file.
102777 2007-03-04  Bruno Haible  <bruno@clisp.org>
102779         Compile relocatable.c only if --enable-relocatable is specified.
102780         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
102781         gl_RELOCATABLE_LIBRARY.
102782         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
102783         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
102784         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
102785         gl_RELOCATABLE_LIBRARY.
102786         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
102787         (Makefile.am): Remove lib_SOURCES.
102788         * modules/relocatable-lib-lgpl (configure.ac): Invoke
102789         gl_RELOCATABLE_LIBRARY.
102790         (Makefile.am): Remove lib_SOURCES.
102791         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
102792         always.
102793         * modules/relocatable-prog-wrapper (configure.ac): Invoke
102794         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
102796 2007-03-04  Bruno Haible  <bruno@clisp.org>
102798         * modules/argmatch-tests: New file.
102799         * tests/test-argmatch.c: New file.
102801         * tests/test-allocsa.c (main): Halve the number of loop runs.
102803         * modules/alloca-opt-tests: New file.
102804         * tests/test-alloca-opt.c: New file.
102806 2007-03-04  Jim Meyering  <jim@meyering.net>
102808         Work around difference between Linux ACLs and Solaris 10 ZFS.
102809         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
102810         for EINVAL.
102812 2007-03-03  Bruno Haible  <bruno@clisp.org>
102814         * modules/relocatable-prog (Depends-on): Add back progreloc's
102815         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
102817 2007-03-03  Bruno Haible  <bruno@clisp.org>
102819         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
102820         * modules/relocatable-lib: New file.
102822 2007-03-03  Bruno Haible  <bruno@clisp.org>
102824         * modules/relocatable-prog: Renamed from modules/relocatable.
102825         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
102827 2007-03-03  Bruno Haible  <bruno@clisp.org>
102829         * modules/relocatable-script (Files): Add doc/relocatable.texi,
102830         m4/relocatable-lib.m4.
102831         (Depends-on): Remove 'relocatable'.
102832         (configure.ac): Add gl_RELOCATABLE_NOP.
102834 2007-03-03  Bruno Haible  <bruno@clisp.org>
102836         * modules/relocatable-prog-wrapper: New file.
102837         * modules/relocatable (Depends-on): Add it. Remove all other
102838         dependencies except progname.
102839         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
102841         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
102842         (gl_FUNC_STRERROR): Nop.
102843         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
102845         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
102846         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
102848         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
102849         (gl_FUNC_READLINK): Update.
102851         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
102853 2007-03-03  Bruno Haible  <bruno@clisp.org>
102855         * lib/xreadlink.c: Include <unistd.h> unconditionally.
102856         * modules/xreadlink (Depends-on): Add unistd.
102857         * modules/xreadlink-with-size (Depends-on): Likewise.
102859 2007-03-03  Bruno Haible  <bruno@clisp.org>
102861         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
102862         extracted from gt_FUNC_SETENV.
102863         (gt_FUNC_SETENV): Remove macro.
102864         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
102865         remove gt_FUNC_SETENV.
102867 2007-03-03  Bruno Haible  <bruno@clisp.org>
102869         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
102870         ENABLE_RELOCATABLE here.
102871         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
102873 2007-03-03  Bruno Haible  <bruno@clisp.org>
102875         * modules/rbtreehash-list-tests (Depends-on): Add progname.
102876         * tests/test-rbtreehash_list.c: Include progname.h.
102877         (main): Call set_program_name.
102879         * modules/rbtree-oset-tests (Depends-on): Add progname.
102880         * tests/test-rbtree_oset.c: Include progname.h.
102881         (main): Call set_program_name.
102883         * modules/rbtree-list-tests (Depends-on): Add progname.
102884         * tests/test-rbtree_list.c: Include progname.h.
102885         (main): Call set_program_name.
102887         * modules/linked-list-tests (Depends-on): Add progname.
102888         * tests/test-linked_list.c: Include progname.h.
102889         (main): Call set_program_name.
102891 2007-03-03  Bruno Haible  <bruno@clisp.org>
102893         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
102894         All uses of __restrict changed to _Restrict_.
102895         * lib/glob_.h (__restrict): Remove macro.
102897 2007-03-02  Bruno Haible  <bruno@clisp.org>
102899         * modules/gettext (configure.ac): Require gettext infrastructure
102900         from version 0.16.1.
102902 2007-03-02  Bruno Haible  <bruno@clisp.org>
102904         * modules/linkedhash-list-tests (Depends-on): Add progname.
102905         * tests/test-linkedhash_list.c: Include progname.h.
102906         (main): Call set_program_name.
102908         * modules/carray-list-tests (Depends-on): Add progname.
102909         * tests/test-carray_list.c: Include progname.h.
102910         (main): Call set_program_name.
102912         * modules/avltreehash-list-tests (Depends-on): Add progname.
102913         * tests/test-avltreehash_list.c: Include progname.h.
102914         (main): Call set_program_name.
102916         * modules/avltree-oset-tests (Depends-on): Add progname.
102917         * tests/test-avltree_oset.c: Include progname.h.
102918         (main): Call set_program_name.
102920         * modules/avltree-list-tests (Depends-on): Add progname.
102921         * tests/test-avltree_list.c: Include progname.h.
102922         (main): Call set_program_name.
102924         * modules/array-oset-tests (Depends-on): Add progname.
102925         * tests/test-array_oset.c: Include progname.h.
102926         (main): Call set_program_name.
102928         * modules/array-list-tests (Depends-on): Add progname.
102929         * tests/test-array_list.c: Include progname.h.
102930         (main): Call set_program_name.
102932         * modules/argp-tests (Depends-on): Add progname.
102933         * tests/test-argp.c: Include argp.h first. Include progname.h.
102934         (main): Call set_program_name.
102936 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
102938         * doc/gnulib-tool.texi (Initial import): Reword description of
102939         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
102940         limited effect even if defined after the first system include.
102942 2007-03-01  Bruno Haible  <bruno@clisp.org>
102944         * build-aux/config.libpath: Update to libtool-1.5.22.
102945         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
102947 2007-03-01  Bruno Haible  <bruno@clisp.org>
102949         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
102950         foo_CFLAGS.
102951         Reported by Ralf Wildenhues.
102953 2007-03-01  Bruno Haible  <bruno@clisp.org>
102955         * build-aux/install-reloc: Remove object files left over by some
102956         compilers.
102957         Reported by Ralf Wildenhues.
102959 2007-03-01  Bruno Haible  <bruno@clisp.org>
102961         * build-aux/install-reloc: Break long lines.
102963 2007-03-01  Bruno Haible  <bruno@clisp.org>
102965         * doc/relocatable.texi: Document that it may not work on OpenBSD.
102966         Reported by Ralf Wildenhues.
102968 2007-03-01  Bruno Haible  <bruno@clisp.org>
102970         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
102971         include ordering constraints.
102973 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
102975         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
102976         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
102977         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
102978         as another example.
102979         * lib/time_.h: Fix misspelling.
102980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
102981         Require gl_HEADER_TIME_H_DEFAULTS.
102982         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
102983         * m4/time_r.m4 (gl_TIME_R): Likewise.
102984         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
102986 2007-03-01  Bruno Haible  <bruno@clisp.org>
102988         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
102989         * m4/utimens.m4 (gl_UTIMENS): Likewise.
102991 2007-03-01  Jim Meyering  <jim@meyering.net>
102993         * modules/xreadlink (Maintainer): Add my name.
102994         * modules/xreadlink-with-size (Depends-on): Alphabetize.
102996 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
102997             Bruno Haible  <bruno@clisp.org>
102999         * build-aux/install-reloc: Compile also c-ctype.c.
103000         * build-aux/relocatable.sh.in: New file.
103001         * doc/relocatable.texi: New file.
103002         * doc/relocatable-maint.texi: New file.
103003         * doc/gnulib.texi: Include relocatable-maint.texi.
103004         * lib/progreloc.c: Include unistd.h unconditionally.
103005         * lib/relocwrapper.c: Include unistd.h unconditionally.
103006         Include c-ctype.h.
103007         (add_dotbin): Use c_tolower.
103008         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
103009         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
103010         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
103011         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
103012         to m4/relocatable-lib.m4.
103013         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
103014         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
103015         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
103016         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
103017         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
103018         * modules/relocatable: New file.
103019         * modules/relocatable-lib: New file.
103020         * modules/relocatable-script: New file.
103022 2007-02-28  Bruno Haible  <bruno@clisp.org>
103024         Import --enable-relocatable infrastructure.
103025         * build-aux/config.libpath: New file, from GNU gettext.
103026         * build-aux/install-reloc: New file, from GNU gettext.
103027         * build-aux/reloc-ldflags: New file, from GNU gettext.
103028         * lib/relocatable.h: New file, from GNU gettext.
103029         * lib/relocatable.c: New file, from GNU gettext.
103030         * lib/relocwrapper.c: New file, from GNU gettext.
103031         * m4/relocatable.m4: New file, from GNU gettext.
103033 2007-02-28  Bruno Haible  <bruno@clisp.org>
103035         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
103037         * modules/xreadlink: New file, from GNU gettext with modifications.
103038         * lib/xreadlink.c: New file, from GNU gettext.
103039         * lib/xreadlink.h: Add comments.
103040         (xreadlink): New declaration.
103042         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
103043         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
103044         lib/xreadlink-with-size.c.
103045         (configure.ac): Remove gl_XREADLINK invocation.
103046         (Makefile.am): Augment lib_SOURCES.
103047         * m4/xreadlink.m4: Remove file.
103048         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
103049         (xreadlink_with_size): Renamed from xreadink.
103050         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
103051         * modules/canonicalize (Depends-on): Replace xreadlink with
103052         xreadlink-with-size.
103053         * lib/canonicalize.c (canonicalize_filename_mode): Update.
103055 2007-02-25  Jim Meyering  <jim@meyering.net>
103057         * build-aux/announce-gen: When complaining about excess arguments,
103058         list them.
103060 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
103062         * README: Document signed integer overflow situation more
103063         accurately.
103065 2007-02-25  Bruno Haible  <bruno@clisp.org>
103067         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
103068         'a' or 'A' conversion.
103070 2007-02-25  Bruno Haible  <bruno@clisp.org>
103072         * modules/filename: Renamed from modules/pathname.
103073         (Files): Replace lib/pathname.h with lib/filename.h. Replace
103074         lib/concatpath.c with lib/concat-filename.c.
103075         (Makefile.am): Update.
103076         (Include): Replace pathname.h with filename.h.
103077         * lib/filename.h: Renamed from lib/pathname.h.
103078         (concatenated_filename): Renamed from concatenated_pathname.
103079         * lib/concat-filename.c: Renamed from lib/concatpath.c.
103080         (concatenated_filename): Renamed from concatenated_pathname.
103081         * lib/findprog.c: Include filename.h instead of pathname.h.
103082         (find_in_path): Update.
103083         * lib/javacomp.c: Include filename.h instead of pathname.h.
103084         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
103085         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
103086         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
103087         is_oldgcj_14_13_usable, is_javac_usable): Update.
103088         * lib/javaexec.c: Include filename.h instead of pathname.h.
103089         (execute_java_class): Update.
103090         * modules/findprog: Update.
103091         * modules/javacomp: Update.
103092         * modules/javaexec: Update.
103093         * MODULES.html.sh (File system functions): Add 'filename', remove
103094         'pathname'.
103096 2007-02-25  Bruno Haible  <bruno@clisp.org>
103098         * modules/printf-frexpl-tests: New file.
103099         * tests/test-printf-frexpl.c: New file.
103101         * modules/printf-frexpl: New file.
103102         * lib/printf-frexpl.h: New file.
103103         * lib/printf-frexpl.c: New file.
103104         * m4/printf-frexpl.m4: New file.
103106 2007-02-25  Bruno Haible  <bruno@clisp.org>
103108         * modules/printf-frexp-tests: New file.
103109         * tests/test-printf-frexp.c: New file.
103111         * modules/printf-frexp: New file.
103112         * lib/printf-frexp.h: New file.
103113         * lib/printf-frexp.c: New file.
103114         * m4/printf-frexp.m4: New file.
103116 2007-02-25  Bruno Haible  <bruno@clisp.org>
103118         Assume automake >= 1.10 for the tests.
103119         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
103120         * modules/arctwo-tests: Likewise.
103121         * modules/argp-tests: Likewise.
103122         * modules/avltree-list-tests: Likewise.
103123         * modules/avltree-oset-tests: Likewise.
103124         * modules/avltreehash-list-tests: Likewise.
103125         * modules/carray-list-tests: Likewise.
103126         * modules/crc-tests: Likewise.
103127         * modules/des-tests: Likewise.
103128         * modules/gc-arcfour-tests: Likewise.
103129         * modules/gc-arctwo-tests: Likewise.
103130         * modules/gc-des-tests: Likewise.
103131         * modules/gc-hmac-md5-tests: Likewise.
103132         * modules/gc-hmac-sha1-tests: Likewise.
103133         * modules/gc-md2-tests: Likewise.
103134         * modules/gc-md4-tests: Likewise.
103135         * modules/gc-md5-tests: Likewise.
103136         * modules/gc-pbkdf2-sha1-tests: Likewise.
103137         * modules/gc-rijndael-tests: Likewise.
103138         * modules/gc-sha1-tests: Likewise.
103139         * modules/gc-tests: Likewise.
103140         * modules/getaddrinfo-tests: Likewise.
103141         * modules/hmac-md5-tests: Likewise.
103142         * modules/hmac-sha1-tests: Likewise.
103143         * modules/linked-list-tests: Likewise.
103144         * modules/linkedhash-list-tests: Likewise.
103145         * modules/lock-tests: Likewise.
103146         * modules/md2-tests: Likewise.
103147         * modules/md4-tests: Likewise.
103148         * modules/md5-tests: Likewise.
103149         * modules/rbtree-list-tests: Likewise.
103150         * modules/rbtree-oset-tests: Likewise.
103151         * modules/rbtreehash-list-tests: Likewise.
103152         * modules/read-file-tests: Likewise.
103153         * modules/rijndael-tests: Likewise.
103154         * modules/stdint-tests: Likewise.
103155         * modules/tls-tests: Likewise.
103157 2007-02-24  Bruno Haible  <bruno@clisp.org>
103159         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
103160         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
103161         function; instead check whether isnan with a double argument links.
103162         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
103163         function; instead check whether isnan with a 'long double' argument
103164         links.
103165         Reported by Eric Blake <ebb9@byu.net>.
103167 2007-02-24  Bruno Haible  <bruno@clisp.org>
103169         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
103170         defined.
103171         * lib/isnanl.c: Remove all code. Just include isnan.c.
103172         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
103174 2007-02-25  Jim Meyering  <jim@meyering.net>
103176         Avoid conflicting types for 'unsetenv' on FreeBSD.
103177         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
103178         conflicting with FreeBSD's (5.0 and 6.1) function declaration
103179         in stdlib.h.
103181 2007-02-24  Bruno Haible  <bruno@clisp.org>
103183         * modules/isnanl-nolibm-tests: New file.
103184         * tests/test-isnanl.c: New file.
103186         * modules/isnanl-nolibm: New file.
103187         * lib/isnanl.h: New file.
103188         * lib/isnanl.c: New file.
103189         * m4/isnanl.m4: New file.
103191 2007-02-24  Bruno Haible  <bruno@clisp.org>
103193         * modules/isnan-nolibm-tests: New file.
103194         * tests/test-isnan.c: New file.
103196         * modules/isnan-nolibm: New file.
103197         * lib/isnan.h: New file.
103198         * lib/isnan.c: New file.
103199         * m4/isnan.m4: New file.
103201 2007-02-24  Bruno Haible  <bruno@clisp.org>
103203         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
103204         assume that an exponent fits in 20 bits.
103206 2007-02-24  Jim Meyering  <jim@meyering.net>
103208         * m4/regex.m4: Update the description of the configure-time option,
103209         --without-included-regex, to state accurately what the defaults are,
103210         and perhaps to give people an idea why using this option is risky.
103212 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
103214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
103215         loops on small arguments.  This attempts to avoid the problem
103216         Bruno Haible reported for AIX 4.3.2 in
103217         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
103219 2007-02-23  Bruno Haible  <bruno@clisp.org>
103221         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
103222         Needed for help2man.
103224 2007-02-23  Karl Berry  <karl@gnu.org>
103226         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
103227         exists, foo.h should be cvs-ignored, not committed.
103229 2007-02-23  Eric Blake  <ebb9@byu.net>
103231         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
103232         * lib/stat-time.h (includes): Likewise.
103233         * lib/utimecmp.c (includes): Likewise.
103234         * lib/utimens.h (includes): Likewise.
103235         * lib/getdate.y (includes): Also include "timespec.h" for use
103236         internal to the module.
103237         * modules/utimens (Depends-on): Revert yesterday's patch.
103238         * modules/nanosleep (Depends-on): Add missing dependency.
103240 2007-02-22  Bruno Haible  <bruno@clisp.org>
103242         * lib/glob.c: Don't include getlogin_r.h.
103244 2007-02-22  Jim Meyering  <jim@meyering.net>
103246         * modules/utimens (Depends-on): Add timespec, required for
103247         utimens.h's inclusion of timespec.h.
103249 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
103251         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
103252         long unreadable paths in GNU/Linux.  Problem reported by Andreas
103253         Schwab in
103254         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
103255         I'll try to think of a better way to fix the Solaris problem.
103257         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
103258         like glibc; on Solaris 10, it fails with errno == EINVAL.
103259         POSIX says the behavior is unspecified if the first argument is NULL,
103260         so play it safe and never pass NULL to the system getcwd.
103262 2007-02-21  Jim Meyering  <jim@meyering.net>
103264         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
103265         of gettimeofday.  It would conflict with the one now always
103266         provided via sys_time_.h.  Reported by Matthew Woehlke, as
103267         an IRIX 6.5 build failure.
103269 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
103271         Minor fixups to port to Solaris 10 with Sun C 5.8.
103272         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
103273         * modules/getcwd (Depends-on): Add dirfd.
103274         * lib/putenv.c (putenv): #undef it.
103275         (rpl_putenv): New decl.
103276         (malloc, free): Include <stdlib.h> rather than prototyping separately.
103278 2007-02-20  Bruno Haible  <bruno@clisp.org>
103280         * modules/stdio-tests: New file.
103281         * tests/test-stdio.c: New file.
103283         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
103284         (Depends-on): Add stdio.
103285         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103286         (Include): Use <stdio.h> instead of vsnprintf.h.
103287         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103288         HAVE_DECL_VSNPRINTF.
103289         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
103291         * modules/snprintf (Files): Remove lib/snprintf.h.
103292         (Depends-on): Add stdio.
103293         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103294         (Include): Use <stdio.h> instead of snprintf.h.
103295         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103296         HAVE_DECL_SNPRINTF.
103297         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
103298         * lib/getaddrinfo.c: Likewise.
103300         * modules/stdio: New file.
103301         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
103302         * lib/snprintf.h: Remove file.
103303         * lib/vsnprintf.h: Remove file.
103304         * lib/.cppi-disable: Remove snprintf.h.
103305         * m4/stdio_h.m4: New file.
103306         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
103308 2007-02-20  Jim Meyering  <jim@meyering.net>
103310         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
103311         used by e.g., mingw.  From Bruno Haible.
103313 2007-02-19  Bruno Haible  <bruno@clisp.org>
103315         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
103316         warnings.
103317         Reported by Ben Pfaff <blp@cs.stanford.edu>.
103319 2007-02-19  Bruno Haible  <bruno@clisp.org>
103321         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
103322         from mingw users.
103324 2007-02-19  Bruno Haible  <bruno@clisp.org>
103326         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
103327         warnings.
103328         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
103330 2007-02-19  Jim Meyering  <jim@meyering.net>
103332         Don't use FD after a successful "fdopendir (fd)".
103333         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
103334         Reset it by calling dirfd on the just-obtained DIR*.
103336         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
103337         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
103339 2007-02-18  Bruno Haible  <bruno@clisp.org>
103341         * lib/readlink.c: Include <unistd.h>.
103342         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
103343         HAVE_READLINK.
103344         * modules/readlink (Depends-on): Add unistd.
103345         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103346         (Include): Add <unistd.h>.
103348         * lib/getlogin_r.h: Remove file.
103349         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
103350         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
103351         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
103352         HAVE_DECL_GETLOGIN_R.
103353         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
103354         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103355         (Include): Use <unistd.h> instead of getlogin_r.h.
103357         * lib/getcwd.h: Remove file.
103358         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
103359         * lib/xgetcwd.c: Likewise.
103360         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
103361         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
103362         * modules/getcwd (Files): Remove lib/getcwd.h.
103363         (Depends-on): Add unistd.
103364         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103365         (Include): Use <unistd.h> instad of getcwd.h.
103367         * lib/ftruncate.c: Include <unistd.h> first.
103368         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
103369         Set HAVE_FTRUNCATE.
103370         * modules/ftruncate (Depends-on): Add unistd.
103371         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103373         * lib/fchdir.c: Include <unistd.h> first.
103374         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
103375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
103376         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
103377         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103378         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
103380         * lib/dup2.c: Include <unistd.h> first.
103381         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
103382         HAVE_DUP2.
103383         * modules/dup2 (Depends-on): Add unistd.
103384         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103386         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
103387         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
103388         REPLACE_CHOWN. Don't define chown as a macro here.
103389         * modules/chown (Depends-on): Add unistd.
103390         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103392         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
103393         Add definition for GL_LINK_WARNING.
103394         (chown, dup2): New declarations.
103395         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
103396         link warning.
103397         (ftruncate): New declaration.
103398         (getcwd): New declaration, taken from old getcwd.h.
103399         (getlogin_r): New declaration, taken from old getlogin_r.h.
103400         (readlink): New declaration.
103401         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
103402         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
103403         (gl_PREREQ_UNISTD): Remove macro.
103404         (gl_UNISTD_MODULE_INDICATOR): New macro.
103405         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
103406         many new variables. Don't set UNISTD_H.
103407         * modules/unistd (Description): Change.
103408         (Depends-on): Add link-warning.
103409         (configure.ac): Update.
103410         (Makefile.am): Create unistd.h always. Substitute many new variables
103411         into it.
103413 2007-02-18  Bruno Haible  <bruno@clisp.org>
103415         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
103416         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
103417         HAVE_GETSUBOPT.
103418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
103419         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
103420         * lib/getsubopt.h: Remove file.
103421         * modules/getsubopt (Files): Remove lib/getsubopt.h.
103422         (Depends-on): Add stdlib.
103423         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103424         (Includes): Use <stdlib.h> instead of getsubopt.h.
103425         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
103426         Set HAVE_GETSUBOPT.
103427         * lib/getsubopt.c: Don't include getsubopt.h.
103429 2007-02-18  Bruno Haible  <bruno@clisp.org>
103431         * modules/fchdir (Depends-on): Add dup2.
103433 2007-02-18  Bruno Haible  <bruno@clisp.org>
103435         * lib/stdlib_.h: Handle glibc's special invocation convention
103436         specially.
103438 2007-02-18  Bruno Haible  <bruno@clisp.org>
103440         * modules/stdlib-tests: New file.
103441         * tests/test-stdlib.c: New file.
103443         * modules/mkstemp (Files): Remove lib/mkstemp.h.
103444         (Depends-on): Add stdlib.
103445         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103446         (Includes): Use <stdlib.h> instead of mkstemp.h.
103447         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103448         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
103449         * lib/mkstemp.c: Don't include mkstemp.h.
103450         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
103451         * lib/stdlib--.h: Don't include mkstemp.h.
103453         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
103454         (Depends-on): Add stdlib.
103455         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103456         (Includes): Use <stdlib.h> instead of mkdtemp.h.
103457         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103458         HAVE_MKDTEMP.
103459         * lib/mkdtemp.c: Don't include mkdtemp.h.
103460         * lib/clean-temp.c: Don't include mkdtemp.h.
103462         * modules/exit (Files): Remove lib/exit.h.
103463         (Depends-on): Add stdlib.
103464         (Makefile.am): Remove lib_SOURCES.
103465         (Include): Use <stdlib.h> instead of exit.h.
103466         * lib/argmatch.c: Don't include exit.h.
103467         * lib/execute.c: Likewise.
103468         * lib/pagealign_alloc.c: Likewise.
103469         * lib/pipe.c: Likewise.
103470         * lib/wait-process.c: Likewise.
103471         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
103472         * lib/exitfail.c: Likewise.
103473         * lib/savewd.c: Likewise.
103474         * lib/xsetenv.c: Likewise.
103476         * modules/stdlib: New file.
103477         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
103478         and extra comments about mkstemp().
103479         * lib/exit.h: Remove file.
103480         * lib/mkdtemp.h: Remove file.
103481         * lib/mkstemp.h: Remove file.
103482         * m4/stdlib_h.m4: New file.
103483         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
103485 2007-02-18  Bruno Haible  <bruno@clisp.org>
103487         * modules/math-tests: New file.
103488         * tests/test-math.c: New file.
103490         * modules/math: New file.
103491         * modules/mathl (Files): Remove lib/mathl.h.
103492         (Depends-on): Add math.
103493         (Makefile.am): Don't mention mathl.h.
103494         (Include): Use <math.h> instead of mathl.h.
103495         * lib/math_.h: New file.
103496         * lib/mathl.h: Remove file.
103497         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
103498         mathl.h.
103499         * lib/asinl.c: Likewise.
103500         * lib/atanl.c: Likewise.
103501         * lib/ceill.c: Likewise.
103502         * lib/cosl.c: Likewise.
103503         * lib/expl.c: Likewise.
103504         * lib/floorl.c: Likewise.
103505         * lib/frexpl.c: Likewise.
103506         * lib/ldexpl.c: Likewise.
103507         * lib/logl.c: Likewise.
103508         * lib/sincosl.c: Likewise.
103509         * lib/sinl.c: Likewise.
103510         * lib/sqrtl.c: Likewise.
103511         * lib/tanl.c: Likewise.
103512         * lib/trigl.c: Likewise.
103513         * m4/math_h.m4: New file.
103514         * MODULES.html.sh (Mathematics): Add math.
103516 2007-02-17  Bruno Haible  <bruno@clisp.org>
103518         * modules/wctype-tests: New file.
103519         * tests/test-wctype.c: New file.
103521         * modules/wchar-tests: New file.
103522         * tests/test-wchar.c: New file.
103524         * modules/unistd-tests: New file.
103525         * tests/test-unistd.c: New file.
103527         * modules/time-tests: New file.
103528         * tests/test-time.c: New file.
103530         * modules/sysexits-tests: New file.
103531         * tests/test-sysexits.c: New file.
103533         * modules/sys_time-tests: New file.
103534         * tests/test-sys_time.c: New file.
103536         * modules/sys_stat-tests: New file.
103537         * tests/test-sys_stat.c: New file.
103539         * modules/sys_socket-tests: New file.
103540         * tests/test-sys_socket.c: New file.
103542         * modules/sys_select-tests: New file.
103543         * tests/test-sys_select.c: New file.
103545         * modules/string-tests: New file.
103546         * tests/test-string.c: New file.
103548         * modules/stdbool-tests: New file.
103549         * tests/test-stdbool.c: New file.
103551         * modules/netinet_in-tests: New file.
103552         * tests/test-netinet_in.c: New file.
103554         * modules/inttypes-tests: New file.
103555         * tests/test-inttypes.c: New file.
103557         * modules/fcntl-tests: New file.
103558         * tests/test-fcntl.c: New file.
103560         * modules/byteswap-tests: New file.
103561         * tests/test-byteswap.c: New file.
103563         * modules/arpa_inet-tests: New file.
103564         * tests/test-arpa_inet.c: New file.
103566 2007-02-17  Bruno Haible  <bruno@clisp.org>
103568         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
103569         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
103570         if the corresponding module is not enabled. Emit link warnings if
103571         the function is used nevertheless.
103572         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
103573         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
103574         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
103575         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
103576         * modules/inttypes (Depends-on): Add link-warning.
103577         (Makefile.am): Copy the contents of build-aux/link-warning.h into
103578         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
103579         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
103580         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
103581         * modules/imaxdiv (configure.ac): Likewise.
103582         * modules/strtoimax (configure.ac): Likewise.
103583         * modules/strtoumax (configure.ac): Likewise.
103585 2007-02-17  Bruno Haible  <bruno@clisp.org>
103587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
103588         gl_STRING_MODULE_INDICATOR_DEFAULTS.
103589         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
103590         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
103592 2007-02-17  Bruno Haible  <bruno@clisp.org>
103594         * modules/link-warning: New file.
103595         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
103596         * lib/string_.h (GL_LINK_WARNING): Remove definition.
103597         * modules/string (Depends-on): Add link-warning.
103598         (Makefile.am): Copy the contents of build-aux/link-warning.h into
103599         string.h.
103600         * MODULES.html.sh (Support for building libraries and executables): Add
103601         link-warning.
103603 2007-02-17  Bruno Haible  <bruno@clisp.org>
103605         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
103606         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
103607         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
103608         long lines.
103610 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
103611             Bruno Haible  <bruno@clisp.org>
103613         * modules/tmpfile: New file.
103614         * lib/tmpfile.c: New file.
103615         * m4/tmpfile.m4: New file.
103616         * MODULES.html.sh (func_all_modules): New section "Input/output".
103618 2007-02-15  Bruno Haible  <bruno@clisp.org>
103620         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
103621         (supports_delete_on_close): New function.
103622         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
103624 2007-02-14  Bruno Haible  <bruno@clisp.org>
103626         * modules/mbspcasecmp-tests: New file.
103627         * tests/test-mbspcasecmp.sh: New file.
103628         * tests/test-mbspcasecmp.c: New file.
103630         New module mbspcasecmp.
103631         * modules/mbspcasecmp: New file.
103632         * lib/mbspcasecmp.c: New file.
103633         * lib/string_.h (strncasecmp): Change warning message.
103634         (mbspcasecmp): New declaration.
103635         * m4/mbspcasecmp.m4: New file.
103636         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
103637         GNULIB_MBSPCASECMP.
103638         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
103639         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
103641 2007-02-14  Bruno Haible  <bruno@clisp.org>
103643         * modules/mbsncasecmp-tests: New file.
103644         * tests/test-mbsncasecmp.sh: New file.
103645         * tests/test-mbsncasecmp.c: New file.
103647         New module mbsncasecmp.
103648         * modules/mbsncasecmp: New file.
103649         * lib/mbsncasecmp.c: New file.
103650         * lib/string_.h (mbsncasecmp): New declaration.
103651         * m4/mbsncasecmp.m4: New file.
103652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
103653         GNULIB_MBSNCASECMP.
103654         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
103655         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
103657 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
103659         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
103660         Verify that it doesn't overlap with our flags.
103661         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
103662         do not have the desired effect in multibyte locales; instead, use
103663         mbscasecmp.
103664         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
103665         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
103666         we don't require GNU fnmatch ourselves (if our users require it, they
103667         should do so explicitly).
103669         Fix regex code so it doesn't rely on strcasecmp.
103670         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
103671         Otherwise, include gnulib's langinfo.h.
103672         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
103673         undesirable behavior in non-C locales.  Instead, rely on localecharset.
103674         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
103675         * modules/regex (FILES): Remove m4/codeset.m4.
103676         (Depends-on): Add localcharset.  Remove strcase.
103678 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103680         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
103681         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
103683 2007-02-13  Bruno Haible  <bruno@clisp.org>
103685         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
103686         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
103688 2007-02-12  Bruno Haible  <bruno@clisp.org>
103690         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
103691         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
103692         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
103693         time warning rather than a link error.
103695 2007-02-12  Bruno Haible  <bruno@clisp.org>
103697         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
103698         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
103699         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
103701 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
103703         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
103704         args, not 2.
103706 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
103708         New module 'time', so that apps can include <time.h> as per
103709         POSIX and GNU instead of separate include files like time_r.h
103710         and timegm.h.  This implementation tries out a simpler approach
103711         for replacing decls in standard include files (as compared to
103712         the string module), somewhat as an experiment.
103714         * config/srclist.txt: Comment out mktime.c for now.
103715         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
103716         since it doesn't apply any more.  Use generic wording instead.
103717         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
103718         'time'.
103719         * lib/time_.h, m4/time_h.m4, modules/time: New files.
103720         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
103721         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
103722         Don't include <sys/types.h>; no longer needed since we assume C89.
103723         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
103724         * lib/strftime.c: Likewise.
103725         * lib/time_r.c: Likewise.
103726         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
103727         * lib/nanosleep.c: Include <time.h> first, to check interface.
103728         * lib/strptime.c: Likewise.
103729         * lib/time_r.c: Likewise.
103730         * lib/timegm.c: Likewise.
103731         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
103732         needed.
103733         * lib/timegm.c: Don't include timegm.h; no longer needed.
103734         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
103735         time.h now handles any problems in that area.
103736         (struct timespec, nanosleep): Remove; time.h now arranges for these.
103737         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
103738         that time.h defines struct timespec.
103739         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
103740         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
103741         handles that.
103742         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
103743         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
103744         needed.  Set REPLACE_LOCALTIME.
103745         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
103746         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
103747         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
103748         nanosleep; time_h.m4 now does that.  Don't require
103749         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
103750         module handles this now.
103751         * modules/getdate (Depends-on): Remove timespec.  Add time.
103752         * modules/nanosleep (Depends-on): Likewise.
103753         * modules/stat-time (Depends-on): Likewise.
103754         * modules/nanosleep (Include): Include time.h, not timespec.h.
103755         * modules/strptime (Files): Remove lib/strptime.h.
103756         (Depends-on): Add extensions, time.
103757         (Include): Include time.h, not strptime.h.
103758         * modules/time_r (Files): Remove lib/time_r.h.
103759         (Depends-on): Add time.
103760         (Include): Include time.h, not time_r.h.
103761         * modules/timegm: Likewise.
103762         * modules/timespec (Description): Now does timespec-related decls
103763         of our own, instead of struct timespec itself.
103764         (Depends-on): Add time; remove extensions.
103765         (Maintainer): Add self.
103766         * modules/utimecmp (Depends-on): Add time; remove timespec.
103767         * modules/utimens (Depends-on): Likewise.
103768         * modules/xnanosleep (Depends-on): Likewise.
103770 2007-02-11  Bruno Haible  <bruno@clisp.org>
103772         * lib/c-strstr.c: Include allocsa.h.
103773         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
103774         * lib/c-strcasestr.c: Include allocsa.h.
103775         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
103776         * lib/strcasestr.c: Include allocsa.h.
103777         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
103778         * lib/mbsstr.c: Include allocsa.h.
103779         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
103780         allocsa/freesa instead of malloc/free.
103781         * lib/mbscasestr.c: Include allocsa.h.
103782         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
103783         allocsa/freesa instead of malloc/free.
103784         * modules/c-strstr (Depends-on): Add allocsa.
103785         * modules/c-strcasestr (Depends-on): Likewise.
103786         * modules/strcasestr (Depends-on): Likewise.
103787         * modules/mbsstr (Depends-on): Likewise.
103788         * modules/mbscasestr (Depends-on): Likewise.
103790 2007-02-11  Bruno Haible  <bruno@clisp.org>
103792         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
103794         * modules/mbsspn-tests: New file.
103795         * tests/test-mbsspn.sh: New file.
103796         * tests/test-mbsspn.c: New file.
103798 2007-02-11  Bruno Haible  <bruno@clisp.org>
103800         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
103802         * modules/mbspbrk-tests: New file.
103803         * tests/test-mbspbrk.sh: New file.
103804         * tests/test-mbspbrk.c: New file.
103806 2007-02-11  Bruno Haible  <bruno@clisp.org>
103808         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
103809         unneeded cast.
103811         * modules/mbscspn-tests: New file.
103812         * tests/test-mbscspn.sh: New file.
103813         * tests/test-mbscspn.c: New file.
103815 2007-02-11  Bruno Haible  <bruno@clisp.org>
103817         * modules/mbscasecmp-tests: New file.
103818         * tests/test-mbscasecmp.sh: New file.
103819         * tests/test-mbscasecmp.c: New file.
103821 2007-02-11  Bruno Haible  <bruno@clisp.org>
103823         Ensure O(n) worst-case complexity of mbscasestr.
103824         * lib/mbscasestr.c: Include stdbool.h.
103825         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
103826         functions.
103827         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
103828         the bookkeeping indicates that it's worth it.
103829         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
103831         * modules/mbscasestr-tests: New file.
103832         * tests/test-mbscasestr1.c: New file.
103833         * tests/test-mbscasestr2.sh: New file.
103834         * tests/test-mbscasestr2.c: New file.
103835         * tests/test-mbscasestr3.sh: New file.
103836         * tests/test-mbscasestr3.c: New file.
103837         * tests/test-mbscasestr4.sh: New file.
103838         * tests/test-mbscasestr4.c: New file.
103839         * m4/locale-tr.m4: New file.
103841 2007-02-11  Bruno Haible  <bruno@clisp.org>
103843         Ensure O(n) worst-case complexity of mbsstr.
103844         * lib/mbsstr.c: Include stdbool.h.
103845         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
103846         functions.
103847         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
103848         bookkeeping indicates that it's worth it.
103849         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
103851         * modules/mbsstr-tests: New file.
103852         * tests/test-mbsstr1.c: New file.
103853         * tests/test-mbsstr2.sh: New file.
103854         * tests/test-mbsstr2.c: New file.
103855         * tests/test-mbsstr3.sh: New file.
103856         * tests/test-mbsstr3.c: New file.
103857         * m4/locale-fr.m4: New file.
103859 2007-02-11  Bruno Haible  <bruno@clisp.org>
103861         * lib/mbsrchr.c (mbsrchr): Fix bug.
103863         * modules/mbsrchr-tests: New file.
103864         * tests/test-mbsrchr.sh: New file.
103865         * tests/test-mbsrchr.c: New file.
103867 2007-02-11  Bruno Haible  <bruno@clisp.org>
103869         * lib/mbschr.c (mbschr): Fix bug.
103871         * modules/mbschr-tests: New file.
103872         * tests/test-mbschr.sh: New file.
103873         * tests/test-mbschr.c: New file.
103874         * m4/locale-zh.m4: New file.
103876 2007-02-11  Bruno Haible  <bruno@clisp.org>
103878         Support for copying multibyte string iterators.
103879         * lib/mbiter.h: Include <string.h>.
103880         (mbiter_multi_copy): New function.
103881         (mbi_copy): New macro.
103882         * lib/mbuiter.h: Include <string.h>.
103883         (mbuiter_multi_copy): New function.
103884         (mbui_copy): New macro.
103886 2007-02-11  Bruno Haible  <bruno@clisp.org>
103888         New module mbslen.
103889         * modules/mbslen: New file.
103890         * lib/mbslen.c: New file.
103891         * lib/string_.h (mbslen): New declaration.
103892         * m4/mbslen.m4: New file.
103893         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
103894         GNULIB_MBSLEN.
103895         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
103896         * MODULES.html.sh (Internationalization functions): Add mbslen.
103898 2007-02-11  Bruno Haible  <bruno@clisp.org>
103900         Ensure O(n) worst-case complexity of strcasestr substitute.
103901         * lib/strcasestr.c: Include stdbool.h.
103902         (knuth_morris_pratt): New function.
103903         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
103904         bookkeeping indicates that it's worth it.
103905         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
103907         * modules/strcasestr-tests: New file.
103908         * tests/test-strcasestr.c: New file.
103910 2007-02-11  Bruno Haible  <bruno@clisp.org>
103912         Ensure O(n) worst-case complexity of c_strcasestr.
103913         * lib/c-strcasestr.c: Include stdbool.h, string.h.
103914         (knuth_morris_pratt): New function.
103915         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
103916         the bookkeeping indicates that it's worth it.
103917         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
103919         * modules/c-strcasestr-tests: New file.
103920         * tests/test-c-strcasestr.c: New file.
103922 2007-02-11  Bruno Haible  <bruno@clisp.org>
103924         Ensure O(n) worst-case complexity of c_strstr.
103925         * lib/c-strstr.c: Include stdbool.h, string.h.
103926         (knuth_morris_pratt): New function.
103927         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
103928         bookkeeping indicates that it's worth it.
103929         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
103931         * lib/c-strstr.c: Complete rewrite for maintainability.
103933         * modules/c-strstr-tests: New file.
103934         * tests/test-c-strstr.c: New file.
103936 2007-02-11  Bruno Haible  <bruno@clisp.org>
103938         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
103939         5.2.1 and earlier, whereby \055 was treated just like the range
103940         delimiter '-'.
103941         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
103943 2007-02-08  Bruno Haible  <bruno@clisp.org>
103945         * modules/regex (Depends-on): Add stdbool.
103946         Reported by Dalibor Topic <robilad@kaffe.org>.
103948 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
103950         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
103951         Prefer returning from main to exiting from it.
103952         Remove unnecessary parens after sizeof.
103954 2007-02-05  Bruno Haible  <bruno@clisp.org>
103956         New module mbssep.
103957         * modules/mbssep: New file.
103958         * lib/mbssep.c: New file.
103959         * lib/string_.h (strsep): Add a conditional link warning.
103960         (mbssep): New declaration.
103961         * m4/mbssep.m4: New file.
103962         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
103963         GNULIB_MBSSEP.
103964         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
103965         * MODULES.html.sh (Internationalization functions): Add mbssep.
103967 2007-02-05  Bruno Haible  <bruno@clisp.org>
103969         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
103970         Optimize search in case of 1 delimiter.
103972 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
103974         * lib/acl.h: Include sys/types.h before sys/acl.h.
103976 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
103978         Merge upstream fix for glibc bugzilla #3957:
103980         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
103982         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
103983         bit for RE_HAT_LISTS_NOT_NEWLINE.
103984         (build_charclass_op): Remove bogus comment.
103986 2007-02-05  Simon Josefsson  <simon@josefsson.org>
103988         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
103990 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
103992         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
103993         * lib/memmem.c [!defined _LIBC]: Include config.h.
103995 2007-02-04  Bruno Haible  <bruno@clisp.org>
103997         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
103998         warning message.
104000 2007-02-04  Bruno Haible  <bruno@clisp.org>
104002         New module mbstok_r.
104003         * modules/mbstok_r: New file.
104004         * lib/mbstok_r.c: New file.
104005         * lib/string_.h (strtok_r): Change argument names to match the
104006         comments. Add a conditional link warning.
104007         (mbstok_r): New declaration.
104008         * m4/mbstok_r.m4: New file.
104009         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104010         GNULIB_MBSTOK_R.
104011         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
104012         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
104014 2007-02-04  Bruno Haible  <bruno@clisp.org>
104016         New module mbsspn.
104017         * modules/mbsspn: New file.
104018         * lib/mbsspn.c: New file.
104019         * lib/string_.h (strspn): Add a conditional link warning.
104020         (mbsspn): New declaration.
104021         * m4/mbsspn.m4: New file.
104022         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104023         GNULIB_MBSSPN.
104024         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
104025         * MODULES.html.sh (Internationalization functions): Add mbsspn.
104027 2007-02-04  Bruno Haible  <bruno@clisp.org>
104029         New module mbspbrk.
104030         * modules/mbspbrk: New file.
104031         * lib/mbspbrk.c: New file.
104032         * lib/string_.h (strpbrk): Add a conditional link warning.
104033         (mbspbrk): New declaration.
104034         * m4/mbspbrk.m4: New file.
104035         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104036         GNULIB_MBSPBRK.
104037         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
104038         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
104040 2007-02-04  Bruno Haible  <bruno@clisp.org>
104042         New module mbscspn.
104043         * modules/mbscspn: New file.
104044         * lib/mbscspn.c: New file.
104045         * lib/string_.h (strcspn): Add a conditional link warning.
104046         (mbscspn): New declaration.
104047         * m4/mbscspn.m4: New file.
104048         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104049         GNULIB_MBSCSPN.
104050         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
104051         * MODULES.html.sh (Internationalization functions): Add mbscspn.
104053 2007-02-04  Bruno Haible  <bruno@clisp.org>
104055         New module mbscasestr, reduced goal of strcasestr.
104056         * modules/mbscasestr: New file.
104057         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
104058         (mbscasestr): Renamed from strcasestr.
104059         * lib/strcasestr.c: Don't include mbuiter.h.
104060         (strcasestr): Remove support for multibyte locales.
104061         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
104062         Change the conditional link warning.
104063         (mbscasestr): New declaration.
104064         * m4/mbscasestr.m4: New file.
104065         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
104066         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
104067         REPLACE_STRCASESTR.
104068         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
104069         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104070         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104071         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
104072         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
104073         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104074         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
104075         (Depends-on): Remove mbuiter.
104076         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
104078 2007-02-04  Bruno Haible  <bruno@clisp.org>
104080         Simplify handling of strncasecmp.
104081         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
104082         the conditional link warning.
104083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104084         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
104085         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
104086         * modules/strcase (configure.ac): Don't invoke
104087         gl_STRING_MODULE_INDICATOR.
104088         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
104090 2007-02-04  Bruno Haible  <bruno@clisp.org>
104092         New module mbscasecmp, reduced goal of strcasecmp.
104093         * modules/mbscasecmp: New file.
104094         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
104095         (mbscasecmp): Renamed from strcasecmp.
104096         * lib/strcasecmp.c: Don't include mbuiter.h.
104097         (strcasecmp): Remove support for multibyte locales.
104098         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
104099         Change the conditional link warning.
104100         (mbscasecmp): New declaration.
104101         * m4/mbscasecmp.m4: New file.
104102         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
104103         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
104104         REPLACE_STRCASECMP.
104105         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
104106         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104107         GNULIB_MBSCASECMP.
104108         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
104109         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
104110         * modules/strcase (Files): Remove m4/mbrtowc.m4.
104111         (Depends-on): Remove mbuiter.
104112         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
104114 2007-02-04  Bruno Haible  <bruno@clisp.org>
104116         New module mbsstr. Remove module strstr.
104117         * modules/mbsstr: New file.
104118         * modules/strstr: Remove file.
104119         * lib/mbsstr.c: Renamed from lib/strstr.c.
104120         (mbsstr): Renamed from strstr.
104121         * lib/string_.h (strstr): Remove declaration. Change the conditional
104122         link warning.
104123         (mbsstr): New declaration.
104124         * m4/mbsstr.m4: New file.
104125         * m4/strstr.m4: Remove file.
104126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
104127         REPLACE_STRSTR.
104128         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
104129         Don't initialize GNULIB_STRSTR.
104130         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
104131         substitute GNULIB_STRSTR and REPLACE_STRSTR.
104132         * MODULES.html.sh (Internationalization functions): Add mbsstr.
104133         (Support for systems lacking ANSI C 89): Remove strstr.
104135 2007-02-04  Bruno Haible  <bruno@clisp.org>
104137         New module mbsrchr.
104138         * modules/mbsrchr: New file.
104139         * lib/mbsrchr.c: New file.
104140         * lib/string_.h (strrchr): Add a conditional link warning.
104141         (mbsrchr): New declaration.
104142         * m4/mbsrchr.m4: New file.
104143         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104144         GNULIB_MBSRCHR.
104145         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
104146         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
104148 2007-02-04  Bruno Haible  <bruno@clisp.org>
104150         New module mbschr.
104151         * modules/mbschr: New file.
104152         * lib/mbschr.c: New file.
104153         * lib/string_.h (strchr): Add a conditional link warning.
104154         (mbschr): New declaration.
104155         * m4/mbschr.m4: New file.
104156         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104157         GNULIB_MBSCHR.
104158         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
104159         * MODULES.html.sh (Internationalization functions): Add mbschr.
104161 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104163         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
104165         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
104167 2007-02-04  Bruno Haible  <bruno@clisp.org>
104169         New module description section 'configure.ac-early'.
104170         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
104171         (func_get_autoconf_early_snippet): New function.
104172         (func_import, func_create_testdir): Use it. Remove special cases for
104173         modules 'extensions' and 'lock'.
104174         * modules/extensions (configure.ac-early): Require
104175         gl_USE_SYSTEM_EXTENSIONS.
104176         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
104178 2007-02-04  Bruno Haible  <bruno@clisp.org>
104180         Make use of gcj-4.3's -fsource and -ftarget option.
104181         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
104182         and if so try the options -fsource and -ftarget.
104183         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
104184         source_version, ftarget_option, target_version arguments.
104185         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
104186         (is_envjavac_oldgcj_14_14_usable): Renamed from
104187         is_envjavac_gcj_14_14_usable.
104188         (is_envjavac_oldgcj_14_13_usable): Renamed from
104189         is_envjavac_gcj_14_13_usable.
104190         (is_gcj_present): Update.
104191         (is_gcj_43, is_gcj43_usable): New functions.
104192         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
104193         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
104194         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
104195         try the options -fsource and -ftarget.
104197 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104199         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
104200         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
104201         larger value.
104203 2007-02-03  Jim Meyering  <jim@meyering.net>
104205         Give tools a better chance to allocate space for very large buffers.
104206         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
104208         Make pwd and readlink work also when run with an unreadable parent dir
104209         on systems with openat support.
104210         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
104211         provided getcwd function, even when we have openat support.
104212         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
104214 2007-02-02  Bruno Haible  <bruno@clisp.org>
104216         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104217         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
104218         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
104219         portability problems if one of these functions is only used on specific
104220         platforms.
104221         Reported by Paul Eggert.
104223 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
104225         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
104226         is causing more trouble than it's curing.
104227         * lib/regex_internal.h (__mempcpy): Remove.
104228         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
104229         (and make the code a tad smaller to boot).
104230         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
104232 2007-02-02  Jim Meyering  <jim@meyering.net>
104234         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
104235         section, not in the Makefile.am: one.
104237 2007-02-02  Eric Blake  <ebb9@byu.net>
104239         * lib/strchrnul.c: Always include config.h first.
104241         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
104242         gnulib strstr is not necessary here.
104244 2007-02-02  Simon Josefsson  <simon@josefsson.org>
104246         * m4/socklen.m4: Fix typo.
104248 2007-02-02  Eric Blake  <ebb9@byu.net>
104250         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
104251         * modules/netinet_in (Makefile.am): Likewise.
104253 2007-02-01  Bruno Haible  <bruno@clisp.org>
104255         * lib/string_.h (GL_LINK_WARNING): New macro.
104256         (strcasecmp, strstr, strcasestr): If provided by the system,
104257         conditionally define as a macro that leads to a warning instead of to
104258         an error.
104259         (strncasecmp): Conditionally define as a macro that leads to a warning.
104261 2007-02-01  Karl Berry  <karl@gnu.org>
104263         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
104265 2007-02-01  Bruno Haible  <bruno@clisp.org>
104267         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
104268         renamings.
104270 2007-02-01  Eric Blake  <ebb9@byu.net>
104272         * modules/regex (Depends-on): Revert dependence on mempcpy.
104273         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
104274         module's definition of mempcpy.
104275         Reported by Paul Eggert.
104277 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
104279         * lib/string_.h: If the gnulib module XYZ is not present, undefine
104280         the symbol XYZ before redefining it.  This fixes a problem with
104281         programs that don't use XYZ, when compiled on systems that define
104282         XYZ to something else.
104284 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
104286         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
104287         occurs when "mkdir -m foo" creates a setgid directory that is (1)
104288         writeable to group or other and (2) is intended to have a special
104289         mode bit that is set or cleared.  In such a case, the directory
104290         should be neither group- nor other-writeable until the special
104291         mode bits are right.
104293 2007-01-31  Eric Blake  <ebb9@byu.net>
104295         * modules/mountlist (Depends-on): Add strstr.
104297         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
104298         bug.
104299         * modules/string (Makefile.am): Remove redundant replacement.
104300         * modules/regex (Depends-on): Add mempcpy.
104302 2007-01-31  Bruno Haible  <bruno@clisp.org>
104304         New module description field 'Link'.
104305         * gnulib-tool (func_usage): Document --extract-link-directive.
104306         (sed_extract_prog): Recognize 'Link' directive.
104307         (func_get_link_directive): New function.
104308         (func_import): Show summary of link directives.
104309         Handle --extract-link-directive option.
104310         * modules/acl (Link): New section.
104311         * modules/clock-time (Link): New section.
104312         * modules/euidaccess (Link): New section.
104313         * modules/gettext (Link): New section.
104314         * modules/iconv (Link): New section.
104315         * modules/lock (Link): New section.
104316         * modules/nanosleep (Link): New section.
104317         * modules/readline (Link): New section.
104319 2007-01-27  Bruno Haible  <bruno@clisp.org>
104321         Enforce the use of gnulib modules for unportable <string.h> functions.
104322         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
104323         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
104324         (gl_HEADER_STRING_H_BODY): Require it.
104325         * lib/string_.h: If the gnulib module XYZ is not present, redefine
104326         the symbol XYZ to one that gives a link error.
104327         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
104328         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
104329         * modules/mempcpy (configure.ac): Likewise.
104330         * modules/memrchr (configure.ac): Likewise.
104331         * modules/stpcpy (configure.ac): Likewise.
104332         * modules/stpncpy (configure.ac): Likewise.
104333         * modules/strcase (configure.ac): Likewise.
104334         * modules/strcasestr (configure.ac): Likewise.
104335         * modules/strchrnul (configure.ac): Likewise.
104336         * modules/strdup (configure.ac): Likewise.
104337         * modules/strndup (configure.ac): Likewise.
104338         * modules/strnlen (configure.ac): Likewise.
104339         * modules/strpbrk (configure.ac): Likewise.
104340         * modules/strsep (configure.ac): Likewise.
104341         * modules/strstr (configure.ac): Likewise.
104342         * modules/strtok_r (configure.ac): Likewise.
104344 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
104346         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
104348 2007-01-30  Jim Meyering  <jim@meyering.net>
104350         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
104352 2007-01-29  Bruno Haible  <bruno@clisp.org>
104354         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
104355         * lib/execute.c: Likewise.
104356         * lib/pipe.c: Likewise.
104357         * lib/printf-args.h: Likewise.
104358         * lib/printf-args.c: Likewise.
104359         * lib/printf-parse.c: Likewise.
104360         * lib/vasnprintf.c: Likewise.
104362 2007-01-29  Eric Blake  <ebb9@byu.net>
104364         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
104365         declaration.
104367 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
104369         * lib/strptime.h (strptime): Use 'restrict' for args where
104370         POSIX requires this.
104371         * lib/strptime.c (strptime): Likewise.
104372         Change license notice from LGPL to GPL, since gnulib-tool will
104373         change this as needed.
104374         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
104375         defined.
104376         Include "strptime.h" first, to check interface.
104377         Do not #undef _LIBC and _NL_CURRENT.
104378         Do not include <stdlib.h>; no longer needed.
104379         Include "time_r.h" and declare ptime_locale_status
104380         only if _LIBC is not defined.
104381         (__P): Remove unused macro.
104382         (match_string): Bring back glibc version, but use it only if _LIBC
104383         is defined.
104384         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
104385         Remove unnecessary assertion and abort() call.
104386         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
104387         * m4/strptime.m4: Fix serial number comment.
104388         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
104389         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
104390         (Depends-on): Add time_r.
104392 2007-01-29  Bruno Haible  <bruno@clisp.org>
104394         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104395         strptime.
104396         * modules/strptime (Depends-on): Add stdbool.
104397         * lib/strptime.h: Include <time.h> always. Add comments.
104399 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104401         * modules/strptime: New file.
104402         * lib/strptime.h: New file.
104403         * lib/strptime.c: New file.
104404         * m4/strptime.m4: New file.
104406 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104408         * MODULES.html.sh: New module mpsort.
104409         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
104411         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
104412         a circularity problem with HP-UX ia64 reported by Bob Proulx in
104413         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
104414         All uses changed.
104415         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
104416         All uses changed.
104417         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
104418         to _Restrict_.
104419         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
104420         the parameter matches the prototype.
104422 2007-01-28  Jim Meyering  <jim@meyering.net>
104424         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
104425         sys/time.h here, reverting that part of the previous patch:
104426         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
104428 2007-01-28  Bruno Haible  <bruno@clisp.org>
104430         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
104431         value of $(SYS_TIME_H).
104432         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
104433         remove it conditionally, too. [added by Jim Meyering]
104434         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
104435         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
104436         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
104437         GETTIMEOFDAY_REPLACEMENT to 1.
104439 2007-01-28  Bruno Haible  <bruno@clisp.org>
104441         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
104442         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
104443         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
104444         Set UNISTD_H instead of UNISTD_H2.
104445         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
104447 2007-01-28  Bruno Haible  <bruno@clisp.org>
104449         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
104450         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
104452 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104454         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
104455         (func_create_testdir): Ensure C locale for `grep' and `tr'
104456         character ranges.
104457         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
104458         ACLOCAL_AMFLAGS parsing state machine.
104460 2007-01-27  Bruno Haible  <bruno@clisp.org>
104462         * modules/unistr/base: Update.
104464 2007-01-27  Bruno Haible  <bruno@clisp.org>
104466         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
104467         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
104468         * modules/unistr/u32-mbtouc-unsafe: Renamed from
104469         modules/unistr/u32-mbtouc.
104470         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
104471         * lib/unistr.h: Update.
104472         * lib/linebreak.c: Update.
104473         * modules/unistr/u32-mbtouc: Renamed from
104474         modules/unistr/u32-mbtouc-safe.
104475         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
104476         * lib/unistr.h: Update.
104477         * lib/unistr/u32-to-u8.c: Update.
104478         * lib/unistr/u32-to-u16.c: Update.
104480 2007-01-27  Bruno Haible  <bruno@clisp.org>
104482         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
104483         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
104484         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
104485         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
104486         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
104487         * modules/unistr/u16-mbtouc-unsafe: Renamed from
104488         modules/unistr/u16-mbtouc.
104489         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
104490         * lib/unistr.h: Update.
104491         * lib/linebreak.c: Update.
104492         * modules/linebreak: Update.
104493         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
104494         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
104495         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
104496         * modules/unistr/u16-mbtouc: Renamed from
104497         modules/unistr/u16-mbtouc-safe.
104498         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
104499         * lib/unistr.h: Update.
104500         * lib/unistr/u16-to-u8.c: Update.
104501         * modules/unistr/u16-to-u8: Update.
104502         * lib/unistr/u16-to-u32.c: Update.
104503         * modules/unistr/u16-to-u32: Update.
104505 2007-01-27  Bruno Haible  <bruno@clisp.org>
104507         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
104508         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
104509         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
104510         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
104511         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
104512         * modules/unistr/u8-mbtouc-unsafe: Renamed from
104513         modules/unistr/u8-mbtouc.
104514         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
104515         * lib/unistr.h: Update.
104516         * lib/striconveh.c: Update.
104517         * modules/striconveh: Update.
104518         * lib/linebreak.c: Update.
104519         * modules/linebreak: Update.
104520         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
104521         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
104522         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
104523         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
104524         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
104525         * lib/unistr.h: Update.
104526         * lib/striconveh.c: Update.
104527         * modules/striconveh: Update.
104528         * lib/unistr/u8-to-u16.c: Update.
104529         * modules/unistr/u8-to-u16: Update.
104530         * lib/unistr/u8-to-u32.c: Update.
104531         * modules/unistr/u8-to-u32: Update.
104533 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104535         Sync from Libtool.
104536         * lib/argz.c: Do not include strings.h nor memory.h, include
104537         string.h unconditionally.  Patch by Simon Josefsson.
104539 2007-01-27  Bruno Haible  <bruno@clisp.org>
104541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
104542         from gl_HEADER_STRING_H_BODY.
104543         (gl_HEADER_STRING_H_BODY): Require it.
104544         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
104545         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
104546         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
104547         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
104548         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
104549         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
104550         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
104551         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
104552         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
104553         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
104554         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
104555         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
104556         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
104557         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
104558         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104560 2007-01-27  Bruno Haible  <bruno@clisp.org>
104562         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
104563         check_PROGRAMS into noinst_PROGRAMS.
104564         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
104565         check_PROGRAMS in this case.
104566         (func_import): Set for_test to false.
104567         (func_create_testdir): Set for_test to true.
104569 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104570             Bruno Haible  <bruno@clisp.org>
104572         * modules/strcasestr (Files): Remove lib/strcasestr.h.
104573         (Depends-on): Add string.
104574         (Includes): Use <string.h> instead of strcasestr.h.
104575         * modules/string (Makefile.am): Also substitute the value of
104576         REPLACE_STRCASESTR.
104577         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
104578         assume strcasestr is declared in <string.h> not <strings.h>. Also
104579         set REPLACE_STRCASESTR.
104580         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
104581         REPLACE_STRCASESTR.
104582         * lib/strcasestr.h: Remove file.
104583         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
104584         * lib/string_.h (strcasestr): New declaration.
104586 2007-01-27  Bruno Haible  <bruno@clisp.org>
104588         * lib/string_.h: Use 'extern'.
104590 2007-01-27  Jim Meyering  <jim@meyering.net>
104592         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
104593         of set-but-not-used local, "q".
104595         * lib/mempcpy.c: Include <config.h> before <string.h>.
104596         This fixes a compilation error on HP-UX, due to the system's
104597         "restrict"-using mempcpy prototype.
104599 2007-01-26  Bruno Haible  <bruno@clisp.org>
104601         Small optimization.
104602         * lib/javacomp.c: Include c-strstr.h.
104603          (is_envjavac_gcj): Use c_strstr instead of strstr.
104604         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
104606 2007-01-26  Bruno Haible  <bruno@clisp.org>
104608         * MODULES.html.sh (Unicode string functions): Add the new modules.
104610         * modules/uniconv/u32-strconv-to-locale: New file.
104611         * lib/uniconv/u32-strconv-to-locale.c: New file.
104613         * modules/uniconv/u16-strconv-to-locale: New file.
104614         * lib/uniconv/u16-strconv-to-locale.c: New file.
104616         * modules/uniconv/u8-strconv-to-locale: New file.
104617         * lib/uniconv/u8-strconv-to-locale.c: New file.
104619         * modules/uniconv/u32-strconv-from-locale: New file.
104620         * lib/uniconv/u32-strconv-from-locale.c: New file.
104622         * modules/uniconv/u16-strconv-from-locale: New file.
104623         * lib/uniconv/u16-strconv-from-locale.c: New file.
104625         * modules/uniconv/u8-strconv-from-locale: New file.
104626         * lib/uniconv/u8-strconv-from-locale.c: New file.
104628         * modules/uniconv/u32-strconv-to-enc: New file.
104629         * lib/uniconv/u32-strconv-to-enc.c: New file.
104630         * modules/uniconv/u32-strconv-to-enc-tests: New file.
104631         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
104633         * modules/uniconv/u16-strconv-to-enc: New file.
104634         * lib/uniconv/u16-strconv-to-enc.c: New file.
104635         * lib/uniconv/u-strconv-to-enc.h: New file.
104636         * modules/uniconv/u16-strconv-to-enc-tests: New file.
104637         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
104639         * modules/uniconv/u8-strconv-to-enc: New file.
104640         * lib/uniconv/u8-strconv-to-enc.c: New file.
104641         * modules/uniconv/u8-strconv-to-enc-tests: New file.
104642         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
104644         * modules/uniconv/u32-strconv-from-enc: New file.
104645         * lib/uniconv/u32-strconv-from-enc.c: New file.
104646         * modules/uniconv/u32-strconv-from-enc-tests: New file.
104647         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
104649         * modules/uniconv/u16-strconv-from-enc: New file.
104650         * lib/uniconv/u16-strconv-from-enc.c: New file.
104651         * modules/uniconv/u16-strconv-from-enc-tests: New file.
104652         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
104654         * modules/uniconv/u8-strconv-from-enc: New file.
104655         * lib/uniconv/u8-strconv-from-enc.c: New file.
104656         * lib/uniconv/u-strconv-from-enc.h: New file.
104657         * modules/uniconv/u8-strconv-from-enc-tests: New file.
104658         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
104660         * modules/uniconv/u32-conv-from-enc: New file.
104661         * lib/uniconv/u32-conv-from-enc.c: New file.
104662         * modules/uniconv/u32-conv-from-enc-tests: New file.
104663         * tests/uniconv/test-u32-conv-from-enc.c: New file.
104665         * modules/uniconv/u16-conv-from-enc: New file.
104666         * lib/uniconv/u16-conv-from-enc.c: New file.
104667         * lib/uniconv/u-conv-from-enc.h: New file.
104668         * modules/uniconv/u16-conv-from-enc-tests: New file.
104669         * tests/uniconv/test-u16-conv-from-enc.c: New file.
104671         * modules/uniconv/u8-conv-from-enc: New file.
104672         * lib/uniconv/u8-conv-from-enc.c: New file.
104673         * modules/uniconv/u8-conv-from-enc-tests: New file.
104674         * tests/uniconv/test-u8-conv-from-enc.c: New file.
104676         * modules/uniconv/base: New file.
104677         * lib/uniconv.h: New file.
104679 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
104681         * doc/gnulib-tool.texi (Initial import): Update to match current
104682         behavior with strdup module.
104683         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
104684         * lib/memmem.h: Remove; all uses removed.  This is now done
104685         by <string.h>.
104686         * lib/mempcpy.h: Likewise.
104687         * lib/memrchr.h: Likewise.
104688         * lib/stpcpy.h: Likewise.
104689         * lib/stpncpy.h: Likewise.
104690         * lib/strcase.h: Likewise.
104691         * lib/strchrnul.h: Likewise.
104692         * lib/strdup.h: Likewise.
104693         * lib/strndup.h: Likewise.
104694         * lib/strnlen.h: Likewise.
104695         * lib/strpbrk.h: Likewise.
104696         * lib/strsep.h: Likewise.
104697         * lib/strstr.h: Likewise.
104698         * lib/strtok_r.h: Likewise.
104699         * lib/string_.h: New file.
104700         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
104701         Rely on <string.h> instead.
104702         * lib/canon-host.c: Likewise.
104703         * lib/chdir-long.c: Likewise.
104704         * lib/concatpath.c: Likewise.
104705         * lib/exclude.c: Likewise.
104706         * lib/fchdir.c: Likewise.
104707         * lib/getaddrinfo.c: Likewise.
104708         * lib/getcwd.c: Likewise.
104709         * lib/getsubopt.c: Likewise.
104710         * lib/glob.c: Likewise.
104711         * lib/hard-locale.c: Likewise.
104712         * lib/iconvme.c: Likewise.
104713         * lib/javacomp.c: Likewise.
104714         * lib/mempcpy.c: Likewise.
104715         * lib/memrchr.c: Likewise.
104716         * lib/regex_internal.h: Likewise.
104717         * lib/stpncpy.c: Likewise.
104718         * lib/strcasecmp.c: Likewise.
104719         * lib/strchrnul.c: Likewise.
104720         * lib/strdup.c: Likewise.
104721         * lib/striconv.c: Likewise.
104722         * lib/striconveh.c: Likewise.
104723         * lib/striconveha.c: Likewise.
104724         * lib/strncasecmp.c: Likewise.
104725         * lib/strndup.c: Likewise.
104726         * lib/strnlen.c: Likewise.
104727         * lib/strsep.c: Likewise.
104728         * lib/strstr.c: Likewise.
104729         * lib/strtok_r.c: Likewise.
104730         * lib/userspec.c: Likewise.
104731         * lib/w32spawn.h: Likewise.
104732         * lib/xstrndup.c: Likewise.
104733         * lib/mountlist.c (strstr): Remove decl.
104734         * m4/string_h.m4: New file.
104735         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
104736         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
104737         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
104738         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
104739         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
104740         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
104741         Set REPLACE_STRCASECMP if necessary.
104742         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
104743         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
104744         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
104745         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
104746         HAVE_DECL_STRDUP if necessary.
104747         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
104748         since gl_FUNC_STRNDUP does that now.
104749         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
104750         Check for decl here...
104751         (gl_PREREQ_STRNLEN): ... not here.
104752         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
104753         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
104754         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
104755         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
104756         necessary.
104757         * modules/string: New file.
104758         * modules/memmem (Files): Remove special-purpose include file.
104759         (Depends-on): Add string.
104760         (Include): Include <string.h>, not the removed file.
104761         * modules/mempcpy: Likewise.
104762         * modules/memrchr: Likewise.
104763         * modules/stpcpy: Likewise.
104764         * modules/stpncpy: Likewise.
104765         * modules/strcase: Likewise.
104766         * modules/strchrnul: Likewise.
104767         * modules/strdup: Likewise.
104768         * modules/strndup: Likewise.
104769         * modules/strnlen: Likewise.
104770         * modules/strpbrk: Likewise.
104771         * modules/strsep: Likewise.
104772         * modules/strstr: Likewise.
104773         * modules/strtok_r: Likewise.
104774         * tests/test-dirname.c: Don't include "strdup.h", since
104775         <string.h> now suffices.
104776         * tests/test-memmem.c: Don't include "memmem.h", since
104777         <string.h> now suffices.
104779 2007-01-25  Bruno Haible  <bruno@clisp.org>
104781         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
104782         *resultp is 0.
104784         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
104785         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
104786         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
104787         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
104789         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
104790         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
104791         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
104792         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
104793         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
104794         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
104796 2007-01-24  Bruno Haible  <bruno@clisp.org>
104798         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
104799         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
104800         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
104801         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
104802         gl_FUNC_FTS_CORE.
104803         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
104804         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
104805         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
104806         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
104807         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
104808         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
104809         gl_FUNC_FCHOWNAT.
104810         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
104811         gl_FUNC_STRFTIME.
104812         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
104813         Reported by Ralf Wildenhues.
104815 2007-01-24  Bruno Haible  <bruno@clisp.org>
104817         Drop AC_REQUIRE calls that are redundant with the module dependencies.
104818         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
104819         gl_GETADDRINFO.
104820         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
104821         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
104822         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
104824 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
104826         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
104827         Don't use 'exit'; just return from 'main'.
104828         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
104830         * lib/fnmatch_.h: Readjust white space and comments to match
104831         glibc, to avoid spurious diffs.
104833 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
104835         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
104836         2004-12-01 change by Jakub Jelinek, since this code won't compile
104837         if !LIBC.  Problem reported by Bob Proulx.
104839 2007-01-23  Bruno Haible  <bruno@clisp.org>
104841         * lib/striconveh.c: Include c-strcaseeq.h.
104842         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
104843         * modules/striconveh (Depends-on): Add c-strcaseeq.
104845 2007-01-23  Bruno Haible  <bruno@clisp.org>
104847         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
104849         * modules/c-strcaseeq: New file.
104850         * lib/c-strcaseeq.h: New file.
104852         * modules/streq: New file.
104853         * lib/streq.h: New file.
104855 2007-01-23  Bruno Haible  <bruno@clisp.org>
104857         * modules/striconveha-tests: New file.
104858         * tests/test-striconveha.c: New file.
104860         * lib/striconveha.h: Include <stdbool.h>.
104861         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
104862         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
104863         (mem_iconveha_notranslit): Renamed from mem_iconveha.
104864         (mem_iconveha): New function.
104865         (str_iconveha_notranslit): Renamed from str_iconveha.
104866         (str_iconveha): New function.
104867         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
104868         c-strcase.
104870 2007-01-23  Bruno Haible  <bruno@clisp.org>
104872         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
104873         encodings without forgiving before trying any encoding with handler.
104874         (str_iconveha): Try all encodings without forgiving before trying any
104875         encoding with handler.
104877 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
104879         Import the following changes from libc.
104881         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
104883         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
104885         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
104887         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
104888         normal_bracket label.
104890         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
104892         [BZ #361]
104893         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
104894         to normal_bracket after fetching the next character.
104896 2007-01-22  Bruno Haible  <bruno@clisp.org>
104898         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
104899         argument.
104900         * lib/striconveh.c (iconv_carefully_1): New function.
104901         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
104902         argument.
104903         (str_cd_iconveh): Update.
104904         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
104905         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
104906         * tests/test-striconveh.c (MAGIC): New macro.
104907         (new_offsets): New function.
104908         (main): Test call with and without offsets.
104910 2007-01-22  Bruno Haible  <bruno@clisp.org>
104912         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
104913         * modules/sys_select (Makefile.am): Likewise.
104914         * modules/sys_socket (Makefile.am): Likewise.
104915         * modules/sys_time (Makefile.am): Likewise.
104917 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
104919         * modules/gettimeofday (License): Change from GPL to LGPL, since
104920         gettimeofday is a library function.
104922 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104924         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
104926 2007-01-21  Bruno Haible  <bruno@clisp.org>
104928         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
104930 2007-01-21  Bruno Haible  <bruno@clisp.org>
104932         * modules/striconveha: New file.
104933         * lib/striconveha.h: New file.
104934         * lib/striconveha.c: New file.
104935         * MODULES.html.sh (Internationalization functions): Add striconveha.
104936         * lib/striconv.c (str_iconv): Optimize the case of an empty input
104937         string.
104938         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
104940 2007-01-21  Bruno Haible  <bruno@clisp.org>
104942         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
104943         * lib/striconveh.c (str_iconveh): Likewise.
104945 2007-01-21  Bruno Haible  <bruno@clisp.org>
104947         * lib/striconveh.h (mem_iconveh): New declaration.
104948         * lib/striconveh.c (mem_iconveh): New function.
104949         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
104951 2007-01-21  Bruno Haible  <bruno@clisp.org>
104953         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
104955         * lib/striconveh.h (mem_cd_iconveh): Change specification.
104956         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
104957         original result buffer.
104958         (str_cd_iconveh): Update.
104959         * tests/test-striconveh.c (main): Update.
104961         * lib/striconv.h (mem_cd_iconv): Change specification.
104962         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
104963         result buffer.
104964         (str_cd_iconv): Update.
104965         * tests/test-striconv.c (main): Update.
104967 2007-01-21  Bruno Haible  <bruno@clisp.org>
104969         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
104971 2007-01-20  Jim Meyering  <jim@meyering.net>
104973         * lib/userspec.c (parse_with_separator): If a user or group string
104974         starts with "+", skip the corresponding name-to-ID look-up, since
104975         such a look-up must fail: user and group names may not include "+".
104977 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
104979         * lib/poll.c: Include sys/time.h and time.h unconditionally,
104980         since we now assume the sys_time module.
104981         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
104982         check for sys/time.h; no longer needed.
104983         * modules/poll (Depends-on): Depend on sys_time.
104985 2007-01-18  Bruno Haible  <bruno@clisp.org>
104987         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
104988         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
104990         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
104991         gettimeofday.
104993         * tests/test-gettimeofday.c: Include <time.h>.
104994         (dummy): Remove variable.
104996         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
104997         gl_HEADER_SYS_TIME_H.
104998         (gl_HEADER_SYS_TIME_H): New macro.
105000         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
105001         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105002         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
105003         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
105004         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105005         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
105006         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
105007         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105008         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
105009         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
105010         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105012         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
105013         last change; it caused a compilation error when cross-compiling to
105014         Cygwin.
105016 2007-01-18  Jim Meyering  <jim@meyering.net>
105018         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
105019         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
105020         than the race-prone "test -d sys || mkdir sys".
105021         (configure.ac): Use AC_PROG_MKDIR_P.
105022         * modules/sys_select: Likewise.
105023         * modules/sys_socket: Likewise.
105024         * modules/sys_time: Likewise.
105026 2007-01-18  Eric Blake  <ebb9@byu.net>
105028         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
105029         replace gettimeofday.
105030         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
105031         name, to avoid infinite recursion.
105033 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
105035         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
105036         module sys_time.
105037         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
105038         assume timespec.h defines struct timeval.
105039         * lib/settime.c: Likewise.
105040         * lib/utimens.c: Likewise.
105041         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
105042         since we now assume the gettimeofday module.
105043         * lib/tempname.c (__gen_tempname): Likewise.
105044         * lib/gettimeofday.h: Remove.
105045         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
105046         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
105047         Include <time.h>, for 'time()'.
105048         (localtime_buffer_addr): Also use this workaround if
105049         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
105050         to simplify the uses.  All uses changed.
105051         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
105052         that #undef is inside {}, and 'const' follows type name consistently.
105053         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
105054         (gettimeofday): Do not use the maximum possible value for
105055         tv->tv_usec, since that might break usages other than ls.c.
105056         Instead, we'll leave ls.c alone.  This undoes today's patch
105057         by Bruno.  Add a compile-time warning for 1s-clock resolution;
105058         we've never observed the problem but might as well keep the
105059         canary.
105060         * lib/nanosleep.c: Include timespec.h first, for interface check.
105061         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
105062         now assume the sys_time module.
105063         * lib/tempname.c: Likewise.
105064         * lib/timespec.h: Likewise.
105065         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
105066         needed.
105067         * lib/strftime.c: Likewise.
105068         * lib/timespec.h: Likewise.
105069         * lib/posixtm.c: Include posixtm.h first, for interface check.
105070         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
105071         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
105072         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
105073         * lib/sys_time_.h: New file.
105074         * lib/timespec.h (struct timespec): Use long int, not long.
105075         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
105076         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
105077         Remove obsolescent call to AC_HEADER_TIME.
105078         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
105079         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
105080         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105081         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
105082         Likewise.
105083         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
105084         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
105085         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
105086         into the sys_time module.  Check for gettimeofday just once.
105087         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
105088         for gettimeofday signature to just check the signature.  Merely
105089         compile it, since linking doesn't test signature.  Improve test for
105090         whether gettimeofday.o is actually needed.
105091         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
105092         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
105093         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
105094         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105095         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
105096         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
105097         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
105098         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
105099         than worrying about sys/time.h.
105100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
105101         Don't bother worrying about TIME_WITH_SYS_TIME.
105102         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
105103         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
105104         * m4/sys_time_h.m4: New file.
105105         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
105106         Don't include sys/time.h.  Return from main rather than exiting.
105107         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
105108         all uses changed.
105109         * modules/gethrxtime (Depends-on): Add sys_time.
105110         * modules/gettime (Depends-on): Likewise.
105111         * modules/gettimeofday (Depends-on): Likewise.
105112         * modules/nanosleep (Depends-on): Likewise.
105113         * modules/settime (Depends-on): Likewise.
105114         * modules/tempname (Depends-on): Likewise.
105115         * modules/utimens (Depends-on): Likewise.
105116         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
105117         (Include): Change back to <sys/time.h>.
105118         (Maintainer): Add self.
105119         * modules/sys_time: New file.
105120         * modules/tempname (Depends-on): Add gettimeofday.
105121         * tests/test-gettimeofday.c: Include <sys/time.h>
105122         rather than gettimeofday.h.
105124 2007-01-17  Bruno Haible  <bruno@clisp.org>
105126         * gnulib-tool (func_get_license): Revert last patch. Instead, let
105127         the license default to GPL.
105128         (func_create_testdir): Don't complain if a module is LGPL and its
105129         tests module depends on GPLed modules.
105131 2007-01-17  Bruno Haible  <bruno@clisp.org>
105133         * lib/gettimeofday.c (gettimeofday): Add code for the case
105134         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
105135         maximum possible value for tv->tv_usec, rather than the minimum one.
105137 2005-10-08  Martin Lambers  <marlam@marlam.de>
105138 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
105139 2007-01-16  Bruno Haible  <bruno@clisp.org>
105141         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
105142         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
105143         gl_FUNC_GETTIMEOFDAY.
105144         (Include): Add gettimeofday.h.
105145         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
105146         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
105147         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
105148         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
105149         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
105150         * lib/gettimeofday.h: New file.
105151         * lib/gettimeofday.c: Include <sys/timeb.h>.
105152         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
105153         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105154         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
105155         fall back on time().
105157         * tests/test-gettimeofday.c: New file.
105158         * modules/gettimeofday-tests: New file.
105160 2007-01-16  Eric Blake  <ebb9@byu.net>
105162         * modules/fnmatch (Depends-on): Depend on wchar.
105163         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
105164         * m4/fnmatch.m4: Likewise.
105165         * modules/mbchar (Makefile.am): Assume <wchar.h>.
105166         * m4/mbchar.m4: Likewise.
105167         * modules/mbswidth (Depends-on): Depend on wchar.
105168         * lib/mbswidth.c: Assume <wchar.h>.
105169         * m4/mbswidth.m4: Likewise.
105170         * modules/quotearg (Depends-on): Depend on wchar.
105171         * lib/quotearg.c: Assume <wchar.h>.
105172         * m4/quotearg.m4: Likewise.
105173         * modules/regex (Depends-on): Depend on wchar.
105174         * lib/regex_internal.h: Assume <wchar.h>.
105175         * m4/regex.m4: Likewise.
105176         * modules/stdint (Depends-on): Depend on wchar.
105177         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
105178         * m4/stdint.m4: Likewise.
105179         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
105180         * modules/strftime (Depends-on): Depend on wchar.
105181         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
105182         * modules/strtol (Depends-on): Depend on wchar.
105183         * lib/strtol.c: Assume <wchar.h>.
105184         * modules/wcwidth (Depends-on): Depend on wchar.
105185         * lib/wcwidth.h: Assume <wchar.h>.
105186         * m4/wcwidth.m4: Likewise.
105188 2007-01-16  Bruno Haible  <bruno@clisp.org>
105190         * modules/csharpexec-script: New, created from...
105191         * modules/csharpexec: ... this.
105193 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
105195         * modules/javaexec-script: New, created from...
105196         * modules/javaexec: ... this.
105198 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105200         * modules/poll (Dependencies): Add sys_select.
105202 2007-01-15  Jim Meyering  <jim@meyering.net>
105204         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
105205         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
105206         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
105207         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
105209 2007-01-15  Bruno Haible  <bruno@clisp.org>
105211         * modules/striconveh: New file.
105212         * lib/striconveh.h: New file.
105213         * lib/striconveh.c: New file.
105214         * MODULES.html.sh (Internationalization functions): Add striconveh.
105216         * modules/striconveh-tests: New file.
105217         * tests/test-striconveh.c: New file.
105219 2007-01-15  Bruno Haible  <bruno@clisp.org>
105221         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
105222         not from GNU libiconv or GNU libc.
105224 2007-01-15  Bruno Haible  <bruno@clisp.org>
105226         * doc/gnulib-intro.texi (Copyright): Explain the different license
105227         terms for module descriptions, autoconf macros, tests, documentation.
105229 2007-01-14  Bruno Haible  <bruno@clisp.org>
105231         * modules/striconv-tests: New file.
105232         * tests/test-striconv.c: New file.
105234 2007-01-14  Bruno Haible  <bruno@clisp.org>
105236         * modules/iconv-tests: New file.
105237         * tests/test-iconv.c: New file.
105239 2007-01-14  Bruno Haible  <bruno@clisp.org>
105241         * gnulib-tool (func_get_license): For test modules, use the license of
105242         the main module.
105244 2007-01-14  Bruno Haible  <bruno@clisp.org>
105246         * modules/iconv (Include): Clarify that <iconv.h> can only be included
105247         if iconv is found to exist.
105249 2007-01-14  Bruno Haible  <bruno@clisp.org>
105251         * modules/c-ctype-tests: New file.
105252         * tests/test-c-ctype.c: New file.
105254 2007-01-14  Bruno Haible  <bruno@clisp.org>
105256         * modules/binary-io-tests: New file.
105257         * tests/test-binary-io.sh: New file.
105258         * tests/test-binary-io.c: New file.
105260 2007-01-14  Bruno Haible  <bruno@clisp.org>
105262         * modules/array-oset-tests: New file.
105263         * tests/test-array_oset.c: New file.
105265 2007-01-14  Bruno Haible  <bruno@clisp.org>
105267         * modules/array-list-tests: New file.
105268         * tests/test-array_list.c: New file.
105270 2007-01-14  Bruno Haible  <bruno@clisp.org>
105272         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
105273         and make.
105274         Reported by Simon Josefsson in
105275         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
105277 2007-01-14  Bruno Haible  <bruno@clisp.org>
105279         * modules/allocsa-tests: New file.
105280         * tests/test-allocsa.c: New file.
105282 2007-01-14  Bruno Haible  <bruno@clisp.org>
105284         * modules/fchdir (Depends-on): Add absolute-header.
105285         * modules/unistd (Depends-on): Likewise.
105287 2006-12-30  Bruno Haible  <bruno@clisp.org>
105289         * modules/fchdir: New file.
105290         * modules/unistd (Files): Add lib/unistd_.h.
105291         (Makefile.am): Generate unistd.h from unistd_.h.
105292         * lib/fchdir.c: New file.
105293         * lib/dirent_.h: New file.
105294         * lib/unistd_.h: New file.
105295         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
105296         * m4/fchdir.m4: New file.
105297         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
105298         (gl_HEADER_UNISTD): Invoke it.
105299         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
105300         function.
105301         * lib/backupfile.c (opendir, closedir): Undefine.
105302         * lib/chown.c (open, close): Undefine.
105303         * lib/clean-temp.c (open, close): Undefine.
105304         * lib/copy-file.c (open, close): Undefine.
105305         * lib/execute.c (open, close): Undefine.
105306         * lib/fsusage.c (open, close): Undefine.
105307         * lib/gc-gnulib.c (open, close): Undefine.
105308         * lib/getcwd.c (opendir, closedir): Undefine.
105309         * lib/glob.c (opendir, closedir): Undefine.
105310         * lib/javacomp.c (open, close): Undefine.
105311         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
105312         * lib/openat-proc.c (open, close): Undefine.
105313         * lib/pagealign_alloc.c (open, close): Undefine.
105314         * lib/pipe.c (open, close): Undefine.
105315         * lib/progreloc.c (open, close): Undefine.
105316         * lib/savedir.c (opendir, closedir): Undefine.
105317         * lib/utime.c (open, close): Undefine.
105318         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
105320 2007-01-10  Bruno Haible  <bruno@clisp.org>
105322         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
105324 2007-01-12  Eric Blake  <ebb9@byu.net>
105326         Provide a robust <wchar.h>.  Further simplifications are now
105327         possible in other modules, but not included here.
105328         * modules/wchar: New module.
105329         * m4/wchar.m4: New file.
105330         * lib/wchar_.h: Likewise.
105331         * modules/mbchar (Depends-on): Depend on wchar, as the first use
105332         of the new module.
105333         * MODULES.html.sh (Extended multibyte and wide character utilities):
105334         New section.
105336 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
105338         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
105339         to a reasonable default for memory allocation.
105340         (xreadlink): Don't allocate a huge buffer, to work around a buggy
105341         file system that reports garbage st_size values for symlinks.
105342         Problem reported by Liyang Hu.
105344 2007-01-11  Simon Josefsson  <simon@josefsson.org>
105346         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
105347         Emacs .#* auto-save files).
105349 2007-01-11  Bruno Haible  <bruno@clisp.org>
105351         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
105352         directory.
105354 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
105356         Use @...@ consistently in lib/wctype_.h.
105357         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
105358         on it being set to 1 or 0.
105359         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
105360         go back to AC_SUBSTing it.
105361         * modules/wctype (Makefile.am): Undo previous change.
105363 2007-01-10  Eric Blake  <ebb9@byu.net>
105365         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
105366         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
105367         * modules/wctype (Makefile.am): Likewise.
105368         Reported by Chris McGuire.
105370 2007-01-10  Jim Meyering  <jim@meyering.net>
105372         fts.c: a small readability/maintainability improvement
105373         * lib/fts.c (fts_read): Make this code slightly more readable and
105374         maintainable by hoisting the "sp->fts_cur = p" assignments to
105375         immediately follow the statements that set P.  Derived from
105376         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
105378 2007-01-10  Eric Blake  <ebb9@byu.net>
105380         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
105381         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
105382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
105383         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
105384         Reported by Chris McGuire.
105386 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105388         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
105389         in sed script.
105391 2007-01-09  Bruno Haible  <bruno@clisp.org>
105393         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
105394         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
105395         variables.
105396         (func_module): Use them.
105398 2007-01-09  Bruno Haible  <bruno@clisp.org>
105400         * modules/unistr/base: New file.
105401         * lib/unistr.h: New file.
105403         * modules/unistr/u8-to-u16: New file.
105404         * lib/unistr/u8-to-u16.c: New file.
105406         * modules/unistr/u8-to-u32: New file.
105407         * lib/unistr/u8-to-u32.c: New file.
105409         * modules/unistr/u16-to-u8: New file.
105410         * lib/unistr/u16-to-u8.c: New file.
105412         * modules/unistr/u16-to-u32: New file.
105413         * lib/unistr/u16-to-u32.c: New file.
105415         * modules/unistr/u32-to-u8: New file.
105416         * lib/unistr/u32-to-u8.c: New file.
105418         * modules/unistr/u32-to-u16: New file.
105419         * lib/unistr/u32-to-u16.c: New file.
105421         * modules/unistr/u8-check: New file.
105422         * modules/unistr/u16-check: New file.
105423         * modules/unistr/u32-check: New file.
105424         * lib/unistr/u8-check.c: New file.
105425         * lib/unistr/u16-check.c: New file.
105426         * lib/unistr/u32-check.c: New file.
105428         * modules/unistr/u8-chr: New file.
105429         * modules/unistr/u16-chr: New file.
105430         * modules/unistr/u32-chr: New file.
105431         * lib/unistr/u8-chr.c: New file.
105432         * lib/unistr/u16-chr.c: New file.
105433         * lib/unistr/u32-chr.c: New file.
105435         * modules/unistr/u8-cmp: New file.
105436         * modules/unistr/u16-cmp: New file.
105437         * modules/unistr/u32-cmp: New file.
105438         * lib/unistr/u8-cmp.c: New file.
105439         * lib/unistr/u16-cmp.c: New file.
105440         * lib/unistr/u32-cmp.c: New file.
105442         * modules/unistr/u8-cpy: New file.
105443         * modules/unistr/u16-cpy: New file.
105444         * modules/unistr/u32-cpy: New file.
105445         * lib/unistr/u8-cpy.c: New file.
105446         * lib/unistr/u16-cpy.c: New file.
105447         * lib/unistr/u32-cpy.c: New file.
105448         * lib/unistr/u-cpy.h: New file.
105450         * modules/unistr/u8-cpy-alloc: New file.
105451         * modules/unistr/u16-cpy-alloc: New file.
105452         * modules/unistr/u32-cpy-alloc: New file.
105453         * lib/unistr/u8-cpy-alloc.c: New file.
105454         * lib/unistr/u16-cpy-alloc.c: New file.
105455         * lib/unistr/u32-cpy-alloc.c: New file.
105456         * lib/unistr/u-cpy-alloc.h: New file.
105458         * modules/unistr/u8-endswith: New file.
105459         * modules/unistr/u16-endswith: New file.
105460         * modules/unistr/u32-endswith: New file.
105461         * lib/unistr/u8-endswith.c: New file.
105462         * lib/unistr/u16-endswith.c: New file.
105463         * lib/unistr/u32-endswith.c: New file.
105464         * lib/unistr/u-endswith.h: New file.
105466         * modules/unistr/u8-mblen: New file.
105467         * modules/unistr/u16-mblen: New file.
105468         * modules/unistr/u32-mblen: New file.
105469         * lib/unistr/u8-mblen.c: New file.
105470         * lib/unistr/u16-mblen.c: New file.
105471         * lib/unistr/u32-mblen.c: New file.
105473         * modules/unistr/u8-mbtouc: New file.
105474         * modules/unistr/u16-mbtouc: New file.
105475         * modules/unistr/u32-mbtouc: New file.
105476         * lib/unistr/u8-mbtouc.c: New file.
105477         * lib/unistr/u16-mbtouc.c: New file.
105478         * lib/unistr/u32-mbtouc.c: New file.
105480         * modules/unistr/u8-mbtouc-safe: New file.
105481         * modules/unistr/u16-mbtouc-safe: New file.
105482         * modules/unistr/u32-mbtouc-safe: New file.
105483         * lib/unistr/u8-mbtouc-safe.c: New file.
105484         * lib/unistr/u16-mbtouc-safe.c: New file.
105485         * lib/unistr/u32-mbtouc-safe.c: New file.
105487         * modules/unistr/u8-move: New file.
105488         * modules/unistr/u16-move: New file.
105489         * modules/unistr/u32-move: New file.
105490         * lib/unistr/u8-move.c: New file.
105491         * lib/unistr/u16-move.c: New file.
105492         * lib/unistr/u32-move.c: New file.
105493         * lib/unistr/u-move.h: New file.
105495         * modules/unistr/u8-next: New file.
105496         * modules/unistr/u16-next: New file.
105497         * modules/unistr/u32-next: New file.
105498         * lib/unistr/u8-next.c: New file.
105499         * lib/unistr/u16-next.c: New file.
105500         * lib/unistr/u32-next.c: New file.
105502         * modules/unistr/u8-prev: New file.
105503         * modules/unistr/u16-prev: New file.
105504         * modules/unistr/u32-prev: New file.
105505         * lib/unistr/u8-prev.c: New file.
105506         * lib/unistr/u16-prev.c: New file.
105507         * lib/unistr/u32-prev.c: New file.
105509         * modules/unistr/u8-set: New file.
105510         * modules/unistr/u16-set: New file.
105511         * modules/unistr/u32-set: New file.
105512         * lib/unistr/u8-set.c: New file.
105513         * lib/unistr/u16-set.c: New file.
105514         * lib/unistr/u32-set.c: New file.
105515         * lib/unistr/u-set.h: New file.
105517         * modules/unistr/u8-startswith: New file.
105518         * modules/unistr/u16-startswith: New file.
105519         * modules/unistr/u32-startswith: New file.
105520         * lib/unistr/u8-startswith.c: New file.
105521         * lib/unistr/u16-startswith.c: New file.
105522         * lib/unistr/u32-startswith.c: New file.
105523         * lib/unistr/u-startswith.h: New file.
105525         * modules/unistr/u8-stpcpy: New file.
105526         * modules/unistr/u16-stpcpy: New file.
105527         * modules/unistr/u32-stpcpy: New file.
105528         * lib/unistr/u8-stpcpy.c: New file.
105529         * lib/unistr/u16-stpcpy.c: New file.
105530         * lib/unistr/u32-stpcpy.c: New file.
105531         * lib/unistr/u-stpcpy.h: New file.
105533         * modules/unistr/u8-stpncpy: New file.
105534         * modules/unistr/u16-stpncpy: New file.
105535         * modules/unistr/u32-stpncpy: New file.
105536         * lib/unistr/u8-stpncpy.c: New file.
105537         * lib/unistr/u16-stpncpy.c: New file.
105538         * lib/unistr/u32-stpncpy.c: New file.
105539         * lib/unistr/u-stpncpy.h: New file.
105541         * modules/unistr/u8-strcat: New file.
105542         * modules/unistr/u16-strcat: New file.
105543         * modules/unistr/u32-strcat: New file.
105544         * lib/unistr/u8-strcat.c: New file.
105545         * lib/unistr/u16-strcat.c: New file.
105546         * lib/unistr/u32-strcat.c: New file.
105547         * lib/unistr/u-strcat.h: New file.
105549         * modules/unistr/u8-strchr: New file.
105550         * modules/unistr/u16-strchr: New file.
105551         * modules/unistr/u32-strchr: New file.
105552         * lib/unistr/u8-strchr.c: New file.
105553         * lib/unistr/u16-strchr.c: New file.
105554         * lib/unistr/u32-strchr.c: New file.
105556         * modules/unistr/u8-strcmp: New file.
105557         * modules/unistr/u16-strcmp: New file.
105558         * modules/unistr/u32-strcmp: New file.
105559         * lib/unistr/u8-strcmp.c: New file.
105560         * lib/unistr/u16-strcmp.c: New file.
105561         * lib/unistr/u32-strcmp.c: New file.
105563         * modules/unistr/u8-strcpy: New file.
105564         * modules/unistr/u16-strcpy: New file.
105565         * modules/unistr/u32-strcpy: New file.
105566         * lib/unistr/u8-strcpy.c: New file.
105567         * lib/unistr/u16-strcpy.c: New file.
105568         * lib/unistr/u32-strcpy.c: New file.
105569         * lib/unistr/u-strcpy.h: New file.
105571         * modules/unistr/u8-strcspn: New file.
105572         * modules/unistr/u16-strcspn: New file.
105573         * modules/unistr/u32-strcspn: New file.
105574         * lib/unistr/u8-strcspn.c: New file.
105575         * lib/unistr/u16-strcspn.c: New file.
105576         * lib/unistr/u32-strcspn.c: New file.
105577         * lib/unistr/u-strcspn.h: New file.
105579         * modules/unistr/u8-strdup: New file.
105580         * modules/unistr/u16-strdup: New file.
105581         * modules/unistr/u32-strdup: New file.
105582         * lib/unistr/u8-strdup.c: New file.
105583         * lib/unistr/u16-strdup.c: New file.
105584         * lib/unistr/u32-strdup.c: New file.
105585         * lib/unistr/u-strdup.h: New file.
105587         * modules/unistr/u8-strlen: New file.
105588         * modules/unistr/u16-strlen: New file.
105589         * modules/unistr/u32-strlen: New file.
105590         * lib/unistr/u8-strlen.c: New file.
105591         * lib/unistr/u16-strlen.c: New file.
105592         * lib/unistr/u32-strlen.c: New file.
105593         * lib/unistr/u-strlen.h: New file.
105595         * modules/unistr/u8-strmblen: New file.
105596         * modules/unistr/u16-strmblen: New file.
105597         * modules/unistr/u32-strmblen: New file.
105598         * lib/unistr/u8-strmblen.c: New file.
105599         * lib/unistr/u16-strmblen.c: New file.
105600         * lib/unistr/u32-strmblen.c: New file.
105602         * modules/unistr/u8-strmbtouc: New file.
105603         * modules/unistr/u16-strmbtouc: New file.
105604         * modules/unistr/u32-strmbtouc: New file.
105605         * lib/unistr/u8-strmbtouc.c: New file.
105606         * lib/unistr/u16-strmbtouc.c: New file.
105607         * lib/unistr/u32-strmbtouc.c: New file.
105609         * modules/unistr/u8-strncat: New file.
105610         * modules/unistr/u16-strncat: New file.
105611         * modules/unistr/u32-strncat: New file.
105612         * lib/unistr/u8-strncat.c: New file.
105613         * lib/unistr/u16-strncat.c: New file.
105614         * lib/unistr/u32-strncat.c: New file.
105615         * lib/unistr/u-strncat.h: New file.
105617         * modules/unistr/u8-strncmp: New file.
105618         * modules/unistr/u16-strncmp: New file.
105619         * modules/unistr/u32-strncmp: New file.
105620         * lib/unistr/u8-strncmp.c: New file.
105621         * lib/unistr/u16-strncmp.c: New file.
105622         * lib/unistr/u32-strncmp.c: New file.
105624         * modules/unistr/u8-strncpy: New file.
105625         * modules/unistr/u16-strncpy: New file.
105626         * modules/unistr/u32-strncpy: New file.
105627         * lib/unistr/u8-strncpy.c: New file.
105628         * lib/unistr/u16-strncpy.c: New file.
105629         * lib/unistr/u32-strncpy.c: New file.
105630         * lib/unistr/u-strncpy.h: New file.
105632         * modules/unistr/u8-strnlen: New file.
105633         * modules/unistr/u16-strnlen: New file.
105634         * modules/unistr/u32-strnlen: New file.
105635         * lib/unistr/u8-strnlen.c: New file.
105636         * lib/unistr/u16-strnlen.c: New file.
105637         * lib/unistr/u32-strnlen.c: New file.
105638         * lib/unistr/u-strnlen.h: New file.
105640         * modules/unistr/u8-strpbrk: New file.
105641         * modules/unistr/u16-strpbrk: New file.
105642         * modules/unistr/u32-strpbrk: New file.
105643         * lib/unistr/u8-strpbrk.c: New file.
105644         * lib/unistr/u16-strpbrk.c: New file.
105645         * lib/unistr/u32-strpbrk.c: New file.
105646         * lib/unistr/u-strpbrk.h: New file.
105648         * modules/unistr/u8-strrchr: New file.
105649         * modules/unistr/u16-strrchr: New file.
105650         * modules/unistr/u32-strrchr: New file.
105651         * lib/unistr/u8-strrchr.c: New file.
105652         * lib/unistr/u16-strrchr.c: New file.
105653         * lib/unistr/u32-strrchr.c: New file.
105655         * modules/unistr/u8-strspn: New file.
105656         * modules/unistr/u16-strspn: New file.
105657         * modules/unistr/u32-strspn: New file.
105658         * lib/unistr/u8-strspn.c: New file.
105659         * lib/unistr/u16-strspn.c: New file.
105660         * lib/unistr/u32-strspn.c: New file.
105661         * lib/unistr/u-strspn.h: New file.
105663         * modules/unistr/u8-strstr: New file.
105664         * modules/unistr/u16-strstr: New file.
105665         * modules/unistr/u32-strstr: New file.
105666         * lib/unistr/u8-strstr.c: New file.
105667         * lib/unistr/u16-strstr.c: New file.
105668         * lib/unistr/u32-strstr.c: New file.
105669         * lib/unistr/u-strstr.h: New file.
105671         * modules/unistr/u8-strtok: New file.
105672         * modules/unistr/u16-strtok: New file.
105673         * modules/unistr/u32-strtok: New file.
105674         * lib/unistr/u8-strtok.c: New file.
105675         * lib/unistr/u16-strtok.c: New file.
105676         * lib/unistr/u32-strtok.c: New file.
105677         * lib/unistr/u-strtok.h: New file.
105679         * modules/unistr/u8-uctomb: New file.
105680         * modules/unistr/u16-uctomb: New file.
105681         * modules/unistr/u32-uctomb: New file.
105682         * lib/unistr/u8-uctomb.c: New file.
105683         * lib/unistr/u16-uctomb.c: New file.
105684         * lib/unistr/u32-uctomb.c: New file.
105686         * MODULES.html.sh (Unicode string functions): Add the new modules.
105688 2007-01-08  Bruno Haible  <bruno@clisp.org>
105690         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
105691         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
105692         subdirectories.
105694 2007-01-08  Karl Berry  <karl@gnu.org>
105696         * doc/error.texi: mention that main() fns must set program_name
105697         when progname is used.
105699 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
105701         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
105702         WCTYPE_H is empty, for the benefit of builds from non-distclean
105703         directories.  Problem reported by Eric Blake in
105704         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
105706 2007-01-08  Bruno Haible  <bruno@clisp.org>
105708         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
105709         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
105710         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
105711         PROVIDE_CANONICALIZE_FILENAME_MODE.
105712         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
105714 2007-01-08  Bruno Haible  <bruno@clisp.org>
105716         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
105717         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
105718         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
105719         * lib/fts.c: Likewise.
105720         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
105722 2006-12-25  Bruno Haible  <bruno@clisp.org>
105724         * modules/utf8-ucs4-safe: New file.
105725         * lib/utf8-ucs4-safe.h: New file.
105726         * lib/unistr/utf8-ucs4-safe.c: New file.
105728         * modules/utf16-ucs4-safe: New file.
105729         * lib/utf16-ucs4-safe.h: New file.
105730         * lib/unistr/utf16-ucs4-safe.c: New file.
105732         * MODULES.html.sh (Unicode string functions): Add the new modules.
105734 2007-01-08  Bruno Haible  <bruno@clisp.org>
105736         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
105737         (Depends-on): Add unitypes.
105738         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
105739         (u8_mbtouc_aux): Move out to separate file.
105740         (u8_mbtouc): Use ucs4_t, uint8_t types.
105741         * lib/unistr/utf8-ucs4.c: New file.
105743         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
105744         (Depends-on): Add unitypes.
105745         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
105746         (u16_mbtouc_aux): Move out to separate file.
105747         (u16_mbtouc): Use ucs4_t, uint16_t types.
105748         * lib/unistr/utf16-ucs4.c: New file.
105750         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
105751         (Depends-on): Add unitypes.
105752         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
105753         (u8_uctomb_aux): Move out to separate file.
105754         (u8_uctomb): Use ucs4_t, uint8_t types.
105755         * lib/unistr/ucs4-utf8.c: New file.
105757         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
105758         (Depends-on): Add unitypes.
105759         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
105760         (u16_uctomb_aux): Move out to separate file.
105761         (u16_uctomb): Use ucs4_t, uint16_t types.
105762         * lib/unistr/ucs4-utf16.c: New file.
105764 2006-12-25  Bruno Haible  <bruno@clisp.org>
105766         * modules/unitypes: New file.
105767         * lib/unitypes.h: New file.
105768         * MODULES.html.sh (func_all_modules): New section "Unicode string
105769         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
105770         this section. Add unitypes.
105772 2007-01-08  Bruno Haible  <bruno@clisp.org>
105774         Avoid variable names that conflict with those from libtool.
105775         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
105776         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
105777         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
105778         library_names_spec to acl_library_names_spec, hardcode_* to
105779         acl_hardcode_*.
105780         Reported by Ralf Wildenhues.
105782 2007-01-08  Bruno Haible  <bruno@clisp.org>
105784         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
105785         definition.
105786         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
105787         definition.
105788         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
105789         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
105790         definition.
105791         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
105792         definition.
105793         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
105794         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
105795         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
105796         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
105797         definition.
105798         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
105799         definition.
105800         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
105801         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
105802         GC_USE_<algorithm>.
105803         * lib/gc-libgcrypt.c: Likewise.
105804         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
105805         * modules/gc-arctwo (configure.ac): Likewise.
105806         * modules/gc-des (configure.ac): Likewise.
105807         * modules/gc-hmac-md5 (configure.ac): Likewise.
105808         * modules/gc-hmac-sha1 (configure.ac): Likewise.
105809         * modules/gc-md2 (configure.ac): Likewise.
105810         * modules/gc-md4 (configure.ac): Likewise.
105811         * modules/gc-md5 (configure.ac): Likewise.
105812         * modules/gc-random (configure.ac): Likewise.
105813         * modules/gc-rijndael (configure.ac): Likewise.
105814         * modules/gc-sha1 (configure.ac): Likewise.
105816 2007-01-08  Bruno Haible  <bruno@clisp.org>
105818         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
105819         macro definition.
105820         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
105821         definition.
105822         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
105823         definition.
105824         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
105825         * modules/fcntl-safer (configure.ac): Likewise.
105826         * modules/fopen-safer (configure.ac): Likewise.
105827         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
105828         GNULIB_FWRITEERROR macro definition.
105830 2007-01-08  Bruno Haible  <bruno@clisp.org>
105832         * m4/gnulib-common.m4: New file.
105833         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
105834         (func_get_filelist): Add m4/gnulib-common.m4.
105836 2007-01-08  Bruno Haible  <bruno@clisp.org>
105838         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
105839         command.
105841 2007-01-08  Jim Meyering  <jim@meyering.net>
105843         Use a more robust test for a "can't happen" condition.
105844         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
105845         narrowed the st_size value.  Presuming the "can't happen" condition
105846         is true, that narrowing could conceivably convert an invalid st_size
105847         value into a valid one.  Instead, use a change based on Matthew
105848         Woehlke's original patch.
105850         Slight readability improvement: use an assert-like macro
105851         in place of literal "abort ()" uses.
105852         * lib/fts.c (fts_assert): Define.
105853         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
105854         Use this macro instead of a bare 'abort'.
105856 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
105858         Don't worry about using IRIX 5.3's wctype.h broken definitions;
105859         simply work around them.
105860         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
105861         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
105862         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
105863         declaring.
105864         Don't bother to define as macros, since the standard doesn't require it.
105865         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
105866         longer worry about IRIX 5.3.
105867         (HAVE_WCTYPE_CTMP_BUG): Remove.
105869 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
105871         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
105872         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
105873         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
105874         Problems reported by Georg Schwarz for IRIX 5.3.
105876         * gnulib-tool (autoconf_minversion): Take the maximum version number
105877         found, not the minimum.  Problem reported by James Youngman.
105879 2007-01-03  Karl Berry  <karl@gnu.org>
105881         * doc/error.texi: new file, explaining interaction with progname.
105882         * doc/gnulib.texi: include it.  Update copyright.
105884 2007-01-03  Simon Josefsson  <simon@josefsson.org>
105886         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
105887         AC_CANONICAL_HOST, to improve autobuild outputs.
105889 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
105890             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
105892         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
105893         sockets, server sockets, and other file descriptors.  Count errors
105894         to compute the return value.  Reorder the code a bit to be easier
105895         to follow.  Don't set event bits that were not requested (except
105896         POLLERR and POLLHUP).
105898 2007-01-01  Bruno Haible  <bruno@clisp.org>
105900         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
105902 2007-01-03  Jim Meyering  <jim@meyering.net>
105904         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
105906 2007-01-02  Bruno Haible  <bruno@clisp.org>
105908         * modules/settime (Include): Require timespec.h.
105909         * modules/nanosleep (Include): Likewise.
105911 2007-01-01  Bruno Haible  <bruno@clisp.org>
105913         * gnulib-tool (func_emit_copyright_notice): Bump year.
105914         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
105916 2007-01-01  Bruno Haible  <bruno@clisp.org>
105918         Improve support for OpenBSD.
105919         * build-aux/config.rpath (libname_spec): Export.
105920         (library_names_spec): New variable. Export.
105921         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
105922         library_names_spec from the config.rpath output. Locate shared library
105923         through the name pattern in library_names_spec.
105925 2007-01-01  Eric Blake  <ebb9@byu.net>
105927         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
105929 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
105931         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
105932         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
105933         assume the C locale, and avoid an "eval" that could cause trouble.
105934         Problem with SORT reported by Bob Proulx.
105936         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
105937         Define.  Trivial patch from Henning Nielsen Lund, originally
105938         sent to bug-grep@gnu.org today.
105940 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
105942         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
105943         struct stat.  Problem reported by Henning Nielsen Lund.
105944         * lib/acl.c: Include acl.h first, to check interface.  Don't
105945         bother to include sys/types.h and sys/stat.h again.
105947 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
105949         Import the following change from libc; problem reported by
105950         Sven Verdoolaege.
105952         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
105954         [BZ #1373]
105955         * lib/argp.h: Remove __NTH for __argp_usage inline function.
105957 2006-12-28  Jim Meyering  <jim@meyering.net>
105959         * build-aux/announce-gen: Do not assume that the package
105960         builds any of tar.gz, tar.bz2, and .xdelta files.
105961         Suggestion from Simon Josefsson.
105963 2006-12-28  Simon Josefsson  <simon@josefsson.org>
105965         * modules/announce-gen: New file.
105967 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
105969         * lib/mbchar.h: Just include <wctype.h>; the wctype module
105970         handles its gotchas now.
105971         * lib/mbswidth.c: Likewise.
105972         * lib/wcwidth.h: Likewise.
105973         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
105974         and iswcntrl; the wctype module does this stuff now.
105975         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
105976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
105977         * modules/mbchar (Depends-on): Add wctype.
105978         * modules/mbswidth (Depends-on): Likewise.
105979         * modules/wcwidth (Depends-on): Likewise.
105981 2006-12-27  Eric Blake  <ebb9@byu.net>
105983         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
105984         module uses more than what <wctype.h> is required to provide.
105986 2006-12-26  Eric Blake  <ebb9@byu.net>
105988         * gnulib-tool (sed_extract_prog): Avoid space-tab.
105990 2006-12-26  Eric Blake  <ebb9@byu.net>
105992         * modules/absolute-header: New module.
105993         * modules/fcntl (Depends-on): Depend on it.
105994         * modules/inttypes (Depends-on): Likewise.
105995         * modules/stdint (Depends-on): Likewise.
105996         * modules/sys_stat (Depends-on): Likewise.
105997         * modules/wctype (Depends-on): Likewise.
105998         * MODULES.html.sh (Support for building libraries and
105999         executables): Document it.
106001 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
106003         * gnulib-tool (SED): Remove, undoing previous change.
106004         The problem was that it broke coreutils on Solaris, because
106005         "sed --posix" leaked into a makefile.
106006         (sed): New alias, if 'alias' and GNU sed.
106008 2006-12-24  Jim Meyering  <jim@meyering.net>
106010         Work around an fchownat bug in glibc-2.4:
106011         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
106012         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
106013         in spite of the -P option.
106014         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
106015         New macros.
106016         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
106017         * modules/openat (Files): Add lib/fchownat.c.
106018         * lib/openat.c (fchownat): Don't define here.  Move to...
106019         * lib/fchownat.c: ...this new file.
106021 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
106023         Fix bug reported by Bruno Haible in
106024         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
106025         where quotearg.c didn't compile on Mac OS X 10.2 because it
106026         lacks <wchar.h> and wint_t.
106027         * lib/wctype_.h (__wctype_wint_t): New type.
106028         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
106029         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
106030         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
106031         Arg is now of type __wctype_wint_t, not wint_t.
106032         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
106033         substitute HAVE_WINT_T.
106034         * modules/wctype (Files): Add m4/wint_t.m4.
106035         (wctype.h): Substitute HAVE_WINT_T.
106037 2006-12-23  Bruno Haible  <bruno@clisp.org>
106039         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
106041 2006-12-23  Bruno Haible  <bruno@clisp.org>
106043         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
106044         S_ISLNK.
106045         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
106046         mingw.
106048 2006-12-22  Bruno Haible  <bruno@clisp.org>
106050         * lib/copy-file.c: Include acl.h.
106051         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
106052         Close the file descriptors only after being done with copy_acl.
106053         * modules/copy-file (Depends-on): Add acl.
106055 2006-12-22  Bruno Haible  <bruno@clisp.org>
106057         * gnulib-tool (SED): New variable.
106058         Use $SED instead of sed everywhere.
106060 2006-12-22  Bruno Haible  <bruno@clisp.org>
106062         * modules/no-c++: New file.
106063         * m4/no-c++.m4: New file.
106064         * MODULES.html.sh (Support for building libraries and executables):
106065         Add no-c++.
106067 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
106069         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
106070         Include <limits.h>, and use its INT_MAX to rewrite the
106071         j loop so that it does not overflow 'int'.  Problem reported by
106072         Ralf Wildenhues in
106073         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
106074         Play it safe by shifting left by 1 rather than multiplying by 2,
106075         as GCC is less likely to optimize this away when the value
106076         is signed (when it assumes overflow leads to undefined behavior).
106077         Also, don't assume time_t uses two's complement.
106079 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
106081         * MODULES.html.sh: New module wctype.
106082         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
106083         * lib/fnmatch.c: Don't bother to include <wchar.h> before
106084         <wctype.h>, since the new wctype module should fix this.
106085         * lib/quotearg.c: Include <wctype.h> unconditionally, since
106086         the wctype module should arrange for it.
106087         * lib/regex_internal.h: Likewise.
106088         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
106089         since the wctype module should handle this now.
106090         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
106091         * modules/fnmatch (Depends-on): Add wctype.
106092         * modules/quotearg (Depends-on): Likewise.
106093         * modules/regex (Depends-on): Likewise.
106095 2006-12-19  Bruno Haible  <bruno@clisp.org>
106097         * lib/strdup.h [C++]: Wrap definitions in extern "C".
106098         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
106100 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106102         * modules/savewd (Depends-on): Fix dependency on fcntl.
106104 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106106         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
106107         conforms to C99, rather than relying on the user's environment
106108         setting of STDINT_H.
106110 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106111         and Eric Blake  <ebb9@byu.net>
106113         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
106114         This is more consistent with the other defines here.
106115         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
106116         Port to z/OS.  Problem reported by Paul Gilmartin.
106117         Change local vars to use gl_ prefix rather than ac_.
106118         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
106119         with other defines.
106120         * modules/double-slash-root: New module.
106121         * modules/dirname (Files): Remove m4/double-slash-root.m4.
106122         (Depends-on): Add double-slash-root.
106123         * MODULES.html.sh (File system functions): Mention new module.
106125 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
106127         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
106128         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
106129         This is for the benefit of gzip, which doesn't do i18n.
106131 2006-12-12  Jim Meyering  <jim@meyering.net>
106133         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
106134         Reported by Andreas Schwab <schwab@suse.de>.
106136 2006-12-12  Bruno Haible  <bruno@clisp.org>
106138         Merge these changes.
106139         2006-09-05  Bruno Haible  <bruno@clisp.org>
106140         * lib/iconvme.c (iconv_string): No need to save and restore errno when
106141         iconv_alloc succeeded.
106142         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
106143         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
106144         test for " && dest " at the end - dest is always != NULL there. Call
106145         iconv with 4xNULL arguments initially, to reset the state. Call iconv
106146         with 2xNULL arguments, also to flush the state storage. Handle the
106147         IRIX iconv behaviour. Realloc the final result, to throw away unused
106148         memory.
106150 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
106152         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
106153         and fchmodat unconditionally, since glibc 2.4 has them.
106154         Problem reported by Arkadiusz Miskiewicz.
106156 2006-12-10  Bruno Haible  <bruno@clisp.org>
106158         * gnulib-tool (func_import): Show the include files only for those
106159         modules that are copied and specified.
106160         Reported by Karl Berry.
106162 2006-12-08  Jim Meyering  <jim@meyering.net>
106164         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
106165         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
106167         * build-aux/announce-gen: Add two new options, both optional:
106168         --bootstrap-tools=TOOL_LIST
106169               a comma-separated list of tools, e.g.,
106170               autoconf,automake,bison,gnulib
106171         --gnulib-snapshot-date=DATE
106172               if gnulib is in the bootstrap tool list,
106173               then report this as the snapshot date.
106174               If not specified, use the current date/time.
106175               If you specify a date here, be sure it's UTC.
106177 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106179         * tests/test-argp-2.sh: Fix test to match actual output.
106180         (func_compare): Fix sed script to be portable.
106182 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
106184         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
106185         workaround for this case.  It is not autoconfigured now; offhand
106186         it's hard to see how to autoconfigure it.
106188 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
106190         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
106191         a directory that is about to be chowned.  Such a directory's
106192         initial file permissions should permit the owner only and this
106193         should not be changed until after the chown, since the group and
106194         other bits would be incorrect if they granted permission before
106195         the chown.
106197         Fix porting problem for iswctype reported by Georg Schwarz in:
106198         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
106199         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
106200         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
106201         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
106202         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
106204 2006-12-03  Jim Meyering  <jim@meyering.net>
106206         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
106207         p->fts_statp may not yet be defined.
106208         (fts_read): Instead, set it in the caller, once p->fts_statp is
106209         sure to be defined, and corresponds to a top-level directory.
106210         This bug made du -x fail.  Here's the coreutils test case:
106211         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
106212         Reported by Mike Frysinger.
106214 2006-12-01  Jim Meyering  <jim@meyering.net>
106216         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
106217         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
106218         Reported by Simon Josefsson.
106220 2006-11-30  Jim Meyering  <jim@meyering.net>
106222         * m4/warning.m4: Use the all-permissive copyright notice
106223         recommended by RMS (rather than LGPL).
106224         * m4/vararrays.m4: Likewise.
106225         * m4/flexmember.m4: Likewise.
106227 2006-11-29  Bruno Haible  <bruno@clisp.org>
106229         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106230         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
106231         using +=.
106232         Reported by Simon Josefsson <simon@josefsson.org>.
106234 2006-11-28  James Youngman  <jay@gnu.org>
106236         * README: Advise users that they might find the bug-gnulib@gnu.org
106237         and autotools-announce@gnu.org mailing lists useful.
106239 2006-11-28  Bruno Haible  <bruno@clisp.org>
106241         * m4/ptrdiff_max.m4: Remove file.
106243 2006-11-21  Bruno Haible  <bruno@clisp.org>
106245         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
106246         _AC_COMPUTE_INT.
106247         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106248         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
106249         _AC_COMPUTE_INT.
106250         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106251         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
106252         _AC_COMPUTE_INT.
106253         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106255 2006-11-28  Jim Meyering  <jim@meyering.net>
106257         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
106258         warning from "gcc -Wshadow" about shadowing the builtin.
106260 2006-11-27  Bruno Haible  <bruno@clisp.org>
106262         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
106263         _AC_COMPUTE_INT.
106264         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106266 2006-11-27  Bruno Haible  <bruno@clisp.org>
106267             Paul Eggert  <eggert@cs.ucla.edu>
106269         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
106271 2006-11-26  Bruno Haible  <bruno@clisp.org>
106273         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106274         noinst_LTLIBRARIES.
106276 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
106277             Bruno Haible  <bruno@clisp.org>
106279         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
106280         if compiling with "gcc -ansi".
106282 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
106284         Fix some incompatibilities with gcc -ansi -pedantic.
106285         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
106286         if compiling pedantically with GCC, unless it's C99 or later.
106287         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
106288         it mishandles gcc -ansi -pedantic as well.
106289         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
106290         if gcc -pedantic.
106291         * lib/regexec.c (check_node_accept_bytes): Don't use auto
106292         initializers for struct if -pedantic, unless it's C99 or later.
106294 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
106296         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
106297         Don't close an fd more than once. Identical atimes indicate
106298         success, not failure.
106300 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
106302         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
106304 2006-11-23  Jim Meyering  <jim@meyering.net>
106306         * build-aux/announce-gen: New file.  From coreutils.
106308 2006-11-22  Jim Meyering  <jim@meyering.net>
106310         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
106311         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
106312         (fts_read): Use a temporary to narrow the overused st_size member
106313         before using it in a switch statement.  Reported by Matthew Woehlke.
106315         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
106316         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
106318 2006-11-20  Bruno Haible  <bruno@clisp.org>
106320         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
106321         changequote instead of pairs of brackets.
106322         Reported by Andreas Schwab <schwab@suse.de>.
106324 2006-11-21  Jim Meyering  <jim@meyering.net>
106326         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
106327         so as to remain compatible with older compilers.
106328         Patch from Michael Deutschmann.
106330 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106332         * MODULES.html.sh (File system functions): Add openat.
106334         * lib/openat.h (rpl_fstatat): New macro, if
106335         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
106336         (fstatat): Define to rpl_fstatat under the same conditions,
106337         unless COMPILING_FSTATAT.
106338         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
106339         seems to have the bug.
106340         * lib/fstatat.c: New file.
106341         * modules/openat (Files): Add it.
106343 2006-11-20  Bruno Haible  <bruno@clisp.org>
106345         * Makefile: New file.
106347 2006-11-20  Jim Meyering  <jim@meyering.net>
106349         The beginnings of syntax-related checks for gnulib.
106350         * lib/Makefile: New file.
106351         * lib/t-idcache: New script.  Ensure that the two halves of
106352         idcache.c stay in sync.
106354         * lib/idcache.c: Adjust comments in user- and group- portions to
106355         be more accurate, and to be consistent with one another.
106357 2006-11-20  Jim Meyering  <jim@meyering.net>
106359         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
106360         continue using the flexible array member (thus, this module performs
106361         half as many malloc calls), with the addition that...
106362         (getgroup, getuser): Consistently record a non-match via an empty
106363         "name" string, and map an empty string match to a NULL return value.
106364         * modules/idcache (Depends-on): Re-add flexmember.
106366         * lib/idcache.c (getuser): Remove all uses of the register keyword.
106367         (getuidbyname, getgroup, getgidbyname): Likewise.
106369         Use cleaner syntax: NULL rather than 0.
106370         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
106372 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106374         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
106375         It mishandled the case where the group was missing.
106376         Problem reported by Greg Schafer.
106377         * modules/idcache: Likewise.
106379 2006-11-18  Jim Meyering  <jim@meyering.net>
106381         * check-module (%exempt_header): Add exception for some
106382         conditionally-included headers.
106384         * modules/i-ring (Depends-on): Add verify.
106385         (License): Change to LGPL.
106387 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
106389         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
106390         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
106391         and inttostr.h.  Use snprintf rather than uinttostr, so that
106392         LGPLed code doesn't depend on GPLed.
106394 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
106396         * modules/inline (License): Change from GPL to LGPL.
106398 2006-11-17  Jim Meyering  <jim@meyering.net>
106400         * modules/d-type (License): Switch to LGPL.
106402 2006-11-15  Bruno Haible  <bruno@clisp.org>
106404         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
106406 2006-11-15  Eric Blake  <ebb9@byu.net>
106408         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
106409         the module dependency.
106411 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106412             Bruno Haible  <bruno@clisp.org>
106414         * gnulib-tool (func_create_testdir): Add license consistency check.
106416 2006-11-15  Eric Blake  <ebb9@byu.net>
106418         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
106419         random "(cached)" in configure output.
106421 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106423         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
106424         test for conforming inttypes.h is both announced and cached.
106426         * MODULES.html.sh (seen_modules, seen_files): New variables.
106427         (func_module): Rewrite to use a few less gnulib-tool and sed
106428         invocations.  Avoid a couple of quadratic algorithms for ...
106429         (missed_modules, missed_files): ... these, with ...
106430         (func_append, func_tmpdir): ... these new functions, from
106431         gnulib-tool.  Analogously, install traps for cleanup.
106433         * tests/test-gc.c (main): Remove unused variables.
106434         * tests/test-read-file.c: Include stdlib.h, for 'free'.
106436 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
106438         * modules/inttostr (License): Change to LGPL.
106440 2006-11-14  Eric Blake  <ebb9@byu.net>
106442         * modules/tempname (License): Change to LGPL.
106444 2006-11-14  Eric Blake  <ebb9@byu.net>
106446         * doc/functions.texi (Function Portability): *printf functions on
106447         Cygwin now understand all POSIX size specifiers.
106449 2006-11-14  Bruno Haible  <bruno@clisp.org>
106451         * modules/c-ctype (License): Change to LGPL.
106453 2006-11-12  Bruno Haible  <bruno@clisp.org>
106455         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
106456         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
106457         for GNOME libraries, for which the include files are installed in
106458         subdirectories of $prefix/include.
106460 2006-11-12  Bruno Haible  <bruno@clisp.org>
106462         * m4/lib-link.m4: Require at least autoconf-2.54.
106463         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
106464         name to underscores for the --with option.
106466 2006-11-13  Bruno Haible  <bruno@clisp.org>
106468         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
106469         the tests directory.
106470         Reported by Ralf Wildenhues.
106472 2006-11-13  Bruno Haible  <bruno@clisp.org>
106474         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
106475         (func_emit_initmacro_end): Undo the override here.
106476         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
106477         Works around the famous automake error in coreutils.
106479 2006-11-13  Eric Blake  <ebb9@byu.net>
106481         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
106482         element, not its node.
106484 2006-11-12  Bruno Haible  <bruno@clisp.org>
106486         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
106487         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
106489 2006-11-12  Bruno Haible  <bruno@clisp.org>
106491         * gnulib-tool: New option --local-symlink.
106492         (func_usage): Document it.
106493         (lsymbolic): New variable.
106494         (func_import, func_create_testdir): If --symlink was not specified,
106495         test whether --local-symlink was specified and the file comes from
106496         the local_gnulib_dir.
106498 2006-11-12  Bruno Haible  <bruno@clisp.org>
106500         * gnulib-tool (func_ln): New function.
106501         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
106503 2006-11-12  Bruno Haible  <bruno@clisp.org>
106505         Finish support for source files in subdirectories.
106506         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
106507         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
106508         AUTOMAKE_OPTIONS.
106509         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
106511 2006-11-12  Bruno Haible  <bruno@clisp.org>
106513         * gnulib-tool (func_get_automake_snippet): Synthesize also an
106514         EXTRA_lib_SOURCES augmentation.
106515         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
106517 2006-11-12  Jim Meyering  <jim@meyering.net>
106519         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
106520         file descriptors.  This also averts a failure on systems with
106521         native openat support when a traversed directory lacks "x" access.
106522         * lib/fts_.h: Include "i-ring.h"
106523         (struct FTS) [fts_fd_ring]: New member.
106524         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
106525         (FCHDIR): Add parentheses.
106526         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
106527         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
106528         When descending, rather than simply closing the previous
106529         fts_cwd_fd value, push that file descriptor onto the ring.
106530         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
106531         (fts_open): Initialize the new fd_ring member.
106532         (fts_close): Clear the ring.
106533         (fts_safe_changedir): When possible, use our new fd_ring to skip
106534         the diropen and fstat and dev/ino comparison that would normally
106535         accompany a virtual `chdir ("..")'.
106537         * modules/fts (Depends-on): Add i-ring.
106538         * modules/i-ring: New module.
106539         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
106540         * m4/i-ring.m4: New file.
106542 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106544         * gnulib-tool (func_create_testdir): Fix replacement of
106545         `build-aux' in configure.ac.  Run autotools in gltests
106546         subdirectory.
106547         (func_create_testdir, func_create_megatestdir, test): There is
106548         no need for '--force' in most autotool invocations in a new
106549         tree.  Actually fail the whole test if any of the tools, or the
106550         configure or make stages fail.
106552         Sync from Automake.
106553         * build-aux/gnupload: Revert last change.  Add pointer to upload
106554         instructions of the GNU Maintenance Instructions.
106555         Suggestion by Karl Berry.
106557 2006-11-10  Jim Meyering  <jim@meyering.net>
106559         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
106561 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106563         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
106564         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
106565         (bind_textdomain_codeset) [! ENABLE_NLS]:
106566         Evaluate all the arguments.  That way, callers get compatible behavior
106567         if the arguments have side effects.  Also, it avoids some GCC
106568         diagnostics in some cases; Joel E. Denny reported problems when Bison
106569         was configured with --enable-gcc-warnigs.
106571 2006-11-10  Jim Meyering  <jim@meyering.net>
106573         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
106574         relevant options in CFLAGS (like -O, -fno-inline) are taken into
106575         account.
106577 2006-11-10  Jim Meyering  <jim@meyering.net>
106579         * modules/inline: New file/module.
106580         * modules/xalloc (Files): Remove m4/inline.m4.
106581         (Depends-on): Add inline, instead.
106582         * modules/oset: Likewise.
106583         * modules/list: Likewise.
106585 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106587         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
106588         Problem reported by Matthew Woehlke.
106590 2006-11-09  Bruno Haible  <bruno@clisp.org>
106592         * lib/tempname.c (gen_tempname): Remove variant that invokes
106593         __gen_tempname.
106594         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
106595         __gen_tempname.
106597 2006-11-08  Bruno Haible  <bruno@clisp.org>
106599         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
106600         to 'yes' instead of 'cross-compiling'.
106602 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
106604         * lib/quotearg.h (quotearg_free): New decl.
106605         * lib/quotearg.c (quotearg_free): New function.
106606         (slot0, nslots, slotvec0, slotvec):
106607         Now file-scope so that quotearg_free can get at them.
106609 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106611         Sync from Automake.
106612         * build-aux/gnupload: Add missing 'gnu' to example URL.
106613         Report by Karl Berry.
106615 2006-11-08  Bruno Haible  <bruno@clisp.org>
106617         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
106618         Suggested by Paul Eggert.
106620 2006-11-08  Jim Meyering  <jim@meyering.net>
106622         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
106623         It's already included if !_LIBC.
106624         (fts_safe_changedir): Add a comment.
106626 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
106628         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
106629         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
106630         Matthew Woehlke.
106632         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
106633         definitions up, to avoid colliding with change below.
106634         (static_inline) [HAVE_INLINE]: New macro.
106635         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
106636         Provide extern decls when !HAVE_INLINE.  Do not define unless
106637         static_inline is defined, either by us or by xmalloc.c.  Use
106638         static_inline rather than static inline.
106639         (XCALLOC): Optimize sizeof(T) = 1 case.
106640         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
106642 2006-11-07  Bruno Haible  <bruno@clisp.org>
106644         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
106645         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
106646         AC_C_INLINE.
106647         * modules/xalloc (Files): Add m4/inline.m4.
106649 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106651         * README: Fix typo.
106652         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
106653         (Miscellanous Notes): ...from this.
106655 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
106657         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
106658         Mention that offsetof should be used instead of sizeof.
106659         From Bruno Haible.
106661 2006-11-07  Bruno Haible  <bruno@clisp.org>
106663         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
106665 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
106667         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
106668         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
106669         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
106670         (gl_tree_add_before, gl_tree_add_after):
106671         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
106672         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
106673         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
106674         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
106675         (gl_linked_add_after, gl_linked_add_at): Likewise.
106676         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
106677         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
106678         (gl_tree_add_before, gl_tree_add_after): Likewise.
106679         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
106680         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
106681         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
106683 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106685         * lib/gl_oset.h: Use C comment style, not C++ comment style.
106687 2006-11-06  Bruno Haible  <bruno@clisp.org>
106689         * m4/inline.m4: New file.
106690         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
106691         * modules/list (Files): Add m4/inline.m4.
106692         * modules/oset (Files): Likewise.
106694 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
106696         * lib/idcache.c: Include <stddef.h>, for offsetof.
106697         (struct userid.name): Change from char * to a flexible array member.
106698         All uses changed.
106699         * modules/idcache (Depends-on): Add flexmember.
106701         * MODULES.html.sh (Core language properties): New module flexmember.
106702         * modules/flexmember, m4/flexmember.m4: New files.
106704         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
106705         inline functions that are identical with the old xnmalloc_inline,
106706         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
106707         that we can avoid some unnecessary integer multiplications and
106708         divisions in the common case where the element size is known at
106709         compile time.
106710         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
106711         needed.
106712         (xnboundedmalloc): Remove.
106713         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
106714         arguments, for consistency with rest of this header.
106715         (xcharalloc): Rewrite using XNMALLOC.
106716         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
106717         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
106718         versions have been moved to lib/xalloc.h and renamed to be the
106719         non-*_inline versions.
106720         (xmalloc, xrealloc): Implement without reference to the xnmalloc
106721         and xnrealloc functions, since those functions are now inline and
106722         now call us.
106723         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
106724         renaming described above.
106725         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
106726         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
106727         captures the dependency in AC_C_INLINE.
106729         New module canonicalize-lgpl, proposed by Charles Wilson in
106730         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
106731         with a few small changes afterwards.
106732         * MODULES.html.sh (File system functions): New module
106733         canonicalize-lgpl.
106734         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
106735         and canonicalize_file_name.
106736         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
106737         * modules/canonicalize-lgpl: New files.
106739 2006-11-05  Bruno Haible  <bruno@clisp.org>
106741         * gnulib-tool (func_import, func_create_testdir): Create directories
106742         also for files in subdirectories of lib/.
106744 2006-11-05  Bruno Haible  <bruno@clisp.org>
106746         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
106747         ANSI C compliant.
106749 2006-11-03  Bruno Haible  <bruno@clisp.org>
106751         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
106752         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
106753         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
106754         (xnboundedmalloc): New inline function.
106755         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
106756         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
106757         xmalloc.
106758         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
106759         xmalloc.
106760         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
106761         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
106762         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
106763         xmalloc.
106764         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
106765         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
106766         xmalloc.
106767         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
106768         gl_tree_add_after): Use XMALLOC instead of xmalloc.
106769         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
106770         xmalloc.
106771         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
106772         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
106773         gl_tree_add_after): Use XMALLOC instead of xmalloc.
106774         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
106775         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
106776         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
106777         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
106779 2006-11-03  Bruno Haible  <bruno@clisp.org>
106781         * lib/c-ctype.h [C++]: Define functions without name mangling.
106782         * lib/fwriteerror.h [C++]: Likewise.
106783         * lib/gcd.h [C++]: Likewise.
106784         * lib/linebreak.h [C++]: Likewise.
106786 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
106788         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
106789         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
106790         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
106791         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
106792         Check for functions and headers just once.
106793         Check for declaration of canonicalize_file_name.
106794         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
106796 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
106798         * gnulib-tool (func_import): Fix typo in actioncmd.
106800 2006-11-02  Bruno Haible  <bruno@clisp.org>
106802         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
106803         newline sequence in the Makefile.am snippet as a space, like "make"
106804         does.
106805         Reported by Roger Persson <perrog@gmail.com>.
106807 2006-11-01  Bruno Haible  <bruno@clisp.org>
106809         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
106810         already declared in <string.h>.
106811         * lib/strcase.h (strncasecmp): Don't declare it if yes.
106813 2006-11-01  Bruno Haible  <bruno@clisp.org>
106815         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
106816         * lib/strcase.h: Include <string.h>.
106817         (strcasecmp): Define to rpl_strcasecmp here.
106819 2006-11-01  Bruno Haible  <bruno@clisp.org>
106821         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
106823 2006-11-01  Eric Blake  <ebb9@byu.net>
106825         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
106827         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
106829 2006-10-29  Bruno Haible  <bruno@clisp.org>
106831         Make it compile in C++ mode.
106832         * lib/full-write.c (full_rw): Add a cast.
106834 2006-11-01  Bruno Haible  <bruno@clisp.org>
106836         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
106837         be POSIX compliant.
106838         Reported by Roger Persson <perrog@gmail.com>.
106840 2006-11-01  Eric Blake  <ebb9@byu.net>
106842         * lib/getopt_.h: Fix comments.
106844 2006-10-31  Eric Blake  <ebb9@byu.net>
106846         * modules/tmpdir (Depends-on): Add sys_stat.
106847         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
106848         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
106849         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
106850         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
106851         tempname.
106853 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
106855         Avoid some C++ diagnostics reported by Bruno Haible.
106856         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
106857         xmalloc.
106858         (quotearg_alloc): Use xcharalloc rather than xmalloc.
106859         (struct slotvec): Move to top level.
106860         (quotearg_n_options): Rewrite to avoid xmalloc.
106861         * lib/xalloc.h (xcharalloc): New function.
106862         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
106863         [defined __cplusplus]: Add function template that provides result
106864         type propagation.  This part of the change is from Bruno Haible.
106866 2006-10-29  Bruno Haible  <bruno@clisp.org>
106868         Make it compile in C++ mode.
106869         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
106870         * lib/strnlen1.c (strnlen1): Cast memchr result.
106871         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
106872         * lib/clean-temp.c (string_equals, string_hash): Add casts.
106873         (create_temp_dir): Rename local variable 'template'.
106874         (compile_csharp_using_sscli): Add cast.
106875         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
106876         * lib/findprog.c (find_in_path): Likewise.
106877         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
106878         * lib/wait-process.c (register_slave_subprocess): Likewise.
106880 2006-10-22  Bruno Haible  <bruno@clisp.org>
106882         * modules/tsearch: New file.
106883         * lib/tsearch.h: New file.
106884         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
106885         * m4/tsearch.m4: New file.
106886         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
106888 2006-10-29  Eric Blake  <ebb9@byu.net>
106890         * lib/arcfour.c: Assume config.h.
106891         * lib/arctwo.c: Likewise.
106892         * lib/base64.c: Likewise.
106893         * lib/check-version.c: Likewise.
106894         * lib/crc.c: Likewise.
106895         * lib/des.c: Likewise.
106896         * lib/gc-gnulib.c: Likewise.
106897         * lib/gc-libgcrypt.c: Likewise.
106898         * lib/gc-pbkdf2-sha1.c: Likewise.
106899         * lib/getaddrinfo.c: Likewise.
106900         * lib/getdelim.c: Likewise.
106901         * lib/getline.c: Likewise.
106902         * lib/hmac-md5.c: Likewise.
106903         * lib/hmac-sha1.c: Likewise.
106904         * lib/iconvme.c: Likewise.
106905         * lib/md2.c: Likewise.
106906         * lib/md4.c: Likewise.
106907         * lib/memxor.c: Likewise.
106908         * lib/read-file.c: Likewise.
106909         * lib/readline.c: Likewise.
106910         * lib/rijndael-alg-fst.c: Likewise.
106911         * lib/rijndael-api-fst.c: Likewise.
106912         * lib/xgetdomainname.c: Likewise.
106914 2006-10-28  Eric Blake  <ebb9@byu.net>
106916         * lib/xstrndup.c: Assume config.h.
106918 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
106920         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
106921         stat-macros.h is now for our own macros, whereas stat_h is for
106922         macros in the <sys/stat.h> name space.
106923         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
106924         (STAT_MACROS_H): Remove.
106925         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
106926         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
106927         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
106928         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
106929         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
106930         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
106931         Move these macros to ...
106932         * lib/stat_.h: here.  Don't include stat-macros.h.
106933         * lib/canonicalize.c: Don't include stat-macros.h.
106934         * lib/chown.c: Likewise.
106935         * lib/euidaccess.c: Likewise.
106936         * lib/file-type.c: Likewise.
106937         * lib/filemode.c: Likewise.
106938         * lib/glob.c: Likewise.
106939         * lib/isapipe.c: Likewise.
106940         * lib/lchown.c: Likewise.
106941         * lib/lstat.c: Likewise.
106942         * lib/mkdir-p.c: Likewise.
106943         * lib/rmdir.c: Likewise.
106944         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
106945         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
106946         unless mkdir isn't declared, to speed up 'configure'.
106947         Always create sys/stat.h, since it's unlikely any real sys/stat.h
106948         would define all the S_* symbols.
106949         * modules/canonicalize (Depends-on):
106950         Depend on sys_stat, not stat-macros.
106951         * modules/chown: Likewise.
106952         * modules/euidaccess: Likewise.
106953         * modules/filemode: Likewise.
106954         * modules/file-type: Likewise.
106955         * modules/glob: Likewise.
106956         * modules/isapipe: Likewise.
106957         * modules/lchown: Likewise.
106958         * modules/lstat: Likewise.
106959         * modules/mkancesdirs: Likewise.
106960         * modules/rmdir: Likewise.
106961         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
106962         * modules/modechange: Likewise.
106963         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
106964         (configure.ac): Remove gl_STAT_MACROS.
106965         * modules/sys_stat (Depends-on): Remove stat-macros.
106967 2006-10-27  Bruno Haible  <bruno@clisp.org>
106969         * m4/signed.m4: Remove file.
106970         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
106971         invocation.
106972         * modules/vasnprintf (Files): Remove m4/signed.m4.
106974 2006-10-27  Bruno Haible  <bruno@clisp.org>
106976         Update to GNU gettext 0.16.
106977         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
106978         m4/inttypes-h.m4, m4/signed.m4.
106979         * m4/gettext.m4: Update to GNU gettext 0.16.
106980         * m4/intl.m4: New file, from GNU gettext.
106981         * m4/intldir.m4: New file, from GNU gettext.
106982         * config/srclist.txt: Update
106984 2006-10-27  Eric Blake  <ebb9@byu.net>
106986         * MODULES.html.sh: Document tempname.
106987         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
106988         dependencies.
106989         (Files): Move lib/tempname.c...
106990         * modules/tempname: ...to this new module.
106991         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
106992         (gl_PREREQ_TEMPNAME): Move...
106993         * m4/tempname.m4: ...to this new file.
106994         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
106995         * modules/sys_stat (Depends-on): Add stat-macros.
106996         * lib/stat_.h (includes): Pick up stat macros.
106997         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
106998         if stat macros are broken.
106999         * lib/tempname.c (includes): No need to include "stat-macros.h".
107000         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
107001         (direxists, __path_search) [!_LIBC]: Don't compile these in
107002         gnulib; the tmpdir module covers that.
107003         * lib/tempname.h: New file.
107005 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
107007         * COPYING: Explain how gnulib-tool converts licence headers.
107008         Almost all wording by Eric Blake.
107010 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
107012         * lib/mbchar.h (is_basic_table): Make read-only.
107013         * lib/mbchar.c (is_basic_table): Likewise.
107014         Reported by John Darrington.
107016 2006-10-25  Bruno Haible  <bruno@clisp.org>
107018         * lib/progname.h (set_program_name): Undefine before defining.
107020 2006-10-25  Bruno Haible  <bruno@clisp.org>
107022         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
107023         false for non-gcc C++ compilers.
107024         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
107026 2006-10-24  Bruno Haible  <bruno@clisp.org>
107028         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
107029         iconv implementations like Irix iconv.
107031 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107033         * modules/vararrays: New file.
107034         * m4/vararrays.m4: New file, taken from diffutils.
107035         * MODULES.html.sh: New module vararrays.
107037 2006-10-24  Karl Berry  <karl@gnu.org>
107039         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
107040         Don't call GNU Unix.
107042 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107044         * users.txt: Add Libtool.
107046         Sync from Libtool:
107048         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107050         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
107051         to gnulib's policy of including config.h unconditionally.
107053 2006-10-24  Bruno Haible  <bruno@clisp.org>
107055         * modules/wcwidth (Files): Add m4/wint_t.m4.
107056         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
107057         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
107059 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107061         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
107062         to pacify GCC with some -W flags enabled.  Problem reported by
107063         Bruno Haible.
107065 2006-10-24  Jim Meyering  <jim@meyering.net>
107067         * MODULES.html.sh: Remove uinttostr.  It's not a module.
107068         Reported by Karl Berry.
107070 2006-10-23  Bruno Haible  <bruno@clisp.org>
107072         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
107074 2006-10-24  Bruno Haible  <bruno@clisp.org>
107076         * lib/gl_list.h: Use C comment style, not C++ comment style.
107078 2006-10-23  Eric Blake  <ebb9@byu.net>
107080         * lib/getaddrinfo.c (includes): Add missing include.
107082 2006-10-23  Bruno Haible  <bruno@clisp.org>
107083             Paul Eggert  <eggert@cs.ucla.edu>
107085         Ability to rename obstack_free.
107086         * lib/obstack.h (__obstack_free): New macro. Declare instead of
107087         obstack_free.
107088         (obstack_free): Invoke the __obstack_free macro.
107089         * lib/obstack.c (obstack_free): Use __obstack_free macro.
107091 2006-10-23  Bruno Haible  <bruno@clisp.org>
107092             Paul Eggert  <eggert@cs.ucla.edu>
107094         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
107095         __argc, __argv from the declaration. (They are defined as macros on
107096         mingw.)
107098 2006-10-22  Bruno Haible  <bruno@clisp.org>
107100         * doc/gnulib-intro.texi: New file.
107101         * doc/gnulib.texi: Include it.
107103 2006-10-21  Bruno Haible  <bruno@clisp.org>
107105         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
107106         "Introduction", "Miscellanous Notes", "Particular Modules".
107108 2006-10-21  Bruno Haible  <bruno@clisp.org>
107110         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
107111         Change mostlyclean-local rule to avoid sh syntax error from bash
107112         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
107114 2006-10-23  Jim Meyering  <jim@meyering.net>
107116         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
107117         in place of snprintf.
107119         * modules/inttostr (Files): Add lib/uinttostr.c.
107120         * lib/uinttostr.c (inttostr): New file/function.
107121         * lib/inttostr.h (uinttostr): Declare.
107122         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
107123         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
107124         Add uinttostr.
107125         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
107127 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107129         * lib/canonicalize.c (ELOOP): Define if not already defined.
107130         Problem reported by Bruno Haible in
107131         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
107133 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107135         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
107136         Problem reported by Perry Smith and Ville Laurikari.
107138         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
107139         uses.
107141 2006-10-19  Bruno Haible  <bruno@clisp.org>
107143         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
107144         for mingw.
107146 2006-10-19  Bruno Haible  <bruno@clisp.org>
107148         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
107149         Needed for mingw.
107151 2006-10-19  Bruno Haible  <bruno@clisp.org>
107153         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
107155 2006-10-19  Bruno Haible  <bruno@clisp.org>
107157         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
107158         it.
107160 2006-10-19  Bruno Haible  <bruno@clisp.org>
107162         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
107163         invocation.
107165 2006-10-19  Bruno Haible  <bruno@clisp.org>
107167         * gnulib-tool (func_create_testdir): Don't include ftruncate and
107168         mountlist by default.
107170 2006-10-16  Bruno Haible  <bruno@clisp.org>
107172         * lib/c-strstr.c: Include c-strstr.h.
107174 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107176         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
107177         in a slash.
107179 2006-10-18  Bruno Haible  <bruno@clisp.org>
107181         * lib/lock.h [C++]: Wrap definitions in extern "C".
107183 2006-10-18  Bruno Haible  <bruno@clisp.org>
107185         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
107186         gl_LIBOBJS list.
107188 2006-10-18  Bruno Haible  <bruno@clisp.org>
107190         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
107192 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
107194         * lib/xstrtol.h: Include gettext.h.
107195         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
107196         Problem reported by Eric Blake.
107197         * modules/xstrtol (Depends-on): Add gettext-h.
107199 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
107201         * lib/strftime.c (advance): New macro.
107202         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
107203         incomplete type, so you can't add 0 to it.  Problem and patch
107204         reported by Eelco Dolstra for dietlibc.
107206 2006-10-18  Jim Meyering  <jim@meyering.net>
107208         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
107209         type for a local, and rename it: s/up/user_proc/.
107211 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
107213         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
107214         READ_UTMP_USER_PROCESS.
107215         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
107217 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
107219         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
107220         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
107222 2006-10-17  Eric Blake  <ebb9@byu.net>
107224         * lib/sigprocmask.c (sigprocmask): Fix typo.
107226         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
107228         * modules/clean-temp (Makefile.am): Don't add to make output...
107229         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
107230         config.h.
107232 2006-10-17  Bruno Haible  <bruno@clisp.org>
107234         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
107235         differently if DEFAULT_TEXT_DOMAIN is set.
107237 2006-10-16  Bruno Haible  <bruno@clisp.org>
107239         * lib/clean-temp.c: Include fwriteerror.h.
107241 2006-10-16  Bruno Haible  <bruno@clisp.org>
107243         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
107245 2006-10-16  Bruno Haible  <bruno@clisp.org>
107247         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
107248         * lib/sigprocmask.h: Include <sys/types.h>.
107249         (sigset_t): Use the system's definition if present.
107251 2006-10-17  Eric Blake  <ebb9@byu.net>
107253         * lib/xvasprintf.c (includes): Assume config.h.
107254         * lib/xasprintf.c (includes): Likewise.
107256 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
107258         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
107259         at least as wide as intmax_t.
107261 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
107263         (Imported from Automake.)
107264         * build-aux/gnupload: Update to version 1.1 of directive file.
107266 2006-10-16  Eric Blake  <ebb9@byu.net>
107268         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
107269         match Automake 1.10a.
107271 2006-10-14  Bruno Haible  <bruno@clisp.org>
107273         * modules/sigprocmask: New file.
107274         * lib/sigprocmask.h: New file.
107275         * lib/sigprocmask.c: New file.
107276         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
107277         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
107278         request sigprocmask.o.
107279         (gl_PREREQ_SIGPROCMASK): New macro.
107280         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
107281         (Depends-on): Add sigprocmask.
107282         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
107283         gt_SIGNALBLOCKING. Test for 'raise' only once.
107284         * lib/fatal-signal.c: Include sigprocmask.h.
107285         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
107286         unblock_fatal_signals): Define always.
107287         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107288         sigprocmask.
107290 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
107292         Sync from Automake.
107293         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
107294         which incorrectly sets the mode of an existing destination
107295         directory.  In some cases the unpatched install-sh could do the
107296         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
107297         system.  We hope this is rare in practice, but it's clearly worth
107298         fixing.  Problem reported by Alex Unleashed in
107299         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
107300         Also, don't bother to check for -m bugs unless we're using -m;
107301         suggested by Stepan Kasal.
107303 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107305         Sync from Automake.
107306         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
107307         `-c' flag, so they appear at the same position as in %FASTDEP%
107308         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
107309         which ignores unknown options only after the first non-option.
107310         Bug report against M4 by Nelson H. F. Beebe.
107312 2006-10-13  Jim Meyering  <jim@meyering.net>
107314         Fix a bug in yesterday's change.
107315         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
107316         p->fts_statp->st_dev would be used uninitialized.
107317         Ensures that we always call fts_stat on the very first entry.
107318         Miklos Szeredi reported that find -xdev stopped working.
107320 2006-10-12  Bruno Haible  <bruno@clisp.org>
107322         * gnulib-tool (func_get_automake_snippet): Append an automatically
107323         computed EXTRA_DIST augmentation.
107324         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
107325         * modules/alloca-opt (Makefile.am): Likewise.
107326         * modules/allocsa (Makefile.am): Likewise.
107327         * modules/arcfour (Makefile.am): Likewise.
107328         * modules/arctwo (Makefile.am): Likewise.
107329         * modules/argmatch (Makefile.am): Likewise.
107330         * modules/argz (Makefile.am): Likewise.
107331         * modules/atexit (Makefile.am): Likewise.
107332         * modules/backupfile (Makefile.am): Likewise.
107333         * modules/byteswap (Makefile.am): Likewise.
107334         * modules/c-strtod (Makefile.am): Likewise.
107335         * modules/c-strtold (Makefile.am): Likewise.
107336         * modules/calloc (Makefile.am): Likewise.
107337         * modules/canon-host (Makefile.am): Likewise.
107338         * modules/canonicalize (Makefile.am): Likewise.
107339         * modules/chdir-long (Makefile.am): Likewise.
107340         * modules/chdir-safer (Makefile.am): Likewise.
107341         * modules/check-version (Makefile.am): Likewise.
107342         * modules/chown (Makefile.am): Likewise.
107343         * modules/cloexec (Makefile.am): Likewise.
107344         * modules/close-stream (Makefile.am): Likewise.
107345         * modules/closeout (Makefile.am): Likewise.
107346         * modules/crc (Makefile.am): Likewise.
107347         * modules/csharpexec (Makefile.am): Likewise.
107348         * modules/cycle-check (Makefile.am): Likewise.
107349         * modules/des (Makefile.am): Likewise.
107350         * modules/dev-ino (Makefile.am): Likewise.
107351         * modules/dirfd (Makefile.am): Likewise.
107352         * modules/dirname (Makefile.am): Likewise.
107353         * modules/dup2 (Makefile.am): Likewise.
107354         * modules/eealloc (Makefile.am): Likewise.
107355         * modules/error (Makefile.am): Likewise.
107356         * modules/euidaccess (Makefile.am): Likewise.
107357         * modules/exclude (Makefile.am): Likewise.
107358         * modules/exitfail (Makefile.am): Likewise.
107359         * modules/fcntl-safer (Makefile.am): Likewise.
107360         * modules/fcntl (Makefile.am): Likewise.
107361         * modules/file-type (Makefile.am): Likewise.
107362         * modules/fileblocks (Makefile.am): Likewise.
107363         * modules/filemode (Makefile.am): Likewise.
107364         * modules/filenamecat (Makefile.am): Likewise.
107365         * modules/fnmatch (Makefile.am): Likewise.
107366         * modules/fopen-safer (Makefile.am): Likewise.
107367         * modules/fpending (Makefile.am): Likewise.
107368         * modules/fprintftime (Makefile.am): Likewise.
107369         * modules/free (Makefile.am): Likewise.
107370         * modules/fsusage (Makefile.am): Likewise.
107371         * modules/ftruncate (Makefile.am): Likewise.
107372         * modules/fts (Makefile.am): Likewise.
107373         * modules/gc-arcfour (Makefile.am): Likewise.
107374         * modules/gc-des (Makefile.am): Likewise.
107375         * modules/gc-hmac-md5 (Makefile.am): Likewise.
107376         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
107377         * modules/gc-md4 (Makefile.am): Likewise.
107378         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
107379         * modules/gc-sha1 (Makefile.am): Likewise.
107380         * modules/gc (Makefile.am): Likewise.
107381         * modules/getaddrinfo (Makefile.am): Likewise.
107382         * modules/getcwd (Makefile.am): Likewise.
107383         * modules/getdelim (Makefile.am): Likewise.
107384         * modules/getdomainname (Makefile.am): Likewise.
107385         * modules/getgroups (Makefile.am): Likewise.
107386         * modules/gethostname (Makefile.am): Likewise.
107387         * modules/gethrxtime (Makefile.am): Likewise.
107388         * modules/getline (Makefile.am): Likewise.
107389         * modules/getloadavg (Makefile.am): Likewise.
107390         * modules/getlogin_r (Makefile.am): Likewise.
107391         * modules/getndelim2 (Makefile.am): Likewise.
107392         * modules/getopt (Makefile.am): Likewise.
107393         * modules/getpagesize (Makefile.am): Likewise.
107394         * modules/getpass-gnu (Makefile.am): Likewise.
107395         * modules/getpass (Makefile.am): Likewise.
107396         * modules/getsubopt (Makefile.am): Likewise.
107397         * modules/gettime (Makefile.am): Likewise.
107398         * modules/gettimeofday (Makefile.am): Likewise.
107399         * modules/getugroups (Makefile.am): Likewise.
107400         * modules/getusershell (Makefile.am): Likewise.
107401         * modules/glob (Makefile.am): Likewise.
107402         * modules/group-member (Makefile.am): Likewise.
107403         * modules/hard-locale (Makefile.am): Likewise.
107404         * modules/hash (Makefile.am): Likewise.
107405         * modules/hmac-md5 (Makefile.am): Likewise.
107406         * modules/hmac-sha1 (Makefile.am): Likewise.
107407         * modules/human (Makefile.am): Likewise.
107408         * modules/idcache (Makefile.am): Likewise.
107409         * modules/imaxabs (Makefile.am): Likewise.
107410         * modules/imaxdiv (Makefile.am): Likewise.
107411         * modules/inet_ntop (Makefile.am): Likewise.
107412         * modules/inet_pton (Makefile.am): Likewise.
107413         * modules/intprops (Makefile.am): Likewise.
107414         * modules/inttostr (Makefile.am): Likewise.
107415         * modules/inttypes (Makefile.am): Likewise.
107416         * modules/isapipe (Makefile.am): Likewise.
107417         * modules/javaversion (Makefile.am): Likewise.
107418         * modules/lchmod (Makefile.am): Likewise.
107419         * modules/lchown (Makefile.am): Likewise.
107420         * modules/localcharset (Makefile.am): Likewise.
107421         * modules/long-options (Makefile.am): Likewise.
107422         * modules/lstat (Makefile.am): Likewise.
107423         * modules/malloc (Makefile.am): Likewise.
107424         * modules/mathl (Makefile.am): Likewise.
107425         * modules/mbchar (Makefile.am): Likewise.
107426         * modules/md2 (Makefile.am): Likewise.
107427         * modules/md4 (Makefile.am): Likewise.
107428         * modules/md5 (Makefile.am): Likewise.
107429         * modules/memcasecmp (Makefile.am): Likewise.
107430         * modules/memchr (Makefile.am): Likewise.
107431         * modules/memcmp (Makefile.am): Likewise.
107432         * modules/memcoll (Makefile.am): Likewise.
107433         * modules/memcpy (Makefile.am): Likewise.
107434         * modules/memmem (Makefile.am): Likewise.
107435         * modules/memmove (Makefile.am): Likewise.
107436         * modules/mempcpy (Makefile.am): Likewise.
107437         * modules/memrchr (Makefile.am): Likewise.
107438         * modules/memset (Makefile.am): Likewise.
107439         * modules/memxor (Makefile.am): Likewise.
107440         * modules/mkancesdirs (Makefile.am): Likewise.
107441         * modules/mkdir-p (Makefile.am): Likewise.
107442         * modules/mkdir (Makefile.am): Likewise.
107443         * modules/mkdtemp (Makefile.am): Likewise.
107444         * modules/mkstemp (Makefile.am): Likewise.
107445         * modules/mktime (Makefile.am): Likewise.
107446         * modules/modechange (Makefile.am): Likewise.
107447         * modules/mountlist (Makefile.am): Likewise.
107448         * modules/nanosleep (Makefile.am): Likewise.
107449         * modules/obstack (Makefile.am): Likewise.
107450         * modules/openat (Makefile.am): Likewise.
107451         * modules/pagealign_alloc (Makefile.am): Likewise.
107452         * modules/pathmax (Makefile.am): Likewise.
107453         * modules/physmem (Makefile.am): Likewise.
107454         * modules/poll (Makefile.am): Likewise.
107455         * modules/posixtm (Makefile.am): Likewise.
107456         * modules/posixver (Makefile.am): Likewise.
107457         * modules/putenv (Makefile.am): Likewise.
107458         * modules/quote (Makefile.am): Likewise.
107459         * modules/quotearg (Makefile.am): Likewise.
107460         * modules/raise (Makefile.am): Likewise.
107461         * modules/read-file (Makefile.am): Likewise.
107462         * modules/readline (Makefile.am): Likewise.
107463         * modules/readlink (Makefile.am): Likewise.
107464         * modules/readtokens (Makefile.am): Likewise.
107465         * modules/readutmp (Makefile.am): Likewise.
107466         * modules/realloc (Makefile.am): Likewise.
107467         * modules/regex (Makefile.am): Likewise.
107468         * modules/rename-dest-slash (Makefile.am): Likewise.
107469         * modules/rename (Makefile.am): Likewise.
107470         * modules/rijndael (Makefile.am): Likewise.
107471         * modules/rmdir (Makefile.am): Likewise.
107472         * modules/rpmatch (Makefile.am): Likewise.
107473         * modules/safe-read (Makefile.am): Likewise.
107474         * modules/safe-write (Makefile.am): Likewise.
107475         * modules/same-inode (Makefile.am): Likewise.
107476         * modules/same (Makefile.am): Likewise.
107477         * modules/save-cwd (Makefile.am): Likewise.
107478         * modules/savedir (Makefile.am): Likewise.
107479         * modules/setenv (Makefile.am): Likewise.
107480         * modules/settime (Makefile.am): Likewise.
107481         * modules/sha1 (Makefile.am): Likewise.
107482         * modules/sig2str (Makefile.am): Likewise.
107483         * modules/snprintf (Makefile.am): Likewise.
107484         * modules/stat-macros (Makefile.am): Likewise.
107485         * modules/stat-time (Makefile.am): Likewise.
107486         * modules/stdbool (Makefile.am): Likewise.
107487         * modules/stdint (Makefile.am): Likewise.
107488         * modules/stdlib-safer (Makefile.am): Likewise.
107489         * modules/stpcpy (Makefile.am): Likewise.
107490         * modules/stpncpy (Makefile.am): Likewise.
107491         * modules/strcase (Makefile.am): Likewise.
107492         * modules/strcasestr (Makefile.am): Likewise.
107493         * modules/strchrnul (Makefile.am): Likewise.
107494         * modules/strcspn (Makefile.am): Likewise.
107495         * modules/strdup (Makefile.am): Likewise.
107496         * modules/strerror (Makefile.am): Likewise.
107497         * modules/strftime (Makefile.am): Likewise.
107498         * modules/strndup (Makefile.am): Likewise.
107499         * modules/strnlen (Makefile.am): Likewise.
107500         * modules/strpbrk (Makefile.am): Likewise.
107501         * modules/strsep (Makefile.am): Likewise.
107502         * modules/strstr (Makefile.am): Likewise.
107503         * modules/strtod (Makefile.am): Likewise.
107504         * modules/strtoimax (Makefile.am): Likewise.
107505         * modules/strtok_r (Makefile.am): Likewise.
107506         * modules/strtol (Makefile.am): Likewise.
107507         * modules/strtoll (Makefile.am): Likewise.
107508         * modules/strtoul (Makefile.am): Likewise.
107509         * modules/strtoull (Makefile.am): Likewise.
107510         * modules/strtoumax (Makefile.am): Likewise.
107511         * modules/strverscmp (Makefile.am): Likewise.
107512         * modules/sys_socket (Makefile.am): Likewise.
107513         * modules/sys_stat (Makefile.am): Likewise.
107514         * modules/sysexits (Makefile.am): Likewise.
107515         * modules/time_r (Makefile.am): Likewise.
107516         * modules/timegm (Makefile.am): Likewise.
107517         * modules/timespec (Makefile.am): Likewise.
107518         * modules/tmpfile-safer (Makefile.am): Likewise.
107519         * modules/trim (Makefile.am): Likewise.
107520         * modules/unistd-safer (Makefile.am): Likewise.
107521         * modules/unlinkdir (Makefile.am): Likewise.
107522         * modules/unlocked-io (Makefile.am): Likewise.
107523         * modules/userspec (Makefile.am): Likewise.
107524         * modules/utime (Makefile.am): Likewise.
107525         * modules/utimecmp (Makefile.am): Likewise.
107526         * modules/utimens (Makefile.am): Likewise.
107527         * modules/vasnprintf (Makefile.am): Likewise.
107528         * modules/vasprintf (Makefile.am): Likewise.
107529         * modules/vsnprintf (Makefile.am): Likewise.
107530         * modules/xalloc (Makefile.am): Likewise.
107531         * modules/xgetcwd (Makefile.am): Likewise.
107532         * modules/xnanosleep (Makefile.am): Likewise.
107533         * modules/xreadlink (Makefile.am): Likewise.
107534         * modules/xstrtod (Makefile.am): Likewise.
107535         * modules/xstrtol (Makefile.am): Likewise.
107536         * modules/xstrtold (Makefile.am): Likewise.
107537         * modules/yesno (Makefile.am): Likewise.
107538         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
107540 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
107542         * modules/error (Makefile.am): Distribute files through
107543         EXTRA_DIST, not lib_SOURCES.
107545 2006-10-12  Eric Blake  <ebb9@byu.net>
107547         * modules/error (Makefile.am): Distribute files in /lib.
107548         * modules/obstack (Makefile.am): Likewise.
107550 2006-10-12  Bruno Haible  <bruno@clisp.org>
107552         * modules/acl (Makefile.am): Distribute all files in lib/ through
107553         EXTRA_DIST.
107554         * modules/arcfour (Makefile.am): Likewise.
107555         * modules/arctwo (Makefile.am): Likewise.
107556         * modules/argmatch (Makefile.am): Likewise.
107557         * modules/argz (Makefile.am): Likewise.
107558         * modules/atexit (Makefile.am): Likewise.
107559         * modules/backupfile (Makefile.am): Likewise.
107560         * modules/c-strtod (Makefile.am): Likewise.
107561         * modules/c-strtold (Makefile.am): Likewise.
107562         * modules/calloc (Makefile.am): Likewise.
107563         * modules/canon-host (Makefile.am): Likewise.
107564         * modules/canonicalize (Makefile.am): Likewise.
107565         * modules/chdir-long (Makefile.am): Likewise.
107566         * modules/chdir-safer (Makefile.am): Likewise.
107567         * modules/check-version (Makefile.am): Likewise.
107568         * modules/chown (Makefile.am): Likewise.
107569         * modules/cloexec (Makefile.am): Likewise.
107570         * modules/close-stream (Makefile.am): Likewise.
107571         * modules/closeout (Makefile.am): Likewise.
107572         * modules/crc (Makefile.am): Likewise.
107573         * modules/cycle-check (Makefile.am): Likewise.
107574         * modules/des (Makefile.am): Likewise.
107575         * modules/dirfd (Makefile.am): Likewise.
107576         * modules/dirname (Makefile.am): Likewise.
107577         * modules/dup2 (Makefile.am): Likewise.
107578         * modules/euidaccess (Makefile.am): Likewise.
107579         * modules/exclude (Makefile.am): Likewise.
107580         * modules/exitfail (Makefile.am): Likewise.
107581         * modules/fcntl-safer (Makefile.am): Likewise.
107582         * modules/file-type (Makefile.am): Likewise.
107583         * modules/fileblocks (Makefile.am): Likewise.
107584         * modules/filemode (Makefile.am): Likewise.
107585         * modules/filenamecat (Makefile.am): Likewise.
107586         * modules/fnmatch (Makefile.am): Likewise.
107587         * modules/fopen-safer (Makefile.am): Likewise.
107588         * modules/fpending (Makefile.am): Likewise.
107589         * modules/fprintftime (Makefile.am): Likewise.
107590         * modules/free (Makefile.am): Likewise.
107591         * modules/fsusage (Makefile.am): Likewise.
107592         * modules/ftruncate (Makefile.am): Likewise.
107593         * modules/fts (Makefile.am): Likewise.
107594         * modules/gc (Makefile.am): Likewise.
107595         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
107596         * modules/getaddrinfo (Makefile.am): Likewise.
107597         * modules/getcwd (Makefile.am): Likewise.
107598         * modules/getdelim (Makefile.am): Likewise.
107599         * modules/getdomainname (Makefile.am): Likewise.
107600         * modules/getgroups (Makefile.am): Likewise.
107601         * modules/gethostname (Makefile.am): Likewise.
107602         * modules/gethrxtime (Makefile.am): Likewise.
107603         * modules/getline (Makefile.am): Likewise.
107604         * modules/getloadavg (Makefile.am): Likewise.
107605         * modules/getlogin_r (Makefile.am): Likewise.
107606         * modules/getopt (Makefile.am): Likewise.
107607         * modules/getpass (Makefile.am): Likewise.
107608         * modules/getpass-gnu (Makefile.am): Likewise.
107609         * modules/getsubopt (Makefile.am): Likewise.
107610         * modules/gettime (Makefile.am): Likewise.
107611         * modules/gettimeofday (Makefile.am): Likewise.
107612         * modules/getugroups (Makefile.am): Likewise.
107613         * modules/getusershell (Makefile.am): Likewise.
107614         * modules/glob (Makefile.am): Likewise.
107615         * modules/group-member (Makefile.am): Likewise.
107616         * modules/hard-locale (Makefile.am): Likewise.
107617         * modules/hash (Makefile.am): Likewise.
107618         * modules/hmac-md5 (Makefile.am): Likewise.
107619         * modules/hmac-sha1 (Makefile.am): Likewise.
107620         * modules/human (Makefile.am): Likewise.
107621         * modules/idcache (Makefile.am): Likewise.
107622         * modules/imaxabs (Makefile.am): Likewise.
107623         * modules/imaxdiv (Makefile.am): Likewise.
107624         * modules/inet_ntop (Makefile.am): Likewise.
107625         * modules/inet_pton (Makefile.am): Likewise.
107626         * modules/inttostr (Makefile.am): Likewise.
107627         * modules/isapipe (Makefile.am): Likewise.
107628         * modules/lchown (Makefile.am): Likewise.
107629         * modules/long-options (Makefile.am): Likewise.
107630         * modules/lstat (Makefile.am): Likewise.
107631         * modules/malloc (Makefile.am): Likewise.
107632         * modules/mathl (Makefile.am): Likewise.
107633         * modules/mbchar (Makefile.am): Likewise.
107634         * modules/md2 (Makefile.am): Likewise.
107635         * modules/md4 (Makefile.am): Likewise.
107636         * modules/md5 (Makefile.am): Likewise.
107637         * modules/memcasecmp (Makefile.am): Likewise.
107638         * modules/memchr (Makefile.am): Likewise.
107639         * modules/memcmp (Makefile.am): Likewise.
107640         * modules/memcoll (Makefile.am): Likewise.
107641         * modules/memcpy (Makefile.am): Likewise.
107642         * modules/memmem (Makefile.am): Likewise.
107643         * modules/memmove (Makefile.am): Likewise.
107644         * modules/mempcpy (Makefile.am): Likewise.
107645         * modules/memrchr (Makefile.am): Likewise.
107646         * modules/memset (Makefile.am): Likewise.
107647         * modules/memxor (Makefile.am): Likewise.
107648         * modules/mkancesdirs (Makefile.am): Likewise.
107649         * modules/mkdir (Makefile.am): Likewise.
107650         * modules/mkdir-p (Makefile.am): Likewise.
107651         * modules/mkdtemp (Makefile.am): Likewise.
107652         * modules/mkstemp (Makefile.am): Likewise.
107653         * modules/mktime (Makefile.am): Likewise.
107654         * modules/modechange (Makefile.am): Likewise.
107655         * modules/mountlist (Makefile.am): Likewise.
107656         * modules/nanosleep (Makefile.am): Likewise.
107657         * modules/openat (Makefile.am): Likewise.
107658         * modules/pagealign_alloc (Makefile.am): Likewise.
107659         * modules/physmem (Makefile.am): Likewise.
107660         * modules/poll (Makefile.am): Likewise.
107661         * modules/posixtm (Makefile.am): Likewise.
107662         * modules/posixver (Makefile.am): Likewise.
107663         * modules/putenv (Makefile.am): Likewise.
107664         * modules/quote (Makefile.am): Likewise.
107665         * modules/quotearg (Makefile.am): Likewise.
107666         * modules/raise (Makefile.am): Likewise.
107667         * modules/read-file (Makefile.am): Likewise.
107668         * modules/readline (Makefile.am): Likewise.
107669         * modules/readlink (Makefile.am): Likewise.
107670         * modules/readtokens (Makefile.am): Likewise.
107671         * modules/readutmp (Makefile.am): Likewise.
107672         * modules/realloc (Makefile.am): Likewise.
107673         * modules/regex (Makefile.am): Likewise.
107674         * modules/rename (Makefile.am): Likewise.
107675         * modules/rename-dest-slash (Makefile.am): Likewise.
107676         * modules/rijndael (Makefile.am): Likewise.
107677         * modules/rmdir (Makefile.am): Likewise.
107678         * modules/rpmatch (Makefile.am): Likewise.
107679         * modules/safe-read (Makefile.am): Likewise.
107680         * modules/safe-write (Makefile.am): Likewise.
107681         * modules/same (Makefile.am): Likewise.
107682         * modules/save-cwd (Makefile.am): Likewise.
107683         * modules/savedir (Makefile.am): Likewise.
107684         * modules/setenv (Makefile.am): Likewise.
107685         * modules/settime (Makefile.am): Likewise.
107686         * modules/sha1 (Makefile.am): Likewise.
107687         * modules/sig2str (Makefile.am): Likewise.
107688         * modules/snprintf (Makefile.am): Likewise.
107689         * modules/stdlib-safer (Makefile.am): Likewise.
107690         * modules/stpcpy (Makefile.am): Likewise.
107691         * modules/stpncpy (Makefile.am): Likewise.
107692         * modules/strcase (Makefile.am): Likewise.
107693         * modules/strcasestr (Makefile.am): Likewise.
107694         * modules/strchrnul (Makefile.am): Likewise.
107695         * modules/strcspn (Makefile.am): Likewise.
107696         * modules/strdup (Makefile.am): Likewise.
107697         * modules/strerror (Makefile.am): Likewise.
107698         * modules/strftime (Makefile.am): Likewise.
107699         * modules/strndup (Makefile.am): Likewise.
107700         * modules/strnlen (Makefile.am): Likewise.
107701         * modules/strpbrk (Makefile.am): Likewise.
107702         * modules/strsep (Makefile.am): Likewise.
107703         * modules/strstr (Makefile.am): Likewise.
107704         * modules/strtod (Makefile.am): Likewise.
107705         * modules/strtoimax (Makefile.am): Likewise.
107706         * modules/strtok_r (Makefile.am): Likewise.
107707         * modules/strtol (Makefile.am): Likewise.
107708         * modules/strtoll (Makefile.am): Likewise.
107709         * modules/strtoul (Makefile.am): Likewise.
107710         * modules/strtoull (Makefile.am): Likewise.
107711         * modules/strtoumax (Makefile.am): Likewise.
107712         * modules/strverscmp (Makefile.am): Likewise.
107713         * modules/time_r (Makefile.am): Likewise.
107714         * modules/timegm (Makefile.am): Likewise.
107715         * modules/tmpfile-safer (Makefile.am): Likewise.
107716         * modules/unistd-safer (Makefile.am): Likewise.
107717         * modules/unlinkdir (Makefile.am): Likewise.
107718         * modules/userspec (Makefile.am): Likewise.
107719         * modules/utime (Makefile.am): Likewise.
107720         * modules/utimecmp (Makefile.am): Likewise.
107721         * modules/utimens (Makefile.am): Likewise.
107722         * modules/vasnprintf (Makefile.am): Likewise.
107723         * modules/vasprintf (Makefile.am): Likewise.
107724         * modules/vsnprintf (Makefile.am): Likewise.
107725         * modules/xalloc (Makefile.am): Likewise.
107726         * modules/xgetcwd (Makefile.am): Likewise.
107727         * modules/xnanosleep (Makefile.am): Likewise.
107728         * modules/xreadlink (Makefile.am): Likewise.
107729         * modules/xstrtod (Makefile.am): Likewise.
107730         * modules/xstrtol (Makefile.am): Likewise.
107731         * modules/xstrtold (Makefile.am): Likewise.
107732         * modules/yesno (Makefile.am): Likewise.
107734 2006-10-12  Jim Meyering  <jim@meyering.net>
107736         * m4/getloadavg.m4: Revert the change below.
107738         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
107739         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
107740         fail with a symlink, which is what coreutils' ./bootstrap now
107741         creates by default.
107743 2006-10-12  Bruno Haible  <bruno@clisp.org>
107745         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
107746         mingw.
107747         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
107748         MSVC and mingw explicitly.
107750 2006-10-11  Simon Josefsson  <jas@extundo.com>
107751             Bruno Haible  <bruno@clisp.org>
107753         Add support for multiple gnulib-tool invocations in the scope of a
107754         single configure.ac file.
107755         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
107756         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
107757         with the same contents as the _LIBADD variable.
107758         (func_emit_initmacro_start, func_emit_initmacro_end,
107759         func_emit_initmacro_done): New functions.
107760         (func_import, func_create_testdir): Invoke them. Allow the identifiers
107761         gl_LIBOBJS and gl_LTLIBOBJS.
107763 2006-10-11  Bruno Haible  <bruno@clisp.org>
107765         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
107766         (func_create_testdir): Don't create po/Makefile.am, don't invoke
107767         autoreconf. Instead, invoke autopoint explicitly but move back the
107768         *.m4 files from gnulib.
107770 2006-10-11  Bruno Haible  <bruno@clisp.org>
107772         * gnulib-tool (func_usage): Make module names after --create-testdir
107773         optional.
107774         (func_create_testdir): If no module was specified, use nearly all
107775         modules.
107777 2006-10-12  Jim Meyering  <jim@meyering.net>
107779         Big performance improvement for fts-based tools that use FTS_NOSTAT.
107780         Avoid spurious inode-mismatch problems on non-POSIX file systems.
107781         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
107782         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
107783         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
107784         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
107785         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
107786         (fts_set_stat_required): New function.
107787         (fts_open): Defer the calls to fts_stat, if possible or requested.
107788         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
107789         into fts_stat itself.
107790         (fts_read): Perform any required (deferred) fts_stat call.
107791         (fts_build): Likewise, for the directory we're about to open and read.
107792         In the readdir loop, carefully decide whether each entry will require
107793         an eventual call to fts_stat, using dirent.d_type info if available.
107794         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
107795         a command line argument into this function.  Update all callers.
107796         Map a return value of FTS_DOT to FTS_D for a command line argument.
107797         * modules/fts (Depends-on): Add d-type.  Alphabetize.
107798         Thanks to Miklos Szeredi for his tenacity and for the initial
107799         bug report about "find" failing on a FUSE-based file system.
107801         * lib/fts.c (fts_open): Use consistent indentation.
107803 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
107805         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
107806         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
107807         reported by Jim Meyering.  All uses of cache variables renamed
107808         to match Autoconf's.
107809         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
107810         the other one.
107812         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
107813         Fix misspelling in diagnostic.
107815 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
107817         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
107818         defined.  Problem reported by Matthew Woehlke.
107820         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
107821         Add support for Tandem NonStop R series.
107822         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
107823         Use new macro.
107825         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
107826         (has_trailing_slash): Omit size arg; all callers changed.
107827         Omit 'inline', since it doesn't help performance and we'd
107828         need to configure it.
107829         Don't count //, ///, etc. as having a trailing slash.
107830         As a side effect, this removes a C99ism reported by Matthew Woehlke.
107831         (rpl_rename_dest_slash): On failure, use rename's errno rather
107832         than (in some cases) an incorrect or junk errno.
107833         Simplify code by removing need to compute length; this does
107834         cause it to make two passes instead of one over the file name,
107835         but it's worth it.
107837         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
107838         change, since Autoconf's version may no longer be appropriate now
107839         that we are using CVS Autoconf's version.  Add support for Tandem.
107841 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
107842             Bruno Haible  <bruno@clisp.org>
107844         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
107845         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
107846         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
107847         gl_AC_TYPE_LONG_LONG.
107849         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
107850         instead of HAVE_LONG_LONG.
107851         * lib/printf-args.c (printf_fetchargs): Likewise.
107852         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
107853         * lib/vasnprintf.c (VASNPRINTF): Likewise.
107854         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
107855         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
107856         gl_AC_TYPE_LONG_LONG.
107858 2006-10-11  Bruno Haible  <bruno@clisp.org>
107860         * m4/longlong.m4: Add comments.
107861         * m4/ulonglong.m4: Likewise.
107863 2006-10-10  Bruno Haible  <bruno@clisp.org>
107865         Make it possible to #define stpcpy, strdup to aliases.
107866         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
107867         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
107869 2006-10-10  Bruno Haible  <bruno@clisp.org>
107871         Make it possible to #define gcd to an alias.
107872         * lib/gcd.c: Include config.h.
107874 2006-10-10  Bruno Haible  <bruno@clisp.org>
107876         Make it possible to #define c_isascii to an alias.
107877         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
107878         defined. Undefine the macros before defining them, to avoid gcc
107879         warnings.
107880         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
107881         define NO_C_CTYPE_MACROS early.
107883 2006-10-10  Bruno Haible  <bruno@clisp.org>
107885         Make it possible to #define set_program_name to an alias.
107886         * lib/progname.c: Don't undefine set_program_name; instead, undefine
107887         ENABLE_RELOCATABLE early.
107889 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
107891         Port to Tandem NSK OSS, which has 64-bit signed int but at most
107892         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
107893         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
107894         More generally, don't assume that 64-bit signed int is available
107895         if unsigned int is, and vice versa.
107896         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
107897         unsigned symbols, not on their signed counterparts.
107898         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
107899         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
107900         (UINT64_C, UINTMAX_C):
107901         Likewise.
107902         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
107903         unsigned counterparts.
107904         (Have_long_long, Unsigned): New macros.
107905         (Int): Renamed from INT.
107906         (strtoimax): Use the new macros.
107907         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
107908         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
107909         * modules/inttypes (inttypes.h): Substitute
107910         HAVE_UNSIGNED_LONG_LONG_INT.
107911         * modules/stdint (stdint.h): Likewise.
107912         (Files): Add m4/ulonglong.m4.
107914 2006-10-10  Bruno Haible  <bruno@clisp.org>
107916         Fix a gcc -Wshadow warning.
107917         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
107918         to 'bucket'.
107919         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
107920         gl_linked_indexof_from_to): Likewise.
107921         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
107922         Likewise.
107923         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
107924         Likewise.
107925         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
107926         Reported by Eric Blake.
107928 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
107930         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
107931         for NetBSD.  Problem reported by Bruno Haible.
107933 2006-10-09  Jim Meyering  <jim@meyering.net>
107935         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
107936         Patch from Bruno Haible.
107938 2006-10-09  Jim Meyering  <jim@meyering.net>
107940         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
107941         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
107942         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
107944 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
107946         Don't include <config.h> twice; this doesn't work in some cases,
107947         e.g., when config.h has "#define intmax_t long long int" and
107948         we include <config.h>, <inttypes.h>, <config.h> in that order.
107949         Problem reported by Matthew Woehlke in:
107950         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
107951         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
107952         * lib/fts-cycle.c: Don't include config.h.
107953         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
107954         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
107955         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
107956         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
107957         inttypes.h.
107958         * lib/xstrtoumax.c: Likewise.
107959         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
107960         __strtol and the like, so that this module is more like its siblings.
107961         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
107962         Remove; no longer needed now that we assume gnulib inttypes.h.
107964 2006-10-08  Bruno Haible  <bruno@clisp.org>
107966         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
107967         option.
107969 2006-10-07  Jim Meyering  <jim@meyering.net>
107971         * modules/inttypes (inttypes.h): Revert what seems to have been
107972         an inadvertent part of today's change: use "|", not "/" in the
107973         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
107975 2006-10-07  Bruno Haible  <bruno@clisp.org>
107977         * modules/sublist: New file.
107979 2006-10-07  Bruno Haible  <bruno@clisp.org>
107981         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
107982         * modules/argz (argz.h): Likewise.
107983         * modules/arpa_inet (arpa/inet.h): Likewise.
107984         * modules/byteswap (byteswap.h): Likewise.
107985         * modules/configmake (configmake.h): Likewise.
107986         * modules/fcntl (fcntl.h): Likewise.
107987         * modules/fnmatch (fnmatch.h): Likewise.
107988         * modules/getopt (getopt.h): Likewise.
107989         * modules/glob (glob.h): Likewise.
107990         * modules/inttypes (inttypes.h): Likewise.
107991         * modules/netinet_in (netinet/in.h): Likewise.
107992         * modules/poll (poll.h): Likewise.
107993         * modules/stdbool (stdbool.h): Likewise.
107994         * modules/stdint (stdint.h): Likewise.
107995         * modules/sys_select (sys/select.h): Likewise.
107996         * modules/sys_socket (sys/socket.h): Likewise.
107997         * modules/sys_stat (sys/stat.h): Likewise.
107998         * modules/sysexits (sysexits.h): Likewise.
107999         * modules/unistd (unistd.h): Likewise.
108000         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108001         Add a "DO NOT EDIT" comment to the generated file.
108002         (func_import): Likewise for gnulib-comp.m4.
108004 2006-10-07  Bruno Haible  <bruno@clisp.org>
108006         * lib/gl_sublist.h: New file.
108007         * lib/gl_sublist.c: New file.
108009 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108011         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
108012         name (relative to the original working directory) and the file
108013         name component (relative to the temporary working directory).  All
108014         callers changed.
108015         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
108016         * lib/mkdir-p.c (make_dir_parents): Likewise.
108017         * lib/mkdir-p.h (make_dir_parents): Likewise.
108019 2006-10-06  Eric Blake  <ebb9@byu.net>
108021         Define several macros for use by the clean-temp module.
108022         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
108023         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
108024         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
108026         * lib/clean-temp.h (close_stream_temp): New declaration.
108027         * lib/clean-temp.c (includes): Pull in headers according to what
108028         other modules are in use.
108029         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
108031 2006-10-06  Bruno Haible  <bruno@clisp.org>
108033         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
108034         instead of fopen, fwriteerror.
108036 2006-10-06  Bruno Haible  <bruno@clisp.org>
108038         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
108039         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
108040         int.
108041         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
108042         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
108043         Return an error indicator.
108044         Suggested by Eric Blake.
108046 2006-10-06  Bruno Haible  <bruno@clisp.org>
108048         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
108049         Reported by Eric Blake.
108051 2006-10-06  Bruno Haible  <bruno@clisp.org>
108053         * modules/closeout (Description): Mention stderr too.
108055 2006-10-06  Bruno Haible  <bruno@clisp.org>
108056         and Paul Eggert  <eggert@cs.ucla.edu>
108058         * lib/closeout.c (close_stdout): Also close stderr.
108059         * lib/closeout.h: Update comment.
108061 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
108063         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
108064         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
108065         * lib/dirchownmod.c: Include lchown.h.
108066         * lib/lchown.c: Don't include files that lchown.h now includes.
108067         Don't declare chown, since lchown.h now does that.
108068         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
108069         (lchown): Define to rpl_chown if lchown is declared but
108070         does not exist.  Declare using a prototype if lchown is not
108071         declared.  Add a copyright notice.
108072         * lib/mkstemp.h: Include <unistd.h>.
108073         * lib/openat.c: Include lchown.h.
108075         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
108076         we now test for that separately.
108077         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
108078         rather than O_NOFOLLOW, when testing whether it's possible to
108079         avoid a race condition reliably.
108080         * lib/savewd.c (savewd_chdir): Likewise.
108082         Remove macros that are no longer needed now that stdint.h is
108083         reliable.
108084         * lib/fsusage.c (UINTMAX_MAX): Remove.
108085         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
108086         * lib/utimecmp.c (SIZE_MAX): Remove.
108088         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
108090         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
108091         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
108092         O_NOATIME works.
108094 2006-10-05  Bruno Haible  <bruno@clisp.org>
108096         * lib/gl_list.h (gl_sortedlist_search_from_to,
108097         gl_sortedlist_indexof_from_to): New declarations.
108098         (gl_list_implementation): New fields sortedlist_search_from_to,
108099         sortedlist_indexof_from_to.
108100         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
108101         inline functions.
108102         * lib/gl_list.c (gl_sortedlist_search_from_to,
108103         gl_sortedlist_indexof_from_to): New functions.
108104         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
108105         function.
108106         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
108107         (gl_array_sortedlist_search_from_to): New function.
108108         (gl_array_list_implementation): Update.
108109         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
108110         function.
108111         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
108112         (gl_carray_sortedlist_search_from_to): New function.
108113         (gl_carray_list_implementation): Update.
108114         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
108115         gl_linked_sortedlist_indexof_from_to): New functions.
108116         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108117         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108118         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
108119         gl_tree_sortedlist_indexof_from_to): New functions.
108120         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108121         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108122         Update.
108123         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108124         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
108125         Update.
108127 2006-10-05  Bruno Haible  <bruno@clisp.org>
108129         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
108130         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
108131         (struct gl_list_implementation): Add fields search_from_to,
108132         indexof_from_to. Remove fields search, indexof.
108133         (gl_list_search): Use the search_from_to method.
108134         (gl_list_search_from, gl_list_search_from_to): New functions.
108135         (gl_list_indexof): Use the indexof_from_to method.
108136         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108137         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
108138         (gl_list_search_from, gl_list_search_from_to): New functions.
108139         (gl_list_indexof): Use the indexof_from_to method.
108140         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108141         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
108142         gl_array_indexof. Add start_index, end_index arguments.
108143         (gl_array_search_from_to): Renamed from gl_array_search. Add
108144         start_index, end_index arguments.
108145         (gl_array_remove, gl_array_list_implementation): Update.
108146         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
108147         gl_carray_indexof. Add start_index, end_index arguments.
108148         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
108149         start_index, end_index arguments.
108150         (gl_carray_remove, gl_carray_list_implementation): Update.
108151         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
108152         gl_linked_search. Add start_index, end_index arguments.
108153         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
108154         start_index, end_index arguments.
108155         (gl_linked_remove): Update.
108156         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108157         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108158         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
108159         field to 'size_t'.
108160         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
108161         gl_tree_search. Add start_index, end_index arguments.
108162         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108163         start_index, end_index arguments.
108164         (gl_tree_remove): Update.
108165         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108166         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108167         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
108168         function.
108169         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
108170         gl_tree_search. Add start_index, end_index arguments.
108171         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108172         start_index, end_index arguments.
108173         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108174         Update.
108175         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
108177 2006-10-05  Bruno Haible  <bruno@clisp.org>
108179         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
108181         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
108182         fwriteerror_temp): New declarations.
108183         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
108184         (descriptors): New variable.
108185         (cleanup): First, close the descriptors.
108186         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
108187         fclose_temp, fwriteerror_temp): New functions.
108189 2006-10-04  Jim Meyering  <jim@meyering.net>
108191         * lib/fts.c (fts_open): Tiny comment change.
108193 2006-10-04  Bruno Haible  <bruno@clisp.org>
108195         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
108196         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
108197         gl_LOCK_BODY.
108198         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
108199         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
108200         gl_LOCK_EARLY_BODY.
108201         (gl_LOCK): Require gl_LOCK_BODY.
108203 2006-10-04  Bruno Haible  <bruno@clisp.org>
108205         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
108206         (gl_oset_search_atleast): New declaration.
108207         (struct gl_oset_implementation): Add field 'search_atleast'.
108208         (gl_oset_search_atleast): New inline function.
108209         * lib/gl_oset.c (gl_oset_search_atleast): New function.
108210         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
108211         (gl_array_oset_implementation): Update.
108212         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
108213         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
108214         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
108216 2006-10-04  Bruno Haible  <bruno@clisp.org>
108218         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
108220 2006-10-03  Bruno Haible  <bruno@clisp.org>
108222         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
108223         from gl_avltreehash_list_implementation.
108225 2006-10-03  Bruno Haible  <bruno@clisp.org>
108227         * lib/gl_oset.c (gl_oset_add): Fix return type.
108229 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
108231         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
108233 2006-10-02  Eric Blake  <ebb9@byu.net>
108235         * modules/strnlen (Depends-on): Add extensions.
108237 2006-10-02  Eric Blake  <ebb9@byu.net>
108239         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
108240         definition in 2.60+.
108242 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
108244         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
108245         checks.
108247 2006-10-02  Bruno Haible  <bruno@clisp.org>
108249         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
108250         to the AUTOMAKE_OPTIONS.
108251         Reported by Jim Meyering.
108253 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
108255         Work around bug in Solaris 10 /proc file system:
108256         /proc/self/fd/NNN/.. isn't the parent directory of
108257         the directory whose file descriptor is NNN.  This needs to
108258         be worked around at run time, not compile time, since a
108259         program might be built on Solaris 8, where things work, and
108260         run on Solaris 10.
108261         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
108262         to use the following interface instead:
108263         (OPENAT_BUFFER_SIZE): New macro.
108264         (openat_proc_name): New function.
108265         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
108266         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
108267         Likewise.
108268         * lib/openat-proc.c: New file.
108269         * modules/openat (Files): Add lib/openat-proc.c.
108270         (Depends-on): Add same-inode, stdbool.
108271         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
108273 2006-09-29  Bruno Haible  <bruno@clisp.org>
108275         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
108276         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
108277         argument. Set stdout_closed before testing for ferror, not after.
108278         (fwriteerror, fwriteerror_no_ebadf): New functions.
108280 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108282         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
108284 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
108286         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
108287         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
108289 2006-09-28  Jim Meyering  <jim@meyering.net>
108291         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
108292         Include <unistd.h>.
108294 2006-09-28  Bruno Haible  <bruno@clisp.org>
108296         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
108297         * modules/linkedhash-list (Depends-on): Likewise.
108298         * modules/rbtreehash-list (Depends-on): Likewise.
108300 2006-09-28  Bruno Haible  <bruno@clisp.org>
108302         * lib/strndup.h: Simplify the redefinition of strndup.
108303         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
108304         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
108306 2006-09-28  Bruno Haible  <bruno@clisp.org>
108308         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
108309         * lib/gl_linkedhash_list.c: Likewise.
108310         * lib/gl_rbtreehash_list.c: Likewise.
108312 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
108314         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
108315         getaddrinfo.
108317         * lib/__fpending.h: Don't include <stdio_ext.h> unless
108318         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
108319         it causes <stdio_ext.h> to cause a compile-time error.
108320         Problem reported by Nelson H. F. Beebe.
108321         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
108322         of HAVE_DECL___PENDING.
108324         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
108325         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
108326         declaration.
108328 2006-09-27  Jim Meyering  <jim@meyering.net>
108330         This file could end up with a definition for a function
108331         named __strndup, rather than rpl_strndup on a system with
108332         incomplete weak_alias support.
108333         * lib/strndup.c (strndup): Rename from __strndup.
108334         Remove #defines that used to map __strndup to strndup.
108335         Don't use K&R prototypes.
108336         Remove LIBC-related code, since this file is not sync'd with glibc.
108337         * lib/strndup.h: Revamp, accordingly.
108338         * m4/strndup.m4: Modernize.
108340 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
108342         * modules/savewd (Depends-on): Add 'raise'.
108343         * lib/savewd.c: Include <signal.h>, for 'raise'.
108345 2006-09-26  Jim Meyering  <jim@meyering.net>
108347         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
108348         when we detect Darwin 8.7.0's acl_get_file bug.
108349         Rearrange to perform the new (below) run-test while $LIBS
108350         contains any acl-related library.  Set USE_ACL at the end.
108351         (gl_ACL_GET_FILE): New function.
108353 2006-09-26  Eric Blake  <ebb9@byu.net>
108355         * lib/verror.c: Include <config.h> unconditionally.
108357 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
108359         * modules/clock-time (Maintainer): Add self.
108360         * modules/getlogin_r (Depends-on): Add extensions.
108362 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108364         * modules/clock-time: New module.
108365         * modules/nanosleep (Depends-on): Add clock-time.
108366         * modules/gethrxtime (Depends-on): Likewise.
108367         * modules/gettime (Depends-on): Likewise.
108368         * modules/settime (Depends-on): Likewise.
108370         * modules/fts-lgpl: Depend on openat.
108371         * modules/mkancesdirs: Depend on savewd.
108372         * modules/mkdir-p: Likewise.
108374 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108376         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
108378         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
108379         `gl_have_arbitrary_file_name_length_limit' to
108380         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
108381         actually works between configure runs.
108383 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108384             Bruno Haible  <bruno@clisp.org>
108386         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
108388 2006-09-25  Jim Meyering  <jim@meyering.net>
108390         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
108391         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
108393 2006-09-25  Eric Blake  <ebb9@byu.net>
108395         * gnulib-tool (func_import, func_create_testdir): Fix typos in
108396         exec's in 2006-09-18 patch when shuffling fds.
108398 2006-09-25  Bruno Haible  <bruno@clisp.org>
108400         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
108401         Reported by Jim Meyering.
108403 2006-09-24  Jim Meyering  <jim@meyering.net>
108405         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
108406         compare a pointer against a literal "0".  That caused failures with
108407         at least HP-UX's hpcc.
108409 2006-09-22  Simon Josefsson  <jas@extundo.com>
108411         * modules/gc-sha1:
108412         * modules/gc-md4:
108413         * modules/gc-hmac-sha1:
108414         * modules/gc-hmac-md5:
108415         * modules/gc-des:
108416         * modules/gc-arcfour: Distribute more files.
108418 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108420         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
108421         (gl_linked_iterator_from_to): Initialize struct completely.
108422         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
108423         (gl_tree_iterator_from_to): Likewise
108424         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
108425         * lib/gl_array_list.c [lint] (gl_array_iterator)
108426         (gl_array_iterator_from_to): Likewise.
108427         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
108428         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
108429         (gl_carray_iterator_from_to): Likewise.
108431         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
108432         * lib/md4.c (md4_process_block): Remove unused variable.
108433         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
108434         parentheses for clarity.
108436 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108438         * modules/bison-i18n (Depends-on): Add gettext.
108440 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108442         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
108443         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
108444         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
108445         also add missing comma that caused broken test.
108446         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
108447         stdlib.h, for `abort'.
108448         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
108449         variables.
108450         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
108451         include unistd.h if present, for `rmdir'.
108452         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
108453         variables.
108454         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
108455         in the process include standard headers for prototypes.
108456         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
108457         gets declared on GNU/Linux.
108458         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
108459         unistd.h, for `rmdir'.
108460         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
108462         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
108463         always true.
108464         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
108466         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
108468 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108470         * gnulib-tool (func_version): Create output all at once.  This
108471         may help avoid triggering unnecessary SIGPIPEs, and at any
108472         rate it doesn't hurt.
108474 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108475             Bruno Haible  <bruno@clisp.org>
108477         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
108478         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
108479         * m4/signed.m4 (bh_C_SIGNED): Likewise.
108481         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
108482         (gl_FUNC_VASPRINTF): Invoke it.
108484 2006-09-22  Bruno Haible  <bruno@clisp.org>
108486         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
108487         getloadavg.c as first argument.
108489 2006-09-22  Bruno Haible  <bruno@clisp.org>
108491         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
108492         at the beginning of the gl_INIT macro.
108493         * modules/getloadavg (configure.ac): Pass $gl_source_base to
108494         gl_GETLOADAVG.
108496 2006-09-22  Bruno Haible  <bruno@clisp.org>
108498         * gnulib-tool (func_create_megatestdir): Don't include the config-h
108499         module.
108500         Suggested by Ralf Wildenhues.
108502 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108504         Import this patch from libc:
108506         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
108508         * lib/regex_internal.c (re_string_reconstruct): Handle
108509         offset < pstr->valid_raw_len && pstr->offsets_needed case.
108510         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
108511         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
108512         re_string_context_at.
108514         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
108515         now requires it.
108516         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
108517         gl_REGEX now does it for us.
108518         (gl_REGEX): Add test taken from
108519         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
108521         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
108522         Check that large offsets work.  Modernize Autoconf usages.
108523         Prefer "yes" to mean a good thing rather than a bad.
108524         Don't put "#define mkstemp" in config.h, as this might interfere
108525         with standard system headers that "#define mkstemp mkstemp64".
108527         * modules/mkstemp (Depends-on): Add extensions, so that
108528         mkstemp is visible on some platforms.
108529         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
108530         (Include): Change to "mkstemp.h" from <stdlib.h>.
108531         (Files): Add mkstemp.h.
108533         * lib/mkstemp.h: New file, since some standard headers
108534         #define mkstemp.
108535         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
108536         Include "mkstemp.h".
108537         Make the _LIBC code resemble glibc original more,
108538         e.g., use K&R style.
108539         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
108540         (mkstemp): Remove, since mkstemp.h does this for us.
108541         * lib/stdlib--.h: Include mkstemp.h.
108543         Import this patch from libc:
108545         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
108547         * lib/tempname.c (__gen_tempname): Change attempts_min
108548         into a macro.  Use preprocessor to decide how to initialize
108549         attempts [Coverity CID 67].
108551 2006-09-20  Bruno Haible  <bruno@clisp.org>
108553         * lib/mkdtemp.c: Import from libc.
108554         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
108555                 * sysdeps/posix/tempname.c (__gen_tempname): Change
108556                 attempts_min into a macro.  Use preprocessor to decide how to
108557                 initialize attempts [Coverity CID 67].
108558         2001-11-27  Paul Eggert  <eggert@twinsun.com>
108559                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
108560                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
108562 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108564         * gnulib-tool (func_exit): New function, to allow to pass the
108565         exit status portably through the trap.  Use everywhere.
108566         (--help, --version): Signal a write error.
108567         (trap): catch SIGPIPE, for write errors.
108568         Exit at the end of the trap, with the correct exit status.
108570 2006-09-19  Karl Berry  <karl@gnu.org>
108572         * doc/gnulib.texi: note about the license texinfo files.
108574 2006-09-19  Eric Blake  <ebb9@byu.net>
108576         * gnulib-tool: Avoid space-tab.
108578 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
108580         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
108581         that prevented coreutils 6.1 from building.  Problem reported
108582         by Petter Reinholdtsen.
108584 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
108586         * gnulib-tool (avoidlist): Fix typo that broke options like
108587         --avoid=lock that are used by coreutils bootstrap.
108589 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
108591         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
108592         more systematically.
108594 2006-09-18  Jim Meyering  <jim@meyering.net>
108596         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
108598 2006-09-18  Bruno Haible  <bruno@clisp.org>
108600         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
108602 2006-09-18  Bruno Haible  <bruno@clisp.org>
108604         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
108605         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
108606         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
108607         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
108608         * m4/gettext.m4: Require autoconf >= 2.52.
108609         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
108610         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
108611         of gl_cv_header_inttypes_h.
108613 2006-09-18  Bruno Haible  <bruno@clisp.org>
108615         * lib/javaversion.c: Include configmake.h.
108617 2006-09-18  Bruno Haible  <bruno@clisp.org>
108619         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
108620         avoid that the while loops be executed in a subshell.
108622 2006-09-18  Bruno Haible  <bruno@clisp.org>
108624         * MODULES.html.sh (func_module): Break long lines.
108625         Suggested by Bruce Korb <bkorb@gnu.org>.
108627 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108629         Speed up by a factor of 1.12.
108630         * gnulib-tool (nl): New variable.
108631         (func_import): Rewrite include directive extraction to only read each
108632         directive once.
108634 2006-09-17  Bruno Haible  <bruno@clisp.org>
108636         * modules/javaversion (Makefile.am): Remove DEFS setting.
108637         (Depends-on): Add configmake, for PKGDATADIR definition.
108639 2006-09-17  Bruno Haible  <bruno@clisp.org>
108641         * gnulib-tool (func_create_testdir): Rewrite all files at once.
108643 2006-09-17  Bruno Haible  <bruno@clisp.org>
108645         * gnulib-tool (func_append): New function, stolen from libtool.m4.
108646         (func_modules_transitive_closure, func_modules_add_dummy,
108647         func_modules_to_filelist, func_import, func_create_testdir,
108648         func_create_megatestdir, ...): Use it wherever possible.
108649         Suggested by Ralf Wildenhues.
108651 2006-09-16  Karl Berry  <karl@gnu.org>
108653         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
108654         to avoid sectioning errors.
108655         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
108656         [ifinfo]: blank line after @center-ed titles.
108657         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
108658         Spell FSF address consistently with others.
108659         (These changes approved by rms.)
108661 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108663         Speed up by a factor of 1.61.
108664         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
108665         already checked module names again.
108667 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108669         Speed up by a factor of 1.13.
108670         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
108671         for new_files, and the input to func_add_or_update.
108673 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108675         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
108676         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
108678 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
108680         * modules/mkancesdirs (Depends-on): Add fcntl.
108681         * modules/savewd: New file.
108682         * MODULES.html.sh (File system functions): Add savewd.
108684         * modules/configmake (Makefile.am): Add support for the
108685         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
108687 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
108689         * m4/savewd.m4: New file.
108691 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
108693         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
108694         (dirchownmod): New arg FD.  All callers changed.
108695         Use FD rather than opening the directory ourself, as opening is
108696         now the caller's responsibility.
108697         * lib/dirchownmod.h: Likewise.
108698         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
108699         hosts that require <sys/types.h> before <sys/stat.h>.  Include
108700         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
108701         (test_dir): Remove.
108702         (mkancesdirs): Return length of prefix of FILE that has already
108703         been made, or -2 if there is a child doing the work.  Redo
108704         algorithm so that it is O(N) rather than O(N**2).  Optimize away
108705         ".", and treat ".." specially since it might stray back into
108706         already-created areas.  Use a subprocess if necessary.  New arg
108707         WD; all users changed.  MAKE_DIR function should now return 1
108708         if it creates a directory that is not readable.  Return -2 if
108709         a child process is spun off.
108710         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
108711         Adjust signature to match code.
108712         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
108713         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
108714         all users changed.
108715         * lib/savewd.c, lib/savewd.h: New files.
108717 2006-09-15  Jim Meyering  <jim@meyering.net>
108719         * modules/rename-dest-slash: New module.
108720         * MODULES.html.sh (posix_compat): Add it here.
108722         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
108724 2006-09-15  Jim Meyering  <jim@meyering.net>
108726         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
108727         file.
108729         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
108731 2006-09-15  Jim Meyering  <jim@meyering.net>
108733         * lib/rename-dest-slash.c (has_trailing_slash): Use
108734         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
108735         (rpl_rename_dest_slash): Perform the cheaper trailing slash
108736         test before testing whether SRC is a directory.
108737         Suggestions from Bruno Haible.
108739         Avoid a warning about an unused variable.
108740         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
108741         into the #ifdef block where it's used.
108743         * lib/rename-dest-slash.c: New file.
108745 2006-09-14  Bruno Haible  <bruno@clisp.org>
108747         * lib/allocsa.c: Include <config.h> unconditionally.
108748         * lib/asnprintf.c: Likewise.
108749         * lib/asprintf.c: Likewise.
108750         * lib/c-strcasecmp.c: Likewise.
108751         * lib/c-strcasestr.c: Likewise.
108752         * lib/c-strncasecmp.c: Likewise.
108753         * lib/c-strstr.c: Likewise.
108754         * lib/classpath.c: Likewise.
108755         * lib/clean-temp.c: Likewise.
108756         * lib/concatpath.c: Likewise.
108757         * lib/copy-file.c: Likewise.
108758         * lib/csharpcomp.c: Likewise.
108759         * lib/csharpexec.c: Likewise.
108760         * lib/execute.c: Likewise.
108761         * lib/fatal-signal.c: Likewise.
108762         * lib/findprog.c: Likewise.
108763         * lib/fwriteerror.c: Likewise.
108764         * lib/gl_array_list.c: Likewise.
108765         * lib/gl_array_oset.c: Likewise.
108766         * lib/gl_avltree_list.c: Likewise.
108767         * lib/gl_avltree_oset.c: Likewise.
108768         * lib/gl_avltreehash_list.c: Likewise.
108769         * lib/gl_carray_list.c: Likewise.
108770         * lib/gl_linked_list.c: Likewise.
108771         * lib/gl_linkedhash_list.c: Likewise.
108772         * lib/gl_list.c: Likewise.
108773         * lib/gl_oset.c: Likewise.
108774         * lib/gl_rbtree_list.c: Likewise.
108775         * lib/gl_rbtree_oset.c: Likewise.
108776         * lib/gl_rbtreehash_list.c: Likewise.
108777         * lib/imaxabs.c: Likewise.
108778         * lib/imaxdiv.c: Likewise.
108779         * lib/javacomp.c: Likewise.
108780         * lib/javaexec.c: Likewise.
108781         * lib/javaversion.c: Likewise.
108782         * lib/linebreak.c: Likewise.
108783         * lib/localcharset.c: Likewise.
108784         * lib/lock.c: Likewise.
108785         * lib/mbchar.c: Likewise.
108786         * lib/mbswidth.c: Likewise.
108787         * lib/mkdtemp.c: Likewise.
108788         * lib/pipe.c: Likewise.
108789         * lib/printf-args.c: Likewise.
108790         * lib/printf-parse.c: Likewise.
108791         * lib/progname.c: Likewise.
108792         * lib/progreloc.c: Likewise.
108793         * lib/readlink.c: Likewise.
108794         * lib/sh-quote.c: Likewise.
108795         * lib/stpcpy.c: Likewise.
108796         * lib/stpncpy.c: Likewise.
108797         * lib/strcasecmp.c: Likewise.
108798         * lib/strcasestr.c: Likewise.
108799         * lib/strcspn.c: Likewise.
108800         * lib/striconv.c: Likewise.
108801         * lib/strncasecmp.c: Likewise.
108802         * lib/strnlen1.c: Likewise.
108803         * lib/strstr.c: Likewise.
108804         * lib/strtok_r.c: Likewise.
108805         * lib/tls.c: Likewise.
108806         * lib/tmpdir.c: Likewise.
108807         * lib/unicodeio.c: Likewise.
108808         * lib/unsetenv.c: Likewise.
108809         * lib/vasnprintf.c: Likewise.
108810         * lib/vasprintf.c: Likewise.
108811         * lib/wait-process.c: Likewise.
108812         * lib/xallocsa.c: Likewise.
108813         * lib/xsetenv.c: Likewise.
108814         * lib/xstriconv.c: Likewise.
108816 2006-09-13  Simon Josefsson  <jas@extundo.com>
108818         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
108819         that internally, suggested by Ralf Wildenhues
108820         <Ralf.Wildenhues@gmx.de>.
108822 2006-09-13  Simon Josefsson  <jas@extundo.com>
108824         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
108825         @LIBOBJS@.
108826         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108828 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108830         * lib/_fpending.c: Include <config.h> unconditionally, since we no
108831         longer worry about uses that don't define HAVE_CONFIG_H.
108832         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
108833         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
108834         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
108835         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
108836         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
108837         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
108838         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
108839         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
108840         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
108841         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
108842         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
108843         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
108844         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
108845         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
108846         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
108847         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
108848         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
108849         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
108850         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
108851         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
108852         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
108853         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
108854         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
108855         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
108856         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
108857         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
108858         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
108859         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
108860         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
108861         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
108862         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
108863         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
108864         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
108865         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
108866         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
108867         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
108868         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
108869         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
108870         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
108871         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
108872         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
108873         Likewise.
108875 2006-09-13  Eric Blake  <ebb9@byu.net>
108877         * lib/getopt.c: Fix typo in last commit.
108879 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
108881         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
108882         dgettext.
108884 2006-09-12  Jim Meyering  <jim@meyering.net>
108886         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
108887         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
108888         Reported by Nelson H. F. Beebe.
108890 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
108892         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
108893         program_invocation_name and program_invocation_short_name are
108894         initialized.
108895         * lib/argp-namefrob.h: Move declarations of program_invocation_name
108896         and program_invocation_short_name to argp.h, so they are visible
108897         to user programs.
108898         * lib/argp.h: Likewise
108900 2006-09-10  Bruno Haible  <bruno@clisp.org>
108902         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
108903         m4/inttypes_h.m4, m4/uintmax_t.m4.
108905 2006-09-10  Bruno Haible  <bruno@clisp.org>
108907         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
108908         gl_AC_TYPE_UINTMAX_T.
108910 2006-09-10  Bruno Haible  <bruno@clisp.org>
108912         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
108914 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
108916         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
108917         convention.  Text proposed by Bruno Haible.
108918         (struct argp_option): Document the use of N_() wrappers.
108920         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
108921         '\v', and translate the two parts separately, instead of feeding
108922         the whole string to gettext.  This allows to exclude
108923         '\v' from the strings visible to the translator by writing doc
108924         strings as N_("..") "\v" N_("..").
108926 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
108928         * config/srclist.txt: Undo latest change; the bug was fixed.
108930 2006-09-09  Bruno Haible  <bruno@clisp.org>
108932         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
108933         assignments if building a library without libtool.
108934         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
108935         in func_emit_lib_Makefile_am.
108936         (func_import): When building a static library libfoo.a, arrange to
108937         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
108938         (func_create_testdir): Likewise.
108939         * modules/gc (configure.ac, Makefile.am): If building statically,
108940         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
108941         * modules/iconvme (configure.ac, Makefile.am): Likewise.
108942         * modules/striconv (configure.ac, Makefile.am): Likewise.
108943         Based on a suggestion by Ralf Wildenhues.
108945 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
108947         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
108948         Check for unistd.h too, since Autoconf doesn't assume POSIX.
108949         Also:
108951         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
108952         Add year_2050_test to catch glibc bug 2821
108953         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
108955         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
108956         Prefer #ifdef to #if.
108958         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
108959         Return from 'main' instead of calling 'exit'.
108961 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
108963         * lib/mktime.c (guess_time_tm): Fix bug where mktime
108964         returned the maximum time_t value rather than (time_t) -1.
108965         Problem originally reported by William Bardwell
108966         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
108968         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
108969         Moved to here ...
108970         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
108971         ... from here.
108973 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
108975         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
108976         2821 is fixed.
108978 2006-09-08  Jim Meyering  <jim@meyering.net>
108980         Don't make generated files read-only.  That would bother too many
108981         people.  However, do retain the ability to work when targets are
108982         read-only: remove the destination and temporary files before writing
108983         them (when generated via sed or echo), or by using the -f option for
108984         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
108985         * modules/alloca-opt, modules/argz, modules/arpa_inet:
108986         * modules/byteswap, modules/configmake, modules/fcntl:
108987         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
108988         * modules/localcharset, modules/netinet_in, modules/poll:
108989         * modules/stdbool, modules/stdint, modules/sys_select:
108990         * modules/sys_socket, modules/sys_stat, modules/sysexits:
108992 2006-09-08  Jim Meyering  <jim@meyering.net>
108994         Avoid new build failure on FreeBSD 6.0.
108995         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
108996         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
108997         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
108999 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109001         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
109003 2006-09-07  Jim Meyering  <jim@meyering.net>
109005         Fix global typo in last change: use chmod u-w, not chmod u-x.
109006         Spotted by Paul Eggert and Bruce Korb.
109007         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109008         * modules/byteswap, modules/configmake, modules/fcntl:
109009         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109010         * modules/localcharset, modules/netinet_in, modules/poll:
109011         * modules/stdbool, modules/stdint, modules/sys_select:
109012         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109014 2006-09-06  Jim Meyering  <jim@meyering.net>
109016         Make generated files be read-only.
109017         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
109018         Ensure that each generated file is now read-only.
109019         * modules/argz: Likewise.
109020         * modules/arpa_inet: Likewise.
109021         * modules/byteswap: Likewise.
109022         * modules/configmake: Likewise.
109023         * modules/fcntl: Likewise.
109024         * modules/fnmatch: Likewise.
109025         * modules/getopt: Likewise.
109026         * modules/glob: Likewise.
109027         * modules/inttypes: Likewise.
109028         * modules/netinet_in: Likewise.
109029         * modules/poll: Likewise.
109030         * modules/stdbool: Likewise.
109031         * modules/stdint: Likewise.
109032         * modules/sys_select: Likewise.
109033         * modules/sys_socket: Likewise.
109034         * modules/sys_stat: Likewise.
109035         * modules/sysexits: Likewise.
109036         * modules/localcharset: Same as above, but continue using temporary
109037         file named "t-$@" (why different?) rather than the "$@-t" used
109038         everywhere else.
109040         * modules/sysexits (Makefile.am): Replace literal occurrences
109041         of "sysexit.h" more readable, and more consistent, "$@".
109043 2006-09-06  Bruno Haible  <bruno@clisp.org>
109045         * modules/striconv: New file.
109046         * modules/xstriconv: New file.
109047         * MODULES.html.sh (Internationalization functions): Add striconv,
109048         xstriconv.
109050 2006-09-06  Bruno Haible  <bruno@clisp.org>
109052         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
109053         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
109054         not using libtool correctly.
109056 2006-09-06  Bruno Haible  <bruno@clisp.org>
109058         * lib/striconv.h: New file.
109059         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
109060         iconvstring.c.
109061         * lib/xstriconv.h: New file.
109062         * lib/xstriconv.c: New file.
109064 2006-09-06  Bruno Haible  <bruno@clisp.org>
109066         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109067         lib_..._LDFLAGS.
109069 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109071         * lib/argz_.h: Sync from Libtool.
109073         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
109074                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
109076         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
109078 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109080         * modules/trim: New file.
109082 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109084         * lib/trim.h: New file.
109085         * lib/trim.c: New file.
109087 2006-09-05  Bruno Haible  <bruno@clisp.org>
109089         * MODULES.html.sh (String handling): Add trim.
109091 2006-09-04  Karl Berry  <karl@gnu.org>
109093         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
109094         until next release.
109096 2006-09-03  Bruno Haible  <bruno@clisp.org>
109098         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
109099         correctly.
109101 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109103         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
109104         not gl_GETLOADAVG.  Omit unneeded semicolons.
109105         Problems reported by Ralf Wildenhues in
109106         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109107         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
109108         at the end, which is the usual gnulib style.
109110         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
109111         of doing all the work ourselves.
109112         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
109113         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
109115 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109117         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
109118         Problem reported by Ralf Wildenhues in
109119         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109121         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
109122         HAVE_STRUCT_STATFS_F_FSTYPENAME.
109124 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109126         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
109127         yesterday's patch by changing test -n to test -z.
109129 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109131         * modules/getloadavg (Files): Add m4/getloadavg.m4.
109132         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
109133         the former is now obsolescent.
109135         * modules/chdir-long (Depends-on): Add fcntl.
109137 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109139         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
109140         obsolescent, and programs should use gnulib instead.
109141         * m4/getloadavg.m4: New file, with contents taken from Autoconf
109142         but with prefixes changed.
109144 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109146         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
109147         or stdbool.h, because they might not exist while configuring.
109149         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
109150         Don't include unistd.h or limits.h; not needed, since chdir-long.h
109151         does that for us.
109152         (O_DIRECTORY): Remove.
109154 2006-08-31  Eric Blake  <ebb9@byu.net>
109156         * gnulib-tool: Don't let emacs change spaces to TAB.
109158 2006-08-31  Bruno Haible  <bruno@clisp.org>
109160         * gnulib-tool: When calling func_import more than once, do it in a
109161         subshell.
109162         Reported by Eric Blake <ebb9@byu.net>.
109164 2006-08-31  Bruno Haible  <bruno@clisp.org>
109166         * gnulib-tool (nl): Remove variable.
109167         (sed_transform_lib_file): Use more robust test for config-h module.
109168         (func_import): Fix typo in 2006-08-25 patch.
109170 2006-08-31  Bruno Haible  <bruno@clisp.org>
109172         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
109173         specified, augment Makefile.am variables instead of assigning them.
109175 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109177         Work around a bug in both the Linux and SunOS 64-bit kernels:
109178         nanosleep mishandles sleeps for longer than 2**31 seconds.
109179         Problem reported by Frank v Waveren in
109180         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
109182         Check for nanosleep bug.
109183         (LIB_NANOSLEEP): Append clock_gettime library if needed.
109185 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109187         Work around a bug in both the Linux and SunOS 64-bit kernels:
109188         nanosleep mishandles sleeps for longer than 2**31 seconds.
109189         Problem reported by Frank v Waveren in
109190         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109191         * lib/nanosleep.c (BILLION): New constant.
109192         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
109193         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
109194         implementation.
109196 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109198         * modules/nanosleep (Depends-on): Add gettime.
109200 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109201         and Simon Josefsson  <jas@extundo.com>
109202         and Oskar Liljeblad  <oskar@osk.mine.nu>
109204         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
109205         * gnulib-tool (func_import): New license type 'unmodifiable license
109206         text'.
109207         * modules/fdl: Use it.  Longer description.
109208         * module/gpl, module/lgpl: New files.
109210 2006-08-30  Jim Meyering  <jim@meyering.net>
109212         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
109213         shadowing the parameter.
109215 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109217         Sync from Libtool:
109219         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109221         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
109222         sharing with gnulib.  Report by Eric Blake.
109224 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109226         * modules/isapipe: New file.
109227         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
109229 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109231         * modules/configmake (Makefile.am): Add a comment, and omit
109232         the CONFIGMAKE_ prefix from generated macro names.  Suggested
109233         by Bruno Haible.
109235 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109237         * m4/isapipe.m4: New file.
109239 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109241         * lib/isapipe.c, lib/isapipe.h: New files.
109243 2006-08-29  Jim Meyering  <jim@meyering.net>
109245         * modules/configmake (Makefile.am): Make configmake.h depend on
109246         Makefile.  Otherwise, a stale configmake.h could hang around.
109248 2006-08-29  Eric Blake  <ebb9@byu.net>
109250         * lib/error.c (error_at_line, print_errno_message): Match libc, after
109251         resolution of upstream bug 3044.
109253 2006-08-29  Bruno Haible  <bruno@clisp.org>
109255         * modules/localcharset (Depends-on): Add configmake.
109256         (Makefile.am): Remove setting of LIBDIR through DEFS.
109258 2006-08-29  Bruno Haible  <bruno@clisp.org>
109260         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
109261         defined.
109263 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109265         * modules/fcntl: New file.
109266         * modules/chdir-safer (Depends-on): Add fcntl.
109267         * modules/fts: Likewise.
109268         * modules/mkdir-p: Likewise.
109270         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
109271         This undoes the most recent change, since we're now addressing the
109272         problem in a different way.
109274         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
109275         into output, since the output might be called Makefile.am even
109276         if $makefile_name is something different.
109277         (func_import): Use $makefile_am rather than
109278         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
109279         empty.
109281         * modules/inttypes (Files): Add m4/inttypes-h.m4.
109283 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109285         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
109286         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
109287         recent change to stdint.m4, since we're now addressing the problem in a
109288         different way.
109290 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109292         * m4/fcntl_h.m4: New file.
109294 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109296         * lib/fcntl_.h: New file.
109297         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
109298         the fcntl module.
109299         * lib/dirchownmod.c: Likewise.
109300         * lib/fts.c: Likewise.
109302         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
109303         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
109304         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
109305         just before including <inttypes.h>, to avoid circular inclusion.
109307 2006-08-28  Jim Meyering  <jim@meyering.net>
109309         * doc/visibility.texi: Actually read and correct the grammar of the
109310         sentence affected by yesterday's change.
109312 2006-08-28  Eric Blake  <ebb9@byu.net>
109314         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
109315         needs wrapper.
109317 2006-08-28  Eric Blake  <ebb9@byu.net>
109319         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
109321 2006-08-28  Eric Blake  <ebb9@byu.net>
109323         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
109325 2006-08-28  Bruno Haible  <bruno@clisp.org>
109327         * modules/c-strstr: New file, from GNU gettext.
109328         * MODULES.html.sh (String handling): Add c-strstr.
109330 2006-08-28  Bruno Haible  <bruno@clisp.org>
109332         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
109333         macros.
109334         Reported by Eric Blake.
109336 2006-08-28  Bruno Haible  <bruno@clisp.org>
109338         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
109339         (VASNPRINTF): Return a string of length > INT_MAX without failing.
109340         * lib/vasprintf.c: Include errno.h, limits.h.
109341         (EOVERFLOW): New fallback definition.
109342         (vasprintf): Test here whether the string length is > INT_MAX.
109343         * lib/vsnprintf.c: Include errno.h, limits.h.
109344         (EOVERFLOW): New fallback definition.
109345         (vsnprintf): Fix bug when generated string was too long for the buffer.
109346         Test here whether the string length is > INT_MAX.
109348 2006-08-28  Bruno Haible  <bruno@clisp.org>
109350         * lib/inttypes_.h (SCNX*): Remove definitions.
109351         Reported by Eric Blake.
109353 2006-08-28  Bruno Haible  <bruno@clisp.org>
109355         * lib/c-strstr.h: New file, from GNU gettext.
109356         * lib/c-strstr.c: New file, from GNU gettext.
109358 2006-08-28  Bruno Haible  <bruno@clisp.org>
109360         * gnulib-tool: Reorder some statements.
109362 2006-08-28  Bruno Haible  <bruno@clisp.org>
109364         * gnulib-tool: New option --makefile-name.
109365         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
109366         $makefile_name.
109367         (func_import): Write $makefile_name to the cache file, and read it from
109368         there unless explicitly specified. Use $makefile_name as file name
109369         instead of Makefile.am. Adjust the recommendations accordingly.
109371 2006-08-28  Bruno Haible  <bruno@clisp.org>
109373         * gnulib-tool (func_verify_module): Check against misapplying patch.
109375 2006-08-28  Bruno Haible  <bruno@clisp.org>
109377         * gnulib-tool (func_relativize, func_relconcat): New functions.
109378         Give an error if --local-dir is given with --update.
109379         Remove trailing slashes from $local_gnulib_dir.
109380         (func_import): Store the relativized $local_gnulib_dir in
109381         gnulib-cache.m4, and read it from there if not specified explicitly.
109383 2006-08-28  Bruno Haible  <bruno@clisp.org>
109385         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
109386         is the current directory. Respect also $local_gnulib_dir.
109388 2006-08-28  Bruno Haible  <bruno@clisp.org>
109389             Simon Josefsson  <jas@extundo.com>
109391         BeOS portability.
109392         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
109394 2006-08-27  Jim Meyering  <jim@meyering.net>
109396         * doc/visibility.texi: Remove duplicate word: "pointer".
109398 2006-08-26  Bruno Haible  <bruno@clisp.org>
109400         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
109401         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
109402         (Makefile.am): Create inttypes.h from inttypes_.h.
109403         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
109405         * modules/imaxabs: New file.
109407         * modules/imaxdiv: New file.
109409 2006-08-26  Bruno Haible  <bruno@clisp.org>
109411         * m4/inttypes.m4: New file.
109412         * m4/_inttypes_h.m4: Remove file.
109413         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
109414         PRI_MACROS_BROKEN.
109415         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
109417         * m4/imaxabs.m4: New file.
109419         * m4/imaxdiv.m4: New file.
109421 2006-08-26  Bruno Haible  <bruno@clisp.org>
109423         * lib/inttypes_.h: New file.
109424         * lib/inttypes.h: Remove file.
109425         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
109427         * lib/imaxabs.c: New file.
109429         * lib/imaxdiv.c: New file.
109431 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109433         New config-h module, so that "make" output needn't be cluttered
109434         by -DHAVE_CONFIG_H.
109435         * MODULES.html.sh (Support for building libraries and executables):
109436         Add config-h.
109437         * modules/config-h: New file.
109438         * gnulib-tool (nl, sed_transform_lib_file): New vars.
109439         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
109440         the config-h module is used.
109442         New configmake module, so that "make" output needn't be cluttered
109443         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
109444         * MODULES.html.sh (Support for building libraries and executables):
109445         Add configmake.
109446         * modules/configmake: New file.
109448 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109450         * m4/config-h.m4: New file.
109452 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109454         * config/srclist.txt: Add elisp-comp.
109456 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109458         * MODULES.html.sh (Support for building libraries and executables):
109459         Add elisp-comp.
109460         * build-aux/elisp-comp: New file.
109461         * modules/elisp-comp: New file.
109463 2006-08-24  Bruno Haible  <bruno@clisp.org>
109465         * gnulib-tool (func_create_testdir): Use non-default values of
109466         sourcebase and m4base.
109468 2006-08-24  Bruno Haible  <bruno@clisp.org>
109470         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
109471         HTML structure.
109473 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
109475         * modules/openat (Depends-on): Add lchown.
109477 2006-08-23  Bruno Haible  <bruno@clisp.org>
109479         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
109480         of gl_LOCK_EARLY instead of gl_LOCK.
109482 2006-08-23  Bruno Haible  <bruno@clisp.org>
109484         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
109485         on OSF/1 to no.
109486         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
109488 2006-08-23  Bruno Haible  <bruno@clisp.org>
109490         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
109491         as unusable.
109493         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
109494         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
109495         (gl_LOCK): New macro.
109497 2006-08-22  Simon Josefsson  <jas@extundo.com>
109499         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
109500         to md5 module.
109502 2006-08-22  Simon Josefsson  <jas@extundo.com>
109504         * MODULES.html.sh: Add "Support for maintaining and release
109505         projects".
109507         * build-aux/gnupload: New file, from coreutils.
109509 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109511         Avoid the need for AC_LIBSOURCES in m4 macros.
109512         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
109513         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
109514         * modules/check-version (EXTRA_DIST): Add check-version.h.
109515         * modules/crc (EXTRA_DIST): Add crc.h.
109516         * modules/des (EXTRA_DIST): Add des.h.
109517         * modules/gc (EXTRA_DIST): Add gc.h.
109518         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
109519         * modules/getline (EXTRA_DIST): Add getline.h.
109520         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
109521         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
109522         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
109523         * modules/md2 (EXTRA_DIST): Add md2.h.
109524         * modules/md4 (EXTRA_DIST): Add md4.h.
109525         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
109526         * modules/read-file (EXTRA_DIST): Add read-file.h.
109527         * modules/readline (EXTRA_DIST): Add readline.h.
109528         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
109529         rijndael-api-fst.h.
109531 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109533         * m4/rijndael.m4 (gl_ARCFOUR):
109534         * m4/arctwo.m4 (gl_ARCTWO):
109535         * m4/check-version.m4 (gl_CHECK_VERSION):
109536         * m4/crc.m4 (gl_CRC):
109537         * m4/des.m4 (gl_DES):
109538         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
109539         * m4/gc.m4 (gl_GC):
109540         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
109541         * m4/getline.m4 (gl_FUNC_GETLINE):
109542         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
109543         * m4/hmac-md5.m4 (gl_HMAC_MD5):
109544         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
109545         * m4/md2.m4 (gl_MD2):
109546         * m4/md4.m4 (gl_MD4):
109547         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
109548         * m4/read-file.m4 (gl_FUNC_READ_FILE):
109549         * m4/readline.m4 (gl_FUNC_READLINE):
109550         * m4/rijndael.m4 (gl_RIJNDAEL):
109551         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
109552         to get the necessary .h files and whatnot.
109554 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109556         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
109557         gnulib rather than the other way around.
109558         * config/srclistvars.sh (COREUTILS): Remove.
109560 2006-08-22  Jim Meyering  <jim@meyering.net>
109562         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
109564         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
109566 2006-08-22  Eric Blake  <ebb9@byu.net>
109568         * modules/regexprops-generic: New file.
109569         * MODULES.html.sh (Support for building documentation): List it.
109571 2006-08-22  Eric Blake  <ebb9@byu.net>
109573         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
109574         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
109575         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
109576         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
109578 2006-08-22  Bruno Haible  <bruno@clisp.org>
109580         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
109581         and lib_LTLIBRARIES like the other lib_* variables.
109583 2006-08-22  Bruno Haible  <bruno@clisp.org>
109585         * build-aux/x-to-1.in: New file, from GNU gettext.
109587 2006-08-22  Bruno Haible  <bruno@clisp.org>
109589         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
109590         <utmpx.h> exists.
109592 2006-08-22  Bruno Haible  <bruno@clisp.org>
109594         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
109595         <utmpx.h> exists.
109597 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
109599         BeOS portability.
109600         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
109601         exist.
109602         Problem reported by Bruno Haible.
109604 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
109606         Avoid the need for AC_LIBSOURCES in m4 macros.
109607         * modules/acl (EXTRA_DIST): Add acl.h.
109608         * modules/argmatch (Files): Add m4/argmatch.m4.
109609         (configure.ac): Add gl_ARGMATCH.
109610         (EXTRA_DIST): Renamed from lib_SOURCES, for
109611         consistency with the other modules.  Remove argmatch.c.
109612         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
109613         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
109614         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
109615         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
109616         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
109617         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
109618         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
109619         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
109620         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
109621         * modules/closeout (EXTRA_DIST): Add closeout.h.
109622         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
109623         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
109624         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
109625         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
109626         dirname.h; remove basename.c and stripslash.c.
109627         * modules/exclude (EXTRA_DIST): Add exclude.h.
109628         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
109629         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
109630         * modules/file-type (EXTRA_DIST): Add file-type.h.
109631         * modules/filemode (EXTRA_DIST): Add filemode.h.
109632         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
109633         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
109634         * modules/fpending (EXTRA_DIST): Add __fpending.h.
109635         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
109636         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
109637         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
109638         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
109639         * modules/getdate (EXTRA_DIST): Add getdate.c.
109640         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
109641         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
109642         * modules/getpass (EXTRA_DIST): Add getpass.h.
109643         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
109644         * modules/group-member (EXTRA_DIST): Add group-member.h.
109645         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
109646         * modules/hash (EXTRA_DIST): Add hash.h.
109647         * modules/human (EXTRA_DIST): Add human.h.
109648         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
109649         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
109650         * modules/lchown (EXTRA_DIST): Add lchown.h.
109651         * modules/long-options (EXTRA_DIST): Add long-options.h.
109652         * modules/lstat (EXTRA_DIST): Add lstat.h.
109653         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
109654         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
109655         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
109656         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
109657         * modules/memxor (EXTRA_DIST): Add memxor.h.
109658         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
109659         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
109660         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
109661         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
109662         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
109663         * modules/physmem (EXTRA_DIST): Add physmem.h.
109664         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
109665         * modules/posixver (EXTRA_DIST): Add posixver.h.
109666         * modules/quote (EXTRA_DIST): Add quote.h.
109667         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
109668         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
109669         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
109670         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
109671         regex_internal.h regexec.c.
109672         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
109673         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
109674         * modules/same (EXTRA_DIST): Add same.h.
109675         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
109676         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
109677         * modules/savedir (EXTRA_DIST): Add savedir.h.
109678         * modules/sha1 (EXTRA_DIST): Add sha1.h.
109679         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
109680         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
109681         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
109682         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
109683         * modules/strdup (EXTRA_DIST): Add strdup.h.
109684         * modules/strftime (EXTRA_DIST): Add strftime.h.
109685         * modules/strndup (EXTRA_DIST): Add strndup.h.
109686         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
109687         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
109688         * modules/time_r (EXTRA_DIST): Add time_r.h.
109689         * modules/timespec (EXTRA_DIST): Add timespec.h.
109690         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
109691         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
109692         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
109693         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
109694         * modules/userspec (EXTRA_DIST): Add userspec.h.
109695         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
109696         * modules/utimens (EXTRA_DIST): Add utimens.h.
109697         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
109698         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
109699         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
109700         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
109701         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
109702         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
109703         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
109704         * modules/yesno (EXTRA_DIST): Add yesno.h.
109706 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
109708         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
109710         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
109711         * m4/dev-ino.m4, same-inode.m4: Remove.
109713         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
109714         * m4/acl.m4 (AC_FUNC_ACL):
109715         * m4/backupfile.m4 (gl_BACKUPFILE):
109716         * m4/c-strtod.m4 (gl_C99_STRTOLD):
109717         * m4/canon-host.m4 (gl_CANON_HOST):
109718         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
109719         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
109720         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
109721         * m4/cloexec.m4 (gl_CLOEXEC):
109722         * m4/close-stream.m4 (gl_CLOSE_STREAM):
109723         * m4/closeout.m4 (gl_CLOSEOUT):
109724         * m4/dirfd.m4 (gl_FUNC_DIRFD):
109725         * m4/dirname.m4 (gl_DIRNAME):
109726         * m4/exclude.m4 (gl_EXCLUDE):
109727         * m4/exitfail.m4 (gl_EXITFAIL):
109728         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
109729         * m4/file-type.m4 (gl_FILE_TYPE):
109730         * m4/filemode.m4 (gl_FILEMODE):
109731         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
109732         * m4/fpending.m4 (gl_FUNC_FPENDING):
109733         * m4/fprintftime.m4 (gl_FPRINTFTIME):
109734         * m4/fts.m4 (gl_FUNC_FTS):
109735         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
109736         * m4/getdate.m4 (gl_GETDATE):
109737         * m4/gethrxtime.m4 (gl_GETHRXTIME):
109738         * m4/getpagesize.m4 (gl_GETPAGESIZE):
109739         * m4/getpass.m4 (gl_FUNC_GETPASS):
109740         * m4/gettime.m4 (gl_GETTIME):
109741         * m4/getugroups.m4 (gl_GETUGROUPS):
109742         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
109743         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
109744         * m4/hard-locale.m4 (gl_HARD_LOCALE):
109745         * m4/hash.m4 (gl_HASH):
109746         * m4/idcache.m4 (gl_IDCACHE):
109747         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
109748         * m4/lchown.m4 (gl_FUNC_LCHOWN):
109749         * m4/long-options.m4 (gl_LONG_OPTIONS):
109750         * m4/lstat.m4 (gl_FUNC_LSTAT):
109751         * m4/md5.m4 (gl_MD5):
109752         * m4/memcasecmp.m4 (gl_MEMCASECMP):
109753         * m4/memcoll.m4 (gl_MEMCOLL):
109754         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
109755         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
109756         * m4/memxor.m4 (gl_MEMXOR):
109757         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
109758         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
109759         * m4/modechange.m4 (gl_MODECHANGE):
109760         * m4/mountlist.m4 (gl_MOUNTLIST):
109761         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
109762         * m4/openat.m4 (gl_FUNC_OPENAT):
109763         * m4/pathmax.m4 (gl_PATHMAX):
109764         * m4/physmem.m4 (gl_PHYSMEM):
109765         * m4/posixtm.m4 (gl_POSIXTM):
109766         * m4/posixver.m4 (gl_POSIXVER):
109767         * m4/quote.m4 (gl_QUOTE):
109768         * m4/quotearg.m4 (gl_QUOTEARG):
109769         * m4/readtokens.m4 (gl_READTOKENS):
109770         * m4/readutmp.m4 (gl_READUTMP):
109771         * m4/regex.m4 (gl_REGEX):
109772         * m4/safe-read.m4 (gl_SAFE_READ):
109773         * m4/safe-write.m4 (gl_SAFE_WRITE):
109774         * m4/same.m4 (gl_SAME):
109775         * m4/save-cwd.m4 (gl_SAVE_CWD):
109776         * m4/savedir.m4 (gl_SAVEDIR):
109777         * m4/settime.m4 (gl_SETTIME):
109778         * m4/sha1.m4 (gl_SHA1):
109779         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
109780         * m4/stat-macros.m4 (gl_STAT_MACROS):
109781         * m4/stat-time.m4 (gl_STAT_TIME):
109782         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
109783         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
109784         * m4/strdup.m4 (gl_FUNC_STRDUP):
109785         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
109786         * m4/strndup.m4 (gl_FUNC_STRNDUP):
109787         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
109788         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
109789         * m4/time_r.m4 (gl_TIME_R):
109790         * m4/timespec.m4 (gl_TIMESPEC):
109791         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
109792         * m4/unlinkdir.m4 (gl_UNLINKDIR):
109793         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
109794         * m4/userspec.m4 (gl_USERSPEC):
109795         * m4/utimecmp.m4 (gl_UTIMECMP):
109796         * m4/utimens.m4 (gl_UTIMENS):
109797         * m4/xalloc.m4 (gl_XALLOC):
109798         * m4/xgetcwd.m4 (gl_XGETCWD):
109799         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
109800         * m4/xreadlink.m4 (gl_XREADLINK):
109801         * m4/xstrtod.m4 (gl_XSTRTOD):
109802         * m4/yesno.m4 (gl_YESNO):
109803         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
109804         to get the necessary .h files and whatnot.
109806 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
109807             Bruno Haible  <bruno@clisp.org>
109809         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
109810         /bin/sh understanding of '!' conditional negation.
109812 2006-08-21  Jim Meyering  <jim@meyering.net>
109814         * modules/openat (Depends-on): Really alphabetize.
109816         * modules/acl (Depends-on): Add error and quote.
109818         * check-module (find_included_lib_files): Add at-func.c to the
109819         ok-to-include-more-than-once white list.
109821         * modules/openat (Depends-on): Add lstat.  Alphabetize.
109823 2006-08-21  Bruno Haible  <bruno@clisp.org>
109825         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109826         Emit a pkgdata_DATA variable only if some snippets add contents to it.
109827         Reported by Martin Lambers <marlam@marlam.de>.
109829 2006-08-21  Bruno Haible  <bruno@clisp.org>
109831         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
109832         specify an installation location, don't emit a noinst_LIBRARIES or
109833         noinst_LTLIBRARIES assignment.
109835 2006-08-21  Bruno Haible  <bruno@clisp.org>
109837         BeOS portability.
109838         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
109839         BeOS has mbrtowc() but no <wctype.h>.
109841 2006-08-21  Bruno Haible  <bruno@clisp.org>
109843         BeOS portability.
109844         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
109845         exist.
109847 2006-08-21  Bruno Haible  <bruno@clisp.org>
109849         BeOS portability.
109850         * lib/mbchar.h: Include <wctype.h> only if it exists.
109852 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
109854         Remove files that are no longer needed by their respective modules.
109855         * m4/obstack.m4: Remove.
109856         * m4/strerror_r.m4: Remove.
109857         * m4/uint32_t.m4: Remove.
109858         * m4/uintptr_t.m4: Remove.
109859         * m4/ullong_max.m4: Remove.
109860         * m4/xstrtoimax.m4: Remove.
109861         * m4/xstrtoumax.m4: Remove.
109863         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
109864         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
109865         dependencies now capture this.
109867         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
109868         Do not use AC_LIBSOURCES, since gnulib modules now do this.
109869         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
109870         * m4/human.m4 (gl_HUMAN): Likewise.
109871         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
109872         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
109874         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
109876         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
109877         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
109878         stdint.
109879         * m4/human.m4 (gl_HUMAN): Likewise.
109880         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
109881         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
109882         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
109883         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
109884         * m4/xstrtol (gl_XSTRTOL): Likewise.
109886         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
109887         AC_TYPE_LONG_LONG_INT.
109888         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
109889         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
109890         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
109891         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
109893         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
109894         on stdbool.
109896         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
109897         (gl_PREREQ_XSTRTOUL): Remove.
109899         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
109901         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
109902         mode.
109904 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
109906         Add and change modules to make it easier for coreutils to use
109907         gnulib-tool.
109908         * modules/backupfile (Files): Remove m4/d-ino.m4.
109909         (Depends-on): Add d-ino.
109910         * modules/cycle-check (Depends-on): Add stdint.
109911         (lib_SOURCES): Add cycle-check.h.
109912         * modules/d-ino: New module.
109913         * modules/d-type: New module.
109914         * modules/error (Files): Remove m4/strerror_r.m4.
109915         * modules/filemode (Files): Add m4/st_dm_mode.m4.
109916         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
109917         m4/inttypes_h.m4, m4/uintmax_t.m4.
109918         (Depends-on): Add stdint.
109919         (lib_SOURCES): Add fsusage.h.
109920         * modules/getcwd (Files): Remove d-ino.m4.
109921         (Depends-on): Add d-ino.
109922         * modules/getndelim2 (Depends-on): Add stdint.
109923         * modules/glob (Files): Remove m4/d-type.m4.
109924         (Depends-on): Add d-type.
109925         * modules/host-os: New module.
109926         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
109927         m4/inttypes_h.m4, m4/uintmax_t.m4.
109928         * Depends-on: Add stdint.
109929         (lib_SOURCES): Add human.h.
109930         * modules/inttostr (Files): Remove m4/intmax_t.m4,
109931         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
109932         m4/uintmax_t.m4, m4/ulonglong.m4.
109933         (Depends-on): Add stdint.
109934         (EXTRA_DIST): Add inttostr.h.
109935         * modules/lchmod: New module.
109936         * modules/link-follow: New module.
109937         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
109938         (Depends-on): Add lchmod.
109939         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
109940         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
109941         (Depends-on): Add stdint.
109942         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
109943         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
109944         (Depends-on): Add stdint.
109945         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
109946         * modules/perl: New module.
109947         * modules/regex (Depends-on): Add stdint.
109948         * modules/rmdir-errno: New module.
109949         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
109950         m4/intmax_t.m4.
109951         (Depends-on): Add stdint.
109952         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
109953         m4/uintmax_t.m4.
109954         (Depends-on): Add stdint.
109955         * modules/unlink-busy: New module.
109956         * modules/utimecmp (Depends-on): Add stdint.
109957         * modules/uptime: New module.
109958         * modules/winsz-ioctl: New module.
109959         * modules/winsz-termios: New module.
109960         * modules/xnanosleep (Depends-on): Add nanosleep.
109961         * modules/ullong_max: Remove.
109962         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
109963         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
109964         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
109965         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
109966         (Depends-on): Add inttypes.
109967         (lib_SOURCES): Add xstrtol.h.
109968         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
109969         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
109970         * MODULES.html.sh: Move 'assert' into the assert section.
109971         Move 'dummy' into the linking section.
109972         Remove ullong_max.
109973         Add section for compatibility checks for POSIX:2001 functions,
109974         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
109975         winsz-ioctl, and winsz-termios into it.
109976         Add lchmod.
109977         Add top-level Misc section and put host-os, perl, and uptime
109978         into it.
109980 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
109982         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
109983         now assume the stdint module.  Do not include inttypes.h.
109984         * lib/fsusage.h: Likewise.
109985         * lib/getndelim2.c: Likewise.
109986         * lib/human.h: Likewise.
109987         * lib/inttostr.h: Likewise.
109988         * lib/obstack.c: Likewise.
109989         * lib/regex_internal.h: Likewise.
109990         * lib/tempname.c: Likewise.
109991         * lib/utimecmp.c: Likewise.
109992         * lib/xstrtol.h: Likewise.
109994         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
109996         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
109997         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
109998         * lib/xtime.h: Likewise.
110000 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110002         * modules/openat (Files): Add lib/fchmodat.c.
110003         Fixes problem reported by Jay Youngman.
110005 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110007         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
110008         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
110010 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
110011             Bruno Haible  <bruno@clisp.org>
110013         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
110014         and is a script that invokes bison. Tighten the code. Add comments.
110016 2006-08-18  Jim Meyering  <jim@meyering.net>
110018         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
110019         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
110020         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
110021         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
110023 2006-08-18  Bruno Haible  <bruno@clisp.org>
110025         * modules/bison-i18n: New file.
110026         * MODULES.html.sh (Internationalization functions): Add it.
110028 2006-08-18  Bruno Haible  <bruno@clisp.org>
110030         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
110031         sys/statvfs.h. When getmntinfo was found, check its declaration and
110032         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
110034 2006-08-18  Bruno Haible  <bruno@clisp.org>
110036         * m4/bison-i18n.m4: New file, from bison.
110038 2006-08-18  Bruno Haible  <bruno@clisp.org>
110040         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
110041         (ME_DUMMY): Treat "kernfs" as a dummy.
110042         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
110044 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110046         Update from coreutils.
110048         2006-08-15  Jim Meyering  <jim@meyering.net>
110050         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
110052         2006-01-17  Jim Meyering  <jim@meyering.net>
110054         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
110056         2006-01-11  Jim Meyering  <jim@meyering.net>
110058         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
110059         Check for the lchmod function.
110061 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110063         Update from coreutils.
110065         * lib/__fpending.h: Add copyright notice.
110066         * lib/fprintftime.h: Likewise.
110067         * lib/savedir.c: Use (C) in copyright notice.
110068         * lib/savedir.h: Likewise.
110070         2006-08-15  Jim Meyering  <jim@meyering.net>
110072         * lib/at-func.c: New file, with the logic of all emulated at-functions.
110073         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
110074         in support of the EXPECTED_ERRNO macro.
110075         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
110076         definitions.  Instead, define the appropriate symbols and include
110077         "at-func.c".
110078         * lib/mkdirat.c (mkdirat): Likewise.
110079         * lib/fchmodat.c (fchmodat): Likewise.
110080         (ENOSYS): Remove definition.
110081         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
110082         it.  Don't include "unistd--.h" -- it wasn't ever used.
110084         2006-01-17  Jim Meyering  <jim@meyering.net>
110086         Rewrite fts.c not to change the current working directory,
110087         by using openat, fstatat, fdopendir, etc..
110089         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
110090         (HAVE_OPENAT_SUPPORT): Define.
110091         [_LIBC] (fchdir): Don't undef or define; no longer used.
110092         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
110093         Now, this `function' always succeeds, and consumes its file descriptor
110094         parameter -- so callers must not close such FDs.  Update callers.
110095         (diropen_fd, opendirat, cwd_advance_fd): New functions.
110096         (diropen): Add parameter, SP.  Adjust all callers.
110097         Implement using diropen_fd, rather than open.
110098         (fts_open): Initialize new member, fts_cwd_fd.
110099         Remove fts_rft-setting code.
110100         (fts_close): Close fts_cwd_fd, if necessary.
110101         (__opendir2): Define in terms of opendir or opendirat,
110102         depending on whether the FST_NOCHDIR flag is set.
110103         (fts_build): Since fts_safe_changedir consumes its FD, and since
110104         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
110105         and close the dup'd file descriptor upon failure.
110106         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
110107         (fts_safe_changedir): Tweak semantics to reflect that this function
110108         now calls cwd_advance_fd and hence consumes its FD argument.
110109         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
110110         [struct FTS] (fts_rft): Remove now-unused member.
110111         [struct FTS] (fts_cycle.state): Improve comment.
110113         * lib/openat.c (openat_needs_fchdir): New function.
110114         * lib/openat.h (openat_needs_fchdir): Declare it.
110116 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
110118         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
110119         Problem and fix reported by Pádraig Brady in
110120         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
110122 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110124         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
110126 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110128         * lib/memcoll.c (memcoll): Optimize for the common case where the
110129         arguments are bytewise equal.
110131 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110133         * doc/regexprops-generic.texi: Add a copyright notice.
110135 2006-08-15  Bruno Haible  <bruno@clisp.org>
110137         * modules/tmpdir (License): Change to LGPL.
110139 2006-08-15  Bruno Haible  <bruno@clisp.org>
110141         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
110142         module.
110144 2006-08-14  Simon Josefsson  <jas@extundo.com>
110146         * config/srclist.txt: Add gnupload.
110148 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110150         Change copyright notice from LGPL 2 to GPL 2, since that's the
110151         standard form used in the gnulib repository.
110152         * tests/test-lock.c: Likewise.
110153         * tests/test-stdint.c: Likewise.
110154         * tests/test-tls.c: Likewise.
110156         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
110157         prelude-manager.  User shorter URLs for GNU projects, without '?'.
110158         Add copyright notice.
110160         * check-module: Add copyright notice.  Output a copyright
110161         notice if "--version" is specified.
110162         * modules/COPYING: New file.
110163         * tests/test-getaddrinfo.c: Add copyright notice.
110164         * tests/test-verify.c: Likewise.
110166 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110168         Change copyright notice from LGPL 2 to GPL 2, since that's the
110169         standard form used in the gnulib repository.
110170         * lib/lock.c: LGPL -> GPL.
110171         * lib/lock.h: Likewise.
110172         * lib/strnlen1.c: Likewise.
110173         * lib/strnlen1.h: Likewise.
110174         * lib/tls.c: Likewise.
110175         * lib/tls.h: Likewise.
110176         * lib/tmpdir.c: Likewise.
110178         * lib/TODO: Remove; this belongs only in coreutils.
110180 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110182         Add copyright notices to long-enough files that lack them, since
110183         otherwise the files aren't clearly free.  Use the same notice that
110184         getdate.texi already uses.
110185         * doc/alloca-opt.texi: Add copyright notice.
110186         * doc/alloca.texi: Likewise.
110187         * doc/ctime.texi: Likewise.
110188         * doc/functions.texi: Likewise.
110189         * doc/gcd.texi: Likewise.
110190         * doc/gnulib-tool.texi: Likewise.
110191         * doc/inet_ntoa.texi: Likewise.
110192         * doc/visibility.texi: Likewise.
110194         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
110195         * doc/quote.texi: Add copyright notice.
110197         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
110198         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
110199         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
110200         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
110201         is now obsolete, and give a pointer to the Sun list.
110202         Add copyright notice.
110204 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110206         * config/srclistvars.sh: Add copyright notice.
110208 2006-08-14  Eric Blake  <ebb9@byu.net>
110210         Import the following change from libc:
110212         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
110214         Upstream bug 2997.
110215         * lib/misc/error.c: Add space between program name and message if file
110216         name is missing.
110218 2006-08-12  Karl Berry  <karl@gnu.org>
110220         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
110221         remove, these originate in gnulib now.
110223 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110225         * doc/Makefile (standards.info standards.html standards.dvi):
110226         Also depend on make-stds.texi.
110228 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
110230         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
110231         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
110233         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
110234         in wchar_t.  Problem reported by Eric Blake.
110236         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
110237         LEN is smaller than SIZE.  Suggested by Bruno Haible.
110238         Also, help the compiler to keep LEN in a register.
110240 2006-08-11  Eric Blake  <ebb9@byu.net>
110242         * users.txt: Sort.  Add tar.
110244 2006-08-11  Bruno Haible  <bruno@clisp.org>
110246         * users.txt: New file.
110248 2006-08-11  Bruno Haible  <bruno@clisp.org>
110250         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
110251         before <wchar.h>. Needed for OSF/1 and BSD/OS.
110253 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110255         * modules/snprintf (Depends-on): Remove minmax.
110256         (Maintainer): Add self and Bruno.
110258 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110260         * lib/.cppi-disable: Add snprintf.h, socket_.h.
110261         * lib/snprintf.c: Include <errno.h> and <limits.h>.
110262         (EOVERFLOW): Define if the system does not.
110263         Do not include "minmax.h"; it wasn't used.
110264         (snprintf): Don't assume size_t promotes to an unsigned type.
110265         Fix bug when generated string was too long for the buffer: the
110266         buffer's contents are supposed to be the initial prefix of the
110267         output.  Don't assume vasnprintf returns EOVERFLOW if the size
110268         exceeds INT_MAX; do the check ourselves.
110270         Import the following changes from libc:
110272         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
110274         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
110275         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
110276         set wc to the byte which couldn't be converted.
110277         (re_string_reconstruct): Don't clear valid_raw_len before calling
110278         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
110279         tip_context using re_string_context_at.
110281         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
110283         * lib/posix/regex.h: g++ still cannot handled [restrict].
110285         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
110287         * lib/posix/regex.h: Remove special handling for VMS.
110289 2006-08-10  Jim Meyering  <jim@meyering.net>
110291         * modules/same-inode: New module.
110292         * modules/dev-ino: New module.
110293         * modules/cycle-check: Depend on these modules, rather than simply
110294         including their .h files.
110295         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
110296         required via m4/cycle-check.m4.
110297         * modules/same: Depend on new same-inode module, rather than
110298         including same-inode.h.
110299         * modules/chdir-safer: New file.
110301         * modules/chown (Depends-on): Add stat-macros.
110303 2006-08-10  Jim Meyering  <jim@meyering.net>
110305         * m4/cycle-check.m4: New file.
110306         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
110307         * m4/dev-ino.m4, m4/same-inode.m4: New files.
110309 2006-08-10  Eric Blake  <ebb9@byu.net>
110311         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
110312         in from original proposal.
110314 2006-08-10  Eric Blake  <ebb9@byu.net>
110315         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110317         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
110318         namespace.
110320 2006-08-10  Bruno Haible  <bruno@clisp.org>
110322         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
110323         as well.
110325 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110327         Sync from coreutils.
110329         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
110331         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
110332         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
110334 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110336         * modules/restrict: Remove; no longer needed now that we assume
110337         Autoconf 2.59 or later.
110338         * MODULES.html.sh: Remove 'restrict'.
110339         * modules/argp (Depends-on): Remove 'restrict'.
110340         * modules/base64 (Depends-on): Likewise.
110341         * modules/gc (Depends-on): Likewise.
110342         * modules/getaddrinfo (Depends-on): Likewise.
110343         * modules/glob (Depends-on): Likewise.
110344         * modules/inet_ntop (Depends-on): Likewise.
110345         * modules/inet_pton (Depends-on): Likewise.
110346         * modules/memxor (Depends-on): Likewise.
110347         * modules/regex (Depends-on): Likewise.
110348         * modules/strtok_r (Depends-on): Likewise.
110349         * modules/time_r (Depends-on): Likewise.
110351 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110353         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
110354         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
110355         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
110356         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
110357         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
110358         * m4/memxor.m4 (gl_MEMXOR): Likewise.
110359         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
110360         gl_C_RESTRICT replaced by AC_C_RESTRICT.
110362         Merge from coreutils.
110363         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
110364         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
110365         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
110366         * m4/time_r.m4 (gl_TIME_R): Likewise.
110368 2006-08-09  Karl Berry  <karl@gnu.org>
110370         * config/srclist.txt: no more gettext-tools, per Bruno.
110372 2006-08-08  Eric Blake  <ebb9@byu.net>
110374         * modules/verror: New module.
110375         * MODULES.html.sh: Document it.
110377 2006-08-08  Eric Blake  <ebb9@byu.net>
110379         * lib/verror.h, lib/verror.c: New files.
110381 2006-08-08  Eric Blake  <ebb9@byu.net>
110383         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
110384         verror_at_line output complies with GNU Coding Standards even when
110385         file is NULL.
110387 2006-08-07  Bruno Haible  <bruno@clisp.org>
110389         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
110390         versions of AIX.
110391         Reported by Ralf Wildenhues.
110393 2006-08-07  Bruno Haible  <bruno@clisp.org>
110395         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
110396         in an AC_DEFUN. Needed so that the autoconf snippets can use
110397         AC_REQUIRE.
110399 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110401         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110402         Initialize pkgdata_DATA.
110403         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
110404         overriding it.
110406 2006-08-06  Eric Blake  <ebb9@byu.net>
110408         * lib/error.h: Fold in some upstream changes from glibc.
110409         * lib/error.c: Likewise.
110411 2006-08-04  Bruno Haible  <bruno@clisp.org>
110413         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110414         Make the mostlyclean-local rule depend on mostlyclean-generic.
110415         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
110417 2006-07-31  Bruno Haible  <bruno@clisp.org>
110419         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
110420         <stdlib.h>, <string.h>.
110422 2006-07-30  Bruno Haible  <bruno@clisp.org>
110424         * modules/readlink (License): Change to LGPL.
110426 2006-07-30  Bruno Haible  <bruno@clisp.org>
110428         * modules/javaversion (Makefile.am): Distribute javaversion.java and
110429         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
110430         set PKGDATADIR to point to it.
110432 2006-07-30  Bruno Haible  <bruno@clisp.org>
110434         * modules/csharpexec (configure.ac): Comment out macro invocation.
110435         * modules/javaexec (configure.ac): Likewise.
110436         * modules/javacomp-script (configure.ac): Likewise.
110438         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
110440 2006-07-30  Bruno Haible  <bruno@clisp.org>
110442         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
110443         linked-list.
110445 2006-07-30  Bruno Haible  <bruno@clisp.org>
110447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
110449 2006-07-30  Bruno Haible  <bruno@clisp.org>
110451         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110452         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
110453         get removed.
110455 2006-07-29  Bruno Haible  <bruno@clisp.org>
110457         Make it possible for gnulib-tool to work with locally modified or
110458         augmented gnulib repositories.
110459         * gnulib-tool (func_usage): Document --local-dir option.
110460         (local_gnulib_dir): New variable.
110461         Handle --local-dir option.
110462         (func_lookup_file): New function.
110463         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
110464         (func_get_description, func_get_filelist, func_get_description,
110465         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
110466         func_get_automake_snippet, func_get_include_directive,
110467         func_get_license, func_get_maintainer): Use func_lookup_file.
110468         (func_import, func_create_testdir): Use func_lookup_file.
110470 2006-07-29  Bruno Haible  <bruno@clisp.org>
110472         * modules/setenv (Depends-on): Add unistd.
110474 2006-07-29  Bruno Haible  <bruno@clisp.org>
110476         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
110478 2006-07-29  Bruno Haible  <bruno@clisp.org>
110480         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
110482 2006-07-29  Bruno Haible  <bruno@clisp.org>
110484         * gnulib-tool (import, update): If there is no Makefile.am, look at
110485         aclocal.m4, instead of bailing out.
110487 2006-07-29  Bruno Haible  <bruno@clisp.org>
110489         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
110490         Categorize the options by when they are useful.
110492 2006-07-29  Bruno Haible  <bruno@clisp.org>
110494         * gnulib-tool (func_usage): Document option --no-libtool.
110495         Handle option --no-libtool.
110496         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
110497         for changed semantics of $libtool variable.
110498         (func_import): Likewise. If libtool is not used, show this through
110499         an option --no-libtool.
110500         (func_create_testdir): Update.
110502 2006-07-29  Bruno Haible  <bruno@clisp.org>
110504         * gnulib-tool (func_import): Extend error message about missing
110505         --doc-base.
110507 2006-07-29  Bruno Haible  <bruno@clisp.org>
110509         * gnulib-tool (func_import): Don't create the $docbase directory if
110510         there is no file to store there.
110512 2006-07-29  Bruno Haible  <bruno@clisp.org>
110514         * gnulib-tool (autoconf_minversion): If a --dir option is given and
110515         relevant, look for configure.ac there, not in the current directory.
110516         Also use a simple search for AC_PREREQ, not "autoconf --trace".
110518 2006-07-29  Bruno Haible  <bruno@clisp.org>
110520         * gnulib-tool (SORT): New variable.
110521         (func_usage): Undocument --assume-autoconf option.
110522         Remove --assume-autoconf option handling.
110523         (autoconf_minversion): Determine from the contents of configure.ac.
110524         (func_import): Remove autoconf_minversion handling.
110525         Suggested by Eric Blake.
110527 2006-07-29  Bruno Haible  <bruno@clisp.org>
110529         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
110531 2006-07-29  Bruno Haible  <bruno@clisp.org>
110533         * config/srclist.txt (*setenv.[ch]): Remove rules.
110535 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110537         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
110539 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110541         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
110542         arpa/inet.h.
110544 2006-07-28  Simon Josefsson  <jas@extundo.com>
110546         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
110547         * modules/inet_pton (Depends-on): Likewise.
110549 2006-07-28  Simon Josefsson  <jas@extundo.com>
110551         * m4/netinet_in_h.m4: New file.
110553 2006-07-28  Simon Josefsson  <jas@extundo.com>
110555         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
110556         #include's.
110558 2006-07-28  Simon Josefsson  <jas@extundo.com>
110560         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
110561         #include's.
110563 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
110565         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
110566         setgid on directories only if they set these bits.
110567         * lib/modechange.h: Remove obsolete comment about masks.
110569 2006-07-28  Eric Blake  <ebb9@byu.net>
110571         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
110572         macro expansion.
110574 2006-07-28  Bruno Haible  <bruno@clisp.org>
110576         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
110578 2006-07-28  Bruno Haible  <bruno@clisp.org>
110580         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
110582 2006-07-28  Bruno Haible  <bruno@clisp.org>
110584         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
110585         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
110586         Define fallbacks.
110587         Avoids link error on FreeBSD 4.x.
110588         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
110590         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
110591         encoding.
110592         * lib/mbswidth.c (iswcntrl): Likewise.
110594 2006-07-27  Bruno Haible  <bruno@clisp.org>
110596         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
110597         test.
110599 2006-07-27  Bruno Haible  <bruno@clisp.org>
110601         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
110602         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
110603         defined.
110605 2006-07-26  Eric Blake  <ebb9@byu.net>
110607         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
110609 2006-07-26  Eric Blake  <ebb9@byu.net>
110611         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
110612         like mingw that lack mkstemp.
110613         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
110614         avoid compilation warning on mingw.
110616 2006-07-26  Bruno Haible  <bruno@clisp.org>
110618         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
110619         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
110620         INT_FAST*_MIN, INTPTR_MIN.
110622 2006-07-25  Bruno Haible  <bruno@clisp.org>
110624         * modules/version-etc (Depends-on): Add stdarg.
110626 2006-07-25  Bruno Haible  <bruno@clisp.org>
110628         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
110629         complex commands.
110631 2006-07-25  Bruno Haible  <bruno@clisp.org>
110633         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
110634         defined in <stdarg.h> or config.h.
110636 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
110638         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
110639         (gl_STDIO_SAFER): Remove.
110641 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
110643         * MODULES.html.sh (File stream based Input/Output):
110644         Add fopen-safer, tmpfile-safer; remove stdio-safer.
110645         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
110646         * modules/fopen-safer, modules/tmpfile-safer: New files.
110647         * modules/stdio-safer: Remove.
110649 2006-07-24  Bruno Haible  <bruno@clisp.org>
110651         * modules/tmpdir: New file.
110652         * MODULES.html.sh (File system functions): Add it.
110654 2006-07-24  Bruno Haible  <bruno@clisp.org>
110656         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
110657         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
110659 2006-07-24  Bruno Haible  <bruno@clisp.org>
110661         * modules/clean-temp: New file.
110663 2006-07-24  Bruno Haible  <bruno@clisp.org>
110665         * m4/tmpdir.m4: New file, from GNU gettext.
110667 2006-07-24  Bruno Haible  <bruno@clisp.org>
110669         * lib/tmpdir.h: New file, from GNU gettext.
110670         * lib/tmpdir.c: New file, from GNU gettext.
110672 2006-07-24  Bruno Haible  <bruno@clisp.org>
110674         * lib/clean-temp.h: New file, from GNU gettext.
110675         * lib/clean-temp.c: New file, from GNU gettext.
110677 2006-07-23  Eric Blake  <ebb9@byu.net>
110679         * modules/stdio-safer (Files): Add tmpfile-safer.c.
110680         (Depends-on): Add binary-io.
110682 2006-07-23  Eric Blake  <ebb9@byu.net>
110684         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
110686 2006-07-23  Eric Blake  <ebb9@byu.net>
110688         * lib/tmpfile-safer.c: New file.
110689         * lib/stdio-safer.h (fopen_safer): Add prototype.
110690         * lib/stdio--.h (tmpfile): Make safer.
110692 2006-07-23  Bruno Haible  <bruno@clisp.org>
110694         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
110695         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
110696         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
110697         gl_linked_remove_at): Use it.
110699 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110700         and Simon Josefsson <jas@extundo.com>
110702         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
110704         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
110706 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
110708         * modules/close-stream: New file.
110709         * modules/closeout (Description): Make it clear that it exits
110710         with a diagnostic on error.
110711         (Depends-on): Add close-stream.  Remove fpending, stdbool.
110712         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
110714 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
110716         * m4/close-stream.m4: New file.
110718 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
110720         * lib/close-stream.c, lib/close-stream.h: New files.
110722 2006-07-22  Bruno Haible  <bruno@clisp.org>
110724         Merge from GNU gettext 0.15.
110726         2006-05-01  Bruno Haible  <bruno@clisp.org>
110728                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
110730         2006-07-22  Bruno Haible  <bruno@clisp.org>
110732                 * modules/javaversion: New file.
110733                 * MODULES.html.sh (Java): Add javaversion.
110735         2006-03-12  Bruno Haible  <bruno@clisp.org>
110737                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
110739         2005-12-04  Bruno Haible  <bruno@clisp.org>
110741                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
110742                 (untested).
110744         2006-06-21  Bruno Haible  <bruno@clisp.org>
110746                 Avoid warnings from recent versions of mcs.
110747                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
110748                 -o, -L, -r any more. Use options documented since mcs-1.0
110749                 instead. Similarly for -g.
110751         2005-12-04  Bruno Haible  <bruno@clisp.org>
110753                 * build-aux/csharpcomp.sh.in: Suffix for resources is
110754                 .resources, not .resource.
110756         2005-07-09  Bruno Haible  <bruno@clisp.org>
110758                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
110759                 add a .dll suffix.
110760                 Reported by Mark Junker <mjscod@gmx.de>.
110762         2006-07-22  Bruno Haible  <bruno@clisp.org>
110764                 * modules/gettext: Upgrade to gettext-0.15.
110765                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
110766                 m4/visibility.m4.
110767                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
110769 2006-07-22  Bruno Haible  <bruno@clisp.org>
110771         Merge from GNU gettext 0.15.
110773         2006-03-25  Bruno Haible  <bruno@clisp.org>
110775                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
110777         2006-07-21  Bruno Haible  <bruno@clisp.org>
110779                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
110780                 "1.1".
110782         2006-05-09  Bruno Haible  <bruno@clisp.org>
110784                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
110785                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
110786                 for the conftestver execution.
110788         2006-05-01  Bruno Haible  <bruno@clisp.org>
110790                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
110791                 optional target-version argument. Verify that the compiler
110792                 groks source of the specified source-version, or add -source
110793                 option as necessary. Verify that the compiler produces
110794                 bytecode in the specified target-version, or add -target and
110795                 -source options as necessary. Make the result of the test
110796                 available as variable CONF_JAVAC. Also log error output in
110797                 config.log.
110799         2006-03-11  Bruno Haible  <bruno@clisp.org>
110801                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
110803         2006-05-09  Bruno Haible  <bruno@clisp.org>
110805                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
110806                 CLASSPATH_SEPARATOR to a semicolon.
110808         2006-03-12  Bruno Haible  <bruno@clisp.org>
110810                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
110811                 available as variable CONF_JAVA, for subsequent autoconf
110812                 tests. Also log error output in config.log.
110814         2006-07-19  Bruno Haible  <bruno@clisp.org>
110816                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
110817                 that getline works on glibc2 systems. Needed to avoid trouble
110818                 in relocatable.c.
110819                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
110821         2005-12-04  Bruno Haible  <bruno@clisp.org>
110823                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
110824                 launcher (untested).
110826         2005-12-04  Bruno Haible  <bruno@clisp.org>
110828                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
110830         2006-07-22  Bruno Haible  <bruno@clisp.org>
110832                 * gettext.m4: Update from GNU gettext-0.15.
110833                 * nls.m4: Likewise.
110834                 * po.m4: Likewise.
110835                 * inttypes-pri.m4: Likewise.
110836                 * inttypes-h.m4: Renamed from inttypes.m4.
110837                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
110839 2006-07-22  Bruno Haible  <bruno@clisp.org>
110841         Merge from GNU gettext 0.15.
110843         2005-07-05  Bruno Haible  <bruno@clisp.org>
110845                 * printf-args.c (printf_fetchargs): Work around broken
110846                 definition of wint_t on mingw.
110848         2005-02-12  Bruno Haible  <bruno@clisp.org>
110850                 * xallocsa.h: Add extern "C" for C++.
110852         2006-05-17  Bruno Haible  <bruno@clisp.org>
110854                 Cygwin portability.
110855                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
110857         2006-04-30  Bruno Haible  <bruno@clisp.org>
110859                 * progreloc.c: Include <mach-o/dyld.h> if available.
110860                 (find_executable): Use _NSGetExecutablePath when possible.
110862         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110864                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
110865                 function.
110867         2005-12-29  Bruno Haible  <bruno@clisp.org>
110869                 * progreloc.c (set_program_name_and_installdir): Fix
110870                 compilation error.
110872         2005-12-04  Bruno Haible  <bruno@clisp.org>
110874                 Cygwin portability.
110875                 * progreloc.c: Include <windows.h> also on Cygwin.
110876                 (find_executable): Add support for Cygwin.
110877                 (set_program_name_and_installdir): Handle also platforms with
110878                 nonempty EXEEXT.
110880         2006-07-11  Bruno Haible  <bruno@clisp.org>
110882                 * javacomp.c: Fix a comment.
110883                 Reported by Jim Meyering.
110885         2006-04-30  Bruno Haible  <bruno@clisp.org>
110887                 * javacomp.h (compile_java_class): Add source_version,
110888                 target_version arguments.
110889                 * javacomp.c: Rewritten to choose only a compiler that
110890                 respects the specified source_version and target_version.
110892         2006-06-27  Bruno Haible  <bruno@clisp.org>
110894                 Assume correct S_ISDIR macro.
110895                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
110897         2006-07-22  Bruno Haible  <bruno@clisp.org>
110899                 * javaversion.h: New file, from GNU gettext.
110900                 * javaversion.c: New file, from GNU gettext.
110901                 * javaversion.java: New file, from GNU gettext.
110902                 * javaversion.class: New file, from GNU gettext.
110904         2006-05-17  Bruno Haible  <bruno@clisp.org>
110906                 Cygwin portability.
110907                 * javaexec.c (execute_java_class): Test for jview program
110908                 also on Cygwin.
110910         2006-04-09  Bruno Haible  <bruno@clisp.org>
110912                 * fatal-signal.c: Don't include string.h.
110913                 (at_fatal_signal): Use a copying loop instead of memcpy.
110915         2005-12-04  Bruno Haible  <bruno@clisp.org>
110917                 * csharpexec.c: Add support for 'clix' launcher (untested).
110918                 (execute_csharp_using_sscli): New function.
110919                 (execute_csharp_program): Call it.
110921         2006-06-21  Bruno Haible  <bruno@clisp.org>
110923                 Avoid warnings from recent versions of mcs.
110924                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
110925                 -o, -L, -r any more. Use options documented since mcs-1.0
110926                 instead. Similarly for -g.
110928         2005-07-09  Bruno Haible  <bruno@clisp.org>
110930                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
110931                 add a .dll suffix.
110932                 Reported by Mark Junker <mjscod@gmx.de>.
110934         2006-06-17  Bruno Haible  <bruno@clisp.org>
110936                 * config.charset: Update for NetBSD 3.0.
110938         2006-05-17  Bruno Haible  <bruno@clisp.org>
110940                 Cygwin portability.
110941                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
110943         2006-05-16  Bruno Haible  <bruno@clisp.org>
110945                 * localcharset.c [CYGWIN]: Include <windows.h>.
110946                 (get_charset_aliases): For Cygwin, return the same CPxxx
110947                 aliases list as under WIN32.
110948                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
110949                 the environment variables. Fall back to GetACP().
110951         2006-04-05  Bruno Haible  <bruno@clisp.org>
110953                 * config.charset: Update Juan Manuel Guerrero's address.
110955         2005-02-12  Bruno Haible  <bruno@clisp.org>
110957                 * allocsa.h: Add extern "C" for C++.
110959         2005-02-10  Bruno Haible  <bruno@clisp.org>
110961                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
110962                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
110964         2006-07-22  Bruno Haible  <bruno@clisp.org>
110966                 * gettext.h: Update to GNU gettext-0.15.
110968 2006-07-22  Bruno Haible  <bruno@clisp.org>
110970         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
110971         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
110972         lib-prefix.m4, longdouble.m4, ssize_t.m4.
110974 2006-07-21  Eric Blake  <ebb9@byu.net>
110976         * modules/stdlib-safer: New file.
110977         * MODULES.html.sh (File stream based Input/Output): Add
110978         stdlib-safer.
110980 2006-07-21  Eric Blake  <ebb9@byu.net>
110982         * lib/stdlib-safer.h: New file from coreutils, required by
110983         stdlib--.h.
110985 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
110987         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
110989 2006-07-20  Bruno Haible  <bruno@clisp.org>
110991         * gnulib-tool: Recognize new option --assume-autoconf.
110992         (autoconf_minversion): New variable.
110993         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
110995 2006-07-20  Bruno Haible  <bruno@clisp.org>
110997         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
110999 2006-07-19  Derek R. Price  <derek@ximbiot.com>
111001         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
111002         Reindent and repaginate.
111004 2006-07-19  Derek Price  <derek@ximbiot.com>
111006         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
111007         Correct grammar.
111009 2006-07-17  Bruno Haible  <bruno@clisp.org>
111011         * modules/list: New file.
111012         * modules/array-list: New file.
111013         * modules/carray-list, modules/carray-list-tests: New files.
111014         * modules/linked-list, modules/linked-list-tests: New files.
111015         * modules/avltree-list, modules/avltree-list-tests: New files.
111016         * modules/rbtree-list, modules/rbtree-list-tests: New files.
111017         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
111018         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
111019         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
111020         * modules/oset: New file.
111021         * modules/array-oset: New file.
111022         * modules/avltree-oset, modules/avltree-oset-tests: New files.
111023         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
111024         * tests/test-carray_list.c: New file.
111025         * tests/test-linked_list.c: New file.
111026         * tests/test-avltree_list.c: New file.
111027         * tests/test-rbtree_list.c: New file.
111028         * tests/test-linkedhash_list.c: New file.
111029         * tests/test-avltreehash_list.c: New file.
111030         * tests/test-rbtreehash_list.c: New file.
111031         * tests/test-avltree_oset.c: New file.
111032         * tests/test-rbtree_oset.c: New file.
111033         * MODULES.html.sh (Container data structures): New section.
111035 2006-07-17  Bruno Haible  <bruno@clisp.org>
111037         * m4/gl_list.m4: New file.
111039 2006-07-17  Bruno Haible  <bruno@clisp.org>
111041         * lib/gl_list.h: New file.
111042         * lib/gl_list.c: New file.
111043         * lib/gl_array_list.h: New file.
111044         * lib/gl_array_list.c: New file.
111045         * lib/gl_carray_list.h: New file.
111046         * lib/gl_carray_list.c: New file.
111047         * lib/gl_linked_list.h: New file.
111048         * lib/gl_linked_list.c: New file.
111049         * lib/gl_anylinked_list1.h: New file.
111050         * lib/gl_anylinked_list2.h: New file.
111051         * lib/gl_avltree_list.h: New file.
111052         * lib/gl_avltree_list.c: New file.
111053         * lib/gl_anyavltree_list1.h: New file.
111054         * lib/gl_anyavltree_list2.h: New file.
111055         * lib/gl_rbtree_list.h: New file.
111056         * lib/gl_rbtree_list.c: New file.
111057         * lib/gl_anyrbtree_list1.h: New file.
111058         * lib/gl_anyrbtree_list2.h: New file.
111059         * lib/gl_anytree_list1.h: New file.
111060         * lib/gl_anytree_list2.h: New file.
111061         * lib/gl_linkedhash_list.h: New file.
111062         * lib/gl_linkedhash_list.c: New file.
111063         * lib/gl_anyhash_list1.h: New file.
111064         * lib/gl_anyhash_list2.h: New file.
111065         * lib/gl_avltreehash_list.h: New file.
111066         * lib/gl_avltreehash_list.c: New file.
111067         * lib/gl_rbtreehash_list.h: New file.
111068         * lib/gl_rbtreehash_list.c: New file.
111069         * lib/gl_anytreehash_list1.h: New file.
111070         * lib/gl_anytreehash_list2.h: New file.
111072         * lib/gl_oset.h: New file.
111073         * lib/gl_oset.c: New file.
111074         * lib/gl_array_oset.h: New file.
111075         * lib/gl_array_oset.c: New file.
111076         * lib/gl_avltree_oset.h: New file.
111077         * lib/gl_avltree_oset.c: New file.
111078         * lib/gl_rbtree_oset.h: New file.
111079         * lib/gl_rbtree_oset.c: New file.
111080         * lib/gl_anytree_oset.h: New file.
111082 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111084         * m4/mkancesdirs.m4: New file.
111085         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
111086         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
111087         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
111088         it.
111090 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111092         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
111093         * lib/mkancesdirs.h: New files.
111094         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
111095         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
111096         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
111097         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
111098         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
111099         callers changed.  Revamp internals significantly, by not
111100         attempting to create directories that are temporarily more
111101         permissive than the final results.  Do not attempt to use
111102         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
111103         This removes some race conditions, fixes some bugs, and simplifies
111104         things.  Use new dirchownmod function to do owner and mode changes.
111105         * lib/mkdir-p.h: Likewise.
111106         * lib/modechange.c (octal_to_mode): New function.
111107         (struct mode_change): New member mentioned.
111108         (make_node_op_equals): New arg mentioned.  All callers changed.
111109         (mode_compile): Keep track of which mode bits the user has explicitly
111110         mentioned.
111111         (mode_adjust): New arg DIR, so that we implement the X op correctly.
111112         New arg PMODE_BITS, to keep track of which mode bits the user
111113         mentioned; it treats S_ISUID and S_ISGID speciall.
111114         All callers changed.
111115         * lib/modechange.h: Likewise.
111117 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111119         * MODULES.html.sh: Add mkancestors.
111120         * modules/mkancesdirs: New module.
111121         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
111122         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
111123         The chdir-safer and afs files are now orphans; I'll remove them
111124         unless someone speaks up.
111125         Add lib/dirchownmod.c, lib/dirchownmod.h.
111126         (Depends-on): Remove alloca, chown, save-cwd, dirname.
111127         Add lchown, mkancesdirs.
111128         (Maintainer): Add self.
111130 2006-07-15  Karl Berry  <karl@gnu.org>
111132         * gnulib-tool: help message wording/arrangement.
111134 2006-07-14  Simon Josefsson  <jas@extundo.com>
111136         * doc/gnulib.texi (Libtool and Windows): New section.
111138 2006-07-12  Simon Josefsson  <jas@extundo.com>
111140         * modules/gendocs (License): Fix license, approved by Karl.
111142 2006-07-12  Eric Blake  <ebb9@byu.net>
111144         * MODULES.html.sh: Add gendocs.
111146 2006-07-11  Eric Blake  <ebb9@byu.net>
111148         * modules/fdl: New module, to install doc/fdl.texi.
111149         * MODULES.html.sh: Add new section for documentation modules.
111150         * gnulib-tool: Avoid space-tab.
111151         (--doc-base): New option, to manage files from doc.
111153 2006-07-11  Eric Blake  <ebb9@byu.net>
111155         * m4/absolute-header.m4: Fix comments to match recent change.
111157 2006-07-11  Eric Blake  <ebb9@byu.net>
111159         * gnulib-tool: List --doc-base before --tests-base.
111161 2006-07-11  Derek R. Price  <derek@ximbiot.com>
111163         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
111165 2006-07-11  Bruno Haible  <bruno@clisp.org>
111167         * README: Mention where to put documentation.
111169 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111171         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
111173 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111175         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
111176         to stdint.m4.
111178 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111180         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
111181         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
111182         "no/such/file/stdint.h" when there is no such file, so that
111183         the resulting C code can be parsed by dodgy compilers.
111184         Problems reported by Bob Proulx.
111186 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111188         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
111189         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111190         macros into the GNU _D_EXACT_NAMLEN.
111191         * lib/savedir.c:  Likewise.
111192         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
111194 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111195         and Paul Eggert  <eggert@cs.ucla.edu>
111197         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
111198         * m4/savedir.m4:
111199         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111200         macros into the GNU _D_EXACT_NAMLEN.
111202 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111204         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
111205         around the absolute name, to work around a problem with the HP-UX
111206         11.23 native C compiler, reported by Bob Proulx.
111208 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111210         * doc/maintain.texi, make-stds.texi: Sync from
111211         <http://savannah.gnu.org/projects/gnustandards>.
111213 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111215         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
111217 2006-07-09  Jim Meyering  <jim@meyering.net>
111219         * m4/glob.m4: Remove a doubled word in a comment.
111221 2006-07-09  Jim Meyering  <jim@meyering.net>
111223         * lib/argp-pv.c: Remove a doubled word in a comment.
111224         * lib/check-version.c (check_version): Likewise.
111225         * lib/javacomp.c (compile_java_class): Likewise.
111227 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
111229         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
111230         for the benefit of people using Autoconf 2.60.  If you want to
111231         support older Autoconf versions you can copy m4/onceonly_2_57.m4
111232         (or m4/onceonly.m4, if pre-2.57) manually.
111234 2006-07-08  Jim Meyering  <jim@meyering.net>
111236         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
111237         comment.
111238         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
111239         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
111240         comment.
111242 2006-07-08  Jim Meyering  <jim@meyering.net>
111244         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
111246 2006-07-07  Simon Josefsson  <jas@extundo.com>
111248         * tests/test-crc.c: Change expected crc value, the test vector
111249         were probably computed using the old broken crc.c?
111251 2006-07-06  Simon Josefsson  <jas@extundo.com>
111253         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
111254         now the canonical place for the M4 file).
111256         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
111257         from the sys_socket dependency now.
111259         * modules/inet_pton (Files): Ditto.
111261         * modules/inet_ntop (Files): Ditto.
111263 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
111265         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
111266         not gl_PREREQ_GETUSERSHELL.
111268 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111270         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
111271         with only one argument, for Autoconf 2.60.
111272         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
111273         expand to nothing, so add a shell command to avoid syntax error.
111274         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
111276 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111278         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
111280 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111282         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
111283         no longer needed.  Check for isblank decl.
111284         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
111285         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
111286         of existence.
111288 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111290         * lib/getloadavg.c: Use __VMS, not VMS.
111291         * lib/getopt.c: Likewise.
111292         * lib/getpagesize.h: Likewise.
111293         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
111294         and probably does not work.
111296 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111298         * lib/.cppi-disable: Add wcwidth.
111299         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
111300         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
111301         (ISGRAPH): Remove.  All uses changed to isgraph.
111302         (FOLD) [!defined _LIBC]: Remove special case.
111303         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
111304         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
111305         HAVE_ISBLANK.
111306         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
111307         case.
111309 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
111311         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
111312         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
111313         brackets.  Other minor changes to suppress some compiler
111314         warnings.
111316 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111317         and Paul Eggert  <eggert@cs.ucla.edu>
111319         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
111320         of invoking obsolescent AC_HEADER_DIRENT macro.
111321         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
111322         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
111323         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
111324         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
111325         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
111326         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
111327         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
111328         * m4/readdir.m4: Remove; no longer needed.
111330 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111331         and Paul Eggert  <eggert@cs.ucla.edu>
111333         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
111334         Don't worry about this obsolete case any more.
111335         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
111336         directories.
111337         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
111338         worry about this obsolete case any more.
111339         * lib/fts.c: Likewise.
111340         * lib/getcwd.c: Likewise.
111341         * lib/glob.h: Likewise.
111342         * lib/savedir.c: Likewise.
111344 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111346         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
111347         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
111348         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
111349         needed.
111350         All uses removed.
111351         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111352         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111353         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
111354         needed.
111355         * m4/getdate.m4 (gl_GETDATE): Likewise.
111356         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111357         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111358         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111359         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111360         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111361         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111362         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
111363         needed.
111365 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111367         * lib/memcasecmp.c: Include <limits.h>.
111368         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
111369         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
111370         Don't assume isdigit succeeds only on '0' through '9'.
111372 2006-07-05  Eric Blake  <ebb9@byu.net>
111374         * modules/getaddrinfo (Depends-on): Add snprintf.
111376 2006-07-05  Eric Blake  <ebb9@byu.net>
111378         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
111379         to avoid 'header present but could not be compiled' on cygwin.
111381 2006-07-05  Eric Blake  <ebb9@byu.net>
111383         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
111384         missing from netdb.h.
111385         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
111387 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111389         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
111390         no longer needed.
111391         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
111392         * m4/getdate.m4 (gl_GETDATE): Likewise.
111393         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111394         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111395         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111396         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111397         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111399 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111401         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
111402         All uses of is_space replaced by isspace.
111403         * lib/exit.h: Don't talk about STDC_HEADERS.
111404         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
111405         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
111406         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
111407         replaced by isprint etc.
111408         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
111409         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111410         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
111411         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
111412         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
111413         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111415 2006-07-05  Bruno Haible  <bruno@clisp.org>
111417         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
111418         the function exists, before testing against AIX.
111419         Reported by Martin Lambers <marlam@marlam.de>.
111421 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111423         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
111424         From Mark D. Baushke.
111426 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111428         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
111429         to the absolute name, not just one, to bypass Sun C 5.8's
111430         "warning: #include of /usr/include/... may be non-portable".
111432 2006-07-04  Eric Blake  <ebb9@byu.net>
111434         * modules/dirname-tests: New test module.
111435         * tests/test-dirname.c: New file, replacing dirname.c
111436         TEST_DIRNAME section that was recently deleted.
111438 2006-07-04  Bruno Haible  <bruno@clisp.org>
111440         Assume ANSI C header files and <ctype.h> functions.
111441         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
111442         (mbsnwidth): Use isprint, iscntrl instead.
111444 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111446         Merge from coreutils.
111447         * MODULES.html.sh: Add xstrtold.
111448         * modules/xstrtold: New file.
111449         * modules/cycle-check (Files): Add lib/same-inode.h.
111450         * modules/dirname (Files): Add m4/double-slash-root.m4.
111451         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
111452         * modules/mkdir-p (Files): Add lib/same-inode.h.
111453         * modules/same (Files): Add lib/same-inode.h.
111455 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111457         * m4/absolute-header.m4: Renamed from full-header-path.m4.
111458         This is to keep the terminology clean; POSIX talks about
111459         "absolute pathnames", not "full pathnames", but the GNU
111460         Coding Standards say to use "path" for something else;
111461         so use "absolute" to keep both sides happy.
111462         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
111463         Set gl_absolute_header, not gl_full_header_path.
111464         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
111465         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
111466         All uses changed.
111468         Merge from coreutils.
111470         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
111472         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
111473         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
111474         want to require the building of c-strtod.o.
111475         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
111476         needs -lm directly.
111477         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
111479         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
111481         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
111482         --as-needed option if available.  Problem reported by Albert Chin in
111483         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
111484         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
111485         cc merely issues a bunch of annoying warnings for --as-needed
111486         (this problem was reported by Bob Proulx).  Also, try linking with
111487         -lm to detect a bug in binutils 2.16 (this problem was reported
111488         by Ralf Wildenhues).
111490         2006-06-18  Jim Meyering  <jim@meyering.net>
111492         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
111493         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
111494         macro.
111495         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
111496         also check for glibc-2.4's abort-inducing bug.
111498         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
111499         Low-probability clean-up should be to use rmdir to get rid of
111500         the just-created directory, not unlink.
111502         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
111503         configure fail, and request a bug report to inform us about it.
111504         Add a comment that, barring reports to the contrary, in 2007 we'll
111505         assume ftruncate is universally available.
111507         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
111509         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
111511         2006-03-12  Jim Meyering  <jim@meyering.net>
111513         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
111514         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
111515         * m4/same.m4 (gl_SAME): Likewise.
111516         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
111518         2006-03-11  Eric Blake  <ebb9@byu.net>
111520         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
111521         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
111522         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
111523         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
111525 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111527         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
111528         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
111529         reported by Mark D. Baushke, one in
111530         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
111532         Merge from coreutils.
111534         * lib/.cppi-disable: Add stdint_.h.
111535         * lib/.cvsignore: Add stdint.h.
111537         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
111539         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
111540         both double and long double versions.
111541         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
111542         * lib/xstrtold.c: New file.
111543         * lib/xstrtod.h (xstrtold): New decl.
111545         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
111547         * lib/filemode.c (setst): Remove.
111548         (strmode): Rewrite to avoid setst.  This makes the code shorter,
111549         (arguably) clearer, and the generated code is a bit smaller on my
111550         Debian GNU/Linux stable x86 host.
111552         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
111554         * lib/filemode.c: Include "filemode.h" first, to test the interface.
111555         Assume that filemode.h includes sys/types.h and sys/stat.h.
111556         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
111557         (ftypelet): Reorder to put common cases first, for efficiency.
111558         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
111559         to do 'M'.
111560         (strmode): Renamed from mode_string, and now stores 12 bytes instead
111561         of 10, for compatibility with FreeBSD.  All callers changed.
111562         (filemodestring): Now stores 12 bytes instead of 10, and sets file
111563         types that can't be deduced solely from st_mode.  First arg is now a
111564         const pointer.
111565         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
111566         (strmode): Renamed from mode_string.
111567         (filemodestring): New decl.
111568         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
111569         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
111570         needed.
111571         (S_ISPORT, S_ISWHT): New macros, if not already defined.
111573         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
111575         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
111576         fsusage.h now does that.  Include fsusage.h first, to test interface.
111577         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
111578         at most one method (the old code could have generated decls that
111579         didn't conform to C89, not that this was ever exercised).
111580         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
111582         2006-03-19  Jim Meyering  <jim@meyering.net>
111584         Work even in a chroot where d_ino values for entries in "/"
111585         don't match the stat.st_ino values for the same names.
111586         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
111587         number, iterate through all entries again, using lstat instead.
111588         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
111589         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
111591         * lib/getcwd.c (__getcwd): Clarify a comment.
111592         Use memcpy in place of a call to strcpy.
111594         2006-03-12  Jim Meyering  <jim@meyering.net>
111596         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
111597         matches that of the current directory (which we're about to chdir ".."
111598         out of), then save the dev-ino of the parent, instead.
111600         * lib/same-inode.h (SAME_INODE): New file/macro.
111601         * lib/chdir-safer.c (SAME_INODE): Remove definition.
111602         Include "same-inode.h", instead.
111603         * lib/same.c: Likewise.
111604         * lib/cycle-check.h: Include "same-inode.h".
111605         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
111606         * lib/cycle-check.c (SAME_INODE): Remove definition.
111607         * lib/root-dev-ino.h: Include "same-inode.h".
111609         2006-03-11  Eric Blake  <ebb9@byu.net>
111611         * lib/same.c (same_name): s/base_name/last_component/
111612         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
111613         * lib/filenamecat.c (file_name_concat): Likewise.
111615         2006-03-11  Eric Blake  <ebb9@byu.net>,
111616                     Paul Eggert  <eggert@cs.ucla.edu>
111618         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
111619         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
111620         drive prefix.
111621         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
111622         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
111623         (last_component): New method.
111624         * lib/dirname.c (dir_len): Determine when drive letters need a
111625         subsequent slash.  Preserve // when it is special.
111626         (dir_name): Don't append dot when drive letter is absolute.
111627         [TEST_DIRNAME]: Move into a full-blown gnulib test.
111628         * lib/basename.c (base_name): New semantics - malloc the result.
111629         Preserve // when it is special.  Preserve relative files that look
111630         like drive letters.
111631         (base_len): Preserve // when it is special.
111632         (last_component): New method, similar to old base_name semantics.
111633         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
111634         base_name.  Strip redundant slashes from ///.
111636 2006-07-03  Jim Meyering  <jim@meyering.net>
111638         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
111639         macro is used before the first cycle_check call.
111641 2006-07-03  Eric Blake  <ebb9@byu.net>
111643         * modules/dirname (Depends-on): Add xstrndup.
111645 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
111647         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
111648         test cases, so that config.log is a bit easier to follow.
111650 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
111652         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
111653         both are 64 bits, since this seems to be the tradition, and this
111654         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
111655         we ever run into a host that prefers long long to long in this
111656         case, we'll need another configure-time test.  Problem reported by
111657         Jim Meyering.
111659 2006-07-02  Eric Blake  <ebb9@byu.net>
111661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
111663 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
111665         * modules/inttypes (Depends-on): No longer depends on stdint.
111666         * modules/stdint (Description): Say more about assumptions.
111667         Say that the fast types might differ.  Say macros are used.
111668         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
111669         (Makefile.am): Revise list of substituted symbols to match
111670         new stdint.m4.
111671         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
111672         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
111673         * tests/test-stdint.c (verify_same_types)
111674         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
111675         the code conforms to C99/C89.
111676         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
111677         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
111679 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
111681         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
111682         but fix a bug, by requiring at least 64 bits.
111683         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
111684         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
111685         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
111686         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
111688         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
111689         changes.  Make 2.59 a prerequisite.  Check and substitute for
111690         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
111691         inttypes.h.  Do not use special include files; just use the
111692         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
111693         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
111694         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
111695         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
111696         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
111697         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
111698         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
111699         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
111700         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
111701         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
111702         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
111703         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
111704         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
111705         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
111706         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
111707         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
111708         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
111709         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
111710         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
111711         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
111712         WINT_MAX.  Check for C99 conformance more strictly, by detecting
111713         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
111714         not check for things that C99 does not require, e.g., int8_t.  If
111715         a test isn't needed unless <stdint.h> isn't working, and is
111716         unlikely to be needed for any other reason, then don't do it
111717         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
111718         size_t, since we assume C89 freestanding at least.  Do not check
111719         for sig_atomic_t, wchar_t, or wint_t, since the code now does
111720         the right thing even if the types are not defined.  Instead use:
111721         (gl_STDINT_TYPE_PROPERTIES): New macro.
111722         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
111723         testing whether <sys/types.h> clashes, as Autoconf does this for
111724         us now.  All uses removed.
111725         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
111726         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
111727         (gl_CHECK_TYPE_SAME):
111728         Remove; no longer needed.
111729         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
111730         exists, since we'll return 0 anyway in that case.
111731         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
111733 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
111735         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
111736         possible collision with system files.
111737         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
111738         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
111739         WCHAR_MIN and WCHAR_MAX in this case.
111740         (<stddef.h>): Do not include; no longer needed.
111741         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
111742         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
111743         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
111744         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
111745         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
111746         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
111747         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
111748         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
111749         !defined(__c99))]: Include in this case too, since it's harmless
111750         now.
111751         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
111752         dangerous to do so.
111753         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
111754         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
111755         (_STDINT_MIN, _STDINT_MAX): New macros.
111756         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
111757         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
111758         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
111759         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
111760         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
111761         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
111762         macros, not typedefs; this simplifies things quite a bit.
111763         Use long int for all types narrower than int64_t.
111764         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
111765         Define in terms of long long int or int64_t or long int,
111766         not int64_t or int32_t.  This saves some compile-time testing.
111767         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
111768         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
111769         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
111770         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
111771         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
111772         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
111773         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
111774         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
111775         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
111776         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
111777         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
111778         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
111779         undef any previous version and define our own version, for
111780         simplicity and consistency with the new macros for types.
111781         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
111782         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
111783         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
111784         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
111785         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
111786         @WINT_T_SUFFIX@ to keep things simple here.
111787         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
111788         Simplify by assuming typical 8/16/32/64 host, since we're
111789         already doing that elsewhere anyway.
111790         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
111791         and assume long long int is 64 bits if available.  This
111792         speeds up 'configure'.
111794 2006-07-01  Eric Blake  <ebb9@byu.net>
111796         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
111797         Reported by Andreas Buening.
111799 2006-07-01  Eric Blake  <ebb9@byu.net>
111801         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
111803 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
111805         * lib/getaddrinfo.c: fixed typo
111807 2006-06-29  Jim Meyering  <jim@meyering.net>
111809         * modules/strftime (Maintainer): Add my name, since with the
111810         FPRINTFTIME changes strftime.c has forked from glibc.
111812 2006-06-29  Eric Blake  <ebb9@byu.net>
111814         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
111816 2006-06-29  Eric Blake  <ebb9@byu.net>
111818         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
111820 2006-06-29  Eric Blake  <ebb9@byu.net>
111822         * lib/stat_.h: New file.
111824 2006-06-29  Eric Blake  <ebb9@byu.net>
111826         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
111827         unused static function.
111829 2006-06-29  Eric Blake  <ebb9@byu.net>
111831         * doc/functions.texi (Function Portability): Document missing lstat
111832         on mingw.
111834 2006-06-29  Eric Blake  <ebb9@byu.net>
111836         * MODULES.html.sh: Add sys_stat.
111837         * modules/sys_stat: New module.
111838         * modules/mkstemp (Depends-on): Add sys_stat.
111840 2006-06-29  Derek R. Price  <derek@ximbiot.com>
111842         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
111844 2006-06-29  Derek R. Price  <derek@ximbiot.com>
111846         * m4/c-bs-a.m4: Removed.
111848 2006-06-29  Derek R. Price  <derek@ximbiot.com>
111850         * lib/strftime.c: Assume strftime() exists.
111852 2006-06-29  Derek Price  <derek@ximbiot.com>
111854         * modules/c-bs-a: Removed - \a is C89.
111855         * MODULES.html.sh: Remove c-bs-a.
111857 2006-06-29  Bruno Haible  <bruno@clisp.org>
111859         * modules/wcwidth (License): Change to LGPL.
111861 2006-06-28  Simon Josefsson  <jas@extundo.com>
111863         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
111864         on _WIN32.
111866         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
111867         getnameinfo.
111869 2006-06-28  Simon Josefsson  <jas@extundo.com>
111871         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
111873 2006-06-28  Simon Josefsson  <jas@extundo.com>
111875         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
111876         functions there.  It will succeed on Windows XP, but on Windows
111877         2000 and (presumably) earlier, it will fail, and use the internal
111878         re-implementation.
111879         (use_win32_p): New function.
111880         (getaddrinfo): Use strtoul on servname, to support numeric ports.
111881         Support AI_NUMERICSERV to disable getservbyname.
111882         (getnameinfo): New function, only supports
111883         NI_NUMERICHOST|NI_NUMERICSERV for now.
111885         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
111886         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
111887         getnameinfo.
111889 2006-06-28  Eric Blake  <ebb9@byu.net>
111891         * modules/wcwidth: New file.
111892         * modules/mbchar (Depends-on): Add wcwidth.
111893         * modules/mbswidth (Depends-on): Add wcwidth.
111894         * MODULES.html.sh: Add wcwidth.
111896 2006-06-28  Eric Blake  <ebb9@byu.net>
111898         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
111899         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
111901 2006-06-28  Eric Blake  <ebb9@byu.net>
111903         * lib/xvasprintf.h: Fix comments.
111905 2006-06-28  Eric Blake  <ebb9@byu.net>
111907         * lib/mbchar.h (wcwidth): Include wcwidth.h.
111908         * lib/mbswidth.c (wcwidth): Move from here...
111909         * lib/wcwidth.h: ...to this new file.
111911 2006-06-28  Derek R. Price  <derek@ximbiot.com>
111913         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
111915         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
111916         it's obsolete.
111917         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
111919 2006-06-28  Derek R. Price  <derek@ximbiot.com>
111921         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
111922         Autoconf 2.60 says this stuff was obsolete.
111924 2006-06-28  Bruno Haible  <bruno@clisp.org>
111926         * modules/wcwidth (Files): Add m4/wchar_t.m4.
111928 2006-06-28  Bruno Haible  <bruno@clisp.org>
111930         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
111931         gt_TYPE_WCHAR_T.
111933 2006-06-28  Bruno Haible  <bruno@clisp.org>
111935         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
111936         declaration for wcwidth.
111937         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
111939 2006-06-28  Bruno Haible  <bruno@clisp.org>
111941         * lib/mkdtemp.c [MINGW]: Include <io.h>.
111942         (mkdir): Define using _mkdir.
111944 2006-06-28  Bruno Haible  <bruno@clisp.org>
111946         * lib/getaddrinfo.h: Fix POSIX URL.
111947         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
111948         _WIN32.
111949         (use_win32_p): Make static.
111950         (getaddrinfo): Reject service name if it is empty or does not consist
111951         solely of decimal digits, or if its value is > 65535.
111952         (getnameinfo): Remove useless casts.
111954 2006-06-27  Simon Josefsson  <jas@extundo.com>
111956         * modules/sys_select: New file, suggested by Bruno Haible, Paul
111957         Eggert and Martin Lambers.
111959 2006-06-27  Simon Josefsson  <jas@extundo.com>
111961         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
111962         Eggert and Martin Lambers.
111964 2006-06-27  Bruno Haible  <bruno@clisp.org>
111966         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
111967         result to 0, not to empty.
111968         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
111970 2006-06-27  Bruno Haible  <bruno@clisp.org>
111972         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
111974 2006-06-26  Simon Josefsson  <jas@extundo.com>
111976         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
111977         present.
111979 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
111981         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
111982         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
111983         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
111985 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
111987         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
111989 2006-06-26  Bruno Haible  <bruno@clisp.org>
111991         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
111993 2006-06-26  Bruno Haible  <bruno@clisp.org>
111995         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
111997 2006-06-26  Bruno Haible  <bruno@clisp.org>
111999         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
112000         SGI C compiler in pre-C99 mode.
112001         Suggested by Mark D. Baushke and Larry Jones.
112003 2006-06-26  Bruno Haible  <bruno@clisp.org>
112005         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
112006         WCHAR_MAX.
112007         Reported by Mark D. Baushke and Larry Jones.
112009 2006-06-26  Bruno Haible  <bruno@clisp.org>
112011         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
112012         in pre-C99 mode.
112013         Suggested by Mark D. Baushke and Larry Jones.
112015 2006-06-23  Simon Josefsson  <jas@extundo.com>
112016             Bruno Haible  <bruno@clisp.org>
112018         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
112019         Emit mostlyclean-local rule.
112020         (func_emit_tests_Makefile_am): Likewise.
112021         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
112023 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
112025         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
112027 2006-06-23  Bruno Haible  <bruno@clisp.org>
112029         * tests/test-stdint.c: Update to match ISO C 99 Technical
112030         Corrigendum 1.
112032 2006-06-23  Bruno Haible  <bruno@clisp.org>
112034         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
112036 2006-06-23  Bruno Haible  <bruno@clisp.org>
112038         * lib/stdint_.h: Treat IRIX like OpenBSD.
112040 2006-06-23  Bruno Haible  <bruno@clisp.org>
112042         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
112043         ISO C 99 Technical Corrigendum 1.
112045 2006-06-22  Simon Josefsson  <jas@extundo.com>
112047         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
112048         MinGW.
112050 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
112052         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
112053         needed.  Some compiler complained about some of them.  Problem reported
112054         by Larry Jones in
112055         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
112057 2006-06-21  Simon Josefsson  <jas@extundo.com>
112059         * tests/test-getaddrinfo.c: New file.
112061         * modules/getaddrinfo-tests: New file.
112063         * MODULES.html.sh: Add inet_pton.
112065         * modules/inet_pton: New file.
112067 2006-06-21  Simon Josefsson  <jas@extundo.com>
112069         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
112070         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
112071         of using the (limited) gnulib implementation on Windows XP.
112073         * m4/inet_pton.m4: New file.
112075 2006-06-21  Simon Josefsson  <jas@extundo.com>
112077         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
112078         variable.
112080         * lib/socket_.h: Don't define WINVER.
112082         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
112083         slightly modified to work in gnulib.
112085 2006-06-21  Simon Josefsson  <jas@extundo.com>
112087         * doc/gnulib.texi (Windows sockets): Add.
112089 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
112091         * lib/read-file.c (fread_file): Start with buffer allocation of
112092         0 bytes rather than 1 byte; this simplifies the code.
112093         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
112094         code to free buffer and save/restore errno.
112095         (internal_read_file): Remove unused local.
112097 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
112099         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
112100         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
112101         Problem reported by Denis Excoffier in
112102         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
112104 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112106         * modules/sys_socket, modules/socklen: Include sys/types since
112107         FreeBSD 4.x's sys/socket.h needs it.
112109 2006-06-19  Simon Josefsson  <jas@extundo.com>
112111         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
112113 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
112115         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
112117 2006-06-19  Bruno Haible  <bruno@clisp.org>
112119         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
112120         and FULL_PATH_INTTYPES_H in angle brackets.
112121         Reported by Mark D. Baushke <mdb@gnu.org>.
112123 2006-06-17  Eric Blake  <ebb9@byu.net>
112125         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
112126         errno.
112128 2006-06-17  Bruno Haible  <bruno@clisp.org>
112130         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
112131         <sys/inttypes.h>.
112133 2006-06-17  Bruno Haible  <bruno@clisp.org>
112135         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
112136         whether errno is declared. Assume <errno.h> declares errno.
112138 2006-06-17  Bruno Haible  <bruno@clisp.org>
112140         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
112142 2006-06-17  Bruno Haible  <bruno@clisp.org>
112144         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
112145         problem on Solaris 2.5.1.
112147 2006-06-16  Eric Blake  <ebb9@byu.net>
112149         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
112150         * lib/unicodeio.c [!defined errno]: Likewise.
112151         * lib/strtol.c [!defined errno]: Likewise.
112152         * lib/strtod.c [!defined errno]: Likewise.
112154 2006-06-15  Eric Blake  <ebb9@byu.net>
112156         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
112158 2006-06-15  Eric Blake  <ebb9@byu.net>
112160         * config/srclist.txt (ssize_t.m4): Lose sync.
112162 2006-06-15  Bruno Haible  <bruno@clisp.org>
112164         * modules/stdint (Files): Include m4/full-header-path.m4,
112165         m4/size_max.m4, m4/wchar_t.m4.
112166         (Makefile.am): Many more substitutions.
112167         * modules/stdint-tests: New file.
112168         * tests/test-stdint.c: New file.
112170 2006-06-15  Bruno Haible  <bruno@clisp.org>
112172         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
112173         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
112174         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
112175         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
112176         gl_CHECK_TYPE_SAME): New macros.
112178 2006-06-15  Bruno Haible  <bruno@clisp.org>
112180         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
112182 2006-06-15  Bruno Haible  <bruno@clisp.org>
112184         * lib/stdint_.h: Rewritten to be fully auto-configured.
112185         Fixes bug on HP-UX/IA64.
112187 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
112189         * lib/getdate.y (__attribute__): Don't define if already defined.
112190         Problem reported by Larry Jones.
112191         * lib/utimens.c (__attribute__): Likewise.
112193 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
112195         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
112196         reported by Andreas Schwab.
112198 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112199             Bruno Haible  <bruno@clisp.org>
112201         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
112202         check for the declaration of strnlen and a run test that exposes the
112203         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
112204         rpl_strndup.
112206 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112207             Bruno Haible  <bruno@clisp.org>
112209         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
112211 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112213         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
112214         compile test, for Tru64 4.0D.
112216 2006-05-28  Karl Berry  <karl@gnu.org>
112218         * config/srclist.txt (printf-args.c): lose sync.
112220 2006-05-26  Martin Lambers  <marlam@marlam.de>
112222         * lib/getpass.c: Updates the test for the native W32 API, and adds
112223         missing includes, thus fixing compilation warnings.
112225 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
112227         * lib/exclude.c (exclude_fnmatch): New function.
112228         (excluded_file_name): Call exclude_fnmatch.
112229         * lib/exclude.h (excluded_file_name): New prototype
112231 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
112233         * lib/tempname.c (small_open, large_open): New macros.
112234         (__open, __open64) [!_LIBC]: Remove.
112235         (__gen_tempname): Use small_open and large_open instead of __open
112236         and __open64.  This fixes a portability bug on HP-UX 11.11i
112237         reported by Simon Wing-Tang in
112238         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
112240 2006-05-24  Bruno Haible  <bruno@clisp.org>
112242         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
112243         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
112244         Reported by Thorsten Maerz <torte@netztorte.de> via
112245         Aaron Stone <aaron@serendipity.cx>.
112247 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112249         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
112250         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
112251         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
112252         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
112253         not really conditional on the cache.
112254         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
112256 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112258         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
112259         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
112260         (my_usleep): Don't mishandle maximum value.
112262 2006-05-19  Jim Meyering  <jim@meyering.net>
112264         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
112266 2006-05-17  Bruno Haible  <bruno@clisp.org>
112268         Cygwin portability.
112269         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
112271 2006-05-17  Bruno Haible  <bruno@clisp.org>
112273         * lib/stdint_.h: Fix recognition of Cygwin.
112275 2006-05-15  Bruno Haible  <bruno@clisp.org>
112277         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
112278         on libtool patch by Ralf Wildenhues.
112280 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
112282         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
112283         test for C99 conformance; (bool) 0.5 is an integer constant
112284         expression, but (bool) -0.5 is not.  Problem reported by Fedor
112285         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
112287 2006-05-11  Simon Josefsson  <jas@extundo.com>
112289         * m4/xvasprintf.m4: Fix obvious typo.
112291 2006-05-11  Jim Meyering  <jim@meyering.net>
112293         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
112294         James Lemley.
112296 2006-05-10  Simon Josefsson  <jas@extundo.com>
112298         * lib/md4.c: Typo fix, update copyright years.
112299         (K1, K2): Don't use L because it turn computations into 64-bit on
112300         64-bit platforms.
112302 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
112304         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
112305         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
112306         unwanted sign propagation, e.g., on hosts with 64-bit int.
112307         There still are some problems with reeelly weird theoretical hosts
112308         (e.g., 33-bit int) but it's not worth worrying about now.
112309         * lib/sha1.c (rol): Likewise.
112310         (K1, K2, K3, K4): Remove unnecessary L suffix.
112312 2006-05-10  Bruno Haible  <bruno@clisp.org>
112314         * lib/des.c: Cast to avoid warnings.
112316 2006-05-09  Bruno Haible  <bruno@clisp.org>
112318         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
112319         (Depends-on): Depend also on xsize, stdarg.
112320         (configure.ac): Add gl_XVASPRINTF.
112322 2006-05-09  Bruno Haible  <bruno@clisp.org>
112324         * m4/xvasprintf.m4: New file.
112326 2006-05-09  Bruno Haible  <bruno@clisp.org>
112328         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
112329         (EOVERFLOW): Define fallback value.
112330         (xstrcat): New function.
112331         (xvasprintf): Recognize the special case of a string concatenation.
112333 2006-05-08  Eric Blake  <ebb9@byu.net>
112335         * gnulib-tool (func_version): Base copyright year on CVS date.
112336         (func_emit_copyright_notice): New function.
112337         (func_emit_lib_Makefile_am): Use it.
112338         (func_emit_tests_Makefile_am): Likewise.
112339         (func_import): Likewise.
112341 2006-05-08  Bruno Haible  <bruno@clisp.org>
112343         * modules/stdarg: New file.
112344         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
112346 2006-05-08  Bruno Haible  <bruno@clisp.org>
112348         * m4/stdarg.m4: New file, from GNU gettext.
112350 2006-05-08  Bruno Haible  <bruno@clisp.org>
112352         * config/srclist.txt (build-aux/config.rpath): different from latest
112353         release.
112355 2006-05-08  Bruno Haible  <bruno@clisp.org>
112357         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
112359 2006-05-05  Jim Meyering  <jim@meyering.net>
112361         * m4/warning.m4: New file, derived from bison's file by the same name.
112363 2006-05-03  Bruno Haible  <bruno@clisp.org>
112365         * lib/stdint_.h: Shorter URL.
112366         * lib/inttypes.h: Likewise.
112368 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112370         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
112372 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112374         * lib/verify.h: Document the internals better.  Most of this change
112375         was written by Bruno Haible.
112377 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112379         * doc/verify.texi: New file, partly based on a proposal by
112380         Bruno Haible.
112382 2006-05-02  Bruno Haible  <bruno@clisp.org>
112384         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
112385         test from here...
112386         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
112388 2006-04-29  Bruno Haible  <bruno@clisp.org>
112390         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
112391         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
112393 2006-04-29  Bruno Haible  <bruno@clisp.org>
112395         * gnulib-tool: Make --update option actually work.
112397 2006-04-29  Bruno Haible  <bruno@clisp.org>
112399         * doc/gcd.texi: New file.
112400         * doc/gnulib.texi: Include it.
112402 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
112404         * lib/getdate.y (get_date): When adding relative date, start with the
112405         initial time, not with the result of the first mktime call.
112407 2006-04-25  Bruno Haible  <bruno@clisp.org>
112409         * gnulib-tool (func_import): Output the include directives in three
112410         blocks, sorted separately.
112411         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112413 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112415         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
112416         to define main with arguments, for C++.  Reported by Eric Blake.
112417         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
112418         Prefer 'int main ()' to 'int main (void)', for C++.
112419         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
112420         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
112421         for 'main', for C99 and C++.
112423 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112425         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
112426         Don't assume that exit status -1 is valid.
112427         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
112428         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
112429         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
112430         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
112431         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
112432         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
112433         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
112434         functions can be used without declaring them, or that you can
112435         exit with status -1.
112436         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
112438 2006-04-24  Karl Berry  <karl@gnu.org>
112440         * config/srclist.txt (longdouble.m4): sync lost.
112442 2006-04-24  Eric Blake  <ebb9@byu.net>
112444         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
112446 2006-04-24  Bruno Haible  <bruno@clisp.org>
112448         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
112449         poll() implementation in AIX.
112450         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112452 2006-04-24  Bruno Haible  <bruno@clisp.org>
112454         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
112455         assigned exactly once.
112457 2006-04-23  Claudio Fontana  <claudio@gnu.org>
112458             Bruno Haible  <bruno@clisp.org>
112460         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
112461         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
112462         for AM_CPPFLAGS.
112464 2006-04-23  Bruno Haible  <bruno@clisp.org>
112466         * modules/copy-file: Depend on unistd.
112467         * modules/execute: Likewise.
112468         * modules/fatal-signal: Likewise.
112469         * modules/findprog: Likewise.
112470         * modules/mkdtemp : Likewise.
112471         * modules/pipe: Likewise.
112472         * modules/wait-process: Likewise.
112474 2006-04-23  Bruno Haible  <bruno@clisp.org>
112476         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
112477         condition was already detected.
112478         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112480 2006-04-23  Bruno Haible  <bruno@clisp.org>
112482         * lib/copy-file.c: Include <unistd.h> unconditionally.
112483         * lib/execute.c: Likewise.
112484         * lib/fatal-signal.c: Likewise.
112485         * lib/findprog.c: Likewise.
112486         * lib/mkdtemp.c: Likewise.
112487         * lib/pipe.h: Likewise.
112488         * lib/pipe.c: Likewise.
112489         * lib/wait-process.h: Likewise.
112491 2006-04-23  Bruno Haible  <bruno@clisp.org>
112493         * gnulib-tool (func_usage): Fix --import description. Document
112494         --update.
112495         (func_import): Create temporary file in a temporary directory, if
112496         --dry-run is specified. Silence errors from 'grep' when there are no
112497         m4 files in $m4dir.
112498         (func_create_testdir): Silence errors from 'grep' when there are no
112499         m4 files in $m4dir.
112500         Reported by Karl Berry <karl@freefriends.org>.
112502 2006-04-20  Bruno Haible  <bruno@clisp.org>
112504         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
112505         one argument, so that the code will be portable to Autoconf 2.60.
112506         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
112507         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
112508         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
112510 2006-04-19  Derek Price  <derek@ximbiot.com>
112511             Eric Blake  <ebb9@byu.net>
112513         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
112514         rather than "/full/path.h".  Update comment to match.  Shorten &
112515         generalize m4_translit call via AS_TR_CPP.
112517 2006-04-19  Derek Price  <derek@ximbiot.com>
112518             Eric Blake  <ebb9@byu.net>
112520         * lib/inttypes.h: Correct grammar in comment.
112522 2006-04-18  Derek Price  <derek@ximbiot.com>
112523             Paul Eggert  <eggert@cs.ucla.edu>
112525         * modules/inttypes: New file.
112526         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
112528 2006-04-18  Derek Price  <derek@ximbiot.com>
112529             Paul Eggert  <eggert@cs.ucla.edu>
112531         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
112532         New files.
112534 2006-04-18  Derek Price  <derek@ximbiot.com>
112535             Paul Eggert  <eggert@cs.ucla.edu>
112537         * lib/inttypes.h: New file.
112538         * lib/strtoimax.c: Assume <inttypes.h>.
112540 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
112542         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
112543         isn't mounted.  Problem reported by Kir Kolyshkin.
112545 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
112547         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
112548         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
112549         Derek R. Price.
112550         * lib/regex.h (RE_DUP_MAX): Update comment to match current
112551         implementation.
112553 2006-04-12  Eric Blake  <ebb9@byu.net>
112555         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
112556         is now done automatically by the corresponding Autoconf macro.
112558 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
112560         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
112561         time_r.h.
112563 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
112565         Merge regex changes from libc, removing some of our
112566         POSIX-conformance changes that were rejected and redoing them in a
112567         less-intrusive way.
112569         * lib/regcomp.c (re_compile_internal, init_dfa):
112570         Length arg is now size_t, not Idx.  All uses changed.
112571         (peek_token): Forward decl now says internal_function.
112572         (__re_error_msgid, __re_error_msgid_idx):
112573         Now static rather than extern with attribute_hidden.
112574         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
112575         For some reason libc prefers K&R style defns for external functions.
112576         (regerror) [!defined _LIBC]: Likewise.
112577         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
112578         (seek_collating_symbol_entry, lookup_collation_sequence_value):
112579         (build_range_exp, build_collating_symbol):
112580         Use K&R-style defn.
112581         (re_compile_fastmap): Use '\0' to memset, not 0.
112582         (utf8_sb_map): Make the calculations more obvious.
112583         (init_dfa, parse_bracket_exp, build_charclass_op):
112584         Call calloc and cast result, as glibc does.
112585         (init_word_char, fetch_token, peek_token, peek_token_bracket):
112586         (build_range_exp, build_collating_symbol):
112587         Now internal functions.
112589         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
112591         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
112592         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
112593         Don't depend on VMS; depend on __VMS instead, for POSIX
112594         namespace cleanness.
112595         (regoff_t): Define to ssize_t, not long int.
112597         Remove the REG_ macros named below.  Instead, make the old names
112598         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
112599         __USE_GNU_REGEX.
112600         (REG_BACKSLASH_ESCAPE_IN_LISTS):
112601         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
112602         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
112603         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
112604         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
112605         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
112606         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
112607         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
112608         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
112609         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
112610         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
112611         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
112612         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
112613         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
112614         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
112615         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
112616         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
112617         (REG_NREGS):
112618         Remove.  All uses replaced by the old RE_* names.
112619         (RE_BACKSLASH_ESCAPE_IN_LISTS):
112620         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
112621         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
112622         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
112623         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
112624         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
112625         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
112626         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
112627         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
112628         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
112629         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
112630         Don't bother having these macros be independent of each others'
112631         values, since they no longer exist in the POSIX name space.
112633         Rename the following member names back to their old names,
112634         unless !__USE_GNU_REGEX.  All uses changed back.
112635         (buffer): Renamed from re_buffer.
112636         (allocated): Renamed from re_allocated.
112637         (used): Renamed from re_used.
112638         (syntax): Renamed from re_syntax.
112639         (fastmap): Renamed from re_fastmap.
112640         (translate): Renamed from re_translate.
112641         (can_be_null): Renamed from re_can_be_null.
112642         (regs_allocated): Renamed from re_regs_allocated.
112643         (fastmap_accurate): Renamed from re_fastmap_accurate.
112644         (no_sub): Renamed from re_no_sub.
112645         (not_bol): Renamed from re_not_bol.
112646         (not_eol): Renamed from re_not_eol.
112647         (newline_anchor): Renamed from re_newline_anchor.
112648         (num_regs): Renamed from rm_num_regs.
112649         (start): Renamed from rm_start.
112650         (end): Renamed from rm_end.
112652         (free_state): Move up a bit.
112654         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
112655         #define to be empty.
112656         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
112657         when that is what is intended.
112658         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
112659         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
112660         (MAX): New macro.
112661         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
112662         All uses changed back to re_malloc, etc.  It's now the caller's
112663         responsibility to check for overflow; all callers changed.
112664         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
112665         (re_x2nrealloc): Remove.
112666         (free_state): Remove decl.
112668         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
112669         (re_set_registers, re_exec):
112670         Use K&R-style defn.
112672         2006-01-31  Roland McGrath  <roland@redhat.com>
112674         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
112675         Reported by Mike Frysinger <vapier@gentoo.org>.
112677         2006-01-15  Andreas Jaeger  <aj@suse.de>
112679         [BZ #1950]
112680         * lib/regex_internal.c (re_string_reconstruct): Adjust for
112681         build_wcs_upper_buffer change.
112682         (build_wcs_upper_buffer): Change return type.
112684         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
112686         * lib/regex_internal.h: Include <stdint.h> if available.
112688         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
112690         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
112692         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
112694         * lib/regcomp.c: Adjust for changed secondary hash function.
112696         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
112698         * lib/regex.h: Pretty printing.
112699         Clean up namespace a bit.
112701         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
112703         * lib/regexec.c (update_cur_sifted_state, check_arrival,
112704         check_arrival_add_next_nodes): Avoid using uninitialized variable.
112706         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
112707                     Ulrich Drepper  <drepper@redhat.com>
112709         [BZ #1302]
112710         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
112711         changed.
112712         (bitset_word_t): Renamed from bitset_word.  All uses changed.
112714         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
112716         [BZ #281]
112717         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
112718         * lib/regcomp.c: Remove unnecessary uses of
112719         unsigned RE_TRANSLATE_TYPE.
112720         * lib/regex_internal.h: Likewise.
112721         * lib/regex_internal.c: Likewise.
112722         * lib/regexec.c: Likewise.
112723         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
112725         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
112727         * lib/regexec.c (find_recover_state): Remove unnecessary
112728         initialization.
112729         (transit_state_bkref): Make DFA a const pointer.
112730         (get_subexp): Likewise.
112731         (check_arrival): Likewise.
112732         (update_cur_sifted_state): Likewise.
112733         (re_search_internal): Likewise.
112734         (prune_impossible_nodes): Likewise.
112735         (acquire_init_state_context): Likewise.
112736         (proceed_next_node): Likewise.
112737         (set_regs): Likewise.
112738         (free_fail_stack_return): Likewise.
112739         (check_arrival_expand_ecl): Mark DFA parameter as const.
112740         (check_arrival_expand_ecl_sub): Likewise.
112741         (check_subexp_limits): Likewise.
112742         (sub_epsilon_src_nodes):  Likewise.
112743         (add_epsilon_src_nodes):  Likewise.
112744         (merge_state_array): Likewise.
112745         (update_regs): Likewise.
112746         (build_trtable): Likewise.
112747         (sift_states_backward): Mark MCTX parameter as const.
112748         (build_sifted_states): Likewise.
112749         (update_cur_sifted_state): Likewise.
112750         (sift_states_mkref): Likewise.
112751         (check_arrival_expand_ecl): Mark eclosure as const.
112752         (check_dst_limits_calc_pos_1): Likewise.
112753         * lib/regex_internal.h (re_match_context_t): Make dfa a const
112754         pointer.
112756         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
112758         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
112759         (transit_state_sb): Likewise.
112760         (transit_state_mb): Likewise.
112761         (sift_states_iter_mb): Likewise.
112762         (check_arrival_add_next_nodes): Likewise.
112763         (check_node_accept_bytes): Change first parameter to pointer-to-const.
112764         [_LIBC] (re_search_2_stub): Use mempcpy.
112766         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
112767         mbrtowc for very simple UTF-8 case.
112769         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
112770         a pointer-to-const.
112771         (re_acquire_state_context): Likewise.
112772         * lib/regex_internal.h: Adjust prototypes.
112774         * lib/regex.c: Prevent using C++ compilers.
112776         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
112777         (re_acquire_state_context): Likewise.
112779 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
112781         * modules/regex (Depends-on): Add ssize_t.
112783 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
112785         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
112786         translation table.
112788 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
112790         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
112792 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
112793             Bruno Haible  <bruno@clisp.org>
112795         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
112796         <sys/types.h> and <inttypes.h>.
112798 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112800         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
112801         `__error_t_defined', so argp.h will not typedef the former.
112803 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
112805         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
112806         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
112807         glibc names.  Even if glibc is changed to conform to POSIX, the
112808         traditional names will be available anyway, since regex depends on
112809         the extensions module.  Also, fix a longstanding typo in the
112810         implementation of Spencer ERE test #75 from grep 2.3.  Problems
112811         reported by Emanuele Giaquinta.  Also, change sense of cached
112812         variable, so that the message makes sense.
112814 2006-03-24  Simon Josefsson  <jas@extundo.com>
112816         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
112817         including some doc fixes.
112818         (base64_encode_alloc): Fix +1 bug on allocation failures.
112820 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112822         * lib/base64.c (base64_encode): Do not read past end of array with
112823         unsanitized input on systems with CHAR_BIT > 8.
112825 2006-03-24  Eric Blake  <ebb9@byu.net>
112827         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
112829 2006-03-22  Karl Berry  <karl@gnu.org>
112831         * config/srclist.txt (*setenv.[ch]): get from coreutils.
112832         * config/srclistvars.sh (COREUTILS): new var.
112834 2006-03-17  Jim Meyering  <jim@meyering.net>
112836         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
112837         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
112839 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
112841         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
112842         no longer needs it.  Instead, check that regoff_t is as least
112843         as wide as ptrdiff_t.
112845         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
112846         so that our regex.h stays compatible with the installed regex.
112847         This is helpful for installers who configure --without-included-regex.
112848         Problem reported by Emanuele Giaquinta.
112850 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
112852         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
112853         Typedef to long int, not to off_, as POSIX will likely change
112854         in that direction.
112856 2006-03-15  Eric Blake  <ebb9@byu.net>
112858         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
112860 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
112862         * lib/argp-help.c (validate_uparams): Fix typo
112863         * lib/argp-parse.c (argp_default_options): Consistently begin help
112864         messages with a lowercase letter.
112866 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
112868         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
112869         overrun buffers and shouldn't be used (much as gets shouldn't be
112870         used).
112871         * lib/time_r.c (asctime_r, ctime_r): Likewise.
112873 2006-03-08  Simon Josefsson  <jas@extundo.com>
112875         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
112876         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112878 2006-03-08  Simon Josefsson  <jas@extundo.com>
112880         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
112881         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112883 2006-03-08  Simon Josefsson  <jas@extundo.com>
112885         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
112886         signal that configure disabled the device.
112888 2006-03-08  Simon Josefsson  <jas@extundo.com>
112890         * build-aux/maint.mk: Fix refresh-po, to handle no translated
112891         languages.
112893 2006-03-07  Simon Josefsson  <jas@extundo.com>
112895         * modules/getopt (Depends-on): Add unistd.
112897         * modules/unistd: New file.
112899 2006-03-07  Simon Josefsson  <jas@extundo.com>
112901         * modules/gc-random: New file.
112903 2006-03-07  Simon Josefsson  <jas@extundo.com>
112905         * m4/unistd_h.m4: New file.
112907 2006-03-07  Simon Josefsson  <jas@extundo.com>
112909         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
112910         test to be side-effect free by storing the result in the cache
112911         variable gl_cv_lib_readline, and moving the assignment of
112912         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
112913         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112915 2006-03-07  Simon Josefsson  <jas@extundo.com>
112917         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
112918         error on missing devices (the functions will return an error).
112920         * m4/gc.m4: Move random stuff to gc-random.m4
112922 2006-03-07  Simon Josefsson  <jas@extundo.com>
112924         * lib/unistd_.h: New file.
112926 2006-03-07  Simon Josefsson  <jas@extundo.com>
112928         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
112930 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
112932         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
112933         Problem reported by Juan Manuel Guerrero.
112935 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
112937         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
112938         the unistd module.
112939         * lib/getlogin_r.c: Likewise.
112940         * lib/getlogin_r.h: Likewise.
112941         * lib/glob.c: Likewise.
112942         * lib/pagealign_alloc.c: Likewise.
112943         * lib/unistd_.h: Remove; no longer needed.
112945 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
112947         * MODULES.html.sh (Support for systems lacking POSIX:2001):
112948         Add unistd.
112949         * modules/c-stack (Depends-on): Add unistd.
112950         * modules/getlogin_r: Likewise.
112951         * modules/glob: Likewise.
112952         * modules/pagealign_alloc: Likewise.
112953         * modules/unistd (Files): Remove lib/unistd_.h.
112954         (EXTRA_DIST): Remove.
112955         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
112956         need unistd_.h.
112957         (MOSTLYCLEANFILES): Remove unistd.h-t.
112959 2006-03-03  Simon Josefsson  <jas@extundo.com>
112961         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
112963 2006-03-03  Simon Josefsson  <jas@extundo.com>
112965         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
112966         libidn and bison.
112968 2006-03-03  Simon Josefsson  <jas@extundo.com>
112970         * build-aux/maint.mk: Add indent target.
112972 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
112974         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
112975         our replacement poll.h in any case, to avoid a differing
112976         declaration from a system header.  Seen on AIX.
112978 2006-03-01  Simon Josefsson  <jas@extundo.com>
112980         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
112981         <kasal@ucw.cz>.
112983 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
112985         * modules/gettime (Depends-on): Add extensions module.
112986         * modules/nanosleep (Depends-on): Likewise.
112987         * modules/settime (Depends-on): Likewise.
112989 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
112991         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
112992         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
112993         pedantically.
112994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
112995         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
112997         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
112998         not "==".  Reported by Ralf Wildenhues.
113000 2006-03-01  Karl Berry  <karl@gnu.org>
113002         * doc/Copyright/request-*: new files, synced from gnuorg.
113004 2006-03-01  Karl Berry  <karl@gnu.org>
113006         * config/srclist.txt (Copyright/*): new entries.
113008 2006-02-28  Simon Josefsson  <jas@extundo.com>
113010         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
113012 2006-02-27  Simon Josefsson  <jas@extundo.com>
113014         * lib/base64.h: Indent #define's.  From Jim Meyering
113015         <jim@meyering.net>.
113017 2006-02-27  Jim Meyering  <jim@meyering.net>
113019         Revert the change of 2006-02-24, so these files can continue
113020         to be sync'd from gettext.
113021         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
113022         of `config.h'.
113024 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
113026         * modules/intprops: New file.
113027         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
113028         Add intprops.
113029         * modules/getloadavg (Files): Remove lib/intprops.h.
113030         (Depends-on): Add intprops.
113031         * modules/human: Likewise.
113032         * modules/inttostr: Likewise.
113033         * modules/openat: Likewise.
113034         * modules/sig2str: Likewise.
113035         * modules/userspec: Likewise.
113036         * modules/utimecmp: Likewise.
113037         * modules/xnanosleep: Likewise.
113038         * modules/xstrtol: Likewise.
113040 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
113042         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
113043         * modules/lock-tests (TESTS): Use $(EXEEXT).
113044         * modules/tls-tests: Likewise.
113045         * modules/argp-tests: Likewise.
113046         (check_PROGRAMS): New var, replacing...
113047         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
113049 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113051         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
113052         `config.h'.
113054 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
113056         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
113058 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113060         Sync from coreutils.
113061         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
113062         gl_CHDIR_SAFER.
113064 2006-02-22  Jim Meyering  <jim@meyering.net>
113066         Sync from coreutils.
113067         * m4/chdir-safer.m4: New file.
113069 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
113071         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
113072         AT_FDCWD exceeds INT_MAX.
113073         * lib/openat.h (AT_FDCWD): Likewise.
113075 2006-02-17  Eric Blake  <address@hidden>
113077         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
113079 2006-02-16  Simon Josefsson  <jas@extundo.com>
113081         * modules/getaddrinfo (Depends-on): Add sys_socket.
113083 2006-02-15  Simon Josefsson  <jas@extundo.com>
113085         * build-aux/maint.mk: Add dsyntax-check rule.
113087 2006-02-15  Eric Blake  <ebb9@byu.net>
113089         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
113090         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
113091         'present but cannot compile' warnings on cygwin.
113092         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
113093         use ws2tcpip.h if sys/socket.h works.
113094         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
113095         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
113097 2006-02-14  Simon Josefsson  <jas@extundo.com>
113099         * modules/maintainer-makefile (Files): Rename.
113101         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
113102         and (the local) Makefile.cfg to maint-cfg.mk.
113104         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
113105         to the latter.
113107         * modules/maintainer-makefile: New module.
113109         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
113110         severaly stripped to make it possible to build it up from scratch
113111         with reliable tests.
113113         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
113114         fixes to permit overriding the default actions when configure and
113115         makefile are not available.
113117 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
113119         Sync from coreutils.
113120         * modules/lstat (Depends-on): Don't depend on xalloc.
113121         (License): Change from GPL to LGPL, since this is now simply a
113122         replacement for a libc function.
113124 2006-02-14  Jim Meyering  <jim@meyering.net>
113126         Sync from coreutils.
113128         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
113129         failure on deficient systems, and simplify gnulib lgpl dependencies.
113130         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
113131         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
113133         * lib/xalloc-die.c: Remove unused definition of N_.
113135 2006-02-14  Jim Meyering  <jim@meyering.net>
113137         Sync from coreutils.
113138         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
113139         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
113140         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
113141         double-quote uses of that variable, to accommodate the rare case in
113142         which getmntent is available in none of the libraries checked.  This
113143         happens at least on FreeBSD 5.0.
113145 2006-02-13  Simon Josefsson  <jas@extundo.com>
113147         * gnulib-tool (Usage): Fix --import, from
113148         karl@freefriends.org (Karl Berry).
113150 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113152         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
113154 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
113156         * lib/argp-namefrob.h: Restore changes accidentally lost during the
113157         "autoupdate" on 2005-12-12.
113159 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113161         * modules/closeout (Depends-on): Remove atexit.
113163 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113165         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
113166         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
113168 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
113170         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
113171         __EXTENSIONS__ if this causes compilation to fail.  Problem
113172         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
113173         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
113175 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
113177         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
113178         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
113179         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
113180         All uses changed.
113182 2006-01-26  Simon Josefsson  <jas@extundo.com>
113184         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
113185         prototype is visible on mingw32.
113187         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
113188         for mingw32.
113190         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
113191         mingw32).
113193 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
113195         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
113196         attempt to open for write; this always fails, at least on POSIX
113197         hosts.  This reinstates the 2006-01-09 change, which was
113198         inadvertently removed.
113200 2006-01-26  Bruno Haible  <bruno@clisp.org>
113202         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
113203         Reported by Paul Eggert.
113205 2006-01-26  Bruno Haible  <bruno@clisp.org>
113206             Paul Eggert  <eggert@cs.ucla.edu>
113208         * lib/stdbool_.h (_Bool)
113209         [(! (defined __cplusplus || defined __BEOS__)
113210           && !defined __GNUC__
113211           && !(defined __HP_cc || defined __xlc__
113212                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
113213                || defined __sgi))]:
113214         #define to signed char in these cases too; this simplifies
113215         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
113216         etc., separately) and makes it more conservative.
113218 2006-01-25  Simon Josefsson  <jas@extundo.com>
113220         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
113221         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
113222         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
113224 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
113226         * lib/argp-namefrob.h: Bugfix. Remove stray #
113228 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
113230         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
113231         so that we test the test.
113232         Check for yet another HP-UX cc bug involving *bool |= bool.
113234 2006-01-25  Karl Berry  <karl@gnu.org>
113236         * config/srclist.txt (vasnprintf.c): sync lost.
113238 2006-01-25  Jim Meyering  <jim@meyering.net>
113240         Sync from the stable (b5) branch of coreutils:
113242         * lib/fts.c (fts_children): Don't let close() clobber errno from
113243         failed fchdir().
113245         * lib/fts.c (fts_stat): When following a symlink-to-directory,
113246         don't necessarily interpret stat-fails+lstat-succeeds as indicating
113247         a dangling symlink.  That can also happen at least for ELOOP.
113248         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
113249         FYI, this bug predates the inclusion of fts.c in coreutils.
113251         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
113252         in their own block, so pre-c99 compilers don't object.
113254         Avoid the double-free (first in fts_read, second in fts_close) that
113255         would occur when an `active' directory is made inaccessible (e.g.,
113256         via chmod a-x) during a traversal.
113257         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
113258         before returning.  Reproduce this failure by
113259         mkdir -p a/b; cd a; chmod a-x . b
113260         Reported by Stavros Passas.
113262 2006-01-25  Jim Meyering  <jim@meyering.net>
113264         * lib/fileblocks.c: Remove more useless parentheses.
113265         * lib/readutmp.h: Likewise.
113267 2006-01-25  Bruno Haible  <bruno@clisp.org>
113269         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
113270         warnings.
113271         Reported by Paul Eggert.
113273 2006-01-25  Bruno Haible  <bruno@clisp.org>
113275         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
113276         rid of a trap command. For Solaris sh.
113277         Reported by Mark D. Baushke <mdb@gnu.org>.
113279 2006-01-24  Simon Josefsson  <jas@extundo.com>
113281         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
113282         Bruno.
113284 2006-01-24  Karl Berry  <karl@gnu.org>
113286         * config/srclist.txt (argp-namefrob.h): sync lost.
113288 2006-01-24  Jim Meyering  <jim@meyering.net>
113290         * modules/openat (Files): Add lib/intprops.h.
113291         From Mark D. Baushke.
113293 2006-01-24  Jim Meyering  <jim@meyering.net>
113295         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
113296         Reported by Mark D. Baushke.
113298 2006-01-24  Jim Meyering  <jim@meyering.net>
113300         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
113302 2006-01-24  Bruno Haible  <bruno@clisp.org>
113304         * modules/strnlen (Maintainer): Change from glibc to all.
113306 2006-01-24  Bruno Haible  <bruno@clisp.org>
113308         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
113309         Patch by Paul Eggert.
113311 2006-01-24  Bruno Haible  <bruno@clisp.org>
113313         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
113314         already has it.
113315         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
113316         2005-11-26.
113318         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
113319         'signed char' to avoid problems with the built-in _Bool type.
113320         Reported by Paul Eggert on 2005-11-26.
113322 2006-01-24  Bruno Haible  <bruno@clisp.org>
113324         * gnulib-tool (func_import): Avoid constructing complicated sed
113325         expressions inside backquote.
113326         Report and solution by Mark D. Baushke <mdb@gnu.org>.
113328 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
113330         These changes imported from libc.
113331         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
113332         test and two separate function calls.
113333         * lib/strndup.c (__strndup): Add libc_hidden_def.
113335 2006-01-23  Simon Josefsson  <jas@extundo.com>
113337         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
113338         Remove the test_*_SOURCES variable: automake infers it by default.
113339         * modules/tls-tests: Likewise.
113341 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113343         Work around porting bugs reported by Dieter in
113344         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
113345         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
113346         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
113347         Include "getopt.h" first, to check interface.
113348         (getenv): Declare only if defined HAVE_DECL_GETENV &&
113349         !HAVE_DECL_GETENV.
113350         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
113351         (__strndup): Revert to K&R-style function dfns, the glibc style.
113352         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
113353         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
113354         Include strnlen.h first, to get prototype properly.
113355         (strnlen): Renamed from __strnlen.
113356         Remove weak alias.
113358 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113360         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
113362 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113364         * config/srclist.txt: Adjust to reflect glibc reorganization.
113365         This affects only comments.
113367 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
113369          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
113370          Reported by Bruce Korb <bkorb@gnu.org>.
113372 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
113374         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
113375         to pacify gcc -Wswitch-default.
113377 2006-01-22  Bruno Haible  <bruno@clisp.org>
113379         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
113380         temporary buffer for sprintf, take into account the precision also
113381         for 'd', 'i', 'u', 'o', 'x', 'X'.
113383 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113385         * modules/argp-tests: New module
113386         * tests/test-argp.c: New file
113387         * tests/test-argp-2.sh: New file
113389 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113391         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
113392         (__argp_base_name): Removed
113393         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
113394         typo.
113395         (__argp_base_name): Provide macro definition or extern declaration
113396         depending on the configuration
113398 2006-01-20  Simon Josefsson  <jas@extundo.com>
113400         * modules/inet_ntop (Depends-on): Depend on sys_socket.
113402 2006-01-20  Simon Josefsson  <jas@extundo.com>
113404         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
113406 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
113408         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
113409         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
113410         Suggested by Bruno Haible.
113412 2006-01-20  Karl Berry  <karl@gnu.org>
113414         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
113415         until changes propagate, I guess.
113417 2006-01-19  Simon Josefsson  <jas@extundo.com>
113419         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
113421 2006-01-19  Simon Josefsson  <jas@extundo.com>
113423         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
113425 2006-01-19  Simon Josefsson  <jas@extundo.com>
113427         * gnulib-tool: Set check_PROGRAMS.
113429         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113430         modules/des-tests, modules/gc-arcfour-tests,
113431         modules/gc-arctwo-tests, modules/gc-des-tests,
113432         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113433         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113434         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113435         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113436         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113437         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
113438         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
113439         test_*_SOURCES.
113441 2006-01-18  Simon Josefsson  <jas@extundo.com>
113443         * modules/socklen (Depends-on): Depend on sys_socket.
113445 2006-01-18  Simon Josefsson  <jas@extundo.com>
113447         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113448         modules/des-tests, modules/gc-arcfour-tests,
113449         modules/gc-arctwo-tests, modules/gc-des-tests,
113450         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113451         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113452         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113453         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113454         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113455         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
113456         $(EXEEXT) to automake TESTS variable, for mingw32.
113458 2006-01-17  Simon Josefsson  <jas@extundo.com>
113460         * modules/socklen (Include): Need sys/socket.h.
113462 2006-01-17  Bruno Haible  <bruno@clisp.org>
113464         * modules/ssize_t (Include): Add <sys/types.h>.
113466 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
113468         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
113469         it's not portable and it doesn't work with cross-compiles.
113470         Problem reported by Bruno Haible.  Fix missing-$ typo in
113471         'test "gl_cv_ignore_unused_libraries" ...' that prevented
113472         -zignore from being used with Sun's C compiler.
113474 2006-01-12  Simon Josefsson  <jas@extundo.com>
113476         * lib/base64.c: Fix warning, reported by Bruno Haible
113477         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
113479 2006-01-12  Bruno Haible  <bruno@clisp.org>
113481         * modules/ldd: New file.
113482         * build-aux/ldd.sh.in: New file.
113483         * MODULES.html.sh (Support for building libraries and executables): Add
113484         ldd.
113486 2006-01-12  Bruno Haible  <bruno@clisp.org>
113488         * m4/ldd.m4: New file.
113490 2006-01-12  Bruno Haible  <bruno@clisp.org>
113492         * gnulib-tool (func_import, func_create_testdir): Don't go into an
113493         endless loop while replacing $auxdir with build-aux.
113495 2006-01-11  Simon Josefsson  <jas@extundo.com>
113497         * lib/stdint_.h (SIZE_MAX): Add missing (.
113499 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
113501         Sync from coreutils.
113502         * lib/md5.c: Fix commentary typos.
113503         (alignof, UNALIGNED_P): No need for a GCC-specific version.
113504         * lib/md5.h (__attribute__): Remove; unused.
113505         * lib/sha1.c: Fix commentary to match md5 better.
113506         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
113507         so that we don't need to worry about alignment.  All uses changed.
113508         This merges the 2005-10-28 md5 change into sha1.
113510 2006-01-11  Jim Meyering  <jim@meyering.net>
113512         Sync from coreutils.
113513         * lib/md5.c (OP): Fix spacing.
113515 2006-01-11  Bruno Haible  <bruno@clisp.org>
113517         Ensure automatic ordering between gl_LOCK and gl_ARGP.
113518         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
113519         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
113521 2006-01-11  Bruno Haible  <bruno@clisp.org>
113523         Ensure automatic ordering between gl_LOCK and gl_ARGP.
113524         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
113525         the "early" section as well.
113527 2006-01-11  Bruno Haible  <bruno@clisp.org>
113529         Avoid "ar: no archive members specified" error on MacOS X.
113530         * gnulib-tool (func_modules_add_dummy): New function.
113531         (func_import, func_create_testdir): Invoke it.
113533 2006-01-11  Bruno Haible  <bruno@clisp.org>
113535         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
113536         with $auxdir in AC_CONFIG_FILES statements.
113538 2006-01-11  Bruno Haible  <bruno@clisp.org>
113540         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113541         Initialize also noinst_HEADERS to empty.
113543 2006-01-11  Bruno Haible  <bruno@clisp.org>
113545         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
113546         variables.
113547         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
113548         autoreconf.
113550 2006-01-11  Bruno Haible  <bruno@clisp.org>
113552         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
113553         overridable by the user.
113554         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113556 2006-01-10  Simon Josefsson  <jas@extundo.com>
113558         * modules/sys_socket: New file.
113560 2006-01-10  Simon Josefsson  <jas@extundo.com>
113562         * m4/sys_socket_h.m4: New file.
113564 2006-01-10  Simon Josefsson  <jas@extundo.com>
113566         * lib/socket_.h: New file.
113568 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113570         * modules/readutmp (Maintainer): Add myself.
113572 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113574         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
113575         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
113576         People who are still concerned with buggy memcmp implementations
113577         can invoke gl_FUNC_MEMCMP themselves.
113579 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113581         * lib/regex_internal.h (BITSET_WORD_BITS):
113582         Work around a bug in 64-bit PGC (before version 6.1-2), where the
113583         preprocessor mishandles large unsigned values as if they were signed.
113584         Problem reported by Claudio Fontana in
113585         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
113587 2006-01-10  Jim Meyering  <jim@meyering.net>
113589         Avoid the double-free (first in fts_read, second in fts_close) that
113590         would occur when an `active' directory is made inaccessible (e.g.,
113591         via chmod a-x) during a traversal.
113592         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
113593         before returning.  Reproduce this failure by
113594         mkdir -p a/b; cd a; chmod a-x . b
113595         Reported by Stavros Passas.
113597         Sync from coreutils.
113598         * lib/sha1.c: Tweak grammar in a comment.
113600 2006-01-10  Jim Meyering  <jim@meyering.net>
113602         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
113603         Patch by Joerg Sonnenberger.
113605 2006-01-10  Bruno Haible  <bruno@clisp.org>
113607         * modules/readutmp: Depend on module free.
113608         * modules/strtok_r: Depend on module restrict.
113610 2006-01-10  Bruno Haible  <bruno@clisp.org>
113612         * modules/gettext (configure.ac): Add an invocation of
113613         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
113615 2006-01-10  Bruno Haible  <bruno@clisp.org>
113617         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
113618         Reported by Werner Lemberg <wl@gnu.org>.
113620 2006-01-10  Bruno Haible  <bruno@clisp.org>
113622         * lib/localcharset.c: Update from GNU gettext.
113624 2006-01-10  Bruno Haible  <bruno@clisp.org>
113626         * lib/argp.h (__const): Remove macro. Use const instead.
113627         * lib/argp-fmtstream.h (__const): Likewise.
113628         * lib/glob_.h (__const): Remove macro.
113629         * lib/glob-libc.h: Use const instead of __const.
113631 2006-01-10  Bruno Haible  <bruno@clisp.org>
113633         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
113634         variable.
113635         Needed to avoid an automake error regarding the 'gettext' module.
113637 2006-01-09  Simon Josefsson  <jas@extundo.com>
113639         * modules/inet_ntop (Depends-on): Add restrict.
113641 2006-01-09  Simon Josefsson  <jas@extundo.com>
113643         * modules/gc-rijndael-tests (License): Put under LGPL.
113645         * modules/gc-des-tests (License): Likewise.
113647         * modules/gc-arcfour-tests (License): Likewise.
113649         * modules/gc-arctwo-tests (License): Likewise.
113651         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
113653         * modules/gc-hmac-sha1-tests (Files): Likewise.
113655         * modules/gc-hmac-md5-tests (License): Likewise.
113657         * modules/gc-sha1-tests (License): Likewise.
113659         * modules/gc-md5-tests (License): Likewise.
113661         * modules/gc-md4-tests (License): Likewise.
113663         * modules/gc-md2-tests (License): Likewise.
113665         * modules/gc-tests (License): Likewise.
113667         * modules/des-tests (License): Likewise.
113669         * modules/md4-tests (License): Likewise.
113671         * modules/md2-tests (License): Likewise.
113673 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
113675         Sync from coreutils:
113677         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
113678         * modules/lib-ignore: New file.
113679         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
113680         chdir-safer.m4, lchmod.m4.
113681         * modules/openat: Add mkdirat.c, openat-priv.h.
113683 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
113685         Sync from coreutils.
113686         * m4/lib-ignore.m4: New file.
113687         * m4/lchmod.m4: New file.
113689 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
113691         Sync from coreutils.
113692         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
113693         for write access: POSIX says that must fail.
113694         * lib/fts.c (diropen): Likewise.
113695         * lib/save-cwd.c (save_cwd): Likewise.
113696         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
113697         well, for minor improvements on hosts that lack O_DIRECTORY.
113698         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
113699         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
113700         Fall back on chown if open failed with EACCES.
113702         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
113703         Report an error at compile-time if only a 1-second nominal clock
113704         resolution is found.
113706         * lib/lchmod.h: New file.
113707         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
113708         (make_dir_parents): Use lchown rather than chown, and
113709         lchmod rather than chmod.
113711         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
113712         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
113713         "proc" reported by n0dalus.
113715         * lib/mountlist.c: Include <limits.h>.
113716         (dev_from_mount_options)
113717         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
113718         New function.  It no longer assumes "dev=" has the System V meaning
113719         on Linux (since it doesn't).  It also parses "dev=" more carefully.
113720         (read_file_system_list)
113721         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
113722         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
113723         dev= in that case.
113725         * lib/posixtm.h (PDS_PRE_2000): New macro.
113726         * lib/posixtm.c (year): Arg is now syntax_bits rather than
113727         allow_century.  All usages changed.  Reject dates outside the range
113728         1969-1999 if PDS_PRE_2000 is used.
113730 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
113732         Sync from coreutils.
113733         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
113734         (Time of day items): Mention the possibility of leap seconds.
113735         Problem reported by Dr. David Alan Gilbert.
113737 2006-01-09  Jim Meyering  <jim@meyering.net>
113739         Sync from coreutils.
113741         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
113743         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
113745         * lib/modechange.c (mode_compile): Reject an invalid mode string
113746         that starts with an octal digit.  From Andreas Gruenbacher.
113748         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
113749         and dup to open_safer and dup_safer, respectively.
113750         (openat_permissive): Fix typo in comment.
113752         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
113753         "gettext.h"; either no longer needed or are guaranteed by openat.h.
113754         (_): Remove; no longer needed.
113755         (openat): Renamed from rpl_openat; no need for rpl_openat
113756         since openat.h renames openat for us.
113757         Replace most of the body with a call to openat_permissive,
113758         to avoid duplicate code.
113759         Port to (probably hypothetical) environments were mode_t is
113760         wider than int.
113761         (openat_permissive): Require mode arg, so that we can check
113762         types better.  Put it just after flags.  Change cwd failure
113763         indicator from pointer-to-bool to pointer-to-errno-value.
113764         All callers changed.
113765         Invoke openat_save_fail and/or openat_restore_fail if
113766         cwd_errno is null, so that openat can call us.
113767         (openat_permissive, fdopendir, fstatat, unlinkat):
113768         Simplify errno handling to avoid some duplicate code,
113769         as it's OK to set errno on success.
113770         * lib/openat.h: Revamp code so that function macros depend on
113771         __OPENAT_PREFIX only, not also on AT_FDCWD.
113772         (openat_ro): Remove.  Caller changed to use openat_permissive.
113773         (openat_permissive): Now a macro, if not a function.
113774         (openat_restore_fail, openat_save_fail): Now always functions,
113775         since mkdirat needs them even if __OPENAT_PREFIX is defined.
113777         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
113778         and openat.c.
113779         * lib/mkdirat.c: Include openat-priv.h.
113780         Remove definitions of macros defined therein.
113781         * lib/openat.c: Likewise.
113783         * lib/mkdirat.c (mkdirat): New file and function.
113784         * lib/openat.h (mkdirat): Declare.
113786         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
113788         * lib/openat.h (openat_permissive): Declare.
113789         (openat_ro): Define.
113791         * lib/openat.c (EXPECTED_ERRNO): New macro.
113792         (openat_permissive): New function -- used in remove.c rewrite.
113793         (all functions): Set errno just before returning, only if there
113794         was an actual failure.
113795         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
113797         Emulate openat-family functions using Linux's procfs, if possible.
113798         Idea and some code based on Ulrich Drepper's glibc changes.
113800         * lib/openat.c: (BUILD_PROC_NAME): New macro.
113801         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
113802         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
113803         before falling back on save_cwd and restore_cwd.
113804         (fdopendir, fstatat, unlinkat): Likewise.
113806         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
113807         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
113809         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
113810         as second argument to va_arg.  Otherwise, some versions of gcc
113811         warn that `if this code is reached, the program will abort'.
113813 2006-01-09  Jim Meyering  <jim@meyering.net>
113815         Sync from coreutils.
113816         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
113817         Require openat-priv.h.
113819 2006-01-09  Bruno Haible  <bruno@clisp.org>
113821         * modules/strnlen (Include): Use strnlen.h.
113823 2006-01-09  Bruno Haible  <bruno@clisp.org>
113825         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
113827 2006-01-09  Bruno Haible  <bruno@clisp.org>
113829         * lib/sysexit_.h (EX_OK): New macro.
113830         Suggested by Martin Lambers <marlam@marlam.de>.
113832 2006-01-09  Bruno Haible  <bruno@clisp.org>
113834         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
113835         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
113837 2006-01-09  Bruno Haible  <bruno@clisp.org>
113839         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
113840         numbers.
113842 2006-01-09  Bruno Haible  <bruno@clisp.org>
113844         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
113845         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
113846         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
113847         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
113849 2006-01-09  Bruno Haible  <bruno@clisp.org>
113851         * build-aux/javacomp.sh.in: New file, moved from lib/.
113852         * modules/javacomp-script (Files): Update.
113853         (configure.ac): Add AC_CONFIG_FILES invocation.
113854         (EXTRA_DIST): Remove variable.
113856         * build-aux/javaexec.sh.in: New file, moved from lib/.
113857         * modules/javaexec (Files): Update.
113858         (configure.ac): Add AC_CONFIG_FILES invocation.
113859         (EXTRA_DIST): Remove javaexec.sh.in.
113861         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
113862         * modules/csharpcomp-script (Files): Update.
113863         (configure.ac): Add AC_CONFIG_FILES invocation.
113864         (EXTRA_DIST): Remove variable.
113866         * build-aux/csharpexec.sh.in: New file, moved from lib/.
113867         * modules/csharpexec (Files): Update.
113868         (configure.ac): Add AC_CONFIG_FILES invocation.
113869         (EXTRA_DIST): Remove csharpexec.sh.in.
113871 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
113873         Sync from coreutils.
113875         Add POSIX ACL support
113876         * lib/acl.h (copy_acl, set_acl): Add declarations.
113877         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
113878         systems other than Linux.
113879         (chmod_or_fchmod): New function: use fchmod when possible,
113880         and chmod otherwise.
113881         (file_has_acl): Add a POSIX ACL implementation, with a
113882         Linux-specific subcase.
113883         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
113884         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
113885         acls are unsupported.
113886         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
113887         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
113888         are unsupported.
113890 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
113892         Sync from coreutils.
113893         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
113895 2006-01-07  Bruno Haible  <bruno@clisp.org>
113897         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
113898         gl_EARLY.
113900 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
113902         * lib/strftime.c (tzname): Don't declare if it is already #defined.
113903         Problem reported for Mingw by Mark Junker.
113905 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
113907         * README: Gnulib normally doesn't generate a tarball.
113909 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
113911         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
113912         long int, not int, for nanosecond counts, so that people who are
113913         used to POSIX struct timespec won't be surprised.  Reported by Jim
113914         Meyering.
113916 2005-12-28  Bruno Haible  <bruno@clisp.org>
113918         * build-aux/config.rpath: Update from GNU gettext.
113920 2005-12-16  Jim Meyering  <jim@meyering.net>
113922         * modules/fprintftime: New module.
113923         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
113925 2005-12-16  Jim Meyering  <jim@meyering.net>
113927         * m4/fprintftime.m4: New file.
113929 2005-12-16  Jim Meyering  <jim@meyering.net>
113931         * lib/fprintftime.c, lib/fprintftime.h: New files.
113933 2005-12-15  Simon Josefsson  <jas@extundo.com>
113935         * modules/socklen (configure.ac): Fix M4 macro name, to align with
113936         new m4/socklen.m4.
113938 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
113940         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
113941         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
113943 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
113945         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
113946         * lib/argp-help.c (fill_in_uparams): Check if the constructed
113947         struct uparams is valid. Fall back to the default values if it is
113948         not.
113950 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
113952         * modules/argp (Files): Add argp-pin.c
113953         (Depends-on): dirname
113954         (lib_SOURCES): Add argp-pin.c
113956 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
113958         * m4/argp.m4:  Check if program_invocation_name and
113959         program_invocation_short_name are declared and define appropriate
113960         macros if they are not.
113962 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
113964         * lib/argp-help.c (__argp_base_name): New function
113965         (__argp_short_program_name): Rewrite using __argp_base_name
113966         * lib/argp-namefrob.h: Define program_invocation_name and
113967         program_invocation_short_name if requested
113968         (__argp_base_name): Add prototype
113969         * lib/argp-parse.c (argp_def): Use gettext wrappers
113970         (argp_default_parser): Use __argp_base_name
113971         * lib/argp-pin.c: New file. Defines program_invocation_name and
113972         program_invocation_short_name on systems that lack them.
113974 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
113976         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
113977         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
113978         porting problem reported by Georg Schwarz in
113979         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
113981 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
113983         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
113984         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
113985         porting problem reported by Georg Schwarz in
113986         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
113988 2005-12-05  Bruno Haible  <bruno@clisp.org>
113990         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
113991         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
113992         Reported by Mark Junker <mjscod@gmx.de>.
113994 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
113996         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
113997         Use implementation from Albert Chin, with some
113998         comments/corrections by Stepan Kasal and myself.
114000 2005-12-02  Bruno Haible  <bruno@clisp.org>
114002         * gnulib-tool (func_import): Accept GPLed build tool modules when
114003         --lgpl is given.
114004         * modules/csharpcomp-script: New file.
114005         * modules/csharpcomp: Depend on it.
114006         * modules/javacomp-script: New file.
114007         * modules/javacomp: Depend on it.
114008         Suggested by Simon Josefsson.
114010 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
114012         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
114013         statement, to work around an HP-UX 10.20 compiler bug reported by
114014         Peter O'Gorman.
114016 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114018         * modules/savedir (Depends-on): Add openat.
114020 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114022         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
114023         (uintmax_t) [defined uintmax_t]: Do not declare.
114024         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
114025         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
114026         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
114027         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
114028         sake of portability to weird hosts that C allows (though we don't
114029         know of any practical examples).
114031         * lib/savedir.h (fdsavedir): New decl.
114032         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
114033         contains most of the former guts of savedir.
114034         (savedir): Use savedirstream.
114035         Include "openat.h".
114037 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
114039         * modules/obstack (Files): Add m4/ulonglong.m4.
114040         Problem reported by Davide Angelocola.
114042 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
114044         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
114045         coreutils no longer futzes with rounding modes.
114047 2005-11-14  Jim Meyering  <jim@meyering.net>
114049         * lib/mkstemp-safer.c: Include <config.h>, required for possible
114050         replacement of mkstemp.
114052 2005-11-10  Simon Josefsson  <jas@extundo.com>
114054         * lib/readline.c: Remove EOL.
114056 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114058         * modules/gethrxtime (Depends-on): Add gettime.
114060 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114062         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
114063         or gettimeofday; no longer needed.
114065 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114067         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
114068         time business.
114069         (gethrxtime) [! (HAVE_NANOUPTIME
114070         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
114071         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
114072         our own approximation.
114074 2005-11-08  Eric Blake  <ebb9@byu.net>
114076         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114078 2005-11-08  Eric Blake  <ebb9@byu.net>
114080         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114082 2005-11-04  Bruno Haible  <bruno@clisp.org>
114084         * gnulib-tool: Implement --update mode.
114086 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114088         Fix porting problem reported by Theodoros V. Kalamatianos.
114089         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
114090         Don't assume that futimes failing means we must fail.
114092 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114094         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
114095         variables to suggest the intended function of the PATH_MAX check.
114097 2005-10-30  Kean Johnston  <jkj@sco.com>
114099         Trivial changes to support SCO systems.
114100         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
114101         as PATH_MAX.
114102         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
114103         where __ptr is null when no I/O is pending.
114105 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
114107         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
114108         leave errno alone.  Problem reported by Dmitry V. Levin.
114110 2005-10-28  Simon Josefsson  <jas@extundo.com>
114112         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
114113         Test more.
114115         * tests/test-gc-md2.c, tests/test-md2.c: New files.
114117         * modules/md2, modules/md2-tests: New files.
114119 2005-10-28  Simon Josefsson  <jas@extundo.com>
114121         * m4/inet_ntop.m4: More tests.
114123         * m4/gc-md2.m4, md2.m4: New file.
114125 2005-10-28  Simon Josefsson  <jas@extundo.com>
114127         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
114128         "restrict" keywords, as per POSIX.  Protect the function
114129         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
114130         Don't use K&R prototypes.  Check the sprintf return values.
114131         Re-define EAFNOSUPPORT if not present.  Indent.
114133         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
114134         suggested by Bruno Haible <bruno@clisp.org>.
114136         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
114138         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
114140         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
114141         libgcrypt).
114143         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
114145         * lib/md2.h, lib/md2.c: New files.
114147 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
114149         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
114150         errno alone.  Problem reported by Frederic Jolliton.
114152 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
114154         * modules/verify (License): Change from GPL to LGPL.  This is a
114155         tiny module and there are apparently near-equivalents that are
114156         under the BSD license.
114158 2005-10-24  Simon Josefsson  <jas@extundo.com>
114160         * modules/sha1: Relicense to LGPL.
114162 2005-10-24  Simon Josefsson  <jas@extundo.com>
114164         * lib/md4.h: Shrink buffer size, now that we changed the type.
114166 2005-10-23  Simon Josefsson  <jas@extundo.com>
114168         * gnulib-tool (func_import): Fix --tests-base.
114170 2005-10-22  Simon Josefsson  <jas@extundo.com>
114172         * modules/arcfour (Depends-on): Need stdint.
114174 2005-10-22  Simon Josefsson  <jas@extundo.com>
114176         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
114177         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
114179 2005-10-22  Simon Josefsson  <jas@extundo.com>
114181         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
114182         suggested by Bruno Haible <bruno@clisp.org>.
114184 2005-10-22  Simon Josefsson  <jas@extundo.com>
114186         * lib/crc.h: Include stddef.h, for size_t.
114188 2005-10-22  Simon Josefsson  <jas@extundo.com>
114190         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
114191         arcfour_context struct (simplify test vector testing in GNU
114192         Shishi).
114194 2005-10-21  Simon Josefsson  <jas@extundo.com>
114196         * modules/des, modules/des-tests: New files.
114198         * modules/gc-des, modules/gc-des-tests: New files.
114200         * tests/test-des.c, tests/test-gc-des.c: New file.
114202 2005-10-21  Simon Josefsson  <jas@extundo.com>
114204         * modules/arctwo, modules/arctwo-tests: New files.
114206         * tests/test-arctwo.c: New file.
114208         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
114210         * tests/test-gc-arctwo.c: New file.
114212 2005-10-21  Simon Josefsson  <jas@extundo.com>
114214         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
114215         Bruno Haible <bruno@clisp.org>.
114217         * m4/gc-des.m4: New file.
114219 2005-10-21  Simon Josefsson  <jas@extundo.com>
114221         * m4/arctwo.m4: New file.
114223         * m4/gc-arctwo.m4: New file.
114225 2005-10-21  Simon Josefsson  <jas@extundo.com>
114227         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
114228         block.
114230 2005-10-21  Simon Josefsson  <jas@extundo.com>
114232         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
114233         <bruno@clisp.org>.
114235         * lib/hmac-sha1.c (hmac_sha1): Likewise.
114237         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
114238         Bruno Haible <bruno@clisp.org>.
114240         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
114241         <bruno@clisp.org>.
114243 2005-10-21  Simon Josefsson  <jas@extundo.com>
114245         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
114247 2005-10-21  Simon Josefsson  <jas@extundo.com>
114249         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
114251 2005-10-21  Simon Josefsson  <jas@extundo.com>
114253         * lib/des.h, lib/des.c: New files.
114255         * lib/gc-gnulib.c: Support DES.c
114257 2005-10-21  Simon Josefsson  <jas@extundo.com>
114259         * lib/arctwo.h, lib/arctwo.c: New files.
114261         * lib/gc-gnulib.c: Support ARCTWO.
114263 2005-10-21  Simon Josefsson  <jas@extundo.com>
114265         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
114266         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114268 2005-10-21  Simon Josefsson  <jas@extundo.com>
114270         * gnulib-tool (func_import, func_create_testdir): Define automake
114271         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
114272         Makefile.am snippet),
114273         suggested by Bruno Haible <bruno@clisp.org>.
114275         * modules/gc (Makefile.am): Use it.
114277 2005-10-21  Bruno Haible  <bruno@clisp.org>
114279         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
114280         patch.
114282 2005-10-19  Simon Josefsson  <jas@extundo.com>
114284         * tests/test-gc-rijndael.c: New file.
114286         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
114288 2005-10-19  Simon Josefsson  <jas@extundo.com>
114290         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
114291         interface too.
114293 2005-10-19  Simon Josefsson  <jas@extundo.com>
114295         * tests/test-gc-arcfour.c: New file.
114297         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
114299 2005-10-19  Simon Josefsson  <jas@extundo.com>
114301         * modules/gc-md4, modules/gc-md4-tests: New file.
114303         * tests/test-gc-md4.c: New file.
114305 2005-10-19  Simon Josefsson  <jas@extundo.com>
114307         * m4/gc-md4.m4: New file.
114309 2005-10-19  Simon Josefsson  <jas@extundo.com>
114311         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
114312         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
114313         <kasal@ucw.cz>.
114315 2005-10-19  Simon Josefsson  <jas@extundo.com>
114317         * m4/gc-arcfour.m4: New file.
114319         * m4/gc-rijndael.m4: New file.
114321 2005-10-19  Simon Josefsson  <jas@extundo.com>
114323         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
114325 2005-10-19  Simon Josefsson  <jas@extundo.com>
114327         * lib/gc-gnulib.c: Support ARCFOUR.
114329 2005-10-19  Simon Josefsson  <jas@extundo.com>
114331         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
114332         support.
114334         * lib/gc.h: Add ECB enum type.
114336         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
114338 2005-10-18  Simon Josefsson  <jas@extundo.com>
114340         * tests/test-md5.c: New file.
114342         * modules/md5-tests: New file.
114344 2005-10-18  Simon Josefsson  <jas@extundo.com>
114346         * tests/test-md4.c: New file.
114348         * modules/md4, modules/md4-tests: New files.
114350 2005-10-18  Simon Josefsson  <jas@extundo.com>
114352         * m4/md4.m4: New file.
114354 2005-10-18  Simon Josefsson  <jas@extundo.com>
114356         * lib/md4.h, lib/md4.c: New files, based on md5.?.
114358 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
114360         * gnulib-tool (func_create_testdir): Omit the second check whether
114361         BUILT_SOURCES in nonempty.
114363 2005-10-17  Simon Josefsson  <jas@extundo.com>
114365         * tests/test-rijndael.c: New file.
114367 2005-10-17  Simon Josefsson  <jas@extundo.com>
114369         * modules/sha1: Depend on stdint instead of md5.
114371         * modules/md5: Depend on stdint, remove uint32_t.
114373 2005-10-17  Simon Josefsson  <jas@extundo.com>
114375         * modules/gc-sha1-tests: New file.
114377         * tests/test-gc-sha1.c: New file.
114379 2005-10-17  Simon Josefsson  <jas@extundo.com>
114381         * m4/md5.m4: Remove call to uint32_t.m4.
114383 2005-10-17  Simon Josefsson  <jas@extundo.com>
114385         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
114387         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
114388         md5.h.
114390         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
114392         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
114394 2005-10-17  Simon Josefsson  <jas@extundo.com>
114396         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
114398 2005-10-17  Simon Josefsson  <jas@extundo.com>
114400         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
114402 2005-10-17  Simon Josefsson  <jas@extundo.com>
114404         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
114406         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
114408 2005-10-17  Bruno Haible  <bruno@clisp.org>
114410         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
114411         that it can also be used in a test.
114413 2005-10-16  Bruno Haible  <bruno@clisp.org>
114415         * gnulib-tool (func_emit_tests_Makefile_am): Also define
114416         TESTS_ENVIRONMENT, so that individual tests can augment it.
114418         * gnulib-tool (func_create_testdir): Use an intermediate target for
114419         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
114420         macros, like $(ALLOCA_H), which cannot be passed through the command
114421         line.
114423 2005-10-15  Simon Josefsson  <jas@extundo.com>
114425         * modules/rijndael-tests: New file.
114427         * modules/rijndael: New file.
114429 2005-10-15  Simon Josefsson  <jas@extundo.com>
114431         * m4/rijndael.m4: New file.
114433 2005-10-15  Simon Josefsson  <jas@extundo.com>
114435         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
114437         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
114439 2005-10-14  Simon Josefsson  <jas@extundo.com>
114441         * tests/test-arcfour.c: New file.
114443         * modules/arcfour, modules/arcfour-tests: New files.
114445 2005-10-14  Simon Josefsson  <jas@extundo.com>
114447         * m4/arcfour.m4: New file.
114449 2005-10-14  Simon Josefsson  <jas@extundo.com>
114451         * lib/arcfour.h, lib/arcfour.c: New files.
114453 2005-10-14  Roland McGrath  <roland@redhat.com>
114455         Import from libc.  [BZ #1331]
114456         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
114457         macro argument.
114458         Reported by Matej Vela <vela@debian.org>.
114460 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114462         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
114463         include <wchar.h>; no longer needed.
114465 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114467         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
114469 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
114470         and  Ulrich Drepper  <drepper@redhat.com>
114472         Import from libc.
114473         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
114474         instead of inline stream orientation test and two separate
114475         function calls.  Pay no attention to USE_IN_LIBIO.
114477 2005-10-13  Simon Josefsson  <jas@extundo.com>
114479         * modules/gc-hmac-md5-tests: New file.
114481         * tests/test-gc-hmac-sha1.c: New file.
114483         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
114485         * modules/gc-hmac-md5-tests: New file.
114487         * tests/test-gc-md5.c: New file.
114489         * modules/gc-md5-tests: New file.
114491 2005-10-13  Simon Josefsson  <jas@extundo.com>
114493         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
114494         Move memory allocation outside of loop.
114496 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
114498         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
114499         intermediate directory is in a read-only file system.  Problem
114500         reported by Eric Blake.
114502 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
114504         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
114506 2005-10-12  Simon Josefsson  <jas@extundo.com>
114508         * tests/test-hmac-sha1.c: New file.
114510         * modules/hmac-sha1-tests: New file.
114512         * modules/hmac-sha1: New file.
114514 2005-10-12  Simon Josefsson  <jas@extundo.com>
114516         * modules/gc-sha1: New file.
114518 2005-10-12  Simon Josefsson  <jas@extundo.com>
114520         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
114522         * tests/test-gc-pbkdf2-sha1.c: New file.
114524 2005-10-12  Simon Josefsson  <jas@extundo.com>
114526         * modules/gc-md5, modules/gc-hmac-md5: New files.
114528         * modules/gc (Files): Remove md5, memxor and hmac files.
114530 2005-10-12  Simon Josefsson  <jas@extundo.com>
114532         * m4/gc-pbkdf2-sha1.m4: New file.
114534         * m4/gc-hmac-sha1.m4: New file.
114536         * m4/gc-sha1: New file.
114538         * m4/hmac-sha1.m4: New file.
114540 2005-10-12  Simon Josefsson  <jas@extundo.com>
114542         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
114544         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
114546 2005-10-12  Simon Josefsson  <jas@extundo.com>
114548         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
114549         suggested by Bruno Haible <bruno@clisp.org>.
114551 2005-10-12  Simon Josefsson  <jas@extundo.com>
114553         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
114555 2005-10-12  Simon Josefsson  <jas@extundo.com>
114557         * lib/gc-pbkdf2-sha1.c: New file.
114559         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
114561 2005-10-12  Simon Josefsson  <jas@extundo.com>
114563         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
114565         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
114567 2005-10-12  Simon Josefsson  <jas@extundo.com>
114569         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
114570         GC_USE_HMAC_MD5, respectively.
114572         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
114573         (gc_md5): Fix typo.
114575         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
114577         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
114579         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
114581 2005-10-12  Bruno Haible  <bruno@clisp.org>
114583         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
114584         Reported by Stepan Kasal <kasal@ucw.cz>.
114586 2005-10-11  Simon Josefsson  <jas@extundo.com>
114588         * tests/test-crc.c: New file.
114590         * modules/crc, modules/crc-tests: New files.
114592 2005-10-11  Simon Josefsson  <jas@extundo.com>
114594         * m4/crc.m4: New file.
114596 2005-10-11  Simon Josefsson  <jas@extundo.com>
114598         * lib/gc.h: Add gc_hash and gc_hash_buffer.
114600         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
114602         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
114604 2005-10-11  Simon Josefsson  <jas@extundo.com>
114606         * lib/crc.h, lib/crc.c: New files.
114608         * lib/gc.h (gc_hash_buffer): Add doc.
114610 2005-10-11  Bruno Haible  <bruno@clisp.org>
114612         * modules/c-strcasestr: New file.
114613         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
114615 2005-10-11  Bruno Haible  <bruno@clisp.org>
114617         * modules/c-strcase: New file.
114618         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
114620 2005-10-11  Bruno Haible  <bruno@clisp.org>
114622         * lib/strcasecmp.c: Include limits.h.
114623         (strcasecmp): Avoid integer overflow on exotic platforms.
114624         * lib/strncasecmp.c: Include limits.h.
114625         (strncasecmp): Avoid integer overflow on exotic platforms.
114626         Reported by Paul Eggert.
114628 2005-10-11  Bruno Haible  <bruno@clisp.org>
114630         * lib/c-strcasestr.h: New file, from GNU gettext.
114631         * lib/c-strcasestr.c: New file, from GNU gettext.
114633 2005-10-11  Bruno Haible  <bruno@clisp.org>
114635         * lib/c-strcase.h: New file, from GNU gettext.
114636         * lib/c-strcasecmp.c: New file, from GNU gettext.
114637         * lib/c-strncasecmp.c: New file, from GNU gettext.
114639 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
114641         * modules/mempcpy (License): GPL -> LGPL.
114642         * modules/strchrnul (License): Likewise.
114643         * modules/sysexits (License): Likewise.
114645 2005-10-08  Simon Josefsson  <jas@extundo.com>
114647         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
114649 2005-10-07  Simon Josefsson  <jas@extundo.com>
114651         * m4/memxor.m4: Remove gl_C_RESTRICT call.
114653 2005-10-06  Simon Josefsson  <jas@extundo.com>
114655         * tests/test-hmac-md5.c: New file.
114657         * modules/hmac-md5-tests: New file.
114659         * modules/hmac-md5: New file.
114661 2005-10-06  Simon Josefsson  <jas@extundo.com>
114663         * m4/hmac-md5.m4: New file.
114665         * m4/memxor.m4: Require gl_C_RESTRICT.
114667 2005-10-06  Simon Josefsson  <jas@extundo.com>
114669         * lib/memxor.c (memxor): Avoid casts and warnings.
114671 2005-10-06  Simon Josefsson  <jas@extundo.com>
114673         * lib/hmac-md5.c: New file.
114675         * lib/hmac.h: New file.
114677 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
114679         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
114680         promotes to int, not unsigned int, to catch the AIX 5.3
114681         compiler bug.
114683 2005-10-05  Simon Josefsson  <jas@extundo.com>
114685         * modules/memxor: New file.
114687         * modules/iconv (Files): Move config.rpath to havelib, it is used
114688         there.
114690         * modules/havelib (Files): Add config.rpath.
114692 2005-10-05  Simon Josefsson  <jas@extundo.com>
114694         * m4/memxor.m4: New file.
114696 2005-10-05  Simon Josefsson  <jas@extundo.com>
114698         * lib/memxor.c (memxor): Fix compiler error.
114700         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
114701         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
114703         * lib/memxor.h, lib/memxor.c: New files.
114705         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
114706         we assume all systems have it, suggested by Jim Meyering
114707         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
114708         any systems lack sys/socket.h; mingw32 is known to lack it, but we
114709         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
114710         same reasons.
114712 2005-10-05  Simon Josefsson  <jas@extundo.com>
114714         * config/srclist.txt: Add glibc bug 1423 for md5.h.
114716 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
114718         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
114719         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
114720         needed, since the source code now assumes these .h files.
114722 2005-10-05  Derek Price  <derek@ximbiot.com>
114724         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
114726 2005-10-05  Bruno Haible  <bruno@clisp.org>
114728         * modules/stdint (License): Change to LGPL.
114730 2005-10-04  Simon Josefsson  <jas@extundo.com>
114732         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
114733         D. Baushke" <mdb@gnu.org>.
114735 2005-10-04  Bruno Haible  <bruno@clisp.org>
114737         * lib/verify.h (verify_true): Provide alternative definition for C++.
114739 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
114741         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
114742         (SSIZE_MAX): New macro, if not already defined.
114743         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
114744         than 2 GiB.
114746 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
114748         Sync from coreutils.
114749         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
114750         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
114751         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
114752         ULLONG_MAX doesn't work with 2.7.2.1.
114754 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
114756         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
114757         From Ben Pfaff.
114759         * modules/exclude (Depends-on): Depend on verify.
114760         * modules/strtoimax (Depends-on): Likewise.
114761         * modules/utimecmp (Depends-on): Likewise.
114763 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
114765         * lib/exclude.c: Include verify.h.
114766         (verify): Remove.  All callers changed to use verify.h's version.
114767         * lib/strtoimax.c: Likewise.
114768         * lib/utimecmp.c: Likewis.e
114770         Sync from coreutils.
114771         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
114772         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
114773         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
114774         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
114775         bother returning ENOSYS if settimeofday or stime fails; just let
114776         them return whatever errno they want to return.
114777         * lib/utimens.c: Include unistd.h, for dup2.
114778         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
114779         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
114781 2005-10-02  Jim Meyering  <jim@meyering.net>
114783         Sync from coreutils.
114784         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
114785         from glibc-2.2.5 that fails for read-only files.
114787 2005-10-02  Jim Meyering  <jim@meyering.net>
114789         Sync from coreutils.
114790         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
114791         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
114792         `#if HAVE_CONFIG_H'.
114793         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
114794         Remove AT_FDCWD test.
114795         Do not consume the fd unless successful.
114796         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
114797         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
114798         block, so that we don't even try to compile it if settimeofday is
114799         available.  This works around a compilation failure on OSF1 V5.1,
114800         due to stime requiring a `long int*' while tv_sec is `int'.
114802 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
114804         Sync from coreutils.
114805         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
114806         against `yes', rather than just testing for nonempty.
114808 2005-10-01  Simon Josefsson  <jas@extundo.com>
114810         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
114811         and Darwin.
114813         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
114814         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
114815         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
114816         freeaddrinfo and gai_strerror are declared by the POSIX headers.
114817         Check if struct addrinfo is declared.
114819 2005-10-01  Simon Josefsson  <jas@extundo.com>
114821         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
114822         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
114823         AI_* and EAI_* definitions.  Protect function declarations.
114825 2005-10-01  Jim Meyering  <jim@meyering.net>
114827         Sync from coreutils.
114829         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
114830         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
114831         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
114832         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
114833         in the inet and nsl libraries.  Required on Solaris 5.7.
114835 2005-10-01  Jim Meyering  <jim@meyering.net>
114837         Sync from coreutils.
114838         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
114839         in the inet and nsl libraries.  Required on Solaris 5.7.
114841 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
114843         * lib/getdelim.c (getdelim): Remove unused variables.
114845 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
114847         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
114848         so that the code works even with ancient cpp.  Portability problem
114849         with GCC 2.7.2.1 reported by Thomas M.Ott.
114851 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
114853         * modules/regex (Depends-on): Add strcase.
114855         * modules/gethostname (Licence): Change from GPL to LGPL, since
114856         gethostname.c is a trivial implementation of a standard library
114857         function.
114858         * modules/poll (License): Change from GPL to LGPL, since it's
114859         derived from LGPL code.
114861 2005-09-27  Jim Meyering  <jim@meyering.net>
114863         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
114864         HAVE_CONFIG_H.
114866         * lib/intprops.h (signed_type_or_expr__): Define.
114867         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
114868         for unsigned types.
114870 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
114872         * lib/verify.h (verify_expr): Remove, replacing with:
114873         (verify_true): New macro that returns true instead of void.
114874         (verify_type__): Remove.
114875         (verify): Use verify_true rather than verify_type__.
114877 2005-09-26  Bruno Haible  <bruno@clisp.org>
114879         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
114880         is necessary.
114881         (lib_SOURCES): Remove mbchar.c.
114882         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
114883         (Files): Add m4/mbrtowc.m4.
114884         * modules/mbiter: Likewise.
114885         * modules/mbuiter: Likewise.
114887 2005-09-26  Bruno Haible  <bruno@clisp.org>
114889         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
114890         compile mbchar.c if they are not both present.
114891         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
114892         * m4/mbiter.m4 (gl_MBITER): Likewise.
114893         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
114894         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
114895         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
114897 2005-09-25  Jim Meyering  <jim@meyering.net>
114899         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
114900         also uses socklen_t.
114902 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
114904         * lib/utimens.c (ENOSYS): Define if not already defined.
114905         (futimens): Support having a null PATH if the file descriptor
114906         is nonnegative.
114908         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
114909         Remove.
114910         (__attribute): Define to empty unless GCC 3.1 or later.
114911         This works around a core dump on OpenBSD 3.4, which has GCC
114912         2.95.3, which dumps core when given __attribute__(()).  It also
114913         simplifies other tests, since we really don't want to bother with
114914         worrying about which ancient version of GCC supported what.
114915         Original problem reported by Yoann Vandoorselaere, with part of
114916         the fix suggested by Derek Price.
114918 2005-09-24  Jim Meyering  <jim@meyering.net>
114920         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
114921         so we can once again use a positive bitfield width of 1 -- now we
114922         don't have to explain why we were using a bitfield width of 2.
114924 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
114926         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
114927         and similarly for the other external symbols.  Problem reported
114928         by James Gallager.
114930         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
114931         bug reported by Jim Meyering.
114933         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
114934         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
114935         not needed, since socklen is a prerequisite module.
114937 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
114939         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
114940         Problem reported by Eric Blake.
114941         (getaddrinfo): Initialize se so that it's not garbage.
114942         Redo internal storage allocation so that it doesn't make unportable
114943         assumptions about alignment.
114944         Fix a memory leak.
114946         * lib/utimens.c (futimens): Use futimesat if available.
114947         Prefer it to futimes since it doesn't have the futimes bug.
114949         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
114950         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
114951         Instead, declare a function that returns a pointer to an array,
114952         and use verify_type__ to declare the size of the array.
114953         Problem and germ of a solution reported by Bruno Haible.
114954         (verify_type__): Use 2, not 1, for bitfield size, to avoid
114955         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
114957 2005-09-23  Jim Meyering  <jim@meyering.net>
114959         Sync from coreutils.
114960         Correct build failure (socklen_t not defined) on at least
114961         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
114962         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
114964 2005-09-23  Jim Meyering  <jim@meyering.net>
114966         * modules/getaddrinfo (Depends-on): Add socklen.
114968 2005-09-23  Bruno Haible  <bruno@clisp.org>
114970         * tests/test-verify.c: New file.
114972 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
114974         Sync from coreutils.
114976         * modules/argmatch (Depends-on): Add verify.
114977         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
114978         unistd-safer.
114979         * modules/save-cwd (Depends-on): Likewise.
114981         * modules/openat (Files): Add lib/openat-die.c.
114982         (Depends-on): Remove error, exitfail.
114983         Add dirname.
114985         * modules/verify: New file.
114986         * MODULES.html.sh (Diagnostics <assert.h>): New section,
114987         with "verify" module.
114989 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
114991         Sync from coreutils.
114993         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
114994         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
114995         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
114996         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
114997         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
114998         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
114999         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
115000         Don't bother checking for string.h, stdlib.h, unistd.h.
115001         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
115002         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
115003         module's job.
115004         * m4/jm-macros.m4 (gl_MACROS): Likewise.
115005         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
115007         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
115008         (gl_GETDATE): Use it.
115010         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
115012 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115014         Sync from coreutils.
115016         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
115017         stat-time.h.
115018         * lib/argmatch.h: Include verify.h
115019         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
115020         (ARGMATCH_ASSERT): Remove; unused.
115021         * lib/canonicalize.c: Assume STDC_HEADERS.
115022         * lib/exclude.c: Include "strcase.h".
115023         * lib/regex_internal.h [!defined _LIBC]: Likewise.
115024         * lib/getusershell.c: Include stdio--.h rather than stdio.h
115025         and stdio-safer.h.
115026         (getusershell): Call fopen, not fopen_safer.
115027         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
115028         Do not include unistd-safer.h.
115029         (save_cwd): Don't call fd_safer; no longer needed
115030         now that we include fcntl--.h.
115032         * lib/getdate.y (relative_time): New type.
115033         (RELATIVE_TIME_0): New constant.
115034         (parser_control): Use relative_time instead of doing it ourselves.
115035         (%union): Add new relative_time rel member.
115036         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
115037         Now typeless.
115038         (relunit, relunit_snumber): Now of type rel.
115039         (zone, rel, relunit, get_date): Adjust to above changes.
115041         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
115042         Do not include unistd-safer.h.
115043         (getloadavg): Don't call fd_safer; no longer needed
115044         now that we include fcntl--.h.
115046         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
115047         (make_dir_parents): Treat ENOSYS like EEXIST.
115049         Improve quality of diagnostics on restore_cwd failure.
115050         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
115051         (make_dir_parents): Last arg is now int * (for errno), not bool *.
115052         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
115053         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
115054         each time through the loop.  Do not diagnose restore_cwd failure;
115055         that is the caller's job (and perhaps the caller does not care).
115057         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
115058         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
115059         If the file already exists but is not a directory, don't bother
115060         to try to make its parents.
115061         Close potential file descriptor leak if we can't chdir("/") (!).
115062         Don't always return true if chdir($PWD) fails; return true only
115063         if the requested action was done successfully (except for the
115064         chdir($PWD)).
115065         Don't log final directory unless we actually made it.
115066         Refactor to avoid duplicate code to fix up permissions.
115067         Don't attempt to fix up parent permissions if chdir($PWD) fails.
115069         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
115070         to make it a bit faster and (I hope) clearer.
115071         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
115072         Fix bug in formats like %2N.
115074         * lib/verify.h: New file.
115076 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115078         Sync from coreutils.
115079         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
115081 2005-09-22  Jim Meyering  <jim@meyering.net>
115083         Sync from coreutils.
115085         * m4/lstat.m4 (gl_FUNC_LSTAT):
115086         Use AC_LIBSOURCES to require lstat.c and lstat.h.
115087         Remove obsolete comment.
115088         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
115089         * m4/xstrtod.m4: Likewise.
115091         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
115093 2005-09-22  Jim Meyering  <jim@meyering.net>
115095         Sync from coreutils.
115097         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
115099         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
115100         the .tm_year member, since otherwise gcc-4.0 would now warn about
115101         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
115103         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
115104         order to avoid an unsuppressible warning from gcc on 64-bit systems.
115106         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
115107         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
115108         when run in a time zone for which daylight savings time is in effect
115109         for the starting date.
115111         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
115112         stop us from restricting permissions of just-created absolute-named
115113         directories.
115114         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
115115         to restore initial working directory.
115116         * lib/mkdir-p.c (make_dir_parents): New parameter:
115117         different_working_dir, to tell caller if/when we change the working
115118         directory and are unable to return to the initial one.
115119         * lib/mkdir-p.h (make_dir_parents): Update prototype.
115120         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
115121         `return false'.  This fixes a bug introduced on 2004-07-30.
115123         * lib/openat.c (fdopendir): Be sure to close the supplied
115124         file descriptor before returning.  This makes our replacement
115125         implementation a little closer to Solaris's, where fdopendir
115126         ties the file descriptor to the returned DIR* pointer.
115127         * lib/openat.c (unlinkat): New function.
115128         * lib/openat.h (unlinkat): Add prototype.
115129         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
115130         (openat_restore_fail): Rename from openat_restore_die.
115131         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
115133         Provide an alternative to exiting immediately upon save_cwd or
115134         restore_cwd failure.  Now, an application can arrange e.g.,
115135         to perform a longjump in that case.
115136         * lib/openat.c: Include dirname.h.
115137         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
115138         (rpl_openat, fdopendir, fstatat): Call openat_save_die
115139         and openat_restore_die rather than calling error directly.
115140         Don't include "error.h" or "exitfail.h"; they're no longer needed.
115142         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
115143         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
115144         define.
115146         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
115147         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
115148                             int utc, int nanoseconds);
115149         Background:
115150         date should not have to allocate a megabyte of virtual memory to
115151         handle a format argument like +%1048575T.  When implemented with
115152         strftime, it must allocate such a buffer, use strftime to fill it
115153         in, print it, then free it.
115154         With fprintftime, it simply prints everything and exits.
115155         With no need for memory allocation, that's one fewer way to fail.
115156         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
115157         optional field width, not before, so we accept %9:z, not %:9z.
115158         (my_strftime): Be sure to use L_('x') for literals.
115160         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
115161         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
115162         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
115163         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
115164         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
115165         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
115166         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
115167         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
115168         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
115169         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
115170         * lib/xgethostname.c, lib/xreadlink.c:
115171         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
115173         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
115174         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
115175         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
115176         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
115177         and don't include <sys/file.h>).
115179 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
115181         Sync from coreutils.
115183         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
115184         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
115185         [!LDAV_DONE]: Avoid unused variable warning.
115187 2005-09-21  Bruno Haible  <bruno@clisp.org>
115189         * lib/unicodeio.h (unicode_to_mb): New declaration.
115191 2005-09-20  Derek Price  <derek@ximbiot.com>
115193         * lib/getaddrinfo.c: Don't include <netdb.h> included from
115194         getaddrinfo.h.
115196 2005-09-20  Bruno Haible  <bruno@clisp.org>
115198         * gnulib-tool: Remove trailing slashes from the values specified for
115199         --source-base, --m4-base, --tests-base, --aux-dir.
115200         Suggested by Simon Josefsson <jas@extundo.com>.
115202 2005-09-20  Bruno Haible  <bruno@clisp.org>
115204         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
115205         func_modules_to_filelist, func_import, func_create_testdir): Make all
115206         sorting results locale-independent, so that gnulib-cache.m4 doesn't
115207         change when gnulib-tool is invoked in a different locale.
115209 2005-09-19  Simon Josefsson  <jas@extundo.com>
115211         * m4/socklen.m4: Fix typo.
115213 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115215         Use a consistent style for including <config.h>.
115216         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
115217         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
115218         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
115219         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
115220         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
115221         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
115222         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
115223         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
115224         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
115225         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
115226         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
115227         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
115228         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
115229         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
115230         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
115231         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
115232         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
115233         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
115234         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
115235         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
115236         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
115237         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
115238         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
115239         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
115240         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
115241         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
115242         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
115243         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
115244         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
115245         lib/xstrtoumax.c, lib/yesno.c:
115246         Standardize inclusion of config.h.
115247         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
115248         lib/inttostr.h:  Removed inclusion of config.h from header files.
115249         * lib/inttostr.c:  Adjusted in-tree users.
115250         * lib/timespec.h: Remove superfluous warning to include config.h.
115251         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
115252         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
115253         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
115254         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
115255         config.h with HAVE_CONFIG_H.
115257 2005-09-19  Jim Meyering  <jim@meyering.net>
115259         * modules/pathmax (License): Change to LGPL.
115261 2005-09-19  Derek Price  <derek@ximbiot.com>
115263         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
115265 2005-09-19  Bruno Haible  <bruno@clisp.org>
115267         * gnulib-tool (import): Provide default for --tests-base.
115269 2005-09-19  Bruno Haible  <bruno@clisp.org>
115271         * doc/quote.texi: New file, extracted from gnulib.texi.
115272         * doc/ctime.texi: New file, extracted from gnulib.texi.
115273         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
115274         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
115275         * doc/gnulib.texi: Include them.
115277 2005-09-18  Bruno Haible  <bruno@clisp.org>
115279         Portability fix.
115280         * gnulib-tool (func_readlink): New function.
115281         (func_ln_if_changed): Use it.
115283 2005-09-18  Bruno Haible  <bruno@clisp.org>
115285         * gnulib-tool: Support --with-tests also with --import.
115286         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
115287         (func_import): Use variables $testsbase and $inctests. Emit a
115288         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
115289         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
115290         SUBDIRS += $testsdir.
115291         (func_create_testdir): Update.
115293 2005-09-18  Bruno Haible  <bruno@clisp.org>
115295         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
115296         instead of $dry_run.
115297         (func_cp_if_changed, func_mv_if_changed): Remove functions.
115298         (func_ln_if_changed): Don't handle dry-run here.
115299         (func_import): In dry-run mode, detect more precisely which actions
115300         would be performed, and don't use "...ing" verbs.
115302 2005-09-18  Bruno Haible  <bruno@clisp.org>
115304         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
115305         (func_import): Use join on two temporary files instead of three nested
115306         loops, in order to determine which files are new or old.
115308 2005-09-18  Bruno Haible  <bruno@clisp.org>
115310         * gnulib-tool (func_import): Comment out code that spits out the
115311         new files with --dry-run.
115313 2005-09-18  Bruno Haible  <bruno@clisp.org>
115315         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
115317 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115319         * lib/stat-time.h: New file.
115320         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
115321         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
115322         in a different way.
115323         (timespec_cmp): New function.
115324         * lib/utimecmp.c: Include stat-time.h.
115325         (SYSCALL_RESOLUTION): Depend on whether various struct stat
115326         members exist, not on the obsolescent ST_MTIM_NSEC.
115327         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
115329 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115331         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
115333 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115335         * MODULES.html.sh (File system functions): Add stat-time.
115336         * modules/stat-time: New file.
115337         * modules/timespec (Files): Remove m4/st_mtim.m4; this
115338         is now done in a different way, by the stat-time module.
115339         * modules/utimecmp (Depends-on): Add stat-time.
115341 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
115343         * m4/st_mtim.m4: Remove.  Superseded by...
115344         * m4/stat-time.m4: New file.
115345         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
115346         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
115348 2005-09-15  Derek Price  <derek@ximbiot.com>
115350         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
115352 2005-09-15  Derek Price  <derek@ximbiot.com>
115354         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
115355         * lib/regex_internal.c: Ditto, using this...
115356         (__GNUC_PREREQ): ...new macro.
115357         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
115358         using...
115359         (__GNUC_PREREQ): ...this new macro.
115361         * lib/strstr.h: Include string.h. Define strstr as a macro here.
115363 2005-09-15  Derek Price  <derek@ximbiot.com>
115364             Paul Eggert  <eggert@cs.ucla.edu>
115366         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
115367         changes, consolidating in...
115368         * lib/regex_internal.h: ...this file.
115370 2005-09-13  Jim Meyering  <jim@meyering.net>
115372         * lib/canon-host.c: Filter through gnu indent and reword comments
115373         slightly.
115374         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
115376 2005-09-13  Derek Price  <derek@ximbiot.com>
115378         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
115379         failure.
115380         Reported by Jim Meyering  <jim@meyering.net>.
115382 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115384         * lib/base64.c: Typo.
115385         (base64_encode): Put b64str in initialized data section.
115387 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
115389         Merge glibc and coreutils changes into gnulib, plus a few
115390         extra fixes.
115391         * lib/md5.c: Use #error rather than a string.
115392         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
115393         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
115394         (__attribute__): Define to empty for non recent-GCC.
115395         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
115396         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
115397         Renamed from their non-__ counterparts, with new macros replacing
115398         them if not _LIBC.  Add __THROW attribute.
115399         (rol): Remove.
115400         (struct md5_ctx): Align buffer if using GCC.
115401         * lib/sha1.h (struct sha1_ctx): Likewise.
115402         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
115403         The old name was backwards.
115404         (NOTSWAP): Remove; not used.
115405         (rol): New macro, moved here from md5.h.
115406         (sha1_process_block): Remove a FIXME that doesn't make sense.
115408 2005-09-12  Derek Price  <derek@ximbiot.com>
115410         Return usable errors from canon-host.
115411         * lib/canon-host.h: New file.
115412         * lib/canon-host.c (canon_host): Wrap...
115413         (canon_host_r): ...this new function, which now relies exclusively on
115414         getaddrinfo.
115415         (ch_strerror): New function.
115416         (last_cherror): New global.
115417         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
115418         interface.
115419         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
115420         void *.
115421         (freeaddrinfo): Free ai->ai_canonname when set.
115423 2005-09-12  Derek Price  <derek@ximbiot.com>
115425         Make canon-host require getaddrinfo.
115426         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
115427         AC_LIBSOURCE canon-host.h.  Call...
115428         (gl_PREREQ_CANON_HOST): ...this new function, which requires
115429         gl_GETADDRINFO.
115430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
115432 2005-09-12  Derek Price  <derek@ximbiot.com>
115434         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
115435         LGPL.
115436         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
115438 2005-09-12  Derek Price  <derek@ximbiot.com>
115440         * lib/gai_strerror.c: Include config.h when available.  Include
115441         getaddrinfo.h before other headers to test interface.
115442         Reported by Larry Jones <lawrence.jones@ugs.com>.
115444 2005-09-12  Derek Price  <derek@ximbiot.com>
115445             Paul Eggert  <eggert@cs.ucla.edu>
115447         * modules/glob (Files): Add glob-libc.h.
115449 2005-09-12  Derek Price  <derek@ximbiot.com>
115450             Paul Eggert  <eggert@cs.ucla.edu>
115452         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
115453         glob_.h, glob-libc.h.
115454         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
115456 2005-09-12  Derek Price  <derek@ximbiot.com>
115457             Paul Eggert  <eggert@cs.ucla.edu>
115459         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
115460         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
115461         protecting things that should be done only in gnulib contexts.
115462         * lib/glob_.h: New file, containing only the glob things needed for
115463         gnulib.
115464         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
115465         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
115466         (glob, globfree, glob_pattern_p): Now defined simply in terms of
115467         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
115468         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
115469         and to respect the namespace rules better.
115471 2005-09-08  Simon Josefsson  <jas@extundo.com>
115473         * modules/socklen: New file.
115475 2005-09-08  Simon Josefsson  <jas@extundo.com>
115477         * m4/socklen.m4: New file.
115479 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115481         * modules/utimens (Files): Add m4/utimbuf.m4, since
115482         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
115483         Reported by Sergey Poznyakoff.
115485 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115487         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
115488         definitions, since that's the preferred style in glibc.
115489         Fix a minor spacing issue, and update copyright notice to match
115490         glibc's.
115492 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115494         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
115496 2005-09-06  Simon Josefsson  <jas@extundo.com>
115498         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
115499         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
115501 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115503         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
115504         warning.
115506 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115508         * config/srclist.txt: Add glibc bug 1302.
115510 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
115512         Change bitset word type from unsigned int to unsigned long int,
115513         as this has better performance on typical 64-bit hosts.
115514         Port bitset code to hosts with unusual word sizes.
115515         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
115516         (build_collating_symbol):
115517         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
115518         argument is a bitset.  This is merely a style issue, but it makes
115519         it clearer that an entire array is expected.
115520         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
115521         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
115522         Port to the case where bitset_word is not the same as unsigned int.
115523         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
115524         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
115525         Likewise.
115526         * lib/regexec.c (check_dst_limits_calc_pos_1,
115527         check_subexp_matching_top):
115528         (build_trtable, group_nodes_into_DFAstates):
115529         Likewise.
115530         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
115531         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
115532         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
115533         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
115534         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
115535         * lib/regcomp.c (optimize_subexps, lower_subexp):
115536         Work even if bitset_word has holes in its bitwise representation.
115537         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
115538         * lib/regexec.c (check_dst_limits_calc_pos_1,
115539         check_subexp_matching_top):
115540         Likewise.
115541         * lib/regex_internal.c (re_string_reconstruct):
115542         Don't assume UCHAR_MAX == 255.
115543         * lib/regex_internal.h (bitset_set_all): Likewise.
115544         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
115545         All uses changed.
115546         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
115547         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
115548         All uses changed.
115549         (BITSET_WORD_MAX): New macro.
115550         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
115551         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
115552         (bitset_empty, bitset_copy):
115553         Prefer sizeof (bitset) to multiplying it out ourselves.
115554         (bitset_not_merge): Remove; unused.
115555         (bitset_contain): Return bool, not unsigned int with one bit on.
115556         All callers changed.
115557         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
115558         alignment than re_node_set; do this by defining a new internal
115559         type struct dests_alloc and using it to allocate memory.
115561 2005-09-05  Bruno Haible  <bruno@clisp.org>
115563         * gnulib-tool (func_import): Fix comparison in handling of symbolic
115564         links.
115566 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
115568         * modules/size_max (Makefile.am): Add size_max.h
115570 2005-09-04  Derek Price  <derek@ximbiot.com>
115572         * gnulib-tool (func_import): Fix reversed $symbolic logic.
115574 2005-09-03  Simon Josefsson  <jas@extundo.com>
115576         * gnulib-tool: Fix typo.
115578 2005-09-03  Simon Josefsson  <jas@extundo.com>
115580         * config/srclist.txt: Add glibc bug 1293.
115582 2005-09-03  Derek Price  <derek@ximbiot.com>
115584         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
115585         From Larry Jones <lawrence.jones@ugs.com>.
115587 2005-09-02  Simon Josefsson  <jas@extundo.com>
115589         * modules/socklen: New file.
115591 2005-09-02  Simon Josefsson  <jas@extundo.com>
115593         * modules/havelib: New module.
115595         * modules/gettext, modules/iconv, modules/lock, modules/readline:
115596         Use havelib.
115598 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
115600         Check for arithmetic overflow when calculating sizes, to prevent
115601         some buffer-overflow issues.  These patches are conservative, in the
115602         sense that when I couldn't determine whether an overflow was possible,
115603         I inserted a run-time check.
115604         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
115605         macros.
115606         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
115607         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
115608         (re_xnrealloc, re_x2nrealloc): New inline functions.
115609         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
115610         parse_bracket_exp):
115611         (build_equiv_class, build_charclass): Check for arithmetic overflow
115612         in size expression calculations.
115613         * lib/regex_internal.c (re_string_realloc_buffers):
115614         (build_wcs_upper_buffer, re_node_set_add_intersect):
115615         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
115616         (re_dfa_add_node, register_state): Likewise.
115617         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
115618         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
115619         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
115620         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
115622 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
115624         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
115625         m4/ulonglong.m4.  Problem reported by Martin Lambers.
115627 2005-09-02  Bruno Haible  <bruno@clisp.org>
115629         Support for lib vs. lib64 distinction on biarch platforms.
115630         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
115631         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
115632         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
115634 2005-09-02  Bruno Haible  <bruno@clisp.org>
115636         * gnulib-tool (import): In the other first-use case, provide defaults
115637         as well.
115639 2005-09-02  Bruno Haible  <bruno@clisp.org>
115641         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
115642         patches not yet found in the latest gettext release.
115644 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
115646         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
115647         to avoid a collision with bits/local_lim.h in glibc.
115648         All uses changed.  Problem reported by Dmitry V. Levin in
115649         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
115651         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
115652         bugs in int versus size_t comparisons.
115653         (re_string_context_at): Fix bug where the code assumed that
115654         Idx is signed.
115656         Use bool where appropriate.
115657         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
115658         All callers changed.
115659         (calc_eclosure_iter): Likewise, for ROOT arg.
115660         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
115661         (build_charclass_op): Likewise, for NON_MATCH arg.
115662         * lib/regex_internal.c (re_string_allocate, re_string_construct):
115663         (re_string_construct_common): Likewise, for ICASE arg.
115664         * lib/regexec.c (re_search_2_stub, re_search_stub):
115665         Likewise, for RET_LEN arg.
115666         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
115667         (set_regs): Likewise, for FL_BACKTRACK arg.
115668         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
115669         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
115670         (calc_eclosure_iter, parse_bracket_exp):
115671         Use bool for internal variables that are booleans.
115672         * lib/regexec.c (re_search_internal, check_matching,
115673         proceed_next_node):
115674         (set_regs, build_sifted_states, sift_states_bkref):
115675         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
115676         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
115677         (find_collation_sequence_value):
115678         Likewise.
115679         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
115680         (re_node_set_compare):
115681         Return bool, not int. All callers changed.
115682         * lib/regexec.c (check_halt_node_context, check_dst_limits):
115683         (build_trtable, check_node_accept): Likewise.
115684         * lib/regex_internal.h: Include stdbool.h.
115686         Fix bugs uncovered when converting to bool.
115687         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
115688         failure instead of charging ahead blindly.
115689         * lib/regex_internal.c (register_state): Likewise.
115690         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
115691         for freeing internal storage.
115692         (group_nodes_into_DFA_states): Use unsigned int, not int, for
115693         bitset pieces used as boolean, to avoid undefined behavior
115694         on hosts that do int overflow checking.
115696 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
115698         * config/srclist.txt: Add glibc bugs 1285-1287.
115700 2005-09-01  Jim Meyering  <jim@meyering.net>
115702         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
115703         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
115704         Require gl_STAT_MACROS, too.
115706 2005-09-01  Bruno Haible  <bruno@clisp.org>
115708         * gnulib-tool (import): In the first-use case, provide defaults.
115710 2005-09-01  Bruno Haible  <bruno@clisp.org>
115712         * gnulib-tool (func_import): Remove the .tmp files.
115714 2005-09-01  Bruno Haible  <bruno@clisp.org>
115716         * gnulib-tool (func_import): Fix handling of symbolic links.
115718 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
115720         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
115721         old glibc regex code mishandles strings longer than 2**31 bytes.
115722         This patch fixes this when the regex code is used in gnulib
115723         (i.e., outside glibc).
115725         This patch should not affect the use of the regex code inside
115726         glibc.  No doubt this problem also needs to be handled for glibc
115727         as well, but the result will be an incompatible change to the
115728         glibc ABI, and the old ABI will have to be supported too.  That
115729         can be the subject for another patch.
115731         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
115732         governing whether the rest of this patch is active.  By default,
115733         the macro is disabled and the patch has no effect.
115734         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
115735         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
115736         (struct re_pattern_buffer, re_search, re_search_2, re_match):
115737         (re_match_2, re_set_registers): Use the new types.
115738         * lib/regex_internal.h (Idx, re_hashval_t): New types.
115739         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
115740         New macros.
115741         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
115742         (re_string_context_at, bin_tree_t, re_dfastate_t):
115743         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
115744         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
115745         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
115746         (re_string_char_size_at, re_string_wchar_at):
115747         (re_string_elem_size_at):
115748         Use the new types and macros to port to 64-bit hosts.
115749         Use unsigned types for internal values, so that the code
115750         mostly works even for arrays larger than SSIZE_MAX.
115751         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
115752         (search_duplicated_node, calc_eclosure_iter, fetch_number):
115753         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
115754         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
115755         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
115756         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
115757         (calc_inveclosure, parse_dup_op, build_range_exp):
115758         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
115759         (fetch_number, create_token_tree, mark_opt_subexp):
115760         Likewise.
115761         * lib/regex_internal.c (re_string_construct_common,
115762         create_ci_newstate):
115763         (create_cd_newstate, re_string_allocate, re_string_construct):
115764         (re_string_realloc_buffers, build_wcs_upper_buffer):
115765         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
115766         (re_string_reconstruct, re_string_peek_byte_case):
115767         (re_string_fetch_byte_case, re_string_context_at):
115768         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
115769         (re_node_set_init_copy, re_node_set_add_intersect):
115770         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
115771         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
115772         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
115773         (re_acquire_state, re_acquire_state_context, register_state):
115774         Likewise.
115775         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
115776         search_cur_bkref_entry):
115777         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
115778         (re_search_internal, re_search_2_stub, re_search_stub)
115779         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
115780         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
115781         (update_cur_sifted_state, check_dst_limits):
115782         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
115783         (check_subexp_limits, sift_states_bkref, merge_state_array):
115784         (check_subexp_matching_top, get_subexp, get_subexp_sub):
115785         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
115786         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
115787         (expand_bkref_cache, check_node_accept_bytes):
115788         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
115789         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
115790         (acquire_init_state_context, check_halt_node_context):
115791         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
115792         (sift_states_backward, clean_state_log_if_needed):
115793         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
115794         (find_recover_state, transit_state_sb, transit_state_mb):
115795         (transit_state_bkref, build_trtable, match_ctx_clean):
115796         Likewise.
115797         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
115798         to work around an assumption that REG_MISSING is negative.
115800         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
115801         (seek_collating_symbol_entry) [defined _LIBC]:
115802         (lookup_collation_sequence_value) [defined _LIBC]:
115803         (build_range_exp, build_collating_symbol) [defined _LIBC]:
115804         Use prototypes rather than old-style function definitions.
115805         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
115806         (transit_state_sb) [0]:
115807         (find_collation_sequence_value) [defined _LIBC]: Likewise.
115809         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
115810         rm_eo.
115812         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
115813         (optimize_subexps, lower_subexp):
115814         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
115815         since the signed shift might overflow.  Use 1u<<31 instead.
115816         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
115817         Likewise.
115818         * lib/regexec.c (check_dst_limits_calc_pos_1,
115819         check_subexp_matching_top): Likewise.
115821         * lib/regcomp.c (optimize_subexps, lower_subexp):
115822         Use CHAR_BIT rather than 8, for clarity.
115823         * lib/regexec.c (check_dst_limits_calc_pos_1):
115824         (check_subexp_matching_top): Likewise.
115825         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
115826         have to worry about portability issues when shifting it left.
115827         Remove no-longer-needed test for table_size > 0.
115828         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
115829         in a word, as the resulting behavior is undefined.
115830         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
115831         in one case, a <= should have been an <, and in another case the
115832         whole test was missing.
115833         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
115834         the standard name CHAR_BIT.
115835         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
115836         this is not true on one's complement and signed-magnitude hosts.
115838         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
115839         next_last_offset.
115840         (struct re_dfa_t): Remove unused member states_alloc.
115841         * lib/regcomp.c (init_dfa): Don't initialize unused members.
115843 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
115845         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
115846         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
115847         and large-file glibc and in 32-bit large-file Solaris.
115849 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
115851         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
115852         lengths fit in regoff_t; this isn't true if regoff_t is the same
115853         width as size_t.
115854         * lib/regex.c (re_search_internal): 5th arg is LAST_START
115855         (= START + RANGE) instead of RANGE.  This avoids overflow
115856         problems when regoff_t is the same width as size_t.
115857         All callers changed.
115858         (re_search_2_stub): Check for overflow when adding the
115859         sizes of the two strings.
115860         (re_search_stub): Check for overflow when adding START
115861         to RANGE; if it occurs, substitute the extreme value.
115863 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
115865         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
115867 2005-08-31  Jim Meyering  <jim@meyering.net>
115869         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
115870         a pointer-to-const.
115871         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
115872         (register_state): Likewise.
115873         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
115874         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
115875         (group_nodes_into_DFAstates): Likewise.
115877 2005-08-31  Jim Meyering  <jim@meyering.net>
115879         * check-module: Add a FIXME comment.
115881 2005-08-31  Eric Blake  <ebb9@byu.net>
115883         * modules/unistd-safer (Files): Add unistd--.h.
115884         * modules/stdio-safer (Files): Add stdio--.h.
115886 2005-08-31  Derek Price  <derek@ximbiot.com>
115888         * lib/getdelim.c (getdelim): Return EOF on EOF.
115889         Reported by Larry Jones <lawrence.jones@ugs.com>.
115891 2005-08-31  Bruno Haible  <bruno@clisp.org>
115893         Avoid unnecessary diffs in the generated lib/Makefile.am.
115894         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
115895         the generated files.
115896         (func_import): Don't set cmd.
115898 2005-08-31  Bruno Haible  <bruno@clisp.org>
115900         * lib/strstr.c: Include <stddef.h>, for NULL.
115901         * lib/strcasestr.c: Likewise.
115902         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
115904 2005-08-31  Bruno Haible  <bruno@clisp.org>
115906         * gnulib-tool: New option --macro-prefix.
115907         (func_import): Use macro_prefix.
115908         (import): Handle option --macro-prefix.
115910 2005-08-31  Bruno Haible  <bruno@clisp.org>
115912         * gnulib-tool (import): Rename most ac_* variables to cached_*.
115913         Also use new variables cached_lgpl, cached_libtool.
115915 2005-08-31  Bruno Haible  <bruno@clisp.org>
115917         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
115918         always instantiating them.
115920 2005-08-31  Bruno Haible  <bruno@clisp.org>
115922         * gnulib-tool (func_import): Read the previous cached settings
115923         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
115924         earlier added by gnulib but are now dropped. Warn when a gnulib file
115925         overwrites a non-gnulib file.
115927 2005-08-31  Bruno Haible  <bruno@clisp.org>
115929         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
115930         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
115931         projects that don't keep autogenerated files in CVS. Put into
115932         actioncmd only the specified modules, not the transitive closure.
115934 2005-08-31  Bruno Haible  <bruno@clisp.org>
115936         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
115937         Create directories that shall be filled.
115938         (import): Don't look for gl_* macros in configure.ac. Recurse across
115939         all directories containing a gnulib-cache.m4 files, if meaningful.
115941 2005-08-31  Bruno Haible  <bruno@clisp.org>
115943         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
115944         (import): Set seen_libtool when we see gl_LIBTOOL.
115946 2005-08-31  Bruno Haible  <bruno@clisp.org>
115948         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
115949         declaration macro definitions from generated gnulib.m4.
115951 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
115953         * lib/iconvme.h: Add prototype for iconv_alloc.
115955 2005-08-29  Simon Josefsson  <jas@extundo.com>
115957         * lib/iconvme.c: Fix errno.
115959 2005-08-29  Bruno Haible  <bruno@clisp.org>
115961         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
115962         that it works when the directory contains spaces.
115964 2005-08-29  Bruno Haible  <bruno@clisp.org>
115966         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
115968 2005-08-29  Bruno Haible  <bruno@clisp.org>
115970         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
115971         Emit more advice.
115973 2005-08-29  Bruno Haible  <bruno@clisp.org>
115974         and Stepan Kasal  <kasal@ucw.cz>
115976         * check-module: If more parameters are given, check each of them
115977         separately; add more exceptions, as noted by Jim Meyering.
115978         (check_module): New procedure.
115979         (%exempt_header): Now contains all exceptions.
115981 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
115983         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
115985 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
115987         * lib/iconvme.c: Split iconv_string into iconv_alloc.
115989 2005-08-28  Bruno Haible  <bruno@clisp.org>
115991         * m4/gnulib-tool.m4: New file.
115993 2005-08-27  Jim Meyering  <jim@meyering.net>
115995         * modules/unistd-safer (Files): Add pipe-safer.c.
115996         * modules/fcntl-safer (Files): Add creat-safer.c.
115998 2005-08-27  Jim Meyering  <jim@meyering.net>
116000         * m4/stdlib-safer.m4: New file.  From coreutils.
116001         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
116002         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
116003         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
116004         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
116005         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
116007 2005-08-27  Jim Meyering  <jim@meyering.net>
116009         * lib/fopen-safer.c: Merge minor changes from coreutils.
116010         * lib/dup-safer.c: Likewise.
116011         * lib/fd-safer.c: Likewise.
116013         Merge from coreutils.
116014         * lib/stdio--.h: New file.
116015         * lib/stdlib--.h: New file.
116016         * lib/mkstemp-safer.c: New file.
116018         GNU tar needs these.
116019         * lib/pipe-safer.c: New file.
116020         * lib/creat-safer.c: New file.
116021         * lib/fcntl--.h (creat): Define to creat_safer.
116022         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
116023         * lib/unistd--.h (pipe): Define to pipe_safer.
116024         * lib/unistd-safer.h: Declare pipe_safer.
116026 2005-08-26  Simon Josefsson  <jas@extundo.com>
116028         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
116029         Haible <bruno@clisp.org>.
116031 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
116033         * lib/regex_internal.h: Remove all references to
116034         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
116035         or better.
116036         (bitset_not, bitset_merge, bitset_not_merge):
116037         (bitset_mask, re_string_allocate, re_string_construct):
116038         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
116039         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
116040         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
116041         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
116042         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116043         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116044         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
116045         (re_acquire_state_context):
116046         Remove unnecessary forward decls.
116047         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
116048         Put __attribute at function definition,
116049         now that the function decl has been removed.
116050         * lib/regex_internal.c (re_string_peek_byte_case):
116051         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
116052         Likewise.
116054 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
116056         * m4/regex.m4: Add AC_PREREQ(2.50).
116057         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
116059 2005-08-25  Simon Josefsson  <jas@extundo.com>
116061         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
116062         __fsetlocking.
116064 2005-08-25  Simon Josefsson  <jas@extundo.com>
116066         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
116067         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
116068         GLIBC specific code.
116070 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116072         Make regex safe for g++.  This fixes one real bug (an "err"
116073         that should have been "*err").  g++ problem reported by
116074         Sam Steingold.
116075         * lib/regex_internal.h (re_calloc): New macro, consistent with
116076         re_malloc etc.  All callers of calloc changed to use re_calloc.
116077         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
116078         not int.  All callers changed.
116079         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
116080         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
116081         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
116082         (find_recover_state): Change "err" to "*err"; this fixes what
116083         appears to be a real bug.
116084         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
116085         versus int.
116087 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116089         * modules/regex (Depends-on): Add malloc, since the code
116090         assumes that !malloc(0) means failure.
116092 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116094         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
116096         alloca modernization/simplification for regex.
116097         * lib/regex.c: Remove portability cruft for alloca.  This no longer
116098         needs to be at the start of the file, and can be moved into
116099         regex_internal.h and simplified.
116100         * lib/regex_internal.h: Include <alloca.h>.
116101         (__libc_use_alloca) [!defined _LIBC]: New macro.
116102         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
116103         now works outside glibc.
116105 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116107         * config/srclist.txt: Add glibc bugs 1241, 1245.
116109 2005-08-25  Jim Meyering  <jim@meyering.net>
116111         * lib/open-safer.c: Include <config.h>.
116112         Otherwise, we'd lose LARGEFILE support in any file using
116113         e.g. "fcntl--.h"
116115 2005-08-25  Bruno Haible  <bruno@clisp.org>
116117         * m4/minmax.m4: Require autoconf 2.52.
116118         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
116119         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
116120         alternatives of translit over the alphabet.
116121         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
116123 2005-08-24  Simon Josefsson  <jas@extundo.com>
116125         * tests/test-getpass.c: New file.
116127 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116129         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
116130         for GNU regex features.
116132 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116134         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
116135         * lib/regex.h (regerror): Likewise.
116137         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
116138         requires this.  (The code never needed it.)
116140         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
116141         All uses of recently-renamed identifiers changed to use the new,
116142         POSIX-compliant names.  The code will build and run just fine
116143         without these changes, but it's better to eat our own dog food
116144         and use the standard-conforming names.
116146         * lib/regex.h: Fix a multitude of POSIX name space violations.
116147         These changes have an effect only for programs that define
116148         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
116149         do not change anything for programs compiled in the normal way.
116150         Also, there is no effect on the ABI.
116152         (_REGEX_SOURCE): New macro.
116153         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
116154         defined and _GNU_SOURCE is not; this fixes a name space violation.
116156         Rename the following macros to obey POSIX requirements.
116157         The old names are still visible as macros if _REGEX_SOURCE is defined.
116158         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
116159         RE_BACKSLASH_ESCAPE_IN_LISTS.
116160         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
116161         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
116162         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
116163         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
116164         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
116165         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
116166         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
116167         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
116168         (REG_INTERVALS): renamed from RE_INTERVALS.
116169         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
116170         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
116171         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
116172         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
116173         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
116174         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
116175         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
116176         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
116177         RE_UNMATCHED_RIGHT_PAREN_ORD.
116178         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
116179         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
116180         (REG_DEBUG): renamed from RE_DEBUG.
116181         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
116182         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
116183         unusual, since we can't clash with the POSIX REG_ICASE.
116184         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
116185         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
116186         (REG_NO_SUB): renamed from RE_NO_SUB.
116187         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
116188         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
116189         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
116190         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
116191         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
116192         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
116193         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
116194         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
116195         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
116196         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
116197         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
116198         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
116199         RE_SYNTAX_POSIX_MINIMAL_BASIC.
116200         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
116201         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
116202         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
116203         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
116204         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
116205         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
116206         (REG_FIXED): Renamed from REGS_FIXED.
116207         (REG_NREGS): Renamed from RE_NREGS.
116209         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
116210         of other REG_* macros, since POSIX says the user is allowed to
116211         #undef these macros selectively.
116213         (reg_errcode_t): Update comment stating what other tables need
116214         to be consistent.
116216         Rename the following enum values to obey POSIX requirements.
116217         The old names are still visible as macros.
116218         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
116219         is not defined, since GNU is supposed to be a superset of POSIX as
116220         much as possible, and since we want reg_errcode_t to be a signed
116221         type for implementation consistency.
116222         (_REG_NOERROR): Renamed from REG_NOERROR.
116223         (_REG_NOMATCH): Renamed from REG_NOMATCH.
116224         (_REG_BADPAT): Renamed from REG_BADPAT.
116225         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
116226         (_REG_ECTYPE): Renamed from REG_ECTYPE.
116227         (_REG_EESCAPE): Renamed from REG_EESCAPE.
116228         (_REG_ESUBREG): Renamed from REG_ESUBREG.
116229         (_REG_EBRACK): Renamed from REG_EBRACK.
116230         (_REG_EPAREN): Renamed from REG_EPAREN.
116231         (_REG_EBRACE): Renamed from REG_EBRACE.
116232         (_REG_BADBR): Renamed from REG_BADBR.
116233         (_REG_ERANGE): Renamed from REG_ERANGE.
116234         (_REG_ESPACE): Renamed from REG_ESPACE.
116235         (_REG_BADRPT): Renamed from REG_BADRPT.
116236         (_REG_EEND): Renamed from REG_EEND.
116237         (_REG_ESIZE): Renamed from REG_ESIZE.
116238         (_REG_ERPAREN): Renamed from REG_ERPAREN.
116239         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
116240         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
116241         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
116242         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
116244         (_REG_RE_NAME, _REG_RM_NAME): New macros.
116245         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
116246         changed.  But support the old name if the new one is not defined
116247         and if _REGEX_SOURCE.
116249         Change the following member names in struct re_pattern_buffer.
116250         The old names are still supported if !_REGEX_SOURCE.
116251         The new names are always supported, regardless of _REGEX_SOURCE.
116252         (re_buffer): Renamed from buffer.
116253         (re_allocated): Renamed from allocated.
116254         (re_used): Renamed from used.
116255         (re_syntax): Renamed from syntax.
116256         (re_fastmap): Renamed from fastmap.
116257         (re_translate): Renamed from translate.
116258         (re_can_be_null): Renamed from can_be_null.
116259         (re_regs_allocated): Renamed from regs_allocated.
116260         (re_fastmap_accurate): Renamed from fastmap_accurate.
116261         (re_no_sub): Renamed from no_sub.
116262         (re_not_bol): Renamed from not_bol.
116263         (re_not_eol): Renamed from not_eol.
116264         (re_newline_anchor): Renamed from newline_anchor.
116266         Change the following member names in struct re_registers.
116267         The old names are still supported if !_REGEX_SOURCE.
116268         The new names are always supported, regardless of _REGEX_SOURCE.
116269         (rm_num_regs): Renamed from num_regs.
116270         (rm_start): Renamed from start.
116271         (rm_end): Renamed from end.
116273         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
116274         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
116275         Prepend __ to parameter names.
116277         Undo yesterday's changes.
116279 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116281         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
116282         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
116283         lib/regex.c.
116285 2005-08-24  Jim Meyering  <jim@meyering.net>
116287         Sync from coreutils.
116288         * m4/fcntl-safer.m4: New file.
116290         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
116291         and object files for this module.
116293 2005-08-24  Jim Meyering  <jim@meyering.net>
116295         Sync from coreutils.
116296         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
116298 2005-08-24  Jim Meyering  <jim@meyering.net>
116300         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
116301         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
116303 2005-08-24  Jim Meyering  <jim@meyering.net>
116305         * modules/fcntl-safer: New module.
116306         * modules/fts (Depends-on): Add fcntl-safer.
116307         * MODULES.html.sh (File descriptor based Input/Output):
116308         Add fcntl-safer.
116310 2005-08-24  Bruno Haible  <bruno@clisp.org>
116312         Support for unit test modules.
116313         * modules/README: Mention tests modules.
116314         * modules/TEMPLATE-TESTS: New file.
116315         * gnulib-tool: New options --extract-tests-module, --with-tests and
116316         --tests-base (unused for the moment).
116317         (testsbase, inctests): New variables.
116318         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
116319         (func_verify_module): Exclude TEMPLATE-TESTS.
116320         (func_verify_nontests_module, func_verify_tests_module): New functions.
116321         (func_get_dependencies): Add implicit dependency for tests modules.
116322         (func_get_tests_module): New function.
116323         (func_modules_transitive_closure): When --with-tests was specified,
116324         include the unit tests as well, unless explicitly avoided.
116325         (func_emit_lib_Makefile_am): Ignore the tests modules here.
116326         (func_emit_tests_Makefile_am): New function.
116327         (func_create_testdir): When --with-tests was specified, emit a
116328         tests/ directory.
116329         * MODULES.html.sh (Future developments): Update.
116331 2005-08-24  Bruno Haible  <bruno@clisp.org>
116333         * modules/tls-tests: New file.
116334         * tests/test-tls.c: New file, from GNU gettext.
116336 2005-08-24  Bruno Haible  <bruno@clisp.org>
116338         * modules/lock-tests: New file.
116339         * tests/test-lock.c: New file, from GNU gettext.
116341 2005-08-24  Bruno Haible  <bruno@clisp.org>
116343         * lib/lock.h: Add multiple inclusion guard.
116344         * lib/tls.h: Add multiple inclusion guard.
116346 2005-08-24  Bruno Haible  <bruno@clisp.org>
116348         * gnulib-tool: Add support for the --aux-dir option to
116349         --create-testdir, --create-megatestdir, --test, --megatest.
116350         (func_create_testdir, func_create_megatestdir): Optionally emit a
116351         AC_CONFIG_AUX_DIR directive.
116352         (create-testdir, create-megatestdir, test, megatest): Provide a
116353         default value for $auxdir.
116355 2005-08-24  Bruno Haible  <bruno@clisp.org>
116357         * gnulib-tool (import): Use compound statement instead of subshell
116358         where possible.
116360 2005-08-24  Bruno Haible  <bruno@clisp.org>
116362         * gnulib-tool (import): Change --aux-dir default to "build-aux".
116364 2005-08-24  Bruno Haible  <bruno@clisp.org>
116366         * gnulib-tool (func_version): Update.
116368 2005-08-24  Bruno Haible  <bruno@clisp.org>
116370         * gnulib-tool (func_import, func_create_testdir,
116371         func_create_megatestdir): Quote all autoconf macro arguments.
116373 2005-08-24  Bruno Haible  <bruno@clisp.org>
116375         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
116376         option --force, because --force causes the aclocal.m4 of each
116377         subdirectory to be newer than the corresponding config.h.in.
116379 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116381         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
116382         All contents moved to gl_REGEX.
116383         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
116384         assume that it does.
116386 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116388         * lib/regex.h (REG_NOSYS)
116389         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
116390         Define, since POSIX requires it as of 2001.
116391         (_REG_ENOSYS)
116392         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
116393         New private symbol, used to keep the enum signed in all cases.
116394         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
116395         Youngman in
116396         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
116398         * lib/regex_internal.c (re_string_skip_chars, register_state):
116399         (calc_state_hash):
116400         Remove forward decls; no longer needed now that we use prototypes.
116401         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
116402         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
116403         (clean_state_log_if_needed): Likewise.
116405 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116407         * config/srclist.txt: Add glibc bugs 1231-1233.
116409 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116411         Fix problems reported by Sam Steingold in
116412         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
116413         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
116414         assumed that reg_errcode_t is a signed type, which is not
116415         necessarily true if _XOPEN_SOURCE is not defined.
116416         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
116417         since some compilers warn about it otherwise.
116419 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116421         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
116422         (init_word_char, create_initial_state, duplicate_node_closure):
116423         (fetch_token, peek_token_bracket, build_range_exp):
116424         (build_collating_symbol): Remove forward decls; no longer needed
116425         now that we use prototypes.
116427         * lib/regcomp.c:
116428         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
116429         (re_compile_fastmap_iter, regcomp, regerror, regfree):
116430         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
116431         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
116432         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
116433         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
116434         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
116435         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
116436         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
116437         (build_range_exp, build_collating_symbol, parse_bracket_exp):
116438         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
116439         (build_charclass, build_charclass_op, fetch_number, create_tree):
116440         (create_token_tree, mark_opt_subexp, duplicate_tree):
116441         Use prototypes rather than old-style definitions.
116443         * lib/regex_internal.c:
116444         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
116445         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
116446         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116447         (re_string_reconstruct, re_string_peek_byte_case):
116448         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
116449         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116450         (re_node_set_init_copy, re_node_set_add_intersect):
116451         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116452         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116453         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116454         (re_acquire_state, re_acquire_state_context, register_state):
116455         (create_ci_newstate, create_cd_newstate, free_state):
116456         Likewise.
116457         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
116458         re_search_2):
116459         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
116460         (re_search_internal, prune_impossible_nodes):
116461         (acquire_init_state_context, check_matching, static):
116462         (check_halt_node_context, check_halt_state_context, proceed_next_node):
116463         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
116464         (update_regs, sift_states_backward, build_sifted_states):
116465         (clean_state_log_if_needed, merge_state_array):
116466         (update_cur_sifted_state, add_epsilon_src_nodes):
116467         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
116468         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
116469         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
116470         (find_recover_state, check_subexp_matching_top, transit_state_mb):
116471         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
116472         (check_arrival, check_arrival_add_next_nodes):
116473         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116474         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116475         (check_node_accept_bytes, check_node_accept, extend_buffers):
116476         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
116477         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
116478         (sift_ctx_init):
116479         Likewise.
116481         * lib/regex_internal.h:
116482         (re_string_allocate, re_string_construct, re_string_reconstruct):
116483         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
116484         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
116485         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
116486         (re_string_context_at, re_string_peek_byte_case):
116487         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
116488         is defined, since we now use prototypes always.
116490         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
116491         C89 or better.  All uses removed.
116493 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116495         * config/srclist.txt: Add glibc bugs 1220-1227.
116497 2005-08-20  Jim Meyering  <jim@meyering.net>
116499         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
116500         of unused local, dfa.
116502 2005-08-20  Bruno Haible  <bruno@clisp.org>
116504         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
116506 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116508         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
116509         (re_node_set_insert_last, re_dfa_add_node):
116510         Rename local variables to avoid GCC shadowing warnings.
116512 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116514         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
116515         [defined lint]: Suppress bogus uninitialized-variable warnings.
116517         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
116518         and let the caller return REG_ESPACE if out of space.  This
116519         removes an uninitialied-variable warning with GCC 4.0.1, and also
116520         avoids taking the address of a local variable.  All callers
116521         changed.
116523 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116525         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
116526         $LIBCSRC/posix/regexec.c.
116527         Add glibc bug 1217 for regcomp.c.
116529 2005-08-19  Jim Meyering  <jim@meyering.net>
116531         * lib/regexec.c (proceed_next_node): Redo local variables to
116532         avoid GCC shadowing warnings.
116534 2005-08-18  Bruno Haible  <bruno@clisp.org>
116536         * lib/strstr.c (strstr): Fix return value in multibyte case.
116537         * lib/strcasestr.c (strcasestr): Likewise.
116539 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
116541         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
116543 2005-08-17  Jim Meyering  <jim@meyering.net>
116545         Make the %s format (seconds since the epoch) work for a negative
116546         number and when used with a zero-padded field width, e.g. %015s.
116548         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
116549         label so that it precedes the code to set `digits'.  Otherwise,
116550         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
116551         print `00-22'.  Now, it prints `-0022', as it should.
116553 2005-08-17  Bruno Haible  <bruno@clisp.org>
116555         * modules/strstr (Files): Add m4/mbrtowc.m4.
116556         (Depends-on): Add mbuiter.
116558 2005-08-17  Bruno Haible  <bruno@clisp.org>
116560         * modules/strcasestr: New file.
116561         * MODULES.html.sh (String handling, based on ANSI C 89): Add
116562         strcasestr.
116564 2005-08-17  Bruno Haible  <bruno@clisp.org>
116566         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
116568 2005-08-17  Bruno Haible  <bruno@clisp.org>
116570         * modules/mbuiter: New file.
116571         * MODULES.html.sh (Extended multibyte and wide character utilities):
116572         Add mbuiter.
116574 2005-08-17  Bruno Haible  <bruno@clisp.org>
116576         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
116577         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
116579 2005-08-17  Bruno Haible  <bruno@clisp.org>
116581         * m4/strcasestr.m4: New file.
116583 2005-08-17  Bruno Haible  <bruno@clisp.org>
116585         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
116586         * lib/strstr.c: Completely rewritten, with multibyte locale support.
116588 2005-08-17  Bruno Haible  <bruno@clisp.org>
116590         * lib/strcasestr.h: New file.
116591         * lib/strcasestr.c: New file.
116593 2005-08-17  Bruno Haible  <bruno@clisp.org>
116595         * lib/strcasecmp.c: Use mbuiter.h.
116597 2005-08-17  Bruno Haible  <bruno@clisp.org>
116599         * lib/mbuiter.h: New file.
116601 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
116603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
116604         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
116605         and gl_GETOPT are both invoked via different paths (as happens
116606         with GNU tar CVS because it uses both argp and getopt), the former
116607         wins.
116609 2005-08-16  Bruno Haible  <bruno@clisp.org>
116611         * modules/tls: New file.
116612         * MODULES.html.sh (Multithreading): Add tls.
116614 2005-08-16  Bruno Haible  <bruno@clisp.org>
116616         * modules/strnlen1: New file.
116617         * MODULES.html.sh (String handling): Add strnlen1.
116619 2005-08-16  Bruno Haible  <bruno@clisp.org>
116621         * modules/strcase (Files): Add m4/mbrtowc.m4.
116622         (Depends-on): Add strnlen1, mbchar.
116624 2005-08-16  Bruno Haible  <bruno@clisp.org>
116626         * modules/mbiter: New file.
116627         * MODULES.html.sh (Extended multibyte and wide character utilities):
116628         Add mbiter.
116630 2005-08-16  Bruno Haible  <bruno@clisp.org>
116632         * modules/mbfile: New file.
116633         * MODULES.html.sh (Extended multibyte and wide character utilities):
116634         Add mbfile.
116636 2005-08-16  Bruno Haible  <bruno@clisp.org>
116638         * modules/mbchar: New file.
116639         * MODULES.html.sh (Extended multibyte and wide character utilities):
116640         New section.
116642 2005-08-16  Bruno Haible  <bruno@clisp.org>
116644         * m4/tls.m4: New file, from GNU gettext.
116646 2005-08-16  Bruno Haible  <bruno@clisp.org>
116648         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
116649         always.
116650         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
116652 2005-08-16  Bruno Haible  <bruno@clisp.org>
116654         * m4/mbiter.m4: New file.
116656 2005-08-16  Bruno Haible  <bruno@clisp.org>
116658         * m4/mbfile.m4: New file.
116660 2005-08-16  Bruno Haible  <bruno@clisp.org>
116662         * m4/mbchar.m4: New file.
116664 2005-08-16  Bruno Haible  <bruno@clisp.org>
116666         * lib/tls.h: New file, from GNU gettext.
116667         * lib/tls.c: New file, from GNU gettext.
116669 2005-08-16  Bruno Haible  <bruno@clisp.org>
116671         * lib/strnlen1.h: New file.
116672         * lib/strnlen1.c: New file.
116674 2005-08-16  Bruno Haible  <bruno@clisp.org>
116676         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
116677         (mbi_init): Update.
116678         (mbi_avail, mbi_advance): Let the iteration end before the terminating
116679         NUL byte, not after it.
116681 2005-08-16  Bruno Haible  <bruno@clisp.org>
116683         * lib/strcase.h (strcasecmp): Add note in comments.
116684         * lib/strncasecmp.c: Use code from strcasecmp.c.
116685         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
116686         (strcasecmp): Work correctly in multibyte locales.
116688 2005-08-16  Bruno Haible  <bruno@clisp.org>
116690         * lib/mbiter.h: New file.
116692 2005-08-16  Bruno Haible  <bruno@clisp.org>
116694         * lib/mbfile.h: New file.
116696 2005-08-16  Bruno Haible  <bruno@clisp.org>
116698         * lib/mbchar.h: New file.
116699         * lib/mbchar.c: New file.
116701 2005-08-16  Bruno Haible  <bruno@clisp.org>
116703         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
116704         the valid ones. Makes the comparison operations transitive:
116705         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
116706         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
116708 2005-08-15  Simon Josefsson  <jas@extundo.com>
116710         * modules/ssize_t (License): Change to 'unlimited'.
116712         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
116714 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
116716         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
116717         Add comments for each pending glibc patch.
116719 2005-08-15  Bruno Haible  <bruno@clisp.org>
116721         * lib/regex.h (__restrict_arr): Don't define to __restrict if
116722         __cplusplus is defined.
116724 2005-08-14  Jim Meyering  <jim@meyering.net>
116726         Sync from coreutils.
116728         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
116729         Use the hash-table-based cycle-detection code not just when
116730         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
116731         Reported by James Youngman in
116732         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
116733         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
116734         FTS_TIGHT_CYCLE_CHECK.
116735         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
116736         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
116737         once again.
116738         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
116739         * lib/fts.c (fd_safer): Remove decl.
116740         Include fcntl--.h rather than unistd-safer.h
116741         (fts_safe_changedir): Don't call fd_safer; no longer needed
116742         now that we include fcntl--.h.
116744 2005-08-12  Simon Josefsson  <jas@extundo.com>
116746         * modules/getndelim2: Use ssize_t module.
116747         * modules/getnline: Likewise.
116748         * modules/safe-read: Likewise.
116749         * modules/xreadlink: Likewise.
116751         * modules/ssize_t: New file.
116753 2005-08-12  Simon Josefsson  <jas@extundo.com>
116755         * m4/readline.m4: Look for termcap, curses or ncurses if required.
116757 2005-08-12  Simon Josefsson  <jas@extundo.com>
116759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
116760         ssize_t.
116762 2005-08-12  Simon Josefsson  <jas@extundo.com>
116764         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
116765         readline, getdelim and check_version.
116766         (Support for systems lacking ISO C 99: Sizes of integer types):
116767         Add size_max.
116769 2005-08-12  Bruno Haible  <bruno@clisp.org>
116771         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
116773 2005-08-11  Simon Josefsson  <jas@extundo.com>
116775         * modules/readline: New file.
116777         * modules/strnlen (Files): Add strnlen.h.
116779 2005-08-11  Simon Josefsson  <jas@extundo.com>
116781         * m4/readline.m4: New file.
116783 2005-08-11  Simon Josefsson  <jas@extundo.com>
116785         * lib/readline.h, readline.c: New file.
116787 2005-08-11  Simon Josefsson  <jas@extundo.com>
116789         * doc/gnulib.texi (Initial import, Finishing touches): Mention
116790         gl_AVOID.
116792 2005-08-11  Bruno Haible  <bruno@clisp.org>
116794         * lib/strnlen.h (strnlen): Change parameter name to match comment.
116796 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
116798         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
116800 2005-08-10  Simon Josefsson  <jas@extundo.com>
116802         * tests/test-iconvme.c: New file.
116804 2005-08-10  Simon Josefsson  <jas@extundo.com>
116806         * m4/strnlen.m4: New file.
116808         * m4/strndup.m4: Don't check for strnlen declaration, done in
116809         strnlen.m4.
116811 2005-08-10  Simon Josefsson  <jas@extundo.com>
116813         * lib/strndup.c: Use strnlen.h.
116815         * lib/strnlen.h: New file.
116817 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116819         * README: Typos.
116821 2005-08-02  Simon Josefsson  <jas@extundo.com>
116823         * modules/readline: New file.
116825 2005-08-02  Simon Josefsson  <jas@extundo.com>
116827         * modules/getdelim: New file.
116829         * modules/getline: Rewrite, don't use getndelim2.
116831 2005-08-02  Simon Josefsson  <jas@extundo.com>
116833         * m4/getline.m4: Separate out getdelim stuff into separate module.
116835         * m4/getdelim.m4: New file.
116837 2005-08-02  Simon Josefsson  <jas@extundo.com>
116839         * lib/getline.h, getline.c: Rewrite.
116841         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
116843 2005-07-31  Bruno Haible  <bruno@clisp.org>
116845         * lib/lock.h (gl_lock_initializer): New macro.
116846         (gl_lock_define_initialized): Use it.
116847         (gl_rwlock_initializer): New macro.
116848         (gl_rwlock_define_initialized): Use it.
116849         (gl_recursive_lock_initializer): New macro.
116850         (gl_recursive_lock_define_initialized): Use it.
116852 2005-07-30  Karl Berry  <karl@gnu.org>
116854         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
116855         Report from Ben Pfaff, regarding getopt.
116857 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
116859         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
116860         normal way.
116861         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
116862         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
116863         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
116864         (gl_GETOPT): Use the new macros.  Most of the implementation
116865         is moved to the new macros.  This is for programs like Emacs
116866         that don't want all the functionality of gl_GETOPT.
116868 2005-07-26  Bruno Haible  <bruno@clisp.org>
116870         * m4/lock.m4: Update from GNU gettext.
116872 2005-07-26  Bruno Haible  <bruno@clisp.org>
116874         * lib/lock.h: Update from GNU gettext.
116875         * lib/lock.c: Update from GNU gettext.
116877 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
116879         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
116880         obsolescent AC_TRY_RUN.  Include the default includes files, for
116881         'exit'.
116883 2005-07-24  Bruno Haible  <bruno@clisp.org>
116885         * modules/visibility: New file.
116886         * MODULES.html.sh (Misc): Add visibility.
116888 2005-07-24  Bruno Haible  <bruno@clisp.org>
116890         * m4/visibility.m4: New file.
116892 2005-07-24  Bruno Haible  <bruno@clisp.org>
116894         * doc/visibility.texi: New file.
116896 2005-07-22  Bruno Haible  <bruno@clisp.org>
116898         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
116899         $(ALLOCA_H), redundant through BUILT_SOURCES.
116900         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
116901         redundant through BUILT_SOURCES.
116902         * modules/byteswap (Makefile.am): Remove explicit dependency on
116903         $(BYTESWAP_H), redundant through BUILT_SOURCES.
116904         * modules/fnmatch (Makefile.am): Remove explicit dependency on
116905         $(FNMATCH_H), redundant through BUILT_SOURCES.
116906         * modules/getopt (Makefile.am): Remove explicit dependency on
116907         $(GETOPT_H), redundant through BUILT_SOURCES.
116908         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
116909         redundant through BUILT_SOURCES.
116910         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
116911         redundant through BUILT_SOURCES.
116912         * modules/stdbool (Makefile.am): Remove explicit dependency on
116913         $(STDBOOL_H), redundant through BUILT_SOURCES.
116914         * modules/stdint (Makefile.am): Remove explicit dependency on
116915         $(STDINT_H), redundant through BUILT_SOURCES.
116916         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
116917         Remove explicit dependency on $(SYSEXITS_H).
116918         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
116920 2005-07-18  Simon Josefsson  <jas@extundo.com>
116922         * lib/check-version.c (check_version): Accept identical versions too.
116924 2005-07-18  Bruno Haible  <bruno@clisp.org>
116926         * modules/lock: New file.
116927         * MODULES.html.sh (Multithreading): New section.
116929 2005-07-18  Bruno Haible  <bruno@clisp.org>
116931         * m4/lock.m4: New file, from GNU gettext.
116933 2005-07-18  Bruno Haible  <bruno@clisp.org>
116935         * lib/lock.h: New file, from GNU gettext.
116936         * lib/lock.c: New file, from GNU gettext.
116938 2005-07-18  Bruno Haible  <bruno@clisp.org>
116940         * lib/lock.h (gl_once_t): New type.
116941         (gl_once_define, gl_once): New macros.
116942         * lib/lock.c (fresh_once): New variable.
116943         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
116944         functions.
116946 2005-07-16  Simon Josefsson  <jas@extundo.com>
116948         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
116949         workaround, suggested by Bruno.
116951 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
116953         * modules/xalloc (Depends-on): Add xalloc-die.
116954         * modules/xvasprintf (Depends-on): Add xalloc-die.
116956 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
116958         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
116959         with a minor change.
116961 2005-07-15  Bruno Haible  <bruno@clisp.org>
116963         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
116964         When using lib/poll.c, define poll as rpl_poll.
116966 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
116968         * modules/argp (Depends-on): Remove unlocked-io.
116970 2005-07-14  Derek Price  <derek@ximbiot.com>
116972         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
116973         for glob symlink bug.
116975 2005-07-14  Bruno Haible  <bruno@clisp.org>
116977         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
116978         Instead, test for *_unlocked function declarations directly.
116980 2005-07-11  Simon Josefsson  <jas@extundo.com>
116982         * modules/size_max: New file.
116984         * modules/xsize: Depend on size_max module for size_max.m4.
116986 2005-07-11  Simon Josefsson  <jas@extundo.com>
116988         * lib/size_max.h: New file.
116990 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
116992         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
116993         copyright symbol and the year.
116994         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
116995         (version_etc_va): Use parameterized copyright notice.
116996         Reword to conform to the current GNU coding standards.
116998 2005-07-11  Karl Berry  <karl@gnu.org>
117000         * doc/gnulib.texi (Quoting): new node.
117001         (Initial import): more info, from Patrice.
117003 2005-07-11  Bruno Haible  <bruno@clisp.org>
117005         * gnulib-tool (func_usage): Document option --avoid.
117006         (Command line options): Handle --avoid.
117007         (func_acceptable): New function.
117008         (func_modules_transitive_closure): Use it.
117010 2005-07-11  Bruno Haible  <bruno@clisp.org>
117012         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
117013         Reported by Jim Meyering.
117015 2005-07-10  Bruno Haible  <bruno@clisp.org>
117017         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
117018         Needed when size_t is smaller than 'unsigned int'.
117019         Reported by Paul Eggert.
117021 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117023         * modules/argp (Depends-on): Add unlocked-io
117025 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117027         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
117028         block of defines.
117030 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
117032         * config/srclist.txt: Comment out regcomp.c, since we have a porting
117033         fix now.
117035 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
117036         and Paul Eggert  <eggert@cs.ucla.edu>
117038         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
117039         in wint_t, not wchar_t.  Remove now-unnecessary cast.
117041 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117043         * modules/regex (Files): Add lib/regex_internal.c,
117044         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
117045         (Depends-on): Add extensions.
117046         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
117048 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117050         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
117051         pathconf.
117052         * m4/same.m4 (gl_SAME): Likewise.
117053         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
117055         * m4/regex.m4: Adjust to new libc regex implementation.
117056         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
117057         all the .c and .h parts of (the new) regex.
117058         Quote the m4 stuff better.
117059         Check for RE_ICASE bug of old gnulib.
117060         Check for REG_STARTEND of recent libc.
117061         Rename local variables from jm_* to gl_*.
117062         Quote operand of "test -f".
117063         Say "recent enough" version of libc, not "version 2".
117064         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
117065         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
117066         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
117067         Remove check for btowc, isascii.
117068         Require AM_LANGINFO_CODESET.
117070 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117072         * lib/regex.c, regex.h: Sync from libc.
117073         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
117074         * lib/regexec.c:
117075         New files, synced from libc, except that regex_internal.h
117076         currently has a small porting fix.
117078 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117080         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
117081         regex_internal.c, regexec.c.
117082         Add regex_internal.h too, but as a comment, since the libc version
117083         is currently broken in gnulib mode.
117085 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
117087         Support programs like Emacs that use gnulib but not gettext.
117088         * MODULES.html.sh (Internationalization functions): Add gettext-h.
117089         * modules/gettext-h: New file.
117090         * modules/gettext (Files): Remove lib/gettext.h.
117091         (Depends-on): Add gettext-h.
117092         (Makefile.am): Remove lib_SOURCES.
117093         * modules/argmatch, modules/c-stack, modules/closeout:
117094         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
117095         * modules/execute, modules/file-type, modules/getaddrinfo:
117096         * modules/getopt, modules/human, modules/javacomp:
117097         * modules/javaexec, modules/mkdir-p, modules/obstack:
117098         * modules/openat, modules/pagealign_alloc, modules/pipe:
117099         * modules/quotearg, modules/regex, modules/rpmatch:
117100         * modules/unicodeio, modules/userspec, modules/version-etc:
117101         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
117102         * modules/xsetenv:
117103         Depend on gettext-h, not gettext.
117105 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
117107         * gnulib-tool (func_import): Add support for 'public domain' license.
117108         * modules/alloca, modules/atexit, modules/memmove:
117109         Now public domain, not GPL.
117110         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
117111         * modules/realloc, modules/strerror, modules/strtod:
117112         Now LGPL, not GPL.
117114 2005-07-05  Bruno Haible  <bruno@clisp.org>
117116         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
117117         autoconf CVS. Needed for mingw.
117119 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117121         Remove the dependency of the strftime module on the tzset module.
117122         * modules/strftime (Depends-on): Remove dependency on tzset.
117124 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117126         Remove the dependency of the strftime module on the tzset module.
117127         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
117128         gl_FUNC_TZSET_CLOBBER.
117130 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117132         Remove the dependency of the strftime module on the tzset module.
117133         * lib/strftime.c (my_strftime)
117134         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
117135         Copy the input structure, to work around some of the bug with
117136         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
117137         Solaris releases, you should also use the tzset module, but we won't
117138         require it as a dependency any more since we don't want LGPLed code
117139         to depend on GPLed code.
117141 2005-07-02  Jim Meyering  <jim@meyering.net>
117143         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
117144         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
117145         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
117146         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
117148 2005-07-02  Jim Meyering  <jim@meyering.net>
117150         * lib/backupfile.c (backup_args): Change a `0' to NULL.
117152 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
117154         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
117155         declares only 'struct timespec;' (!).
117157 2005-07-01  Jim Meyering  <jim@meyering.net>
117159         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
117160         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
117161         * lib/save-cwd.c, tempname.c:
117162         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
117163         and don't include <sys/file.h>).
117165 2005-06-29  Jim Meyering  <jim@meyering.net>
117167         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
117168         type name.  Use the variable name instead.
117169         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
117170         Likewise.
117172 2005-06-28  Simon Josefsson  <jas@extundo.com>
117174         * modules/check-version (Files): Add check-version.m4.
117176 2005-06-28  Simon Josefsson  <jas@extundo.com>
117178         * m4/check-version.m4: New file, suggested by Jim Meyering
117179         <jim@meyering.net>.
117181 2005-06-28  Simon Josefsson  <jas@extundo.com>
117183         * lib/check-version.h, lib/check-version.c: New files.
117185 2005-06-28  Simon Josefsson  <jas@extundo.com>
117187         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
117188         collision with global variable.  Better indentation.  Don't
117189         increment buffer pointer beyond buffer end.  Based on comments
117190         from Paul Eggert <eggert@cs.ucla.edu>.
117192         * lib/base64.h: Indent.
117194 2005-06-28  Simon Josefsson  <jas@extundo.com>
117196         * doc/gnulib.texi (Library version handling): New section.
117198 2005-06-28  Jim Meyering  <jim@meyering.net>
117200         * check-module (find_included_lib_files): Hard-code another
117201         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
117202         but modules/fts-lgpl (correctly) does not list those files.
117204         * modules/canonicalize (Files): Add lib/pathmax.h.
117206 2005-06-25  Simon Josefsson  <jas@extundo.com>
117208         * modules/check-version: New file.
117210 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
117212         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
117213         initializer of struct addrinfo, as an indication that we don't
117214         care how many members the structure has.
117216 2005-06-24  Derek Price  <derek@ximbiot.com>
117217         and Bruno Haible  <bruno@clisp.org>
117219         Remove stat module & update lstat.
117220         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
117221         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117222         * m4/stat.m4: Remove this file.
117224 2005-06-24  Derek Price  <derek@ximbiot.com>
117225         and Bruno Haible  <bruno@clisp.org>
117227         Remove stat module & update lstat.
117228         * lib/stat.c: Remove this file...
117229         (slash_aware_lstat): ...moving this content and its support...
117230         * lib/lstat.c (rpl_lstat): ...into here.
117231         * lib/lstat.h: New file.
117233 2005-06-24  Derek Price  <derek@ximbiot.com>
117234         and Bruno Haible  <bruno@clisp.org>
117236         Remove stat module & update lstat.
117237         * config/srclist.txt (libc sources): Remove stat.
117239 2005-06-24  Derek Price  <derek@ximbiot.com>
117240         and Bruno Haible  <bruno@clisp.org>
117242         Remove stat module & update lstat.
117243         * MODULES.html.sh (stat): Remove.
117244         * MODULES.html: Regenerated.
117245         * modules/lstat (Description): Correct function name.
117246         (Files): Add "lstat.h".
117247         (Depends-on): Remove stat, add xalloc, stat-macros.
117248         * modules/stat: Remove this file.
117249         (Include): Add "lstat.h", remove <sys/stat.h>.
117251 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
117253         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
117254         (ranged_convert): Don't save conversion in a temporary struct.
117255         This causes a warning with GCC 4.0.0, and anyway in the typical
117256         case it's not worth the extra 100 bytes or so of code.
117257         (ranged_convert, __mktime_internal): When calling a function via a
117258         pointer P, use P () rather than (*P) (), as we now assume C89 or
117259         better.
117261 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
117263         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
117264         "who -r" failed to give output.  Problem reported by Tim Waugh.
117266         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
117267         (xcalloc): Use it to avoid needless tests.
117268         Problem reported by Jim Meyering.
117270 2005-06-20  Derek Price  <derek@ximbiot.com>
117272         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
117273         unnecessary for Autoconfs > 2.59c.
117275 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117277         * lib/argp.h (__option_is_short): Check upper limit of
117278         __key. Isprint() requires its argument to have the value
117279         of an unsigned char or EOF.
117281 2005-06-16  Jim Meyering  <jim@meyering.net>
117283         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
117284         when either N or S is zero.
117286 2005-06-16  Derek Price  <derek@ximbiot.com>
117288         * m4/bison.m4: Declare YACC & YFLAGS precious.
117290 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
117292         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
117293         multibyte string or pattern, fall back on unibyte matching.
117294         Problem reported by James Youngman.
117296 2005-06-08  Bruno Haible  <bruno@clisp.org>
117298         * modules/csharpcomp: New file.
117299         * MODULES.html.sh (C#): Add csharpcomp.
117301 2005-06-08  Bruno Haible  <bruno@clisp.org>
117303         * m4/csharpcomp.m4: New file, from GNU gettext.
117305 2005-06-08  Bruno Haible  <bruno@clisp.org>
117307         * lib/csharpcomp.h: New file, from GNU gettext.
117308         * lib/csharpcomp.c: New file, from GNU gettext.
117309         * lib/csharpcomp.sh.in: New file, from GNU gettext.
117311 2005-06-08  Bruno Haible  <bruno@clisp.org>
117313         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
117314         warning on mingw.
117316 2005-06-07  Derek Price  <derek@ximbiot.com>
117318         Sync from CVS.
117319         * lib/glob_.h: Indent nested #ifdef.
117321 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117323         Sync from coreutils.
117324         Use "file name" when talking about file names, instead of "filename"
117325         or "path", as per the GNU coding standards.
117326         * lib/mkdir-p.c: Renamed from makepath.c.
117327         (make_dir_parents): Renamed from make_path.  All callers changed.
117328         * lib/mkdir-p.h: Likewise.  All includers changed.
117329         * lib/filenamecat.c: Renamed from path-concat.c.
117330         (file_name_concat): Renamed from path_concat.  All callers changed.
117331         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
117332         * lib/filenamecat.h: Likewise.  All includers changed.
117333         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
117334         in comments or local variable names.
117335         * lib/basename.c: Likewise.
117336         * lib/canonicalize.c, canonicalize.h: Likewise.
117337         * lib/dirname.c, dirname.h: Likewise.
117338         * lib/euidaccess.c: Likewise.
117339         * lib/exclude.c: Likewise
117340         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
117341         * lib/fsusage.c, fsuage.h: Likewise.
117342         * lib/fts.c, fts_.h: Likewise.
117343         * lib/getcwd.c: Likewise.
117344         * lib/getloadavg.c: Likewise.
117345         * lib/mkstemp.c: Likewise.
117346         * lib/mountlist.c, mountlist.h: Likewise.
117347         * lib/openat.c, openat.h: Likewise.
117348         * lib/readlink-stub.c: Likewise.
117349         * lib/readutmp.c, readutmp.h: Likewise.
117350         * lib/rename.c: Likewise.
117351         * lib/rmdir.c: Likewise.
117352         * lib/same.c: Likewise.
117353         * lib/savedir.c: Likewise.
117354         * lib/stripslash.c: Likewise.
117355         * lib/tempname.c: Likewise.
117356         * lib/xreadlink.c: Likewise.
117357         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
117358         All uses changed.
117359         * lib/exclude.h: Likewise.
117361         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
117362         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117363         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
117364         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117365         * lib/pathmax.h: Include <limits.h> unconditionally, since other
117366         files have been getting away with it for years (MORE/BSD 4.3
117367         is extinct now).
117368         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
117369         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117371         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
117372         Define to 256, not 255, as per modern POSIX.
117374 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117376         Sync from coreutils.
117377         Use "file name" when talking about file names, instead of "filename"
117378         or "path", as per the GNU coding standards.
117379         * MODULES.html.sh: mkdir-p renamed from makepath.
117380         filenamecat renamed from path-concat.
117381         * modules/filenamecat: Renamed from modules/path-concat.
117382         (Files): filenamecat.h and filenamecat.c renamed from
117383         path-concat.h and path-concat.c.
117384         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
117385         (Include): filenamecat.h, not path-concat.h.
117386         * modules/mkdir-p: Renamed from modules/makepath.
117387         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
117388         makepath.c.
117389         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
117390         (Include): mkdir-p.h, not makepath.h.
117392 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117394         Sync from coreutils.
117395         * m4/mkdir-p.m4: Renamed from makepath.m4.
117396         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
117397         Rename files from makepath.c to mkdir-p.c, and from
117398         makepath.h to mkdir-p.h.
117399         * m4/filenamecat.m4: Renamed from path-concat.m4.
117400         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
117401         Rename files from path-concat.c to filenamecat.c,
117402         and from path-concat.h to filenamecat.h.
117403         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
117404         "file name" in local variables or comments.
117405         * m4/rename.m4: Likewise.
117407 2005-06-01  Bruno Haible  <bruno@clisp.org>
117409         * modules/csharpexec: New file.
117410         * MODULES.html.sh (C#): New section.
117412 2005-06-01  Bruno Haible  <bruno@clisp.org>
117414         * m4/csharp.m4: New file, from GNU gettext.
117415         * m4/csharpexec.m4: New file, from GNU gettext.
117417 2005-06-01  Bruno Haible  <bruno@clisp.org>
117419         * lib/csharpexec.h: New file, from GNU gettext.
117420         * lib/csharpexec.c: New file, from GNU gettext.
117421         * lib/csharpexec.sh.in: New file, from GNU gettext.
117423 2005-05-31  Derek Price  <derek@ximbiot.com>
117424             Paul Eggert  <eggert@cs.ucla.edu>
117426         Sync from cvs.
117427         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117429 2005-05-31  Derek Price  <derek@ximbiot.com>
117430             Paul Eggert  <eggert@cs.ucla.edu>
117432         Sync from cvs.
117433         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117435 2005-05-29  Derek Price  <derek@ximbiot.com>
117437         * config/srclist.txt (glob_.h, glob.c): Add these files.
117439 2005-05-29  Derek Price  <derek@ximbiot.com>
117441         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
117442         * modules/glob: New file.
117443         * modules/getlogin_r: Add link to POSIX spec in description.
117445 2005-05-29  Derek Price  <derek@ximbiot.com>
117446             Paul Eggert  <eggert@cs.ucla.edu>
117448         * m4/glob.m4: New file.
117450 2005-05-29  Derek Price  <derek@ximbiot.com>
117451             Paul Eggert  <eggert@cs.ucla.edu>
117453         * lib/glob_.h, lib/glob.c: New files.
117455 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117457         * modules/fts (Files): Remove m4/inttypes-pri.m4.
117458         * modules/fts-lgpl (Depends-on): Remove gettext.
117460 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117462         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
117463         and don't require gt_INTTYPES_PRI.
117465 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117467         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
117469         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
117470         the configuration hassle isn't worth it.
117471         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
117472         (LONGEST_MODIFIER, PRIuMAX): Remove.
117474 2005-05-27  Bruno Haible  <bruno@clisp.org>
117476         * lib/getlogin_r.h: Remove second include of <stddef.h>.
117478 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
117480         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
117481         _POSIX_PTHREAD_SEMANTICS for Solaris.
117483 2005-05-25  Derek Price  <derek@ximbiot.com>
117485         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
117487 2005-05-25  Derek Price  <derek@ximbiot.com>
117488             Paul Eggert  <eggert@cs.ucla.edu>
117490         * modules/getlogin_r, m4/getlogin_r.m4: New files.
117491         * lib/getlogin_r.c, getlogin_r.h: New files.
117493 2005-05-25  Bruno Haible  <bruno@clisp.org>
117494             Derek Price  <derek@ximbiot.com>
117496         * lib/getlogin_r.h: Simplify API documentation.
117498 2005-05-23  Derek Price  <derek@ximbiot.com>
117500         * modules/minmax (Files): Add m4/minmax.m4.
117501         (configure.ac): Add gl_MINMAX.
117503 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
117505         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
117506         so that unistd-safer.h (GPL'ed code) need not be included.
117508 2005-05-22  Bruno Haible  <bruno@clisp.org>
117510         * m4/minmax.m4: New file.
117511         Based on a patch by Derek Price <derek@ximbiot.com>.
117513 2005-05-22  Bruno Haible  <bruno@clisp.org>
117515         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
117516         (INT64_MIN): Fix definition.
117517         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
117519         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
117520         NEED_SIGNED_INT_TYPES.
117522         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
117523         HAVE_SYSTEM_INTTYPES.
117525 2005-05-22  Bruno Haible  <bruno@clisp.org>
117527         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
117528         Also include <sys/param.h> if it defines MIN, MAX.
117529         Based on a patch by Derek Price <derek@ximbiot.com>.
117531 2005-05-21  Jim Meyering  <jim@meyering.net>
117533         * modules/fts (Files): Add m4/inttypes-pri.m4.
117534         (Depends-on): Add lstat and remove gettext.  Alphabetize.
117536 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117538         New fts module.
117539         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
117540         (setup_dir, free_dir): New functions.
117541         (enter_dir, leave_dir): Define trivial
117542         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
117543         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
117544         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
117545         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
117546         Move to fts-cycle.c.
117547         (fts_open): Use setup_dir.
117548         (fts_close): Use free_dir.
117549         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
117550         This adds a label and some gotos, but the alternatives were messier.
117551         Check for memory allocation failure when entering a dir.
117552         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
117553         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
117554         (FTS): New member fts_cycle, that is a union that contains the
117555         old active_dir_ht and cycle_state.  All uses changed to mention
117556         fts_cycle.ht and fts_cycle.state.
117557         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
117558         fts.c, with the following changes:
117559         (setup_dir, free_dir): New functions.
117560         (enter_dir): Now returns bool.  Return true if successful, false
117561         if memory exhausted.  All callers changed.
117562         Do not bother partly cleaning up on
117563         memory allocation failure; that is free_dir's job.
117564         However, free ad if hash_insert fails, to avoid memory leak.
117565         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
117566         fts->fts_options to see which union member to use.
117568 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117570         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
117571         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
117573 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117575         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
117577 2005-05-20  Jim Meyering  <jim@meyering.net>
117579         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
117580         Now a macro, to pacify GCC.
117582 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
117584         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
117585         of -1.
117587 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
117589         * lib/chown.c (rpl_chown): Return -1 on failure.
117591 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
117593         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
117594         Don't check for stddef.h.
117595         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
117596         don't use its results.
117597         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
117598         since we include them unconditionally.  Don't require
117599         AM_STDBOOL_H, since stdbool is a prerequisite.
117600         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
117601         since we assume C89 or better.
117602         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
117603         as we don't use their results.
117604         Don't check for fchdir, memmove, memset, strrchr, as we use
117605         them unconditionally.
117606         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
117607         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
117609 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
117611         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
117612         Include <stddef.h> unconditionally, since we assume C89 now.
117613         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
117614         * lib/fts.c: Include fts_.h first, to check interface.
117615         Do not include intprops.h; no longer needed.
117616         Include cycle-check.h and hash.h, since fts_.h no longer does.
117617         Remove unnecessary casts of closedir to void.
117618         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
117619         decide whether to decrement nlinks.
117620         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
117621         (FTS): Use struct hash_table * instead of Hash_table, so that
117622         we no longer need to include hash.h here.
117624 2005-05-18  Jim Meyering  <jim@meyering.net>
117626         * modules/dirfd (License): Change to LGPL.  Most of the code
117627         is already in the public domain.
117629 2005-05-18  Jim Meyering  <jim@meyering.net>
117631         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
117632         Reported by Yoann Vandoorselaere.
117634 2005-05-17  Jim Meyering  <jim@meyering.net>
117636         * m4/fts.m4: New file, from coreutils.
117638 2005-05-17  Jim Meyering  <jim@meyering.net>
117640         * lib/fts.c, lib/fts_.h: New files, from coreutils.
117642 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117644         Sync from coreutils.
117645         * m4/unlinkdir.m4: New file.
117647 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117649         Sync from coreutils.
117650         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
117651         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
117652         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
117653         White space changes only.
117654         * lib/makepath.c (make_path): Port to hosts where leading "//" is
117655         special.
117656         * lib/yesno.c: Include getline.h, not ctype.h.
117657         (yesno): Don't remove leading white space; POSIX doesn't allow it.
117658         Use getline to remove arbitrary restriction on response length.
117660 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117662         * config/srclist-update: Spell out "Street" in FSF postal
117663         mail address; this is the style the FSF seems to prefer.
117665         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
117666         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
117667         this updates FSF postal mail address.
117669         Sync from coreutils.
117670         * modules/unlinkdir: New file.
117671         * modules/yesno (Depends-on): Add getline.
117672         * MODULES.html.sh (File system functions): Add unlinkdir.
117674 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
117676         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
117677         lib/strsep.h:
117678         Change the initial comment to refer to GPL, not LGPL.
117679         gnulib-tool will change it to LGPL as needed.
117681         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
117682         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
117683         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
117684         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
117685         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
117686         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
117687         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
117688         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
117689         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
117690         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
117691         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
117692         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
117693         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
117694         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
117695         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
117696         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
117697         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
117698         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
117699         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
117700         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
117701         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
117702         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
117703         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
117704         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
117705         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
117706         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
117707         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
117708         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
117709         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
117710         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
117711         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
117712         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
117713         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
117714         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
117715         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
117716         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
117717         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
117718         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
117719         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
117720         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
117721         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
117722         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
117723         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
117724         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
117725         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
117726         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
117727         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
117728         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
117729         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
117730         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
117731         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
117732         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
117733         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
117734         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
117735         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
117736         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
117737         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
117738         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
117739         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
117740         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
117741         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
117742         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
117743         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
117744         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
117745         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
117746         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
117747         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
117748         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
117749         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
117750         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
117751         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
117752         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
117753         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
117754         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
117755         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
117756         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
117757         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
117758         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
117759         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
117760         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
117761         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
117762         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
117763         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
117764         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
117765         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
117766         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
117767         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
117768         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
117769         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
117770         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
117771         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
117772         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
117773         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
117774         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
117775         lib/yesno.c, lib/yesno.h:
117776         Update FSF postal mail address.
117778 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
117780         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
117781         tests/test-memmem.c, tests/test-stpncpy.c:
117782         Update FSF postal mail address.
117784 2005-05-13  Bruno Haible  <bruno@clisp.org>
117786         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
117787         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
117788         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
117789         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
117790         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
117791         Add support for 64-bit integers in the MSVC compiler.
117793 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117795         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
117797 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
117799         * gnulib-tool (func_import): Sort and uniquify recommended includes.
117801 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
117803         * doc/getdate.texi (General date syntax): Don't say that date
117804         date --iso-8601=ns generates acceptable dates; it doesn't yet.
117805         Problem reported by Nic Ferrier.
117807 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
117809         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
117810         specified in ai_socktype. Fix invalid ai_protocol
117811         check. ai_protocol is usually set to 0 or depending on
117812         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
117813         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
117814         ai_socktype / ai_protocol in the returned addrinfo structure.
117816 2005-05-10  Simon Josefsson  <jas@extundo.com>
117818         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
117819         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
117821 2005-05-10  Karl Berry  <karl@gnu.org>
117823         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
117824         (from http://www.gnu.org/licenses).
117825         * doc/COPYING.LIB: also rename to COPYING.LESSER.
117826         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
117827         fdl.texi suffices.
117829 2005-05-10  Karl Berry  <karl@gnu.org>
117831         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
117832         (COPYING.DOC): remove.
117834         * config/srclist-update: new FSF address.
117836 2005-05-10  Derek Price  <derek@ximbiot.com>
117838         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
117839         possible.
117841 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
117842             Bruno Haible  <bruno@clisp.org>
117844         * modules/inet_ntop: New file.
117845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
117846         inet_ntop.
117848 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
117849             Bruno Haible  <bruno@clisp.org>
117851         * m4/inet_ntop.m4: New file.
117853 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
117854             Bruno Haible  <bruno@clisp.org>
117856         * lib/inet_ntop.h: New file.
117857         * lib/inet_ntop.c: New file, from glibc with modifications.
117859 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
117861         * modules/time_r (License): Change to LGPL.
117862         * modules/extensions (License): Change to LGPL.  Actually,
117863         the license is more permissive than that, but currently gnulib-tool
117864         doesn't know how to handle more-permissive licenses.
117866         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
117867         Problem reported by Dave Love.
117869 2005-05-08  Jim Meyering  <jim@meyering.net>
117871         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
117872         blank.
117874 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
117876         * modules/argmatch (Depends-on): Add stdbool.
117877         * modules/backupfile (Depends-on): Likewise.
117878         * modules/chdir-long (Depends-on): Likewise.
117879         * modules/closeout (Depends-on): Likewise.
117880         * modules/cycle-check (Depends-on): Likewise.
117881         * modules/dirname (Depends-on): Likewise.
117882         * modules/fnmatch (Depends-on): Likewise.
117883         * modules/fsusage (Depends-on): Likewise.
117884         * modules/fwriteerror (Depends-on): Likewise.
117885         * modules/getcwd (Depends-on): Likewise.
117886         * modules/getloadavg (Depends-on): Likewise.
117887         * modules/hard-locale (Depends-on): Likewise.
117888         * modules/makepath (Depends-on): Likewise.
117889         * modules/mountlist (Depends-on): Likewise.
117890         * modules/nanosleep (Depends-on): Likewise.
117891         * modules/posixtm (Depends-on): Likewise.
117892         * modules/quotearg (Depends-on): Likewise.
117893         * modules/readtokens (Depends-on): Likewise.
117894         * modules/readtokens0 (Depends-on): Likewise.
117895         * modules/readutmp (Depends-on): Likewise.
117896         * modules/save-cwd (Depends-on): Likewise.
117897         * modules/strftime (Depends-on): Likewise.
117898         * modules/userspec (Depends-on): Likewise.
117899         * modules/utimecmp (Depends-on): Likewise.
117900         * modules/xgetcwd (Depends-on): Likewise.
117901         * modules/xnanosleep (Depends-on): Likewise.
117902         * modules/xstrtod (Depends-on): Likewise.
117903         * modules/yesno (Depends-on): Likewise.
117905 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
117907         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
117908         needless checks.
117910 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
117912         Merge from coreutils.  Among other things,
117913         add bulletproofing for cases where stdin, stdout, or stderr are closed.
117914         * lib/fd-safer.c: New file.
117915         * lib/fcntl-safer.h, open-safer.c: Remove.
117916         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
117917         * lib/dup-safer.c: Include unistd-safer.h first.
117918         Don't include errno.h.
117919         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
117920         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
117921         * lib/file-type.c: Rely on file-type.h change.
117922         * lib/getloadavg.c: Include unistd-safer.h.
117923         (getloadavg): Use safer open.
117924         * lib/getusershell.c: Include "stdio-safer.h".
117925         (getusershell): Use safer fopen.
117926         * lib/long-options.c (long_options): Use NULL rather than 0.
117927         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
117928         'free'.
117929         * lib/modechange.c: Likewise.
117930         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
117931         (MODE_DONE): New constant.
117932         (struct mode_change): Remove 'next' member.
117933         (make_node_op_equals): New function; like the old one of the
117934         same name, except it allocates an array.
117935         (mode_compile, mode_create_from_ref): Use it.
117936         (mode_compile): Allocate result as an array, not a linked list.
117937         Parse octal string ourself, so that we catch mistakes like "+0".
117938         (mode_adjust): Arg is an array, not a linked list.
117939         * lib/modechange.c: Include stat-macros.h, xalloc.h.
117940         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
117941         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
117942         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
117943         Remove.  This is now stat-macros.h's job.
117944         (talloc): Remove.  All callers replaced by xalloc, so that
117945         our invokers don't have to worry about reporting memory failures.
117946         (make_node_op_equals): Remove.
117947         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
117948         New constants.
117949         (struct mode_change): Moved here from modechange.h.
117950         (mode_append_entry): Remove.
117951         (mode_compile): Remove MASKED_OPS arg, since it encouraged
117952         apps to have incorrect behavior.  Use simpler algorithm for head
117953         and tail.  Don't futz with umask; that's now the job of mode_adjust.
117954         Detect more invalid usages rather than having somewhat-random behavior.
117955         Don't insert an "a=" action, as that leads to incorrect behavior.
117956         (mode_compile, mode_create_from_ref): Return NULL on error instead
117957         of an enum, since now there's only one way to have an error.  All
117958         callers changed.
117959         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
117960         at the correct time.  Simplify calculation of "+u" and its ilk.
117961         Don't mishandle "+X".
117962         (mode_free): Remove "register" and localize decls.
117963         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
117964         (struct mode_change): Move to modechange.c; callers don't
117965         need to see this stuff.
117966         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
117967         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
117968         (mode_change, mode_adjust): Reflect the new signatures noted above.
117969         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
117970         that might redefine system include files.
117971         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
117972         (my_usleep): Use NULL rather than (void *) 0.
117973         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
117974         Use siginterrupt to specify that system calls should be interrupted.
117975         (rpl_nanosleep): Move initialization of suspended closer to call of
117976         my_usleep.
117977         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
117978         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
117979         (desirable_utmp_entry): New function.
117980         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
117981         using x2nrealloc, to simplify logic.
117982         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
117983         size calculation.  Do not assume utmp file is a regular file.
117984         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
117985         (READ_UTMP_CHECK_PIDS): New constant.
117986         * lib/save-cwd.c: Include unistd-safer.h.
117987         (save_cwd): Use fd_safer.
117988         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
117989         [!_LIBC] Include "stat-macros.h" instead.
117990         * lib/unistd-safer.h (fd_safer): New decl.
117992 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
117994         * modules/getloadavg (Depends-on): Add unistd-safer.
117995         * modules/getusershell (Depends-on): Add stdio-safer.
117996         * modules/lstat (Depends-on): Remove xalloc.
117997         * modules/mkstemp (Depends-on): Add stat-macros.
117998         * modules/modechange (Depends-on): Remove xstrtol.
117999         Add stat-macros, xalloc.
118000         * modules/save-cwd (Depends-on): Add unistd-safer.
118001         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
118002         * modules/unistd-safer (Files): Add lib/fd-safer.c
118003         (Makefile.am): Remove lib_SOURCES.
118005         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
118006         Remove fcntl-safer; unistd-safer supersedes it.
118008 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118010         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
118011         AC_HEADER_STAT.
118012         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
118013         (gl_PREREQ_CHOWN): Remove.
118014         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
118015         it.  Don't require AC_HEADER_STAT.
118016         (gl_PREREQ_LSTAT): Remove.
118017         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
118018         Don't require AC_HEADER_STAT.
118019         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
118020         (gl_PREREQ_RMDIR): Remove.
118021         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
118022         mention stat-macros.h or AC_HEADER_STAT, since we'll make
118023         the stat-macros module a prerequisite.
118024         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
118025         * m4/filemode.m4 (gl_FILEMODE): Likewise.
118026         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
118027         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
118028         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
118029         variable names.
118030         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
118031         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
118032         variable prefixes.
118033         * m4/fcntl-safer.m4: Remove.
118034         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
118035         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
118036         Invoke gl_PREREQ_FD_SAFER.
118037         (gl_PREREQ_FD_SAFER): New macro.
118038         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
118039         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
118040         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
118041         Remove duplicate call to AC_LIBOBJ(readutmp).
118042         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
118044         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
118045         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
118047 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118049         * MODULES.html.sh (Misc): Add byteswap.
118051 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118053         * modules/getcwd (Depends-on): Add extensions.
118054         * modules/openat (Depends-on): Likewise.
118056 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118058         * modules/byteswap: New file.
118060 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118062         * m4/byteswap.m4: New file.
118064 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118066         * lib/byteswap_.h: New file.
118068 2005-04-25  Karl Berry  <karl@gnu.org>
118070         * m4/gettext.m4: Update from GNU gettext 0.14.4.
118072 2005-04-25  Albert Chin  <china@thewrittenword.com>
118074         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
118075         Toolkit C bug.
118077 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
118079         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
118080         (func_ln_if_changed): Remove forcibly for no error message
118081         in case file does not exist.
118083 2005-04-19  Simon Josefsson  <jas@extundo.com>
118085         * gnulib-tool (Options): Make --symlink mean --symbolic.
118087 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
118089         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
118091 2005-04-16  Simon Josefsson  <jas@extundo.com>
118093         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
118095 2005-04-15  Simon Josefsson  <jas@extundo.com>
118097         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
118099 2005-04-15  Simon Josefsson  <jas@extundo.com>
118101         * gnulib-tool: Rename --symlink to --symbolic.
118103 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
118105         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
118106         symbolic links to files instead of copying/moving.  Add --aux-dir,
118107         specifying directory relative --dir where auxiliary build tools
118108         are placed.
118110 2005-04-14  Bruno Haible  <bruno@clisp.org>
118112         * modules/allocsa (License): Change to LGPL.
118113         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
118115 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
118117         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
118118         that "UTC +1 second" continues to work.  Problem reported
118119         by Dmitry V. Levin.
118120         (relunit_snumber): New rule.
118121         (relunit): Use it.
118123 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
118125         * lib/getdate.y (universal_time_zone_table): New constant.
118126         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
118127         universal_time_zone_table.
118128         (lookup_zone): Prefer universal_time_zone_table to
118129         local_time_zone_table, so that "GMT" time stamps are allowed in
118130         London during the summer.  Problem reported by Ian Abbott.
118132 2005-04-12  Jim Meyering  <jim@meyering.net>
118134         * lib/human.c (humblock): Set *options even when returning due to
118135         xstrtoumax conversion failure.  Thanks to a used-uninitialized
118136         warning from gcc-4.
118138 2005-04-09  Jim Meyering  <jim@meyering.net>
118140         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
118141         -Wuninitialized: initialize tm0.tm_year.
118143 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
118145         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
118146         count, since there's no maximum.  All uses changed.
118147         Add member dsts_seen.
118148         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
118149         not being INT_MAX.
118150         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
118151         Use pc_rels_seen to decide whether a date is absolute.
118153         * lib/getdate.y (number): Don't overwrite year.
118154         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
118155         check.
118157 2005-04-02  Simon Josefsson  <jas@extundo.com>
118159         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
118160         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
118162 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
118164         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
118165         where no absolute path name can be longer than PATH_MAX.
118167 2005-03-27  Jim Meyering  <jim@meyering.net>
118169         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
118171 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
118173         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
118174         "one's complement" -> "ones' complement" in comment, as per Knuth.
118175         "value of type" -> "type or expression" in comment.
118176         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
118178 2005-03-26  Jim Meyering  <jim@meyering.net>
118180         Comment nits.
118181         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
118182         Correct typos: s/or/of/.
118184 2005-03-26  Jim Meyering  <jim@meyering.net>
118186         * modules/check-include-files: Move to ../ and rename to...
118187         * check-module: ...this.
118189 2005-03-25  Jim Meyering  <jim@meyering.net>
118191         * modules/xvasprintf (Files): Add xalloc.h.
118193 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
118195         * modules/gettext (Files): config/config.rpath ->
118196         build-aux/config.rpath
118197         * modules/iconv (Files): Likewise.
118198         Problem reported by Oskar Liljeblad.
118200 2005-03-23  Jim Meyering  <jim@meyering.net>
118202         * modules/check-include-files: New script to check for
118203         missing dependencies, multiple includes, etc.
118205         * modules/c-strtold (Depends-on): Add xalloc.
118206         * modules/c-strtod (Depends-on): Add xalloc.
118207         * modules/hash (Depends-on): Add xalloc.
118208         (Files): Remove lib/xalloc.h.
118210         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
118211         * modules/userspec (Files): Add lib/inttostr.h.
118213 2005-03-23  Jim Meyering  <jim@meyering.net>
118215         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
118217 2005-03-22  Jim Meyering  <jim@meyering.net>
118219         * modules/stat-macros: New module.
118220         * modules/canonicalize, modules/euidaccess, modules/file-type,
118221         * modules/filemode, modules/lchown, modules/makepath,
118222         * modules/rmdir, modules/stat: Depend on new stat-macros module
118223         rather than listing lib/stat-macros.h manually.
118224         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
118226 2005-03-22  Jim Meyering  <jim@meyering.net>
118228         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
118230 2005-03-22  Bruno Haible  <bruno@clisp.org>
118232         * config/srclist.txt: Replace target directory 'config' with
118233         'build-aux'.
118234         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
118235         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
118236         ../build-aux/.
118238 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
118240         * modules/chdir-long (Depends-on): Add mempcpy.
118242         * modules/acl, modules/backupfile, modules/c-strtod,
118243         modules/c-strtold, modules/canon-host, modules/canonicalize,
118244         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
118245         modules/exclude, modules/exitfail, modules/file-type,
118246         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
118247         modules/getdate, modules/getline, modules/getpagesize,
118248         modules/getpass, modules/getugroups, modules/group-member,
118249         modules/hard-locale, modules/hash, modules/human, modules/idcache,
118250         modules/inttostr, modules/long-options, modules/makepath,
118251         modules/md5, modules/memcasecmp, modules/memcoll,
118252         modules/modechange, modules/mountlist, modules/path-concat,
118253         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
118254         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
118255         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
118256         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
118257         modules/strftime, modules/strndup, modules/strverscmp,
118258         modules/timespec, modules/unlocked-io, modules/userspec,
118259         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
118260         modules/yesno:
118261         Remove lib_SOURCES line from Makefile.am section, as this is now
118262         done automatically by the corresponding Autoconf macro.
118264 2005-03-21  Jim Meyering  <jim@meyering.net>
118266         Changes imported from coreutils.
118268         * lib/cycle-check.c: Don't include xalloc.h.
118270         * lib/path-concat.c: Don't include assert.h.
118271         (path_concat): Remove assertion that would have triggered
118272         for ABASE starting with more than one slash.
118273         Reported by Andreas Schwab.
118275         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
118276         properly when ABASE is an absolute file name.
118277         Correct the description of this function.
118278         Include <assert.h>.
118279         Add an assertion and a test driver.
118280         This fixes a bug introduced on 2004-07-02.
118281         Andreas Schwab reported the resulting failure of cp --parents:
118282         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
118284 2005-03-21  Jim Meyering  <jim@meyering.net>
118286         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
118287         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
118289 2005-03-21  Jim Meyering  <jim@meyering.net>
118290         and  Paul Eggert  <eggert@cs.ucla.edu>
118292         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
118293         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
118294         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
118295         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
118296         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
118297         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
118298         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
118299         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
118300         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
118301         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
118302         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
118303         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
118304         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
118305         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
118306         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
118307         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
118308         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
118309         for these modules.
118311 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
118313         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
118314         (which shouldn't happen), generate nothing instead of returning 0
118315         immediately, so that nstrftime (NULL, ...) doesn't return 0.
118317 2005-03-16  Bruno Haible  <bruno@clisp.org>
118319         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
118320         HAVE_LONGLONG_64BIT.
118322 2005-03-16  Bruno Haible  <bruno@clisp.org>
118324         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
118325         HAVE_LONGLONG_64BIT.
118327 2005-03-16  Bruno Haible  <bruno@clisp.org>
118329         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
118330         HAVE_LONGLONG_64BIT.
118332 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118334         * lib/strftime.c (my_strftime): Prepend space to format so that we can
118335         reliably distinguish strftime failure from empty output on POSIX
118336         hosts.
118338 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118340         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
118341         (iconv_string): Don't guess a size-zero buffer, as that might cause
118342         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
118343         result would be 'too large', where 'too large' is (heuristically)
118344         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
118345         overflow concerns.  This will prevent some unwanted malloc failures
118346         when the inputs are very large.
118348 2005-03-15  Karl Berry  <karl@gnu.org>
118350         * config/srclist.txt (config.rpath): from gettext.
118351         * config/config.rpath: update.
118353 2005-03-15  Bruno Haible  <bruno@clisp.org>
118355         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
118356         to 'negate'.
118358         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
118359         variable.
118361         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
118362         results.
118364 2005-03-14  Simon Josefsson  <jas@extundo.com>
118366         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
118367         <fx@gnu.org>.
118369 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
118371         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
118372         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
118373         intprops.h.
118374         * lib/strtol.c: Likewise.
118376 2005-03-14  Jim Meyering  <jim@meyering.net>
118378         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
118379         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
118380         to be nonzero so that we (and caller) can detect the difference
118381         between a valid zero-length expansion and an error return, even
118382         when the underlying strftime fails before writing anything into
118383         that location.
118385 2005-03-14  Bruno Haible  <bruno@clisp.org>
118387         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
118388         Update from GNU gettext 0.14.3.
118390 2005-03-10  Jim Meyering  <jim@meyering.net>
118392         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
118394 2005-03-10  Jim Meyering  <jim@meyering.net>
118396         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
118397         so that this module works on systems without fchdir.
118399 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
118401         Factor int-properties macros into a single file, except for
118402         glibc-related files.
118403         * lib/intprops.h: New file.
118404         * lib/getloadavg.c: Include it instead of limits.h.
118405         (INT_STRLEN_BOUND): Remove.
118406         * lib/human.c: Include intprops.h.
118407         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
118408         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
118409         302/1000.
118410         * lib/inttostr.h: Include intprops.h instead of limits.h.
118411         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
118412         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
118413         for consistency with intprops.h.
118414         (time_t_is_integer, twos_complement_arithmetic): Use them.
118415         * lib/sig2str.h: Include <signal.h>, intprops.h.
118416         (INT_STRLEN_BOUND): Remove.
118417         * lib/strftime.c (TYPE_SIGNED): Remove.
118418         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
118419         * lib/strtol.c: Adjust comments to match intprops.h.
118420         * lib/userspec.c: Include intprops.h.
118421         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
118422         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
118423         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
118424         instead of rolling our own expressions.
118425         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
118427         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
118428         instead of int.
118429         (my_strftime): Do not mishandle years close to INT_MAX, by doing
118430         the right thing even if adding 1900 would overflow.  Similarly
118431         for tm_mon + 1 and tm_yday + 1.
118432         Make %Y always equivalent to %C%y, and similarly for %G and %g.
118433         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
118434         (DO_SIGNED_NUMBER): New macro.
118435         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
118437 2005-03-07  Bruno Haible  <bruno@clisp.org>
118439         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
118441 2005-03-07  Bruno Haible  <bruno@clisp.org>
118443         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
118445 2005-03-04  Derek R. Price  <derek@ximbiot.com>
118447         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
118448         (func_import): Only replace files via --import when they have actually
118449         changed.
118451 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118453         * m4/mmap-anon.m4: New file.
118454         * m4/pagealign_alloc.m4: New file.
118456 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118457             Bruno Haible  <bruno@clisp.org>
118459         * modules/pagealign_alloc: New file.
118460         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
118462 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118463             Bruno Haible  <bruno@clisp.org>
118465         * lib/pagealign_alloc.h: New file.
118466         * lib/pagealign_alloc.c: New file.
118468 2005-03-03  Bruno Haible  <bruno@clisp.org>
118470         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
118471         Use an all-permissive copyright notice, recommended by RMS.
118473 2005-03-02  Bruno Haible  <bruno@clisp.org>
118475         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
118476         of AIX, the replacement has to be done only after <string.h> is
118477         included, therefore not in config.h. stpncpy.h does the replacement,
118478         and stpncpy.c uses it.
118480 2005-03-02  Bruno Haible  <bruno@clisp.org>
118482         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
118483         stpncpy.c uses it.
118485 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118487         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
118488         The workaround isn't strictly needed for POSIX conformance, and
118489         it's too much of a pain to configure and maintain.  We'll ask
118490         people to fix their kernels instead.
118491         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
118492         (NANOSLEEP_BUG_WORKAROUND): Remove.
118493         (xnanosleep): Remove the workaround.
118495 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118497         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
118498         Reported by Derek Price.
118499         (Include): Add "timespec.h".
118501         * modules/xnanosleep (Depends-on): Remove gethrxtime.
118503 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118505         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
118506         to detect nanosleep bug.
118508 2005-03-01  Bruno Haible  <bruno@clisp.org>
118510         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
118512 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
118514         * modules/gethrxtime: New file.
118515         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
118516         (Depends-on): Add gethrxtime.
118517         (configure.ac): Add gl_XNANOSLEEP.
118518         (Makefile.am): Remove lib_SOURCES line.
118520 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
118522         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
118523         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
118525 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
118527         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
118528         * lib/timespec.h (gettime): Return void, since it always
118529         succeeds now.  All uses changed.
118530         * lib/gettime.c (gettime): Likewise.
118531         [HAVE_NANOTIME]: Prefer nanotime.
118532         Assume gettimeofday succeeds, as POSIX requires.
118533         Assime time () succeeds, since other code already does.
118534         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
118535         (timespec_subtract): Remove.
118536         (NANOSLEEP_BUG_WORKAROUND): New constant.
118537         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
118538         things considerably.  Use it only on GNU/Linux hosts, since the
118539         workaround shouldn't be needed elsewhere.
118541 2005-02-24  Bruno Haible  <bruno@clisp.org>
118543         * modules/gettext (Files): Add m4/glibc2.m4.
118545 2005-02-24  Bruno Haible  <bruno@clisp.org>
118547         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
118548         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
118549         * m4/progtest.m4:
118550         Update from GNU gettext 0.14.2.
118551         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
118553 2005-02-24  Bruno Haible  <bruno@clisp.org>
118555         * lib/localcharset.c: Update from GNU gettext 0.14.2.
118556         * lib/config.charset: Update from GNU gettext 0.14.2.
118558 2005-02-24  Bruno Haible  <bruno@clisp.org>
118560         * lib/gettext.h: Update from GNU gettext 0.14.2.
118562 2005-02-23  Simon Josefsson  <jas@extundo.com>
118564         * m4/iconvme.m4: New file.
118566 2005-02-23  Jim Meyering  <jim@meyering.net>
118568         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
118569         change.
118570         Thanks to Bruno Haible for catching it.
118572 2005-02-22  Simon Josefsson  <jas@extundo.com>
118574         * modules/iconvme: New file.
118576         * MODULES.html.sh: Add iconvme.
118578 2005-02-22  Simon Josefsson  <jas@extundo.com>
118580         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
118582 2005-02-22  Simon Josefsson  <jas@extundo.com>
118584         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
118586 2005-02-22  Jim Meyering  <jim@meyering.net>
118588         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
118589         s/ifndef/ifdef/.
118591 2005-02-20  Neil Conway  <neilc@samurai.com>
118593         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
118594         returned by OSX/Darwin if the specified buffer is not large
118595         enough for the hostname.
118597 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118599         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
118600         pass it to _help, otherwise the latter coredumps trying to
118601         dereference state.root_argp.
118603 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118605         * modules/chdir-long (Depends-on): Add memrchr.
118606         * modules/memrchr (Files): Add lib/memrchr.h.
118607         (Include): "memrchr.h".
118609 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118611         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
118613 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118615         * lib/memrchr.h: New file.
118616         * lib/chdir-long.c: Include it.
118617         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
118618         Don't bother including stddef.h.
118620 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
118622         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
118623         inclusion.
118624         Include <sys/types.h>, for dev_t.
118625         (ME_DUMMY, ME_REMOTE): Move from here....
118626         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
118627         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
118628         Dmitry V. Levin.
118629         Include mountlist.h first, to test the interface.
118631 2005-01-29  Bruno Haible  <bruno@clisp.org>
118633         * lib/progname.c (program_name): Initialize.
118634         Needed when linking statically on MacOS X.
118636 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
118638         Sync from coreutils.
118639         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
118640         (Depends-on): Add c-strtod.
118641         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
118643 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
118645         Sync from coreutils.
118646         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
118648         Remove files that are specific to coreutils.
118649         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
118651 2005-01-28  Bruno Haible  <bruno@clisp.org>
118653         * modules/javacomp: New file.
118654         * MODULES.html.sh (Java): Add javacomp.
118656 2005-01-28  Bruno Haible  <bruno@clisp.org>
118658         * m4/javacomp.m4: New file, from GNU gettext.
118660 2005-01-28  Bruno Haible  <bruno@clisp.org>
118662         * lib/javacomp.sh.in: New file, from GNU gettext.
118663         * lib/javacomp.h: New file, from GNU gettext.
118664         * lib/javacomp.c: New file, from GNU gettext.
118666 2005-01-26  Simon Josefsson  <jas@extundo.com>
118668         * lib/gai_strerror.c: Use GPL in header.
118670 2005-01-26  Bruno Haible  <bruno@clisp.org>
118672         * modules/javaexec: New file.
118673         * MODULES.html.sh (Java): Add javaexec.
118675 2005-01-26  Bruno Haible  <bruno@clisp.org>
118677         * m4/javaexec.m4: New file, from GNU gettext.
118679 2005-01-26  Bruno Haible  <bruno@clisp.org>
118681         * lib/javaexec.sh.in: New file, from GNU gettext.
118682         * lib/javaexec.h: New file, from GNU gettext.
118683         * lib/javaexec.c: New file, from GNU gettext.
118685 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118687         * modules/lchown (Depends-on): Remove lchown.h
118689 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118691         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
118692         must be defined if the header file was not found, in order
118693         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
118695 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118697         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
118698         initializers for struct pentry_state.
118699         (__argp_error): Check return value of __asprintf
118700         (__argp_failure): Translate error message
118702         * lib/argp-parse.c: Removed braces around the expansion of N_()
118704 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118706         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
118707         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
118708         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
118709         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
118710         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
118711         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
118712         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
118713         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
118714         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
118715         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
118716         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
118717         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
118718         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
118719         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
118720         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
118721         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
118722         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
118723         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
118724         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
118725         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
118726         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
118727         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
118728         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
118729         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
118730         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
118731         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
118732         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
118733         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
118734         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
118735         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
118736         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
118737         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
118738         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
118739         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
118740         xstrtol.m4, xstrtoumax.m4, yesno.m4:
118741         Use an all-permissive copyright notice, recommended by RMS.
118743 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
118745         * modules/chdir-long (Depends-on): Remove mempcpy.
118747 2005-01-21  Jim Meyering  <jim@meyering.net>
118749         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
118750         same value as for Solaris 9.
118752         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
118753         component length.  This included changing the parameter to be
118754         of type `char *' rather than `char const *'.
118755         * lib/chdir-long.h (chdir_long): Update prototype.
118757         * lib/openat.c (fdopendir, fstatat): New functions.
118758         * lib/openat.h: Include headers required for use of DIR and struct
118759         stat.
118760         [AT_SYMLINK_NOFOLLOW]: Define.
118761         (fdopendir, fstatat): Add prototypes.
118763 2005-01-21  Bruno Haible  <bruno@clisp.org>
118765         * modules/classpath: New file.
118766         * MODULES.html.sh (Java): Add classpath.
118768 2005-01-21  Bruno Haible  <bruno@clisp.org>
118770         * lib/classpath.h: New file, from GNU gettext.
118771         * lib/classpath.c: New file, from GNU gettext.
118773 2005-01-20  Simon Josefsson  <jas@extundo.com>
118775         * modules/version-etc-fsf: New file.
118777 2005-01-20  Simon Josefsson  <jas@extundo.com>
118779         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
118780         * lib/version-etc.c: Remove version_etc_copyright.
118781         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
118782         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
118784 2005-01-20  Simon Josefsson  <jas@extundo.com>
118786         * lib/base64.h (isbase64): Add.
118788         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
118789         using a unsigned prototype, don't inline.
118790         (base64_decode): Use it.
118792 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118794         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
118795         it.
118797 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118799         * lib/save-cwd.c (save_cwd): Remove code to support the case
118800         where fchdir is missing or flaky.
118802 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118804         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
118806 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
118808         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
118809         AC_LIBSOURCES now does this.
118810         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
118811         with new ullong_max module.
118813 2005-01-19  Bruno Haible  <bruno@clisp.org>
118815         * modules/sh-quote: New file.
118816         * MODULES.html.sh (Executing programs): Add sh-quote.
118818 2005-01-19  Bruno Haible  <bruno@clisp.org>
118820         * lib/sh-quote.h: New file, from GNU gettext.
118821         * lib/sh-quote.c: New file, from GNU gettext.
118823 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
118825         Merge from coreutils.
118826         * m4/ullong_max.m4: New file.
118827         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
118828         (gl_MACROS): Assume localeconv exists.
118830 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
118832         Merge changes from coreutils, as described below in several
118833         changelogs dated today.
118835         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
118836         (O_DIRECTORY): Remove; not needed here, since "." must be
118837         a directory.  All uses removed.
118838         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
118839         universal on Suns, and we also need to test for IRIX.
118840         Revamp code to use 'if' rather than '#if'.
118841         Avoid unnecessary comparison of cwd->desc to 0.
118843         * lib/utimens.c (futimens): Robustify the previous patch, by checking
118844         for known valid error numbers rather than observed invalid ones.
118846 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
118848         * modules/ullong_max: New file.
118850         * modules/chdir-long, modules/openat: New files.
118851         * modules/save-cwd (Depends-on): Depend on chdir-long.
118852         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
118854 2005-01-18  Jim Meyering  <jim@meyering.net>
118856         Merge from coreutils.
118857         * m4/chdir-long.m4, m4/openat.m4: New files.
118858         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
118859         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
118860         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
118861         is sane and DOES follow symlinks.  Besides, testing 20 different
118862         systems found no broken chown implementations.
118863         Prompted by a change in rsync's copy of this macro.
118864         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
118866         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
118868         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
118869         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
118870         NULL-means-set-to-current-time semantics.
118871         Remove temporary file immediately, rather than waiting
118872         for configure's at-exit trap code to do it.
118874 2005-01-18  Jim Meyering  <jim@meyering.net>
118876         * lib/version-etc.c (version_etc_copyright): Update copyright date.
118878         * lib/utimens.c (futimens): Account for the fact that futimes
118879         can also fail with errno == ENOSYS or errno == ENOENT.
118880         Patch from Dmitry V. Levin.
118882         Change the name of the robust chdir function from chdir to chdir_long.
118883         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
118884         (restore_cwd): Use chdir_long, not chdir.
118885         * lib/chdir-long.c: Renamed from chdir.c.
118886         * lib/chdir-long.h: Renamed from chdir.h.
118887         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
118888         Hurd.
118890 2005-01-18  Bruno Haible  <bruno@clisp.org>
118892         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
118893         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
118894         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
118895         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
118896         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
118897         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
118898         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
118899         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
118900         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
118901         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
118902         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
118903         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
118904         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
118905         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
118906         Use an all-permissive copyright notice, recommended by RMS.
118908 2005-01-18  Bob Proulx  <bob@proulx.com>
118910         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
118911         simplify offsetof() macro construct to avoid compile failure with
118912         native HP-UX 11.0 ANSI C compiler.
118914 2005-01-17  Bruno Haible  <bruno@clisp.org>
118916         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
118917         redundant because stpncpy.m4 takes care of it.
118919 2005-01-17  Bruno Haible  <bruno@clisp.org>
118921         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
118923 2005-01-17  Bruno Haible  <bruno@clisp.org>
118925         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
118926         used.
118928 2005-01-17  Bruno Haible  <bruno@clisp.org>
118930         * lib/fwriteerror.h (fwriteerror): Change specification to include
118931         fclose.
118932         * lib/fwriteerror.c: Include <stdbool.h>.
118933         (fwriteerror): At the end, close the file stream. Record whether
118934         stdout was already closed.
118936 2005-01-17  Bruno Haible  <bruno@clisp.org>
118938         * lib/execute.c (environ): Declare if needed.
118939         * lib/pipe.c (environ): Likewise.
118940         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
118942 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118944         * modules/argp: Depend on vsnprintf
118946 2005-01-10  Jim Meyering  <jim@meyering.net>
118948         * modules/closeout (Depends-on): Add atexit.
118950 2005-01-06  Bruno Haible  <bruno@clisp.org>
118952         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
118954 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
118956         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
118957         definitions to be after all include files, to avoid collisions.
118958         Problem reported by Bob Proulx.
118960 2005-01-04  Jim Meyering  <jim@meyering.net>
118962         Changes imported from coreutils.
118963         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
118964         as the mkstemp template, use a temporary directory and an
118965         8.3-friendly template to avoid trouble on systems like DJGPP.
118966         Reported by Juan M. Guerrero via Stepan Kasal.
118967         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
118968         close. Remove the temporary directory right away, rather than waiting
118969         for configure's at-exit trap code to do it.
118970         Suggestion from Stepan Kasal.
118972 2005-01-01  Simon Josefsson  <jas@extundo.com>
118974         * gnulib-tool: Print #include directives when --import'ing.
118976 2004-12-28  Simon Josefsson  <jas@extundo.com>
118978         * tests/test-base64.c: Include required header files.  Remove
118979         unused variables.
118981 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
118983         * modules/error (Depends-on): Remove gettext.
118985 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
118987         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
118988         not needed.  This removes a dependency on the gettext module.
118989         [defined _LIBC]: Do not include <libintl.h>; not needed.
118991 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
118993         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
118994         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
118996 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
118998         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
118999         HAVE_DECL_STRTOLD.
119001 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119003         * modules/getdate (Depends-on): Remove alloca-opt.
119005 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119007         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
119009 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119011         * lib/argp-parse.c: Include <stddef.h>.
119012         (alignof, alignto): New macros.
119013         (parser_init): Don't assume that void * is aligned sufficiently
119014         for struct option.
119016         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
119017         need to extend the stack.
119018         (YYINITDEPTH): New macro, so that the initial stack isn't overly
119019         large.
119021 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119023         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
119025 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119027         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
119028         (2004-10-24) change.  Apparently this was a false alarm.
119030         * modules/getdate: Depend on alloca-opt, not alloca.
119032 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119034         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
119035         Remove now-obsolete comment about AIX.
119036         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
119037         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
119038         (YYMAXDEPTH): New macro.
119040 2004-12-18  Simon Josefsson  <jas@extundo.com>
119042         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
119044 2004-12-18  Bruno Haible  <bruno@clisp.org>
119046         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
119048 2004-12-18  Bruno Haible  <bruno@clisp.org>
119050         * lib/fatal-signal.c (fatal_signals): Make non-const.
119051         (init_fatal_signals): New function.
119052         (uninstall_handlers, install_handlers): Ignore signals that were set to
119053         SIG_IGN.
119054         (at_fatal_signal): Call init_fatal_signals.
119055         (init_fatal_signal_set): Likewise. Ignore signals that were set to
119056         SIG_IGN.
119057         Reported by Paul Eggert.
119059 2004-12-18  Bruno Haible  <bruno@clisp.org>
119061         * doc/alloca.texi: New file.
119062         * doc/alloca-opt.texi: New file.
119064 2004-12-17  Jim Meyering  <jim@meyering.net>
119066         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
119067         Otherwise, install-sh could exit with improper exit status when
119068         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
119070 2004-12-16  Simon Josefsson  <jas@extundo.com>
119072         * tests/test-base64.c: Add license.
119074 2004-12-15  Stepan Kasal  <address@hidden>
119076         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
119078 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
119080         * modules/getcwd (Files): Add m4/d-ino.m4.
119081         Suggested by Mark D. Baushke.
119083 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119085         * lib/getdate.y (textint): New member "negative".
119086         (time_zone_hhmm): New function.
119087         Expect 14 shift-reduce conflicts, not 13.
119088         (o_colon_minutes): New rule.
119089         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
119090         (yylex): Set the "negative" member of signed numbers.
119092 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119094         * doc/getdate.texi (Time of day items, Time zone items):
119095         Describe new formats +00:00, UTC+00:00.
119097 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119099         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
119100         spurious "-l"s.  Problem reported by Stepan Kasal.
119102 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
119104         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
119105         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
119107 2004-12-04  Simon Josefsson  <jas@extundo.com>
119109         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
119110         Vandoorselaere <yoann@prelude-ids.org>.
119112 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119114         Changes imported from coreutils.
119115         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
119116         exist.
119117         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
119119 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119121         Changes imported from coreutils.
119122         * lib/hard-locale.c: Assume <locale.h> exists.
119123         Include "strdup.h".
119124         (GLIBC_VERSION): New macro.
119125         (hard_locale): Assume setlocale exists.
119126         Rewrite to avoid #ifdef.
119127         Use strdup rather than malloc + strcpy.
119128         * lib/human.c: Assume <locale.h> exists.
119129         (human_readable): Assume localeconv exists.
119131 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119133         * modules/hard-locale (Depends-on): Add strdup.
119135 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
119137         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
119138         convert T2, not T.  (Imported from libc.)
119140 2004-11-30  Simon Josefsson  <jas@extundo.com>
119142         * modules/restrict (License): Change to LGPL.
119144 2004-11-30  Simon Josefsson  <jas@extundo.com>
119146         * m4/restrict.m4: Add copyright and copying conditions.
119148 2004-11-30  Simon Josefsson  <jas@extundo.com>
119150         * m4/base64.m4: New file.
119152 2004-11-30  Simon Josefsson  <jas@extundo.com>
119154         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
119155         base64.
119157         * tests/test-base64.c: New file.
119159         * modules/base64: New file.
119161 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119163         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
119164         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
119166         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
119168 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119170         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
119171         (__getcwd.c): Don't restore errno; glibc doesn't.
119172         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
119173         first, falling back to our code only if its results look suspicious.
119174         Ensure that the resulting buffer is only as large as necessary.
119176         * lib/readutmp.c: Include readutmp.h first.
119177         Include <errno.h>, since readutmp.h no longer does that.
119178         * lib/readutmp.h: Don't include <errno.h>,
119179         <sys/param.h>, <time.h>; not needed to establish interface.
119180         (errno): Remove decl.
119181         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
119182         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
119183         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
119185 2004-11-28  Simon Josefsson  <jas@extundo.com>
119187         * lib/base64.h, base64.c: New file.
119189 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
119191         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
119193 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
119195         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
119196         (Depends-on): Remove pathmax, same.  Add mempcpy.
119197         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
119198         (Makefile.am): Append getcwd.h to lib_SOURCES.
119199         (Include): Add getcwd.h.
119200         (Maintainer): Change from Jim Meyering to "all, glibc",
119201         since getdate now uses intended-for-glibc code.
119202         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
119203         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
119205 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119207         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
119208         HP's ANSI C compiler.
119209         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
119210         Declaring int functions causes warnings on some modern systems and
119211         shouldn't be needed to compile on ancient ones.
119212         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
119213         defined.
119215         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
119216         with the following changes.
119217         (__set_errno): Parenthesize properly.
119218         Include <stdbool.h>.
119219         (MIN, MAX, MATCHING_INO): New macros.
119220         (__getcwd): Define with prototype, not K&R form.
119221         Use heuristics to allocate default buffer on stack if possible.
119222         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
119223         behavior, and to avoid the PATH_MAX limit when computing
119224         ../../../../...
119225         Use MATCHING_INO to compare inode number to file.
119226         Check for arithmetic overflow in size calculations.
119227         Fix bug in reallocation of dot array that caused getcwd to fail
119228         on directories nested deeper than 75.
119229         Be more careful about saving errno on error.
119230         Do not use realloc; use only free+malloc, as this is a bit
119231         more flexible and avoids a needless copy operation.
119232         Do not inspect st_dev and st_ino for symbolic links; POSIX
119233         doesn't specify the latter.
119234         Check for closedir errors.
119235         Avoid needless casts.
119236         Use "#ifdef weak_alias" around weak_alias, to be like other
119237         glibc code.
119238         The following changes to getcwd.c have effect only when used in
119239         gnulib; they have no effect inside glibc proper.
119240         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
119241         as alloca isn't used.
119242         (alloca, __alloca): Likewise.
119243         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
119244         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
119245         unconditionally, as gnulib assumes C89 or better.
119246         Do not include <sys/param.h>.
119247         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
119248         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
119249         better.
119250         (NULL) [!defined NULL]: Remove; we assume C89 or better.
119251         Include <dirent.h> in a way that is compatible with modern Autoconf.
119252         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
119253         New macros, if not already defined.
119254         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
119255         Use "_LIBC", not "defined _LIBC", for consistency.
119256         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
119257         a mempcpy module.
119258         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
119259         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
119260         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
119261         credit only to Jim Meyering and adjust the copyright dates.
119262         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
119263         <stdlib.h>, <unistd.h>, "pathmax.h".
119264         Instead, include "xgetcwd.h" (first) and "getcwd.h".
119265         (INITIAL_BUFFER_SIZE): Remove.
119266         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
119268 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119270         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
119271         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
119272         Use the _ONCE methods, for efficiency.
119273         Check for fcntl.h.  In test program, include <errno.h>
119274         and <fcntl.h> if available.  Remove old K&R cruft from
119275         test program.  Check for common errors in GNU/Linux,
119276         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
119277         don't do AC_LIBOBJ, as that's getcwd.m4's job.
119278         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
119279         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
119280         name accordingly.
119281         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
119282         accommodate new getcwd.c.
119283         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
119284         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
119285         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
119286         that's all we need now.
119288 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119290         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
119291         argp-parse.c depends on getopt internals, that means we should
119292         always use our getopt, to be on the safe side.
119293         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
119294         order not to spoil the result of an eventual previous invocation
119295         of gl_GETOPT_SUBSTITUTE.
119297 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119299         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
119300         redefinition warnings. To avoid them, include the defines
119301         in `#if !defined __need_getopt ... #endif'. The only place
119302         where __getopt_argv_const is used is in definitions
119303         of getopt_long and getopt_long_only below, which are as well
119304         protected by `#ifndef __need_getopt'.
119305         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
119306         __need_getopt after including <stdio.h> and <unistd.h> These
119307         headers might have defined it.
119309 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119311         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
119313 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119315         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
119316         (futimens): New function, which uses futimes if available.
119317         (futimens, utimens): Support timespec==NULL, with same semantics
119318         as utime and utimens.
119319         * lib/utimens.h (futimens): New decl.
119321 2004-11-23  Jim Meyering  <jim@meyering.net>
119323         * lib/getopt_.h: Remove trailing blanks.
119325 2004-11-23  Jim Meyering  <jim@meyering.net>
119327         * lib/__fpending.c: Add comment.
119329 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
119331         * modules/canonicalize (Depends-on): Add xreadlink.
119332         Problem reported by James Youngman.
119334 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
119336         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
119337         New macros.
119338         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
119339         optopt): Use them instead of invoking ## directly; otherwise, the
119340         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
119342 2004-11-19  Bruno Haible  <bruno@clisp.org>
119344         * lib/strtok_r.c: Move comments from here...
119345         * lib/strtok_r.h: ... to here.
119347 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119349         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
119350         implementations that mishandle size_t overflow.
119352 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119354         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
119355         might fail.  Problem reported by Yoann Vandoorselaere.
119356         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
119357         implementations that mishandle size_t overflow.
119359 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119361         * modules/canon-host (Depends-on): Add strdup.
119363 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119365         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
119367 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119369         * lib/canon-host.c: Include "strdup.h".
119370         (canon_host): Use getaddrinfo if available, so that IPv6 works.
119371         Use strdup instead of malloc/strcpy to duplicate strings.
119373         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
119374         (human_space_before_unit): New constant.
119375         * lib/human.c (human_readable): Support it.
119377         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
119378         (xgetcwd): Set errno correctly when failing.
119379         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
119380         the failure is actually due to a PATH_MAX problem.
119382         Further getopt changes to make it more likely that glibc will
119383         buy the changes back.
119384         * lib/getopt.c (POSIXLY_CORRECT): New constant.
119385         (getopt): Use it, so to preserve glibc semantic
119386         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
119387         when compiling for libc.
119388         * lib/getopt_.h (__getopt_argv_const): Bring it back.
119389         (getopt_long, getopt_long_only): Use it.
119391         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119392         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
119393         (getopt): Argv is now char * const *, as per standard.
119394         (_getopt_internal_r, _getopt_internal): Argv is now char **,
119395         not char *__getopt_argv_const *.
119396         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119397         _getopt_long_only_r): Likewise.
119398         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
119399         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119400         _getopt_long_r, _getopt_long_only_r): Likewise.
119401         * lib/getopt_.h (__getopt_argv_const): Remove.
119402         (getopt): Argv is now char * const *, as per standard.
119404         * lib/getdate.y (tORDINAL): New token.
119405         (day, relunit): Allow it for relative times.
119406         (relative_time_table): Use tORDINAL for ordinals.
119408 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119410         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
119411         Document that "second" isn't allowed as an ordinal number.
119413 2004-11-16  Jim Meyering  <jim@meyering.net>
119415         * modules/closeout (Depends-on): Add fpending.
119417 2004-11-15  Jim Meyering  <jim@meyering.net>
119419         * lib/closeout.c: Include "__fpending.h" once again.
119420         Include <stdbool.h>.
119421         (close_stdout): Don't fail just because stdout was closed initially,
119422         since some programs don't write to stdout in the normal course of
119423         operation (other than --version and --help), and we don't want this
119424         function to make e.g. `touch file >&-' fail.
119425         But do fail if it was closed and someone has tried to write to it.
119426         E.g., `printf foo >&-' must fail.
119428 2004-11-13  Jim Meyering  <jim@meyering.net>
119430         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
119432 2004-11-12  Simon Josefsson  <jas@extundo.com>
119434         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
119435         small doc fix is still pending.
119437 2004-11-11  Simon Josefsson  <jas@extundo.com>
119439         * modules/strtok_r: New file.
119441         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119442         strtok_r.
119444 2004-11-11  Simon Josefsson  <jas@extundo.com>
119446         * m4/strtok_r.m4: New file.
119448         * m4/getopt.m4: Replace opterr.
119450 2004-11-11  Simon Josefsson  <jas@extundo.com>
119452         * lib/strtok_r.h, strtok_r.c: New file.
119454 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119456         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
119457         of replacing opterr, getopt, etc.  This should handle the
119458         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
119460 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119462         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
119463         we can stop lying to compilers about the constness of argv when we
119464         are compiled outside glibc.
119465         (getopt, getopt_long, getopt_long_only): Use it.
119466         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119467         _getopt_internal, getopt): Likewise.
119468         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119469         _getopt_long_only_r): Likewise.
119470         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119471         _getopt_long_r, _getopt_long_only_r): Likewise.
119473         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
119474         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
119475         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
119476         the other external symbols.
119477         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
119478         declaration, since the above renaming now works around collisions.
119480 2004-11-11  Jim Meyering  <jim@meyering.net>
119482         * lib/linebreak.c: Remove trailing blanks.
119483         * lib/alloca_.h: Likewise.
119484         * lib/acosl.c: Likewise.
119485         * lib/euidaccess.c: Likewise.
119486         * lib/allocsa.h: Likewise.
119488 2004-11-10  Simon Josefsson  <jas@extundo.com>
119490         * m4/getaddrinfo.m4: New file.
119492 2004-11-10  Simon Josefsson  <jas@extundo.com>
119494         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
119496 2004-11-10  Simon Josefsson  <jas@extundo.com>
119498         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119499         getaddrinfo.
119501         * modules/getaddrinfo: New file.
119503 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119505         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
119507 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119509         * lib/mktime.c (SHR): New macro, which is a portable
119510         substitute for >> that should work even on Crays.
119511         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
119512         Problem reported by Mark D. Baushke in
119513         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
119514         * lib/getdate.y (SHR): Likewise.
119515         (tm_diff): Use it.
119516         * lib/strftime.c (SHR): Likewise.
119517         (tm_diff): Use it.
119518         * lib/quotearg.c (struct quoting_options): Use unsigned int for
119519         quote_these_too, so that right shifts are well defined.  All uses
119520         changed.
119522 2004-11-10  Jim Meyering  <jim@meyering.net>
119524         Ensure that no close failure goes unreported.
119525         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
119526         return early when it seems there's nothing to flush.
119527         Don't include __fpending.h.
119529 2004-11-10  Jim Meyering  <jim@meyering.net>
119531         * modules/closeout (Depends-on): Remove fpending.
119533 2004-11-10  Jim Meyering  <jim@meyering.net>
119535         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
119537 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
119539         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
119540         gl_FUNC_STRFTIME.
119541         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
119542         and AC_REQUIRE when possible, to avoid duplicate checks.
119543         Check for <wchar.h>.
119545 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
119547         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
119549 2004-11-09  Bruno Haible  <bruno@clisp.org>
119551         * m4/sockpfaf.m4: New file.
119553 2004-11-05  Bruno Haible  <bruno@clisp.org>
119555         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
119556         Reported by Mark D. Baushke <mdb@cvshome.org>.
119558 2004-11-04  Bruno Haible  <bruno@clisp.org>
119560         2004-09-11  Bruno Haible  <bruno@clisp.org>
119561                 * allocsa.valgrind: New file.
119562         2004-02-06  Bruno Haible  <bruno@clisp.org>
119563                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
119564                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
119565                 Reported by Christopher Seip <chris.seip@hp.com>.
119567 2004-11-04  Bruno Haible  <bruno@clisp.org>
119569         * modules/allocsa (Files): Add lib/allocsa.valgrind.
119570         (Makefile.am): Distribute it.
119572 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
119574         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
119575         with errno == ERANGE if the buffer is too small.
119576         Problem reported by Mark D. Baushke.
119578 2004-11-03  Albert Chin  <china@thewrittenword.com>
119579             Paul Eggert  <eggert@cs.ucla.edu>
119581         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
119582         equivalent, substitute $ac_type for equivalent type rather than
119583         blindly using uint32_t *always* which won't work if uint32_t is not
119584         available.  Define _UINT32_T to work around typedef of uint32_t if
119585         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
119586         2.5.1.
119588 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119590         * m4/jm-macros.m4: Sync from coreutils.
119591         (gl_MACROS): Check for mbrlen, for pathchk.
119592         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
119594 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119596         * lib/xreadlink.c (MAXSIZE): New macro.
119597         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
119598         size does not exceed MAXSIZE.  Avoid cast.
119599         As suggested by Mark D. Baushke in
119600         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
119601         if readlink fails with buffer size just under MAXSIZE, try again
119602         with MAXSIZE.
119604 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119606         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
119608 2004-11-02  Derek R. Price  <derek@ximbiot.com>
119609         and  Paul Eggert  <eggert@cs.ucla.edu>
119611         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
119612         (get_date): Overparenthesize to avoid GCC warning.
119614 2004-11-02  Bruno Haible  <bruno@clisp.org>
119616         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
119617         returns void.
119619 2004-11-02  Bruno Haible  <bruno@clisp.org>
119621         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
119622         function returns void.
119624 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
119626         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
119627         fflush_unlocked, flockfile, funlockfile, funlockfile,
119628         fputs_unlocked, putc_unlocked.
119630 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
119632         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
119633         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
119634         already declared.
119636 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
119638         * modules/getdate (Files): Add doc/getdate.texi.
119639         (Depends-on): Add setenv, xalloc.
119641 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
119643         * lib/getdate.y: Add support for TZ="foo" within a date string.
119644         Fix some bugs near time_t boundaries.  Reject dates with
119645         out-of-range components, e.g., "Sept 31".
119646         Include <stdlib.h>, "setenv.h", "xalloc.h".
119647         (ISDIGIT_LOCALE): Remove; unused.
119648         Note that the TZ and time functions used here are not reentrant.
119649         (mktime_ok, get_tz): New functions.
119650         (TZBUFSIZE): New constant.
119651         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
119652         This requires that we sometimes generate our own TZ="XXX..." setting.
119654 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
119656         * doc/getdate.texi: New file, from coreutils with modifications for
119657         the new TZ parsing.
119659 2004-10-27  Derek R. Price  <derek@ximbiot.com>
119661         * lib/mktime.c (not_equal_tm): Remove redundant check.
119663 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
119665         * modules/regex (lib_SOURCES): Add regex.c.
119666         Reported by James Youngman in
119667         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
119669 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
119671         * lib/getdate.y: Use Bison 1.875 features, and some minor
119672         code cleanups.  This change does not affect semantics.
119673         Don't include <stdlib.h>; no longer needed.
119674         Don't include unlocked-io.h; only the "#if TEST" code uses
119675         stdio, and performance isn't crucial there.
119676         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
119677         Bison 1.875 features as described below.
119678         All uses of "PC." replaced by "pc->".
119679         (YYSTYPE): Add a forward declaration.
119680         (yylex, yyerror): Use full prototypes in forward decls.
119681         Use "%pure-parser" rather than obsolescent "%pure_parser".
119682         Use %parse-param and %lex-param instead of obsolescent
119683         YYPARSE_PARAM and YYLEX_PARAM.
119684         (meridian_table, month_and_day_table, time_units_table,
119685         relative_time_table, time_zone_table, military_table,
119686         lookup_zone, lookup_word, get_date):
119687         Use NULL instead of 0 where appropriate.
119688         (to_hour): Avoid abort (), to avoid a dependency on
119689         stdlib.h.
119690         (yyerror, yylex): Now accepts parser_control * arg.
119691         (main) [TEST]: Use '\0' rather than 0 for char.
119693 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
119695         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
119697 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
119699         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
119700         It's now the caller's responsibility to handle the case where
119701         !HAVE_GETPAGESIZE && !defined getpagesize.
119703         * lib/mktime.c (leapyear): Arg is long int, not int.
119705 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
119707         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
119709 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
119711         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
119712         missing.  Problem reported by James Youngman.
119714 2004-10-16  Simon Josefsson  <jas@extundo.com>
119716         * gnulib-tool: Fix comments.  Fix parse problem.
119717         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
119719 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
119721         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
119722         implementation of getopt_long.  Problem reported by Alexander Taler in:
119723         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
119725 2004-10-15  Bruno Haible  <bruno@clisp.org>
119727         * gnulib-tool: Untabify. Initialize supplied_libname.
119728         (func_usage): More homogenous output.
119729         (func_modules_transitive_closure, func_modules_to_filelist,
119730         func_emit_lib_Makefile_am): New functions.
119731         (func_import): New function, extracted from big case statement. Use
119732         func_get_license, func_modules_transitive_closure,
119733         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
119734         opt_lgpl. Don't use test -a, as it's not portable.
119735         (func_create_testdir): Use func_modules_transitive_closure,
119736         func_modules_to_filelist, func_emit_lib_Makefile_am.
119738 2004-10-15  Bruno Haible  <bruno@clisp.org>
119740         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
119742 2004-10-15  Bruno Haible  <bruno@clisp.org>
119744         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
119745         the portions belonging to each module.
119746         Suggested by Derek Robert Price <derek@ximbiot.com>.
119748 2004-10-12  Simon Josefsson  <jas@extundo.com>
119750         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
119751         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
119752         to real functions.
119754 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119756         * modules/vsnprintf: New file.
119758 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119760         * m4/vsnprintf.m4: New file.
119762 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119764         * lib/vsnprintf.h: New file.
119765         * lib/vsnprintf.c: New file.
119767 2004-10-11  Bruno Haible  <bruno@clisp.org>
119769         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
119770         vsnprintf.
119772 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
119774         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
119776 2004-10-07  Bruno Haible  <bruno@clisp.org>
119778         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
119779         fits into the provided buffer.
119781 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
119783         * lib/diacrit.c, diacrit.h: Add GPL notice.
119785         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
119786         notice.
119787         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
119788         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
119789         This avoids a potential constant-folding bug.
119791 2004-10-05  Bruno Haible  <bruno@clisp.org>
119793         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
119794         for the declaration of strsep.
119796 2004-10-05  Bruno Haible  <bruno@clisp.org>
119798         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
119800 2004-10-04  Simon Josefsson  <jas@extundo.com>
119802         * modules/memmem: New file.
119803         * tests/test-memmem.c: New file.
119804         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
119806 2004-10-04  Simon Josefsson  <jas@extundo.com>
119808         * m4/memmem.m4: New file.
119810 2004-10-04  Simon Josefsson  <jas@extundo.com>
119812         * lib/memmem.h: New file.
119813         * lib/memmem.c: New file, taken from glibc.
119815 2004-10-04  Simon Josefsson  <jas@extundo.com>
119817         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
119818         '#ifdef USE_UNLOCKED_IO'.
119820 2004-10-04  Simon Josefsson  <jas@extundo.com>
119822         * config/srclist.txt: Add memmem from glibc.
119824 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
119826         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
119828         * modules/argmatch, modules/argp, modules/closeout, modules/error,
119829         modules/exclude, modules/getdate, modules/getline,
119830         modules/getndelim2, modules/getpass, modules/getpass-gnu,
119831         modules/getusershell, modules/linebuffer, modules/md5,
119832         modules/mountlist, modules/posixtm, modules/readtokens,
119833         modules/readutmp, modules/regex, modules/sha1,
119834         modules/version-etc, modules/yesno:
119835         Remove dependency on unlocked-io.
119837 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
119839         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
119841         * m4/unlocked-io.m4: Add copyright notice.
119842         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
119844 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
119846         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
119847         * lib/xmalloc.c (xmemdup): Likewise.
119848         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
119849         XFREE): Remove these long-obsolescent macros.
119850         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
119851         * lib/xstrdup.c: Remove.
119853         * lib/regex.c (re_comp): Cast gettext return value to char *,
119854         Problem reported by Martin Neitzel via Mark D. Baushke.
119856 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
119858         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
119859         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
119860         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
119861         regex.c, sha1.c, version-etc.c, yesno.c:
119862         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
119863         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
119864         the includer's responsibility.
119866         Sync from coreutils.
119868         * lib/modechange.c (mode_compile): Don't decrement a pointer that
119869         points to the start of a string, as the C Standard says the
119870         resulting behavior is undefined.
119872         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
119873         simple -> simple_backups, numbered_existing ->
119874         numbered_existing_backups, numbered -> numbered_backups
119875         to avoid shadowing problems.  All uses changed.
119876         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
119877         * lib/backupfile.c (check_extension, numbered_backup):
119878         Rename locals to avoid shadowing 'basename'.
119879         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
119880         once.
119882         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
119883         * lib/.cvsignore: Add getopt.h.
119885 2004-10-04  Bruno Haible  <bruno@clisp.org>
119887         * modules/README: New file.
119888         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
119889         not a module.
119891 2004-10-02  Jim Meyering  <jim@meyering.net>
119893         * lib/dirfd.h, getpagesize.h: Add copyright notice.
119895 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119897         * modules/strsep: New file.
119899 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119901         * m4/strsep.m4: New file.
119903 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119905         * lib/strsep.h: New file.
119906         * lib/strsep.c: New file.
119908 2004-10-01  Simon Josefsson  <jas@extundo.com>
119910         * lib/snprintf.c (snprintf): Handle size==0.
119912 2004-10-01  Simon Josefsson  <jas@extundo.com>
119913             Bruno Haible  <bruno@clisp.org>
119915         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
119916         (snprintf): Declare 'args'.
119918 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
119920         * lib/snprintf.c: Remove comments as to why each header is needed.
119922 2004-10-01  Bruno Haible  <bruno@clisp.org>
119924         * MODULES.html.sh: Add strsep.
119926 2004-09-30  Simon Josefsson  <jas@extundo.com>
119928         * modules/snprintf: New file.
119930 2004-09-30  Simon Josefsson  <jas@extundo.com>
119932         * m4/snprintf.m4: New file.
119934 2004-09-30  Simon Josefsson  <jas@extundo.com>
119936         * lib/snprintf.h, lib/snprintf.c: New files.
119938 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119940         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
119941         (hol_entry_help): Never translate an empty string.
119942         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
119943         * lib/argp.h (OPTION_NO_TRANS): New option.
119945 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
119947         * modules/argp (Maintainer): Replace Simon Josefsson
119948         by Sergey Poznyakoff.
119950 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
119952         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
119953         changes merged back into glibc.
119955 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
119957         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
119959 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
119961         * lib/xvasprintf.c: Include xalloc.h.
119962         (xvasprintf): Use xalloc_die, not xmalloc_die.
119964 2004-09-29  Bruno Haible  <bruno@clisp.org>
119966         * modules/alloca-opt: New file, derived from modules/alloca.
119967         * modules/allocsa: Depend on alloca-opt instead of alloca.
119968         * modules/setenv: Likewise.
119969         * modules/vasnprintf: Likewise.
119970         * MODULES.html.sh: Add alloca-opt.
119972 2004-09-28  Simon Josefsson  <jas@extundo.com>
119974         * gnulib-tool: New parameter --lgpl, to asseert that modules are
119975         LGPL, and to replace license template from GPL to LGPL.
119977 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
119979         * modules/dummy: Change license to LGPL.
119981 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
119983         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
119985 2004-09-24  Simon Josefsson  <jas@extundo.com>
119987         * modules/minmax (License): Change from GPL to LGPL.
119989 2004-09-23  Simon Josefsson  <jas@extundo.com>
119991         * gnulib-tool (--import): Typo.
119993 2004-09-23  Simon Josefsson  <jas@extundo.com>
119995         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
119997 2004-09-22  Bruno Haible  <bruno@clisp.org>
119999         * modules/*: Add 'License' field.
120000         * gnulib-tool: Accept --extract-license option.
120001         (func_get_license): New function.
120003 2004-09-21  Bruno Haible  <bruno@clisp.org>
120005         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
120006         Reported by Simon Josefsson.
120008 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120010         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
120011         gl_AC_TYPE_LONG_LONG.
120013 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120015         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
120017 2004-09-18  Simon Josefsson  <jas@extundo.com>
120018         and  Paul Eggert  <eggert@cs.ucla.edu>
120020         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
120021         calls with autoreconf.  Define GL_LIB.
120023 2004-09-14  Karl Berry  <karl@gnu.org>
120025         * config/srclist.txt: unsync setenv.c, sigh.
120027 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120029         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
120030         Problem reported by Bruno Haible in:
120031         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
120033 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120035         * config/srclist.txt: Comment out argp-pvh.c.
120037 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
120039         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
120040         in case some system header has #define'd it.  Problem reported by
120041         Soeren D. Schulze in
120042         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
120044 2004-09-09  Karl Berry  <karl@gnu.org>
120046         * regex.[ch]: delete from the root.  These were supposed to be
120047                 synced with emacs cvs, but this has not happened for about
120048                 a year, and anyway nothing else uses emacs regex.[ch].
120049                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
120050                 lib/regex[.ch] is untouched.
120052 2004-09-09  Bruno Haible  <bruno@clisp.org>
120054         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
120056 2004-09-09  Bruno Haible  <bruno@clisp.org>
120058         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
120059         modifications.
120060         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
120062 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120064         * modules/xvasprintf: New file.
120065         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
120067 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120069         * lib/xvasprintf.h: New file.
120070         * lib/xvasprintf.c: New file.
120071         * lib/xasprintf.c: New file.
120073 2004-09-08  Bruno Haible  <bruno@clisp.org>
120075         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
120077 2004-09-08  Bruno Haible  <bruno@clisp.org>
120079         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
120080         length is > INT_MAX.
120081         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
120082         more.
120084 2004-09-08  Bruno Haible  <bruno@clisp.org>
120086         * lib/stdint_.h: New file, taken from GNU clisp.
120088 2004-09-08  Bruno Haible  <bruno@clisp.org>
120089             Oskar Liljeblad  <oskar@osk.mine.nu>
120091         * modules/stdint: New file.
120092         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
120094 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120096         Import from coreutils.
120097         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
120098         strings on unbounded length.  alloca's performance benefits aren't
120099         that important here.
120100         (V_STRDUP): Remove.
120101         (parse_with_separator): New function, with most of the internals
120102         of the old parse_user_spec.  Allow user to omit both user and group,
120103         for compatibility with FreeBSD.
120104         Clone only the user name, not the entire spec.
120105         Do not set *uid, *gid unless entirely successful.
120106         Avoid memory leak in some failing cases.
120107         Fix regression for USER.GROUP reported by Dmitry V. Levin in
120108         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
120109         (parse_user_spec): Rewrite to use parse_with_separator.
120111 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120113         * modules/userspec: Don't depend on alloca.
120115 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120117         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
120119 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120121         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
120122         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
120123         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
120125 2004-08-16  Simon Josefsson  <jas@extundo.com>
120127         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
120128         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
120129         Add --dry-run for --import.
120130         Let user provided command line parameters override configure.ac
120131         settings.
120133 2004-08-12  Simon Josefsson  <jas@extundo.com>
120135         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
120136         as discussed with Paul Eggert in threads rooted at
120137         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
120138         and
120139         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
120140         Before, the test was empty, and relied on ELIDE_CODE in source
120141         code.)
120142         (gl_PREREQ_GETOPT): New macro.
120143         (gl_GETOPT): Use them.
120145 2004-08-12  Simon Josefsson  <jas@extundo.com>
120147         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
120148         * lib/getopt_.h: Renamed from getopt.h.
120150 2004-08-12  Simon Josefsson  <jas@extundo.com>
120152         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
120153         Change default library name from libfoo to libgnu.
120154         Now, if you have a configure.ac that says:
120155                 gl_SOURCE_BASE(gl)
120156                 gl_M4_BASE(gl/m4)
120157                 gl_MODULES(error getopt etcetera)
120158                 gl_INIT
120159         you can import all you need by running:
120160                 ../gnulib/gnulib-tool --import
120162         * modules/getopt (Files): Rename getopt.h to getopt_.h.
120163         (Makefile.am): Rewrite, use logic from argz.
120164         (Include): Use <getopt.h> instead of "getopt.h".
120166 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120168         * modules/argp (Files): Add m4/unlocked-io.m4.
120169         (Depends-on): Add extensions.
120171 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120173         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
120174         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
120175         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
120176         Check for program_invocation_name, program_invocation_short_name,
120177         flockfile, funlockfile, features.h, _getopt_long_only_r.
120179 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120181         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
120182         its complicated substitute.
120183         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
120184         and program_invocation_name.
120185         (__argp_basename) [!_LIBC]: Remove; the only use was
120186         replaced by its body.
120187         (__argp_short_program_name): Change condition from
120188         !defined __argp_short_program_name to
120189         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
120190         to match argp-namefrob.h.
120191         (__argp_failure): Don't assume strerror_r returns char *.
120192         * lib/argp-parse.c (N_): Define unconditionally.
120193         (argp_default_options): Fill out initializers with 0 to avoid
120194         gcc warnings.
120196 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120198         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
120199         getopt1.c.
120201 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120203         Merge from coreutils.
120205         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
120207         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
120208         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
120210 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120212         Merge from coreutils.
120214         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
120215         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
120216         for Reliant Unix 5.43.
120218         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
120219         (union fooround): Use uintmax_t, not long int.
120220         The rest is a merge from libc:
120221         [defined _LIBC]: Include <shlib-compat.h>.
120222         (_obstack) [defined _LIBC]: Remove after 2.3.4.
120224         * lib/settime.c (settime): Recode to avoid warning with
120225         Sun Forte C 6U2.
120227         * lib/strverscmp.c: Convert to UTF-8.
120229 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120231         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120232         m4/uintmax_t.m4.
120234 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120236         * modules/xalloc-die: New file.
120237         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
120239         * modules/md5 (Files): Add m4/uint32_t.m4.
120240         * modules/sha1: Renamed from modules/sha.
120241         (Files):
120242         Rename lib/sha.h to lib/sha1.h.
120243         Rename lib/sha.c to lib/sha1.c.
120244         Rename m4/sha.m4 to m4/sha1.m4.
120245         (lib_SOURCES): Likewise.
120246         (configure.ac): Rename gl_SHA to gl_SHA1.
120247         (Include): sha.h -> sha1.h.
120249 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120251         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
120252         * m4/sha1.m4: Renamed from sha.m4.
120253         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
120255 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120257         * lib/obstack.h (obstack_empty_p):
120258         Don't assume that chunk->contents is suitably aligned.
120259         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
120260         Likewise. Problem reported by Benno in
120261         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
120263         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
120264         readable.  This could be improved further but it'd take some work.
120266 2004-08-08  Simon Josefsson  <jas@extundo.com>
120268         * modules/xgethostname (Depends-on): Remove exit and error (not
120269         used).
120271         * modules/getpass-gnu: Add getpass.h.
120272         (Depends-on): Add stdbool.
120273         * modules/getpass: Add getpass.h.
120275 2004-08-08  Simon Josefsson  <jas@extundo.com>
120277         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
120278         Check getpass declaration.
120280 2004-08-08  Simon Josefsson  <jas@extundo.com>
120282         * lib/xgethostname.c: Don't include error.h (not used).
120284         * lib/getpass.h: Add.
120285         * lib/getpass.c: Include getpass.h first.
120287 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
120289         * lib/xalloc-die.c: New file.
120290         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
120291         All uses removed.
120292         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
120293         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
120294         xalloc-die.c.
120295         (_, N_, xalloc_die): Move to xalloc-die.c.
120296         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
120297         so that we needn't mess with xalloc_msg_memory_exhausted.
120299         * lib/sha1.h: Renamed from sha.h.
120300         (SHA1_H): Renamed from _SHA_H.
120301         (sha1_ctx): Renamed from sha_ctx.
120302         (sha1_init_ctx): Renamed from sha_init_ctx.
120303         (sha1_process_block): Renamed from sha_process_block.
120304         (sha1_process_bytes): Renamed from sha_process_bytes.
120305         (sha1_finish_ctx): Renamed from sha_finish_ctx.
120306         (sha1_read_ctx): Renamed from sha_read_ctx.
120307         (sha1_stream): Renamed from sha_stream.
120308         (sha1_buffer): Renamed from sha_buffer.
120309         * lib/sha1.c: Likewise; renamed from sha.c.
120310         Do not include <sys/types.h>.
120311         Include <stddef.h> rather than <stdlib.h>.
120313 2004-08-08  Bruno Haible  <bruno@clisp.org>
120315         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
120316         FILESYSTEM_PREFIX_LEN.
120317         * lib/progreloc.c: Likewise.
120318         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
120320 2004-08-06  Simon Josefsson  <jas@extundo.com>
120322         * modules/progname (Depends-on): Don't depend on stdbool.
120324 2004-08-06  Simon Josefsson  <jas@extundo.com>
120326         * modules/getsubopt: New file.
120327         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120328         getsubopt.
120330 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120332         More merge from coreutils.
120334         * m4/utimens.m4, m4/utimecmp.m4: New files.
120335         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
120336         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
120337         prereq.m4, sha.m4: Import changes from coreutils.
120339 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120341         More merge from coreutils.
120342         * modules/raise, modules/readtokens0, modules/utimens:
120343         * modules/utimecmp, module/xnanosleep: New files.
120344         * modules/strftime: Add lib/strftime.h.
120345         Change include from <time.h> to "strftime.h".
120346         * modules/yesno: Add lib/yesno.h.
120347         * modules/backupfile: Remove lib/addext.c.
120348         * modules/euidaccess: Add stat-macros.h.
120349         * modules/canonicalize, modules/euidaccess,
120350         modules/filemode, modules/lchown, modules/makepath,
120351         modules/rmdir, modules/stat: Likewise.
120353 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120355         Merge from tar.
120356         * lib/argp-help.c (make_hol, hol_append): Don't assume that
120357         SIZE_MAX is a valid preprocessor constant.
120358         (__argp_basename): Change from "#ifndef _LIBC"
120359         to "#ifndef __argp_short_program_name", so that
120360         we don't compile these functions for tar.
120362         More merges from coreutils.
120363         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
120364         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
120365         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
120366         * lib/addext.c: Remove; no longer needed.
120367         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
120368         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
120369         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
120370         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
120371         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
120372         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
120373         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
120374         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
120375         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
120376         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
120377         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
120378         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
120379         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
120380         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
120381         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
120382         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
120383         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
120384         Import changes from coreutils.
120386 2004-08-05  Simon Josefsson  <jas@extundo.com>
120388         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
120390 2004-08-05  Simon Josefsson  <jas@extundo.com>
120392         * m4/getsubopt.m4: New file.
120394 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120396         Merge from coreutils.
120398         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
120399         * m4/getcwd-path-max.m4: New files.
120401         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
120402         FILESYSTEM_PREFIX_LEN ->
120403         FILE_SYSTEM_PREFIX_LEN.
120404         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
120405         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
120406         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
120407         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
120409         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
120410         prerequisite modules now handle the DOS stuff.
120411         Don't check for unistd.h.
120413 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120415         Merge from coreutils.
120417         * lib/.gdb-history: Remove; this doesn't belong here.
120419         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
120420         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
120421         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
120422         * lib/getcwd.c: New files.
120424         * lib/dirname.h: Include <stdbool.h>.
120425         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
120426         for consistency with POSIX terminology.  All uses changed.
120427         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
120428         (strip_trailing_slashes): Use bool for booleans.
120429         * lib/stripslash.c (strip_trailing_slashes): Likewise.
120431         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
120432         sometimes returns a positive errno value even when it succeeds.
120433         (print_errno_message) [!LIBC]: Fall back on strerror if
120434         __strerror_r fails.
120436         * lib/path-concat.c (mempcpy): Don't define if a system header defines
120437         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
120438         (longest_relative_suffix): New function.
120439         (path_concat): Use it.  Assume first argument is not NULL.
120440         Port to DOS.  Omit redundant separators.
120441         Report an error instead of returning NULL.
120442         Use mempcpy instead of memcpy.
120443         (xpath_concat): Remove: not declared or used.
120445         * lib/same.h: Include <stdbool.h>
120446         (same_name): Return bool, not int.
120447         * lib/same.c (same_name): Likewise.
120448         (errno): Don't declare; we assume C89 or better now.
120450         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
120451         if not already defined.
120453         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
120454         * lib/dup-safer.c (errno): Likewise.
120456 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120458         Merge from coreutils.
120459         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
120460         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
120461         * modules/path-concat: Don't depend on strdup.
120463 2004-08-03  Simon Josefsson  <jas@extundo.com>
120465         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
120466         * lib/progname.h: Don't include stdbool.h.
120468 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120470         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
120471         * MODULES.html.sh (func_all_modules): Remove fatal.
120473 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120475         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
120477 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120479         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
120480         working.
120482 2004-08-02  Simon Josefsson  <jas@extundo.com>
120484         * lib/getsubopt.h: New file, with comments from Bruno Haible.
120485         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
120486         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
120488 2004-08-01  Simon Josefsson  <jas@extundo.com>
120490         * lib/xgetdomainname.c: Include stdlib.h, for free().
120492 2004-07-19  Bruno Haible  <bruno@clisp.org>
120494         * MODULES.html.sh (func_all_modules): Add dummy.
120496 2004-07-16  Simon Josefsson  <jas@extundo.com>
120498         * modules/dummy: New file.
120500 2004-07-16  Simon Josefsson  <jas@extundo.com>
120502         * lib/dummy.c: New file.
120504 2004-07-16  Bruno Haible  <bruno@clisp.org>
120506         * lib/backupfile.h: Add extern "C" for C++.
120507         * lib/closeout.h: Likewise.
120508         * lib/copy-file.h: Likewise.
120509         * lib/findprog.h: Likewise.
120510         * lib/full-write.h: Likewise.
120511         * lib/pathname.h: Likewise.
120512         * lib/progname.h: Likewise.
120513         * lib/stpcpy.h: Likewise.
120514         * lib/stpncpy.h: Likewise.
120515         * lib/strcase.h: Likewise.
120516         * lib/strstr.h: Likewise.
120517         * lib/xalloc.h: Likewise.
120519         * lib/mbswidth.h: Add extern "C" for C++.
120520         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
120522 2004-07-13  Robert Millan  <robertmh@gnu.org>
120524         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
120526 2004-07-09  Simon Josefsson  <jas@extundo.com>
120528         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
120529         failed without this.)
120531 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
120533         * modules/chown (Files): Add lib/fchown-stub.c, since
120534         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
120536 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
120538         * lib/fchown-stub.c: New file.
120540 2004-06-24  Jim Meyering  <jim@meyering.net>
120542         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
120544 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120546         * modules/argz: Omit "#include".
120548         * MODULES.html.sh (func_all_modules): Add calloc, to match
120549         2004-06-01 addition of calloc module.
120551 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120553         * m4/argz.m4: New file, which is autoupdated from libtool.
120555 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120557         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
120558         libtool.
120560 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120562         * config/srclist-update: Don't insist on "USA." before the
120563         close-comment, as libtool omits the period and puts the */ on a
120564         separate line.
120565         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
120566         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
120568 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
120570         * modules/argz: New file.
120571         * MODULES.html.sh (func_all_modules): Add argz.
120573 2004-06-12  Jim Meyering  <jim@meyering.net>
120574         and  Paul Eggert  <eggert@cs.ucla.edu>
120576         * modules/hash (Files): Add lib/xalloc.h.
120577         * modules/pipe (Depends-on): Add wait-process.
120578         * modules/stat (Depends-on): Add xalloc.
120579         * modules/userspec (Files): Add lib/userspec.h.
120580         * modules/xstrto
120582         Upgrade from gettext-0.13.
120583         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
120584         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
120585         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
120587 2004-06-10  Jim Meyering  <jim@meyering.net>
120589         * lib/calloc.c: New file.
120591 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
120593         * lib/getdate.y (yylex): Allow space between sign and number.
120594         Problem reported by Dan Jacobson.
120596 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
120598         Merge from coreutils CVS.
120600         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
120601         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
120602         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
120603         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
120604         xstrtol.m4: Fix copyright date and/or serial number.
120606         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
120607         See if we need an fchown replacement.
120608         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
120609         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
120610         and use the replacement function if we detect either defect.
120612         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
120613         gl_UTIMECMP.
120615 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
120616         and  Jim Meyering  <jim@meyering.net>
120618         Merge from coreutils CVS.
120620         * lib/stat-macros.h: New file, with contents from file-type.h
120621         and coreutils' system.h.
120622         * lib/file-type.c: Include "stat-macros.h".
120623         * lib/file-type.h (file_type): Move all macro definitions to new file,
120624         stat-macros.h.
120626         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
120627         Wrap old code with this conditional.
120628         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
120629         function that does not dereference symlinks.
120630         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
120632         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
120633         dependency problems.
120634         (xreadlink): Accept new arg SIZE, for efficiency.
120635         All decls and uses changed.
120636         * lib/xreadlink.h: Include <stddef.h>, for size_t.
120638         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
120639         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
120641         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
120642         sysexits.h.
120644 2004-06-01  Jim Meyering  <jim@meyering.net>
120646         * m4/calloc.m4: New file.
120648 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
120650         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
120651         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
120652         Also, fix a typo in a diagnostic.
120654 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
120656         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
120657         or AC_FUNC_REALLOC.
120659 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
120661         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
120662         macros to be defined.
120663         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
120664         the allocator returns NULL because the requested size is zero.
120666 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120668         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
120669         var.  Add comment explaining why libc still defines it.  This
120670         merges the following patch from glibc:
120671         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
120673 2004-05-20  Andreas Schwab  <schwab@suse.de>
120675         * m4/free.m4: Replace free if it not known to work, not the other
120676         way round.
120678 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
120680         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
120681         present in glibc since revision 1.1 of this file.
120682         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
120683         obstack_alignment_mask, obstack_alloc, obstack_base,
120684         obstack_blank, obstack_blank_fast, obstack_chunk_size,
120685         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
120686         obstack_grow0, obstack_init, obstack_int_grow,
120687         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
120688         obstack_next_free, obstack_object_size, obstack_ptr_grow,
120689         obstack_ptr_grow_fast, obstack_room): Remove declarations of
120690         nonexistent functions.
120692 2004-05-18  Karl Berry  <karl@gnu.org>
120694         * config/srclist.txt: break link for vasnprintf.c.
120696 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
120698         Port obstack to the AS/400, where pointers are 16 bytes wide and
120699         you cannot cast an integer to a valid pointer.  This patch is
120700         currently waiting to be integrated into glibc; see
120701         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
120703         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
120704         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
120705         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
120706         (struct obstack): temp member is now a union of a pointer and
120707         an integer, instead of an integer.  All integer uses changed.
120708         This does not affect the physical layout of struct obstack,
120709         except on hosts (like the AS/400) where the size or alignment of
120710         void * is greater than that of ptrdiff_t.
120711         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
120712         __STDC__)]: Store temporary in pointer member of union, not
120713         integer member.
120714         * lib/obstack.c: Include <stddef.h>, for offsetof.
120715         (struct fooalign): Remove; it doesn't need a name.
120716         (union fooround): Change double to long double, and add void *.
120717         (DEFAULT_ALIGNMENT): Use offsetof to compute.
120718         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
120719         not a macro.  Hence the values are always int; so remove all
120720         casts-to-int in uses.
120722 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
120724         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
120725         we can get this patch merged into glibc.
120727 2004-05-17  Derek R. Price  <derek@ximbiot.com>
120728             Paul Eggert  <eggert@cs.ucla.edu>
120730         * m4/argp: Depend on alloca.
120732 2004-05-17  Derek R. Price  <derek@ximbiot.com>
120733             Paul Eggert  <eggert@cs.ucla.edu>
120735         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
120736         freecoding.
120738 2004-05-17  Bruno Haible  <bruno@clisp.org>
120740         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
120741         precision that consists of a '.' followed by an empty digit string.
120742         Patch by Tor Lillqvist <tml@iki.fi>.
120744 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
120746         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
120747         for backward compatibility with older code.  We need our own
120748         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
120749         it under some other name, and our alloca.h will define it.
120751 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
120752             Derek Price  <derek@ximbiot.com>
120754         * lib/alloca.c: Include <alloca.h>, to get our interface.
120755         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
120756         include <alloca.h> first.  Use C89 prototype for alloca; this
120757         requires including <stddef.h> for size_t.  Use extern "C" if C++.
120758         Use #elif for simplicity, since we can assume C89 now.
120759         Don't try to source the system alloca.h since it will not be found
120760         and to prevent recursively including its replacement.
120761         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
120762         * lib/regex.c: Likewise.
120764 2004-05-16  Derek Price  <derek@ximbiot.com>
120765             Paul Eggert  <eggert@cs.ucla.edu>
120767         getline cleanup.  This changes the getndelim2 API: both order of
120768         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
120769         no delimiter).
120771         * lib/getline.c: Don't include stddef.h or stdio.h, since our
120772         interface does that.
120773         (getline): Always use getdelim, so that we don't have two
120774         copies of this code.
120775         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
120776         if available.
120777         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
120778         (GETNDELIM2_MAXIMUM): New macro.
120779         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
120780         instead of the old practice of delim2==0.  All callers changed.
120781         Return -1 on overflow, instead of returning junk.
120782         Do not set *linesize unless allocation succeeds.
120783         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
120784         that we include sys/types.h.
120785         * lib/getnline.h: Likewise.
120786         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
120787         (getndelim2): Reorder arguments.
120788         * lib/getnline.c (getnline, getndelim):
120789         Don't discard the NMAX argument.
120790         (getnline): Invoke getndelim, to avoid code duplication.
120791         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
120792         of (size_t) -1 by callers of the getnline family.
120794 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
120796         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
120797         Check for gettimeofday.
120798         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
120799         Check for settimeofday, stime.
120801 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
120803         * lib/nanosleep.c (suspended): Change its type from int to
120804         sig_atomic_t volatile.
120805         (first_call): Make it private to rpl_nanosleep, and have it
120806         be zero initially as that's a bit faster.
120807         (my_usleep): Round up fractional times instead of truncating them,
120808         as this is the usual meaning for 'sleep'.
120810         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
120811         doesn't work.
120812         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
120813         (ENOSYS): Define if not defined.
120814         (settime): Fall back on stime if it exists and settimeofday fails.
120815         But don't bother with fallbacks if a method fails with errno == EPERM.
120817 2004-05-11  Jim Meyering  <jim@meyering.net>
120819         Prior to this change, the save_cwd caller required read access to the
120820         current directory on most systems (ones with the fchdir function).
120822         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
120823         fails, try write-only, and finally, resort to using xgetcwd.
120825 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
120827         * lib/obstack.c, obstack.h: Import changes from libc.
120829 2004-04-28  Bruno Haible  <bruno@clisp.org>
120831         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
120832         also implicitly appends .exe to executables.
120833         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
120834         accepts Windows pathnames.
120835         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
120836         Treat Cygwin like Windows, since it now accepts Windows pathnames.
120837         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
120838         Treat Cygwin like Windows, since it now accepts Windows pathnames.
120839         Reported by Derek Robert Price <derek@ximbiot.com>.
120841 2004-04-21  Karl Berry  <karl@gnu.org>
120843         * config/srclist.txt (localcharset.c): break sync.
120845 2004-04-20  Paul Eggert  <eggert@twinsun.com>
120847         * m4/host-os.m4: Add a copyright notice.
120849 2004-04-20  Jim Meyering  <jim@meyering.net>
120851         Change UTILS_ to gl_ in AC_DEFINE'd names.
120852         Change utils_- and jm_-prefixed variables, too.
120853         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
120854         UTILS_FUNC_MKDIR_TRAILING_SLASH.
120855         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
120857         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
120858         Don't emit trailing blanks.
120859         Also rename jm_-prefixed variables to have gl_ prefix.
120861         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
120862         Also rename jm_-prefixed variables to have gl_ prefix.
120864         * m4/jm-macros.m4: Reflect the renamings.
120865         * m4/prereq.m4: Likewise.
120867 2004-04-20  Jim Meyering  <jim@meyering.net>
120869         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
120870         memory.
120872 2004-04-20  Jim Meyering  <jim@meyering.net>
120873             Bruno Haible  <bruno@clisp.org>
120875         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
120876         memory when realloc fails.
120878 2004-04-19  Jim Meyering  <jim@meyering.net>
120880         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
120881         now that readutmp.c may call `free (0)'.
120883 2004-04-19  Bruno Haible  <bruno@clisp.org>
120885         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
120886         * m4/inttypes_h.m4: Likewise.
120887         * m4/stdint_h.m4: Likewise.
120888         * m4/intmax_t.m4: Likewise.
120889         * m4/uintmax_t.m4: Likewise.
120891 2004-04-18  Jim Meyering  <jim@meyering.net>
120893         * m4/prereq.m4: Don't forbid jm_ prefix.
120895         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
120896         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
120897         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
120898         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
120899         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
120900         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
120901         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
120902         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
120903         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
120904         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
120905         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
120906         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
120907         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
120908         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
120909         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
120910         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
120911         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
120912         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
120913         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
120915 2004-04-18  Jim Meyering  <jim@meyering.net>
120917         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
120918         failure, don't leak memory and do call END_UTMP_ENT.
120920 2004-04-16  Jim Meyering  <jim@meyering.net>
120922         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
120923         coreutils' stat program.
120924         (gl_PREREQ): Don't require jm_PREREQ_STAT.
120926 2004-04-11  Paul Eggert  <eggert@twinsun.com>
120928         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
120929         C89.
120930         (CHAR_BIT): Remove, since we assume C89.
120931         Include <stdint.h> if available, as per current Autoconf CVS advice.
120933 2004-03-31  Jim Meyering  <jim@meyering.net>
120935         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
120936         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
120937         * m4/xalloc.m4: Likewise.
120939 2004-03-30  Paul Eggert  <eggert@twinsun.com>
120941         Merge from coreutils.
120943         * m4/inttostr.m4: New file.
120944         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
120945         Require AM_STDBOOL_H and gl_TIMESPEC instead.
120946         Require gl_CLOCK_TIME.
120947         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
120949 2004-03-30  Paul Eggert  <eggert@twinsun.com>
120951         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
120952         not bool, to be more consistent with Unix conventions.
120953         Suggested by Bruno Haible.
120955         Merge from coreutils.
120957         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
120958         * lib/umaxtostr.c: New files.
120960         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
120961         the usual <time.h> dance.
120962         (get_date): Change signature to support fractional time stamps.
120963         All callers changed.
120964         * lib/getdate.y: Include "getdate.h" first, as we can now
120965         assume C89 and don't need to worry about 'const'.
120966         Similarly, include "unlocked-io.h" near start, not in middle.
120967         Include <limits.h>.
120968         (textint.value): Use long int rather than int.
120969         (textint.digits): Use size_t rather than int.
120970         (BILLION, LOG10_BILLION): New constants.
120971         (parser_control): New member rel_ns.  Members day_ordinal,
120972         time_zone, month, day, hour, minutes, rel_year, rel_month,
120973         rel_day, rel_hour, rel_minutes, rel_seconds
120974         are now long int, not int.  Member seconds is now struct timespec,
120975         not int.  New member timespec_seen.  Members dates_seen, days_seen,
120976         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
120977         not int.
120978         (%union.intval): Now long int, not int.
120979         New member timespec.
120980         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
120981         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
120982         (spec): Now is a timespec or an item list.
120983         (timespec, items): New nonterminals.
120984         (time, rel, relunit, number, get_date):
120985         Add support for fractional seconds.
120986         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
120987         (gmtime, localtime, mktime): Remove decls; not needed with C89.
120988         (to_hour): First arg is now long int, not int.
120989         (to_year): Returns long int, not int.
120990         Don't treat year -70 like 70.
120991         (tm_diff): Returns long int, not int.
120992         (lookup_word): Use bool instead of int when appropriate.
120993         (yylex): Use size_t for count, not int.
120994         Detect overflow when parsing large integer constants.
120995         Add support for fractions.
120996         (get_date): Make pointers 'const' if possible.
120997         Use more-portable code to detect integer overflow.
120998         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
120999         Don't use ctime; it's not reliable if the year has >4 digits.
121001         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
121002         This is for compatibility with BSD.
121004         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
121005         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
121006         From coreutils' system.h.
121008         * lib/userspec.c: Don't include "posixver.h".
121009         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
121010         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
121011         compatible extension.  Simplify code by removing a boolean int
121012         that was always nonzero if a string was nonnull.
121014 2004-03-30  Jim Meyering  <jim@meyering.net>
121016         Merge from coreutils.
121018         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
121019         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
121020         on some systems one must include <grp.h> before it.
121021         Reported by Christian Krackowizer.
121023 2004-03-30  Jim Meyering  <jim@meyering.net>
121025         Merge from coreutils.
121027         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
121029         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
121030         an empty input stream.
121032         * lib/readtokens.c: Include <stdbool.h>.
121033         (readtoken): Use `size_t' rather than int/long.
121034         All callers adjusted.
121035         Use `bool' rather than `int' where appropriate.
121036         Use memset rather than an explicit loop.
121037         Use x2nrealloc rather than xrealloc.
121038         Allow the use of `\0' as a delimiter.
121039         (readtokens): Likewise.
121040         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
121042 2004-03-30  Jim Meyering  <jim@meyering.net>
121044         * m4/realloc.m4: Remove file, since now it does no more than
121045         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
121046         the `configure.ac' section of module/realloc.
121047         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
121049 2004-03-30  Bruno Haible  <bruno@clisp.org>
121051         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
121052         nonnull.
121054 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121056         Merge changes to getloadavg.c from coreutils and Emacs.
121058         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
121059         Define to an expression, not to the empty string.
121060         Include cloexec.h and xalloc.h.
121061         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
121062         Use set_cloexec_flag rather than rolling our own.
121063         * lib/cloexec.c, lib/cloexec.h: New files.
121065 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121067         * m4/cloexec.m4: New file.
121069 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121071         * lib/getopt.h: Sync with libc CVS.
121073 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121074             Bruno Haible  <bruno@clisp.org>
121076         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
121077         mbswidth.
121079 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121080             Bruno Haible  <bruno@clisp.org>
121082         * lib/mbswidth.h: Include <wchar.h> only if
121083         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
121084         <wchar.h>.
121085         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
121087 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121089         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
121090         Sync with libc CVS.
121091         * lib/getopt_int.h: New file, also synced from libc.
121093 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121095         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
121096         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
121097         Bring back getopt.c, getopt.h, getopt1.c.
121099 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121101         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
121102         All uses changed.  Check for sa_sigaction member; this fixes
121103         a bug first reported by Jason Andrade in
121104         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121106 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121108         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
121109         '#if' expressions.  Unlike the code it replaces, it does not
121110         depend on (defined _SC_PAGESIZE).  However, it does depend on
121111         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
121112         first reported by Jason Andrade in
121113         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121115 2004-02-25  Simon Josefsson  <jas@extundo.com>
121117         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
121119 2004-02-25  Simon Josefsson  <jas@extundo.com>
121121         * lib/strdup.h: New file.
121122         * lib/strdup.c: Include it.
121123         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
121124         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
121126 2004-02-23  Karl Berry  <karl@gnu.org>
121128         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
121129         (from fencepost.gnu.org:/gd/gnuorg).
121131 2004-02-23  Karl Berry  <karl@gnu.org>
121133         * config/srclistvars.sh (GNUORG) [karl]: redefine.
121134         * config/srclist.txt: add maintain/standards documents.
121136 2004-02-18  Bruno Haible  <bruno@clisp.org>
121138         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
121139         Reported by Derek Robert Price <derek@ximbiot.com>.
121141 2004-02-16  Karl Berry  <karl@gnu.org>
121143         * config/mkinstalldirs, install-sh: update from automake.
121145 2004-02-06  Karl Berry  <karl@gnu.org>
121147         * m4/po.m4: update from gettext 0.14.1.
121149 2004-02-06  Karl Berry  <karl@gnu.org>
121151         * lib/config.charset: update from gettext 0.14.1.
121153 2004-02-05  Paul Eggert  <eggert@twinsun.com>
121155         Add comments and code, prompted by suggestions from Bruno Haible
121156         for sh-quote.
121157         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
121158         describing the enum quoting_style values.
121159         * lib/quotearg.c (quotearg_alloc): New function.
121160         (quotearg_buffer_restyled): Treat lone { and } as special.
121161         Treat = as special.  Work around bug with older shells
121162         that "see" a '\' that is really the 2nd byte of a multibyte char.
121163         Quote empty string with shell_quoting_style.
121165 2004-02-03  Bruno Haible  <bruno@clisp.org>
121167         * m4/pipe.m4: New file, from GNU gettext.
121169 2004-02-03  Bruno Haible  <bruno@clisp.org>
121171         * lib/pipe.h: New file, from GNU gettext.
121172         * lib/pipe.c: New file, from GNU gettext.
121174 2004-01-27  Bruno Haible  <bruno@clisp.org>
121176         * m4/execute.m4: New file, from GNU gettext.
121178 2004-01-27  Bruno Haible  <bruno@clisp.org>
121180         * lib/execute.h: New file, from GNU gettext.
121181         * lib/execute.c: New file, from GNU gettext.
121182         * lib/w32spawn.h: New file, from GNU gettext.
121184 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121186         Merge from diffutils.
121188         * lib/file-type.c (file_type): Add typed memory objects.
121189         * lib/file-type.h (S_TYPEISTMO): New macro.
121191         * lib/c-stack.h (c_stack_action): Remove argv argument.
121192         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
121193         (die): Don't calculate message unless segv_action returns.
121194         (get_stack_location, min_address_from_argv, max_address_from_argv,
121195         volatile stack_base, volatile_stack_size): Remove.
121196         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
121197         that every segmentation violation is a stack overflow.  (Ouch!)
121198         See Debian bug 136249 (still outstanding) for more info about why
121199         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
121201 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121203         Exit-status fix from coreutils.
121205         Use exit_failure consistently in place of EXIT_FAILURE,
121206         so that program exit statuses are consistent on failure.
121208         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
121209         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
121210         * lib/argmatch.h: Comment fix to match the above.
121211         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
121212         Now a macro referring to exit_failure, instead of a separate
121213         variable.  Include "exitfail.h" to get it.
121214         * lib/xstrtol.h: Include "exitfail.h".
121215         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
121217         * lib/long-options.c (parse_long_options): Use prototype
121218         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
121219         for clarity.
121221 2004-01-21  Jim Meyering  <jim@meyering.net>
121223         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
121224         so as not to conflict with a different-sized __mktime_internal
121225         function in GNU libc.
121226         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
121227         Problem building statically-linked `ls' reported by Michael Brunnbauer.
121229 2004-01-20  Karl Berry  <karl@gnu.org>
121231         * config/config.guess: update from config.
121233         * config/srclistvars.sh: GNUWWWLICENSES for karl.
121235 2004-01-20  Bruno Haible  <bruno@clisp.org>
121237         Safer stack allocation.
121238         * lib/setenv.c: Include allocsa.h.
121239         (alloca): Remove fallback definition.
121240         (freea): Remove macro.
121241         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
121242         instead of freea.
121244 2004-01-20  Bruno Haible  <bruno@clisp.org>
121246         * m4/eealloc.m4: New file, from GNU gettext.
121248 2004-01-20  Bruno Haible  <bruno@clisp.org>
121250         * m4/allocsa.m4: New file, from GNU gettext.
121252 2004-01-20  Bruno Haible  <bruno@clisp.org>
121254         * lib/xallocsa.h: New file, from GNU gettext.
121255         * lib/xallocsa.c: New file, from GNU gettext.
121257 2004-01-20  Bruno Haible  <bruno@clisp.org>
121259         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
121261 2004-01-20  Bruno Haible  <bruno@clisp.org>
121263         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
121264         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
121265         specially.
121267 2004-01-20  Bruno Haible  <bruno@clisp.org>
121269         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
121270         patch.
121272 2004-01-20  Bruno Haible  <bruno@clisp.org>
121274         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
121276 2004-01-20  Bruno Haible  <bruno@clisp.org>
121278         * lib/eealloc.h: New file.
121280 2004-01-20  Bruno Haible  <bruno@clisp.org>
121282         * lib/binary-io.h: Avoid warnings on Cygwin.
121284 2004-01-20  Bruno Haible  <bruno@clisp.org>
121286         * lib/allocsa.h: New file, from GNU gettext.
121287         * lib/allocsa.c: New file, from GNU gettext.
121289 2004-01-18  Karl Berry  <karl@gnu.org>
121291         * doc/gpl.texi, doc/lgpl.texi: new files.
121293 2004-01-18  Karl Berry  <karl@gnu.org>
121295         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
121296         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
121298 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121300         Merge from coreutils.
121302         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
121303         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
121304         (gl_DEFAULT_POSIX2_VERSION): Move
121305         the documentation from 'configure' into 'config.hin',
121306         so that 'configure --help' isn't burdened by it and
121307         we don't have to worry about its formatting there.
121308         Reword the documentation so that it's more succinct
121309         and can be run together into a single paragraph.
121310         * m4/same.m4 (gl_SAME): Check for pathconf.
121312 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121314         Merge from coreutils.
121316         * lib/posixver.c: Include posixver.h.
121318         * lib/same.c: Include <stdbool.h>, <limits.h>.
121319         (_POSIX_NAME_MAX): Define if not defined.
121320         (MIN): New macro.
121321         (same_name): If file names are silently truncated, report
121322         that the file names are the same if they are the same after
121323         the silent truncation.
121325         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
121326         conversion function.
121327         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
121328         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
121329         longer needed.
121331 2004-01-15  Jim Meyering  <jim@meyering.net>
121333         Merge from coreutils.
121335         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
121336         if no library is required.
121337         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
121338         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
121339         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
121340         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
121341         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
121342         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
121343         value, $ac_cv_search_crypt, if it's "none required".
121344         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
121345         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
121346         not gl_FUNC_GETLOADAVG.
121347         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
121348         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
121350 2004-01-15  Jim Meyering  <jim@meyering.net>
121352         Merge from coreutils.
121354         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
121355         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
121356         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
121358         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
121359         optional configure-time default.
121361         * lib/version-etc.c (version_etc_copyright): Update copyright date.
121363         * lib/xreadlink.c (xreadlink): Correct outdated comment.
121365 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
121367         Merge from coreutils.
121369         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
121370         value, $ac_cv_search_nanosleep, if it's "none required".
121372 2004-01-14  Paul Eggert  <eggert@twinsun.com>
121374         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
121375         with like-named macro in fnmatch.c.
121376         (EXT): Use an internal constant instead.
121378         Merge fnmatch patches from glibc.
121379         * lib/fnmatch.c (mbsinit): Remove define.
121380         Add libc_hidden_ver (__fnmatch, fnmatch).
121381         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
121382         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
121384 2004-01-14  Karl Berry  <karl@gnu.org>
121386         * config/install-sh: update from automake.
121388 2004-01-13  Karl Berry  <karl@gnu.org>
121390         * config/install-sh: update from automake.
121392 2004-01-09  Karl Berry  <karl@gnu.org>
121394         * config/install-sh: update from automake.
121396 2004-01-05  Karl Berry  <karl@gnu.org>
121398         * config/config.{sub,guess}: update from config.
121400 2003-12-31  Karl Berry  <karl@gnu.org>
121402         * config/depcomp: update from automake.
121404 2003-12-14  Karl Berry  <karl@gnu.org>
121406         * lib/config.charset: update from gettext-runtime.
121408 2003-12-03  Paul Eggert  <eggert@twinsun.com>
121410         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
121411         Bug reported by Alfred M. Szmidt.
121413 2003-12-03  Bruno Haible  <bruno@clisp.org>
121415         * m4/gettext.m4: Upgrade from gettext-0.13.
121416         * m4/po.m4: Upgrade from gettext-0.13.
121417         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
121418         * m4/intmax.m4: New file, from gettext-0.13.
121419         * m4/printf-posix.m4: New file, from gettext-0.13.
121421 2003-11-29  Karl Berry  <karl@gnu.org>
121423         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
121425 2003-11-25  Paul Eggert  <eggert@twinsun.com>
121426             Bruno Haible  <bruno@clisp.org>
121428         * lib/printf-parse.h: Don't include sys/types.h.
121429         (ARG_NONE): New macro.
121430         (char_directive): Change type of *arg_index fields to size_t.
121431         * lib/printf-parse.c: Don't include sys/types.h.
121432         (SSIZE_MAX): Remove macro.
121433         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
121434         Remove unnecessary overflow check.
121435         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
121436         fields.
121438 2003-11-25  Bruno Haible  <bruno@clisp.org>
121440         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
121442 2003-11-25  Bruno Haible  <bruno@clisp.org>
121444         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
121445         gt_TYPE_SSIZE_T.
121447 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121449         * modules/alloca: Remove dependency on xalloc.
121451 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121453         * lib/alloca.c: Remove dependency on xalloc module.
121454         (xalloc_die): Remove.
121455         (memory_full) [!defined emacs]: New macro.
121456         [!defined emacs]: Don't include xalloc.h.
121457         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
121458         address arithmetic overflows.  Change datatypes a bit to avoid
121459         unnecessary casts.
121461 2003-11-22  Jim Meyering  <jim@meyering.net>
121463         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
121464         s/size/size_t/.
121466 2003-11-21  Karl Berry  <karl@gnu.org>
121468         * config/config.{sub,guess}: update from config.
121470 2003-11-18  Karl Berry  <karl@gnu.org>
121472         * config/config.{sub,guess}: update from config.
121474         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
121476 2003-11-17  Paul Eggert  <eggert@twinsun.com>
121478         * README: Mention that S+T cannot overflow if S is the size of
121479         an existing object and T is sufficiently small.
121481 2003-11-17  Jim Meyering  <jim@meyering.net>
121483         On systems without utime and without a utimes function capable of
121484         dealing with a NULL struct utimbuf* argument, this utime replacement
121485         could -- in unusual circumstances -- leak a file descriptor.
121486         * lib/utime.c: Include <unistd.h> and <errno.h>.
121487         (utime_null): Be sure to close `fd' and to preserve errno.
121488         Reported by Geoff Collyer via Arnold Robbins.
121490 2003-11-17  Bruno Haible  <bruno@clisp.org>
121492         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
121493         (Depends-on): Add xsize.
121495 2003-11-17  Bruno Haible  <bruno@clisp.org>
121497         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
121499 2003-11-17  Bruno Haible  <bruno@clisp.org>
121501         * lib/vasnprintf.c (alloca): Remove fallback definition.
121502         (freea): Remove definition.
121503         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
121504         Reported by Paul Eggert.
121506 2003-11-16  Paul Eggert  <eggert@twinsun.com>
121507             Bruno Haible  <bruno@clisp.org>
121509         Protect against address arithmetic overflow.
121510         * lib/printf-args.h: Include stddef.h.
121511         (arguments): Change type of field 'count' to size_t.
121512         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
121513         'unsigned int' where appropriate.
121514         * lib/printf-parse.h: Include sys/types.h.
121515         (char_directive): Change type of *arg_index fields to ssize_t.
121516         (char_directives): Change type of fields 'count', max_*_length to
121517         size_t.
121518         * lib/printf-parse.c: Include sys/types.h and xsize.h.
121519         (SSIZE_MAX): Define fallback value.
121520         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
121521         instead of 'int' where appropriate. Check a_allocated, d_allocated
121522         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
121523         * lib/vasnprintf.c: Include xsize.h.
121524         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
121525         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
121526         overflow. Avoid wraparound when converting a width or precision from
121527         decimal to binary.
121529 2003-11-16  Bruno Haible  <bruno@clisp.org>
121531         Update from GNU gettext.
121532         * lib/printf-parse.c: Generalize to it can be compiled for wide
121533         strings.
121534         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
121535         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
121536         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
121537         SNPRINTF): New macros.
121538         Don't include <alloca.h> if the file is used inside libintl.
121539         (local_wcslen): New function, for Solaris 2.5.1.
121540         (VASNPRINTF): Use it instead of wcslen.
121542 2003-11-16  Bruno Haible  <bruno@clisp.org>
121544         * lib/xsize.h (xmax): New function.
121545         (xsum, xsum3, xsum4): Declare as "pure" functions.
121547 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121549         * modules/xalloc (Files): Undo latest change, since xalloc.h
121550         no longer needs SIZE_MAX or PTRDIFF_MAX.
121552 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121554         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
121555         gl_PTRDIFF_MAX.
121557 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121559         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
121560         "return", to pacify some unknown compiler.  Problem reported
121561         by Joerg Schilling.
121563 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121565         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
121566         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
121567         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
121568         heuristic is just as accurate as far as we know, and it removes a
121569         dependency on size_max.m4 and ptrdiff_max.m4.
121571 2003-11-11  Bruno Haible  <bruno@clisp.org>
121573         * modules/xsize (Files): Add m4/size_max.m4.
121574         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
121576 2003-11-11  Bruno Haible  <bruno@clisp.org>
121578         * m4/size_max.m4: New file.
121579         * m4/ptrdiff_max.m4: New file.
121580         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
121581         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
121582         (gl_XALLOC): Invoke it.
121584 2003-11-11  Bruno Haible  <bruno@clisp.org>
121586         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
121587         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
121588         defined.
121590 2003-11-10  Paul Eggert  <eggert@twinsun.com>
121592         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
121593         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
121594         rejected some allocations of exactly SIZE_MAX - 2 bytes.
121595         From Bruno Haible.
121596         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
121597         not (size_t) -1, since it's defined here.
121599 2003-11-09  Karl Berry  <karl@gnu.org>
121601         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
121603 2003-11-06  Paul Eggert  <eggert@twinsun.com>
121605         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
121606         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
121607         Reject sizes of exactly SIZE_MAX bytes.
121608         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
121609         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
121611 2003-11-05  Bruno Haible  <bruno@clisp.org>
121613         * lib/xsize.h: Include limits.h, to avoid a possible collision with
121614         SIZE_MAX defined in <limits.h> on Solaris.
121616 2003-11-04  Jim Meyering  <jim@meyering.net>
121618         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
121619         variable names, rather than @VAR@.
121620         * modules/poll: Likewise.
121622 2003-11-04  Bruno Haible  <bruno@clisp.org>
121624         * modules/xsize: New file.
121625         * modules/linebreak: Depend on xsize.
121626         * MODULES.html.sh (func_all_modules): Add xsize.
121628 2003-11-04  Bruno Haible  <bruno@clisp.org>
121630         * m4/xsize.m4: New file.
121632 2003-11-04  Bruno Haible  <bruno@clisp.org>
121634         * lib/xsize.h: New file.
121635         * lib/linebreak.c: Include xsize.h.
121636         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
121637         argument for overflow.
121638         Suggested by Paul Eggert.
121640 2003-11-03  Karl Berry  <karl@gnu.org>
121642         * config/config.{guess,sub}: update from config.
121644 2003-11-03  Jim Meyering  <jim@meyering.net>
121646         * modules/userspec (lib_SOURCES): Add userspec.h.
121647         (Include): Add "userspec.h".
121648         Improve description.
121650 2003-11-03  Jim Meyering  <jim@meyering.net>
121652         * lib/userspec.c: Include "userspec.h".
121653         * lib/userspec.h: New file.
121655 2003-11-03  Bruno Haible  <bruno@clisp.org>
121657         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
121659 2003-11-03  Bruno Haible  <bruno@clisp.org>
121661         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
121662         available, to avoid (extremely rare) race condition.
121663         Suggested by Paul Eggert.
121665 2003-11-02  Karl Berry  <karl@gnu.org>
121667         * config/srclist.txt (vasprintf.c): sync broken, sigh.
121669 2003-10-31  Paul Eggert  <eggert@twinsun.com>
121671         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
121672         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
121673         (read_filesystem_list): Set and use me_type_malloced.
121674         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
121675         whatever the type happens to be), for brevity and consistency.
121676         Check for size calculation overflow on Alphas running OSF/1.
121678 2003-10-31  Jim Meyering  <jim@meyering.net>
121680         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
121682         * lib/linebuffer.c: Include <string.h> for declaration of memset.
121684 2003-10-30  Paul Eggert  <eggert@twinsun.com>
121685             Bruno Haible  <bruno@clisp.org>
121687         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
121688         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
121690 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
121692         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
121693         netbsd*-gnu*.  Suggested by Robert Millan.
121695 2003-10-29  Paul Eggert  <eggert@twinsun.com>
121697         * modules/group-member: Depend on stdbool.
121699 2003-10-29  Paul Eggert  <eggert@twinsun.com>
121701         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
121703 2003-10-29  Paul Eggert  <eggert@twinsun.com>
121705         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
121706         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
121707         after the 'gnu' in these cases.  This fixes some bugs in the
121708         previous change, and is based on suggestions by Robert Millan.
121710 2003-10-29  Paul Eggert  <eggert@twinsun.com>
121712         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
121713         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
121714         no longer needed.
121715         * lib/quotearg.c (quotearg_n_options): Use it.
121716         * lib/group-member.c: Include <stdbool.h>.
121717         (free_group_info): Arg is now const *; don't free arg.
121718         (get_group_info): Now returns bool and accepts struct group_info *,
121719         rather than returning a malloc'ed struct group_info *.
121720         All uses changed.  Check for overflow in internal size calculation.
121722         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
121723         rather than xmalloc/xrealloc.
121724         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
121725         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
121726         conformance bug: the old code used a pointer after freeing the
121727         storage that it addressed.
121728         * lib/hash.c (hash_initialize): Simplify the code by using
121729         xalloc_oversized rather than doing it by hand.
121730         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
121731         the buffer preserved.  Use free and xmalloc instead.
121732         * lib/quotearg.c (quotearg_n_options): Likewise.
121733         Use a simpler test for size overflow.  Don't use xalloc_oversized
121734         because unsigned int might be wider than size_t (!); this suggests
121735         that we should switch from unsigned int to size_t for slot numbers.
121737 2003-10-28  Paul Eggert  <eggert@twinsun.com>
121739         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
121740         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
121741         NetBSD kernels.  Requested by Richard Stallman.
121743 2003-10-27  Paul Eggert  <eggert@twinsun.com>
121745         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
121746         to allocate the returned structure.  Do not allocate a subarray,
121747         as x2nrealloc will do that.
121748         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
121749         instead of xnrealloc.
121750         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
121752 2003-10-27  Bruno Haible  <bruno@clisp.org>
121754         * lib/stdbool_.h: Better support for BeOS.
121756 2003-10-26  Paul Eggert  <eggert@twinsun.com>
121758         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
121759         now uses inline.
121761 2003-10-26  Paul Eggert  <eggert@twinsun.com>
121763         * lib/xalloc.h (xalloc_oversized): New static inline function, for
121764         callers that want to do their own size-overflow checking.  Include
121765         <stdbool.h>, since xalloc_oversized returns bool.
121766         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
121767         to use xalloc_oversized.
121769         Add two functions x2realloc, x2nrealloc, for programs that grow
121770         arrays dynamically by doubling their sizes.
121771         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
121772         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
121773         New functions.
121775         Port to C99 semantics for 'inline' of external functions.
121776         Bug reported by Bruno Haible.
121777         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
121778         with the old contents of xnmalloc.
121779         (xnmalloc, xmalloc): Use it.
121780         (xnrealloc_inline): New static inline function,
121781         with the old contents of xnrealloc.
121782         (xnrealloc, xrealloc): Use it.
121784         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
121785         that.
121787 2003-10-26  Karl Berry  <karl@gnu.org>
121789         * config/srclist.txt (COPYING.DOC): no longer available from
121790         /gd/gnuorg; don't know where the ultimate source is.
121792 2003-10-25  Paul Eggert  <eggert@twinsun.com>
121794         Fix several address-calculation bugs in the hash modules,
121795         plus some minor code cleanup.
121797         * lib/hash.h: Include <stdbool.h>, for bool.
121798         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
121799         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
121800         hash_get_n_entries, hash_get_max_bucket_length,
121801         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
121802         hash_rehash): Use size_t rather than unsigned.
121803         * lib/hash.c (struct hash_table, hash_get_n_buckets,
121804         hash_get_n_buckets_used, hash_get_n_entries,
121805         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
121806         hash_get_entries, hash_do_for_each, hash_string, is_prime,
121807         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
121808         Likewise.
121809         (SIZE_MAX): Define if not defined.
121810         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
121811         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
121812         hash_print):
121813         Use const * when possible.
121814         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
121815         (check_tuning): Fix bug: if tuning parameters were very close to
121816         0 or 1, rounding errors could have caused subscript violations.
121817         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
121818         (hash_initialize): Add 'fail:' label
121819         to free table and return NULL, and use it to simplify code.
121820         Use calloc rather than clearing the storage ourself.
121821         (hash_initialize, hash_rehash): Check for arithmetic overflow in
121822         buffer size calculations.
121823         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
121824         Include <stddef.h>, for size_t.
121825         * lib/hash-pjw.c (hash_pjw): Likewise.
121826         Switch to method described by Bruno Haible.
121827         Include <limits.h>, for CHAR_BIT.
121828         (SIZE_BITS): New macro.
121830 2003-10-23  Paul Eggert  <eggert@twinsun.com>
121832         * m4/getline.m4 (AM_FUNC_GETLINE):
121833         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
121834         hosts.  Problem reported by Derek Robert Price in
121835         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
121836         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
121837         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
121839 2003-10-21  Paul Eggert  <eggert@twinsun.com>
121841         * lib/getndelim2.c (getndelim2): When size calculation overflows,
121842         ceiling the allocation at NMAX bytes rather than silently
121843         discarding input bytes before NMAX is reached.  This makes
121844         a difference only if NMAX exceeds SIZE_MAX / 2.
121846         * lib/obstack.c: Merge from glibc.
121847         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
121848         Add libc_hidden_def (_obstack_newchunk).
121849         (_obstack_free) [! defined _LIBC]: Remove.
121850         [defined _LIBC]: Make a strong alias from obstack_free, rather than
121851         a clone of the function body.
121852         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
121853         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
121855         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
121856         glibc.
121857         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
121858         arg to memcpy.
121860         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
121861         (obstack_ptr_grow_fast, obstack_int_grow_fast):
121862         Don't use lvalue casts, as GCC plans to remove support for them
121863         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
121864         was also present in the non-GCC version, indicating that this
121865         code had always been buggy and had never been widely used.
121866         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
121867         Use the fast variant of each macro, rather than copying the
121868         definiens of the fast variant; that way, we'll be more likely to
121869         catch future bugs in the fast variants.
121871 2003-10-20  Bruno Haible  <bruno@clisp.org>
121873         * modules/wait-process: New file.
121874         * MODULES.html.sh (func_all_modules): Add wait-process.
121876 2003-10-20  Bruno Haible  <bruno@clisp.org>
121878         * m4/wait-process.m4: New file.
121880 2003-10-20  Bruno Haible  <bruno@clisp.org>
121882         * lib/wait-process.h: New file, from GNU gettext.
121883         * lib/wait-process.c: New file, from GNU gettext.
121885 2003-10-19  Jim Meyering  <jim@meyering.net>
121887         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
121888         HPUX 10.20.
121890 2003-10-18  Karl Berry  <karl@gnu.org>
121892         * config/config.guess: update from config.
121894 2003-10-16  Paul Eggert  <eggert@twinsun.com>
121896         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
121897         (getgroups): First arg is int, not size_t.
121898         Don't let 'free' mangle errno.
121900 2003-10-16  Paul Eggert  <eggert@twinsun.com>
121902         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
121904 2003-10-16  Karl Berry  <karl@gnu.org>
121906         * config/config.{guess,sub}: update from config.
121908 2003-10-16  Jim Meyering  <jim@meyering.net>
121910         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
121911         memcpy.
121913 2003-10-15  Paul Eggert  <eggert@twinsun.com>
121915         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
121916         (SIZE_MAX): Remove.
121917         (new_exclude, add_exclude_file): Initial size no longer needs to
121918         be a power of 2.
121919         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
121920         our own address arithmetic overflow checking.
121922         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
121923         (fnmatch): Do not alloca more than 2000 wide characters;
121924         instead, use malloc for large buffers.
121925         Check for address arithmetic overflow, and return -1
121926         with errno set to ENOMEM in that case.
121927         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
121928         (NEW_PATTERN): Do not alloca more than 8000 bytes;
121929         instead, return -1.  Check for address arithmetic overflow.
121931 2003-10-14  Paul Eggert  <eggert@twinsun.com>
121933         Handle invalid suffixes and overflow independently, so that
121934         callers can treat them independently as needed.  Fix some bugs in
121935         suffix handling, e.g., "100k@" was not diagnosed as an invalid
121936         suffix for a human-readable blocksize.  The major caller-visible
121937         change is the addition of a new
121938         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
121939         that both overflow and suffix chars were found.
121941         * lib/human.c (humblock): Don't check separately for invalid suffix
121942         char; that is xstrtoumax's job (now that its bug is fixed).
121943         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
121944         INTMAX_MAX]: New macros.
121945         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
121946         TYPE_MAXIMUM): New macros.
121947         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
121948         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
121949         if overflow occurs, as it's what __strtol does and it's more useful
121950         in practice.
121951         (__xstrtol): If __strtol reports some error other than ERANGE,
121952         reflect it to the caller as LONGINT_INVALID.  If it reports
121953         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
121954         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
121955         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
121956         value.
121957         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
121958         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
121959         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
121960         [defined UINTMAX_MAX]: New macros.
121962 2003-10-14  Bruno Haible  <bruno@clisp.org>
121964         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
121966 2003-10-14  Bruno Haible  <bruno@clisp.org>
121968         * m4/sig_atomic_t: New file, from GNU gettext.
121969         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
121971 2003-10-14  Bruno Haible  <bruno@clisp.org>
121973         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
121974         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
121975         Also use volatile where needed.
121977 2003-10-12  Paul Eggert  <eggert@twinsun.com>
121979         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
121980         Change maintainer from Bruno Haible to 'all'.
121982 2003-10-12  Paul Eggert  <eggert@twinsun.com>
121984         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
121986 2003-10-12  Paul Eggert  <eggert@twinsun.com>
121988         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
121989         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
121990         and define in terms of the other primitives.
121991         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
121992         (SIZE_MAX): Define if not already defined.
121993         (array_size_overflow): New function.
121994         (xalloc_die): Abort instead of exiting if 'error' returns.
121995         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
121996         (xmalloc, xrealloc): Use them.
121997         (xcalloc): Check for address arithmetic overflow.
121998         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
121999         a bit faster than strcpy.
122001 2003-10-10  Simon Josefsson  <jas@extundo.com>
122003         * modules/argp (Depends-on): Add restrict and strcase.
122005 2003-10-10  Simon Josefsson  <jas@extundo.com>
122007         * m4/argp.m4: Add AC_C_INLINE.
122009 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122011         Merge getpass from libc, plus a few fixes.
122013         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
122014         Include <stdbool.h>.
122015         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
122016         __fsetlocking to empty.
122017         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
122018         do include <bits/libc-lock.h>.
122019         Do not include <fcntl.h>; not needed.
122020         [_LIBC]: Include <wchar.h>.
122021         (NOTCANCEL_MODE): New macro.
122022         (flockfile, funlockfile) [_LIBC]: New macros.
122023         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
122024         [!_LIBC]: New macros.
122025         (call_fclose): New function.
122026         (getpass): Use it.  Save tty stream separately; this simplifies the
122027         code and makes it more reliable if stdin happens to equal stdout.
122028         Invoke __fsetlocking on tty.
122029         Handle thread cancellation if needed.
122030         Namespace cleanup (use __tcgetattr, __getline).
122031         Use bool for Booleans.
122032         [USE_IN_LIBIO]: Handle wide streams.
122033         [!_LIBC]: Unconditionally do the fseek, since we don't know what
122034         stream might go where.
122036         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
122037         doesn't have to include <stdio.h> before us.
122038         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
122039         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
122040         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
122041         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
122042         if not declared, so that we can use getpass.c code from libc without
122043         rewriting it.
122044         (flockfile, ftrylockfile, funlockfile): New macros.
122046 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122048         * modules/getpass: Depend on stdbool.
122050 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122052         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
122054 2003-10-07  Karl Berry  <karl@gnu.org>
122056         * config/config.{guess,sub}: update from config.
122058 2003-10-06  Jim Meyering  <jim@meyering.net>
122059             Bruno Haible  <bruno@clisp.org>
122061         This lets translators provide better translations for the
122062         "Written by ..." part of --version output.
122063         * lib/version-etc.h: Include stdarg.h.
122064         (version_etc_copyright): Declare as readonly.
122065         (version_etc): Make this function variadic with a NULL-terminated list
122066         of author name strings.
122067         (version_etc_va): New declaration.
122068         * lib/version-etc.c: Include stdarg.h, stdlib.h.
122069         (version_etc_copyright): Declare as readonly.
122070         (version_etc_va): New function. Provide a different translatable string
122071         for each possible number of authors < 10. Abbreviate when there are 10
122072         authors or more.
122073         (version_etc): Make this function variadic. Call version_etc_va.
122074         Suggestion from Gary V. Vaughan.
122076         * lib/long-options.h (parse_long_options): Change prototype: the
122077         authors string is moved to the end and becomes variadic.
122078         * lib/long-options.c: Include stdarg.h.
122079         (parse_long_options): Make this function variadic, too.
122080         Call version_etc_va, not version_etc.
122082 2003-10-06  Bruno Haible  <bruno@clisp.org>
122084         * modules/version-etc-2: Remove file.
122085         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
122087 2003-10-06  Bruno Haible  <bruno@clisp.org>
122089         * modules/fatal-signal: New file.
122090         * MODULES.html.sh (func_all_modules): Add fatal-signal.
122092 2003-10-06  Bruno Haible  <bruno@clisp.org>
122094         * m4/fatal-signal.m4: New file.
122095         * m4/signalblocking.m4: New file, from GNU gettext.
122097 2003-10-06  Bruno Haible  <bruno@clisp.org>
122099         * lib/version-etc-2.h: Remove file.
122100         * lib/version-etc-2.c: Remove file.
122102 2003-10-06  Bruno Haible  <bruno@clisp.org>
122104         * lib/fatal-signal.h: New file, from GNU gettext.
122105         * lib/fatal-signal.c: New file, from GNU gettext.
122107 2003-10-05  Paul Eggert  <eggert@twinsun.com>
122109         * README: Rework advice for preventing empty .o files.
122110         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
122111         not <sys/types.h>.
122113 2003-10-04  Karl Berry  <karl@gnu.org>
122115         * lib/argp*: update from libc.
122117 2003-10-04  Karl Berry  <karl@gnu.org>
122119         * config/config.{guess,sub}: update from config.
122121 2003-10-02  Bruno Haible  <bruno@clisp.org>
122123         * modules/lchown (Include): Add lchown.h.
122124         * modules/time_r (Include): Use "..." syntax.
122125         * modules/xgetdomainname (Include): Add xgetdomainname.h.
122127 2003-10-01  Simon Josefsson  <jas@extundo.com>
122129         * MODULES.html.sh (func_all_modules): Move gethostname from section
122130         'based on' to section 'lacking' POSIX:2001.
122132 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
122134         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
122135         to output mode on the same stream.
122137 2003-09-29  Paul Eggert  <eggert@twinsun.com>
122139         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
122140         Fix arg typo in previous patch.
122142 2003-09-28  Jim Meyering  <jim@meyering.net>
122144         * lib/error.c: Correct cpp indentation.
122146 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122148         * modules/free: New file.
122150 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122152         * m4/free.m4: New file.
122154 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122156         * lib/minmax.h (MIN, MAX)
122157         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
122158         Omit the special code that used __typeof__, since we worry that
122159         it could be more trouble than it's worth.  See:
122160         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
122161         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
122163         * lib/free.c: New file.
122165 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
122167         Trivial fixes to Makefile.am parts of module listings.
122168         * modules/strstr: Append strstr.h to lib_SOURCES.
122169         * modules/strcase: Likewise, for strcase.h.
122171 2003-09-27  Karl Berry  <karl@gnu.org>
122173         * config/mkinstalldirs: update from automake.
122175 2003-09-26  Paul Eggert  <eggert@twinsun.com>
122177         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
122178         (error_tail): Do not loop, reallocating temporary buffer, since
122179         the output cannot contain more wide characters than the input
122180         contains bytes, the size must be big enough already.  This avoids
122181         one potential size overflow calculation.  Check for size overflow
122182         when calculating temporary buffer size.  Free temporary buffer
122183         when done, if it was allocated with malloc; this plugs a memory
122184         leak.  Remove casts from void * to pointers, that are no longer
122185         needed now that we're assuming C89 or better.
122187         Merge error changes from glibc.
122189         * lib/error.c, error.h: Update copyright notice header to match glibc.
122190         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
122191         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
122192         Disable cancellation while printing error.
122193         * lib/error.h: Prepend __ to parameter names.
122195 2003-09-26  Jim Meyering  <jim@meyering.net>
122197         * lib/error.c (error_tail): Move some declarations
122198         into inner scope where the local variables are used.
122200 2003-09-26  Bruno Haible  <bruno@clisp.org>
122202         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
122203         stpncpy().
122204         Don't define stpncpy through config.h; it's now done through stpncpy.h.
122206 2003-09-26  Bruno Haible  <bruno@clisp.org>
122208         * lib/stpncpy.h (gnu_stpncpy): New declaration.
122209         (stpncpy): Define as alias for gnu_stpncpy.
122210         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
122212 2003-09-25  Simon Josefsson  <jas@extundo.com>
122214         * lib/xgetdomainname.h: New file.
122215         * lib/xgetdomainname.c: New file.
122217 2003-09-25  Simon Josefsson  <jas@extundo.com>
122218             Bruno Haible  <bruno@clisp.org>
122220         * modules/getdomainname: New file.
122221         * modules/xgetdomainname: New file.
122222         * MODULES.html.sh (func_all_modules): Add getdomainname,
122223         xgetdomainname.
122225 2003-09-25  Simon Josefsson  <jas@extundo.com>
122226             Bruno Haible  <bruno@clisp.org>
122228         * m4/getdomainname.m4: New file.
122230 2003-09-25  Simon Josefsson  <jas@extundo.com>
122231             Bruno Haible  <bruno@clisp.org>
122233         * lib/getdomainname.h: New file.
122234         * lib/getdomainname.c: New file.
122236 2003-09-25  Karl Berry  <karl@gnu.org>
122238         * lib/argp-fmtstream.c, argp-help.c: update from libc.
122240 2003-09-25  Karl Berry  <karl@gnu.org>
122242         * config/install-sh: update from automake.
122244 2003-09-25  Bruno Haible  <bruno@clisp.org>
122246         * modules/version-etc-2: New file, from modules/version-etc with
122247         modifications.
122248         * MODULES.html.sh (func_all_modules): Add version-etc-2.
122250 2003-09-25  Bruno Haible  <bruno@clisp.org>
122252         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
122253         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
122255 2003-09-24  Simon Josefsson  <jas@extundo.com>
122257         * modules/xgethostname: Add xgethostname.h.
122259 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122261         * lib/linebuffer.c (freebuffer): Don't free the argument, just
122262         the buffer associated with the argument.  Bug reported by
122263         Simon Josefsson.
122265 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122267         * README: Document assumptions that 'int' is at least 32 bits
122268         wide, that integer arithmetic is 2's complement without overflow,
122269         that there are no holes in integer values, that adding sizes of
122270         two nonoverlapping objects can't overflow, and that all-bits-zero
122271         yields scalar zero.  Fix spelling and capitalization typos.
122273 2003-09-19  Karl Berry  <karl@gnu.org>
122275         * lib/argp.h: update from libc.
122277 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122279         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
122280         to avoid spurious warnings like "AC_RUN_IFELSE was called before
122281         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
122283 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122285         * gnulib-tool: Use "test -h", not "test -L", for portability
122286         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
122287         (tags_regexp): Remove, since \| doesn't conform to POSIX.
122288         (sed_extract_prog): Issue s commands one-by-one, rather than
122289         using \| in one s command.
122291 2003-09-16  Paul Eggert  <eggert@twinsun.com>
122293         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
122294         input error, instead of returning NULL the next time we are called
122295         (and therefore losing track of errno).
122297 2003-09-16  Bruno Haible  <bruno@clisp.org>
122299         * gnulib-tool (func_create_testdir): Warn about duplicated
122300         dependencies.
122302 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122304         * modules/argmatch, modules/fatal, modules/obstack,
122305         modules/xalloc, modules/xgethostname: Sort dependencies by
122306         importance, not alphabetically.
122308 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122310         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
122311         fails, so that the caller gets the proper errno.
122313         * lib/readutmp.c (read_utmp): Likewise.
122314         Check for fstat error.  Close stream and free storage
122315         when failing.
122317 2003-09-14  Karl Berry  <karl@gnu.org>
122319         * config/srclist.txt (strdup.c): disable for c89 changes.
122321 2003-09-14  Jim Meyering  <jim@meyering.net>
122323         * lib/getloadavg.c: Correct cpp indentation.
122324         * lib/strdup.c: Likewise.
122325         * lib/vasnprintf.c: Likewise.
122327 2003-09-14  Bruno Haible  <bruno@clisp.org>
122329         * modules/fwriteerror: New file.
122330         * MODULES.html.sh (func_all_modules): Add fwriteerror.
122332 2003-09-14  Bruno Haible  <bruno@clisp.org>
122334         * lib/fwriteerror.h: New file.
122335         * lib/fwriteerror.c: New file.
122337 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122339         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
122340         modules/xgethostname, modules/xalloc: Depend on exit.
122342 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122344         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
122346         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
122347         and AC_MINIX, too, so that their extensions are available.
122349         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
122350         This macro has been superseded by gl_BACKUPFILE.
122352         More patches to assume C89 or better.
122354         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
122356         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
122357         unconditionally.
122358         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
122359         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
122360         Include <string.h>, <stdlib.h> unconditionally.
122361         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
122362         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
122363         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
122364         headers or for string.h.
122365         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
122366         or strtoul.
122368         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
122369         headers.
122370         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
122371         * m4/userspec.m4 (gl_USERSPEC): Likewise.
122372         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
122373         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
122374         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
122375         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
122376         memcpy, memset.
122377         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
122378         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
122379         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
122380         strtol.
122381         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
122382         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
122383         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
122384         strtoul.
122386 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122388         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
122389         * lib/obstack.c [!defined _LIBC]: Likewise.
122390         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
122391         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
122392         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
122394         More changes to assume C89 or better.
122396         * lib/error.c (error_tail): Assume vprintf.
122398         * lib/argmatch.c (getenv): Remove decl.
122399         * lib/progreloc.c (get_full_program_name): Define via prototype.
122400         * lib/setenv.c (clearenv): Likewise.
122401         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
122402         needed.
122403         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
122404         (malloc, memcpy): Remove decls.
122405         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
122406         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
122407         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122408         (memcpy): Remove macro.
122409         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
122410         (__P): Remove.  All uses removed.
122411         (PTR): Remove.  All uses changed to void *.
122412         (CHAR_BIT, NULL): Remove.
122413         (spaces, zeros, memset_space, memset_zero)
122414         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
122415         Remove.
122416         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
122417         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
122418         Define with prototype.
122419         Remove now-unnecessary prototype decl.
122420         (extra_args_spec): Assume ANSI C.  All uses changed.
122421         (extra_args_spec_iso): Remove.
122422         (my_strftime, emacs_strftimeu): Define via prototype.
122423         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
122424         unconditionally.
122425         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
122426         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
122427         (strtoul, strtol): Remove decls.
122428         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
122429         LONG_MAX): Remove.
122430         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122431         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
122432         (LOCALE_PARAM_PROTO): New macro.
122433         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
122434         (INTERNAL (strtol), strtol): Define with a prototype.
122435         (PARAMS): Remove.  All uses removed.
122436         * lib/tempname.c: Include <string.h> unconditionally.
122437         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
122438         * lib/xgethostname.c (main): Define with a prototype.
122439         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
122440         Include <stdlib.h> unconditionally.
122441         (calloc, malloc, realloc, free): Remove decls.
122442         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
122443         Include <stdlib.h> unconditionally.  Sort include file names.
122444         (strtod): Remove.
122445         (xstrtod): Define with a prototype.
122446         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
122447         (strtol, strtoul): Remove decls.
122449 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122451         More patches to assume C89 or better.
122452         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
122453         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
122454         string.h, memchr, STDC_HEADERS.
122456 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122458         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
122459         Include <stdlib.h>, <string.h> unconditionally.
122460         Remove now-unnecessary cast to char *.
122461         * lib/strnlen.c: Include <string.h> unconditionally.
122462         * lib/yesno.c (yesno): Define with a prototype.
122464 2003-09-11  Bruno Haible  <bruno@clisp.org>
122466         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
122468 2003-09-10  Jim Meyering  <jim@meyering.net>
122470         * lib/error.c: Correct indentation of cpp directives.
122472 2003-09-10  Bruno Haible  <bruno@clisp.org>
122474         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
122475         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
122476         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
122477         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
122478         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
122479         <stdlib.h> and <string.h> checks.
122480         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
122481         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
122483 2003-09-10  Bruno Haible  <bruno@clisp.org>
122485         * lib/strcspn.c: Include <string.h> unconditionally.
122486         * lib/strpbrk.c: Include <string.h> unconditionally.
122487         * lib/strstr.c: Include <string.h> unconditionally.
122488         * lib/unicodeio.c: Include <string.h> unconditionally.
122489         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
122490         * lib/unsetenv.c: Likewise.
122491         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
122492         * lib/yesno.c: Include <stdlib.h> unconditionally.
122493         (rpmatch): Add prototype.
122495 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122497         More patches to assume C89 or better.
122498         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
122499         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
122500         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
122501         or for string.h.
122502         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
122503         stdlib.h.
122504         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
122505         C headers.
122506         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
122507         string.h.
122508         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
122509         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
122510         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
122511         or for string.h.
122512         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
122513         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
122514         C headers.
122515         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
122516         memcpy.
122517         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
122518         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
122519         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
122520         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
122521         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
122522         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
122523         string.h, free.
122524         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
122525         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
122526         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
122527         C headers, or for string.h.
122528         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
122529         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
122530         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
122531         headers, memory.h, stdlib.h, string.h, strings.h.
122532         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
122533         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
122534         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
122535         strchr.
122536         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
122537         headers, memory.h, string.h.
122538         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
122539         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
122540         free.
122541         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
122542         headers.
122543         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
122544         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
122545         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
122546         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
122547         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
122549 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122551         More K&R removal.
122553         * lib/acosl.c (main): Use a prototype.
122554         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
122555         tanl.c: Likewise.
122557         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
122559         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
122560         (getopt, etopt_long, getopt_long_only, _getopt_internal)
122561         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
122562         with a prototype.
122563         * lib/getopt.c (const): Remove macro.
122564         Include <string.h> unconditionally.
122565         (my_index): Remove; all uses changed to strchr.
122566         (strlen): Remove decl.
122567         (exchange): Remove forward decl; no longer needed.
122568         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
122569         Define with prototype.
122570         * lib/getopt1.c (const): Remove macro.
122571         (getopt_long, getopt_long_only, main): Define with prototype.
122573         * lib/getugroups.c: Include <string.h> unconditionally.
122575         * lib/getusershell.c: Include <stdlib.h> unconditionally.
122576         (getusershell, setusershell, endusershell, readname, main):
122577         Define with prototypes.
122579         * lib/group-member.c: Include group-member.h first.
122580         Include <stdlib.h> unconditionally.
122582         * lib/hard-locale.c: Include hard-locale.h first.
122583         Include <stdlib.h>, <string.h> unconditionally.
122585         * lib/hash.c (free, malloc): Remove decls.
122586         Include <stdlib.h> unconditionally.
122588         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
122589         (getenv): Do not declare.
122591         * lib/idcache.c: Include <string.h> unconditionally.
122593         * lib/long-options.c: Include long-options.h first, to test interface.
122594         Include <stdlib.h> unconditionally.
122596         * lib/makepath.c: Include makepath.h first, to test interface.
122597         Include <stdlib.h> and <string.h> unconditionally.
122599         * lib/linebuffer.c: Include <stdlib.h>.
122600         (free): Remove decl.
122602         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
122603         stddef.h. rpl_malloc returns void *, not char *.
122604         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
122605         prototype.
122607         * lib/md5.h: Include <limits.h> unconditionally.
122608         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
122609         (__P): Remove; all uses removed.
122610         * lib/md5.c: Include "md5.h" first.
122611         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
122612         md5_buffer, md5_process_bytes, md5_process_block):
122613         Define with prototypes.
122614         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
122615         * lib/sha.c: Include "sha.h" first.
122616         Include <stdlib.h>, <string.h> unconditionally.
122618         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
122619         * lib/memcmp.c (__ptr_t): Likewise.
122620         * lib/memrchr.c (__ptr_t): Likewise.
122621         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
122622         Include <string.h> unconditionally.
122623         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
122624         * lib/memchr.c: Include <stdlib.h> unconditionally.
122625         * lib/memchr.c (LONG_MAX): Remove.
122626         * lib/memrchr.c (LONG_MAX): Likewise.
122627         * lib/memchr.c (__memchr): Define via a prototype.
122628         * lib/memrchr.c (__memrchr): Likewise.
122629         * lib/memcmp.c (__P): Remove, and remove all uses.
122630         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
122631         Remove forward decls; no longer needed.
122632         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
122633         Use types required by C89 in prototype.
122635         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
122636         * lib/savedir.c: Likewise.
122637         * lib/mkdir.c (free): Remove decl.
122638         * lib/rmdir.c (rmdir): Define with a prototype.
122639         * lib/savedir.c: Include savedir.h first, to test interface.
122641         * lib/mktime.c (STDC_HEADERS): Remove.
122642         Include <stdlib.h>, <string.h> unconditionally.
122644         * lib/modechange.c: Include <stdlib.h> unconditionally.
122645         (malloc): Remove decl.
122647         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
122648         (free): Remove decl.
122650         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
122651         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
122652         (This type really should be intptr_t, but that's a C99ism.)
122653         (_obstack_memcpy): Remove: all uses changed to memcpy.
122654         Include <string.h> unconditionally.
122655         (struct obstack): Assume __STDC__ for types of members
122656         chunkfun, freefun, extra_arg.
122657         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
122658         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
122659         obstack_begin, obstack_specify_allocation,
122660         obstack_specify_allocation_with_arg, obstack_chunkfun,
122661         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
122662         Remove unprototyped decls and the macros that use them.
122663         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
122664         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
122665         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
122666         (defined __STDC__ && __STDC__)]:
122667         Remove nonprototyped code.
122668         Include <stdlib.h> unconditionally.
122669         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
122670         _obstack_allocated_p, _obstack_free, obstack_free,
122671         _obstack_memory_used, print_and_abort):
122672         Define using prototypes.
122673         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
122674         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
122675         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
122676         obstack_next_free, obstack_object_size, obstack_room) [0]:
122677         Remove unused, unprototyped code.
122679         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
122681         * lib/physmem.c (physmem_total, physmem_available, main): Define
122682         with prototypes.
122684         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
122685         (main): Define with a prototype.
122687         * lib/posixver.c (getenv): Remove decl.
122689         * lib/putenv.c (malloc): Returns void *, not char *.
122690         Include <string.h> unconditionally.
122691         (strchr, memcpy, NULL): Do not define.
122693         * lib/readtokens.c: Include readtokens.h first, to test interface.
122694         Include <stdlib.h>, <string.h> unconditionally.
122695         (init_tokenbuffer): Define with a prototype.
122697         * lib/regex.c (PARAMS): Remove.  All uses removed.
122698         All uses of _RE_ARGS removed, too.
122699         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
122700         unconditionally.
122701         (bzero): Assume memset exists.
122702         (memcmp, memcpy, NULL): Remove.
122703         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
122704         char, or assignments to local vars of type signed char.
122705         (init_syntax_once, PREFIX(extract_number_and_incr),
122706         PREFIX(print_partial_compiled_pattern),
122707         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
122708         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
122709         PREFIX(regex_grow_registers), PREFIX(regex_compile),
122710         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
122711         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
122712         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
122713         wcs_compile_range, byte_compile_range, truncate_wchar,
122714         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
122715         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
122716         count_mbs_length, wcs_re_match_2_internal,
122717         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
122718         PREFIX(alt_match_null_string_p),
122719         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
122720         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
122721         regfree, PREFIX(extract_number)): Define with prototype.  Remove
122722         now-unnecessary declaration, if any.
122723         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
122724         regcomp, regexec):
122725         Remove now-unnecessary casts among pointer types.
122726         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
122728         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
122729         (free): Remove decl.
122731         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
122733         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
122734         (free): Remove decl.
122736         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
122737         * lib/xgetcwd.c: Likewise.
122739         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
122740         (free): Remove decl.
122742         * lib/strchrnul.c (strchrnul): Define with a prototype.
122743         Fix bug: c_in was not converted to char before searching.
122745         The following changes are not K&R related:
122747         * lib/group-member.h: Include <sys/types.h>, so that this file is
122748         self-contained.
122749         * lib/makepath.h: Likewise.
122751         * lib/getusershell.c (readname, default_index, line_size, readname):
122752         Use size_t, not int, for sizes.
122753         (readname): If the size overflows, report an error instead of
122754         looping forever.
122756 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122758         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
122759         libc.
122761 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122763         * README: New section: portability guidelines.
122765 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
122767         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
122768         C89 spec.
122770 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
122772         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
122774 2003-09-08  Paul Eggert  <eggert@twinsun.com>
122776         Assume C89 or better; remove K&R cruft.
122777         A few of these changes were first proposed by Derek Robert Price
122778         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
122780         * lib/addext.c: Include <string.h> unconditionally.
122781         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
122782         Don't declare getenv or malloc.
122784         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
122785         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
122786         (NULL): Remove.
122787         (find_stack_direction, alloca): Use prototypes.
122789         * lib/atexit.c (atexit): Define using a prototype.
122791         * lib/basename.c, dirname.c, stripslash.c:
122792         Include <string.h> unconditionally.
122794         * lib/bcopy.c: Include <stddef.h>.
122795         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
122797         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
122799         * lib/error.h (error, error_at_line, error_print_progname)
122800         [! (defined (__STDC__) && __STDC__)]: Remove decls.
122801         * lib/error.c: Include error.h first, to check interface.
122802         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
122803         (VA_START): Remove; all uses changeed to va_start.
122804         (exit, strerror): Remove decls.
122805         (error_print_progname): Prototype uncondionally.
122806         Don't include <errno.h>; no longer needed.
122807         (private_strerror): Remove.
122808         (error_tail): Always define.
122809         (error, error_at_line): Assume C89 or better; always use prototypes.
122810         * lib/fatal.c: Include "fatal.h" first, to test interface.
122811         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
122812         (VA_START): Remove; all uses changed to va_start.
122813         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
122814         this case.
122815         (exit): Remove decl.
122816         (fatal): Prototype unconditionally.  Assume va_start works.
122817         Abort at end, to pacify gcc.
122819         * lib/euidaccess.c (main): Define with a prototype.
122821         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
122823         * lib/exitfail.c: Include <stdlib.h> unconditionally.
122825         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
122826         prototypes.
122827         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
122828         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
122829         (getenv): Remove decl.
122830         (fnmatch): Define using a prototype.
122831         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
122832         (FCT): Define using a prototype.
122834         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
122836         * lib/gethostname.c: Include <stddef.h>.
122837         (gethostname): Define with prototype.  Length is size_t, not int.
122839 2003-09-08  Paul Eggert  <eggert@twinsun.com>
122841         Assume C89 or better; remove K&R cruft.
122842         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
122843         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
122844         string.h, getenv, malloc.
122845         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
122846         headers.
122847         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
122848         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
122849         do not check for strerror.
122850         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
122851         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
122852         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
122853         do not check for doprnt or vprintf.
122854         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
122855         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
122857 2003-09-08  Paul Eggert  <eggert@twinsun.com>
122859         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
122860         getversion.c should have been removed then, but was accidentally
122861         preserved.
122863         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
122864         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
122866 2003-09-08  Karl Berry  <karl@gnu.org>
122868         * config/config.sub, config.guess, srclistvars.sh: update from savannah
122869                 config, forget about prep.
122871         * config/depcomp, missing: update from automake.
122873 2003-09-07  Paul Eggert  <eggert@twinsun.com>
122875         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
122876         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
122878 2003-09-07  Paul Eggert  <eggert@twinsun.com>
122880         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
122881         copy_tm_result.  Bug reported by Simon Josefsson in
122882         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
122884 2003-09-06  Paul Eggert  <eggert@twinsun.com>
122886         * m4/time_r.m4: New file.
122887         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
122888         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
122889         is. Check for timegm declaration.
122890         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
122891         Do not check for gmtime_r.
122892         Replace mktime if __mktime_internal does not exist and if mktime
122893         hasn't been replaced already.
122895 2003-09-06  Paul Eggert  <eggert@twinsun.com>
122897         * lib/time_r.c, lib/time_r.h: New files.
122899         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
122900         __localtime_r.
122901         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
122902         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
122904         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
122905         __gmtime_r.
122906         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
122907         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
122908         Include <time_r.h>.
122910         * lib/timegm.c: Switch to glibc implementation, with the following
122911         changes:
122912         [defined HAVE_CONFIG_H]: Include <config.h>.
122913         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
122914         (__mktime_internal) [!defined _LIBC]: New decl.
122915         (__gmtime_r) [!defined _LIBC]: New macro and function.
122916         (timegm): Use a prototype, since gnulib assumes C89.
122917         Do not bother declaring tmp to be const, as it's not really usefu.
122918         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
122919         (timegm): Declare only if HAVE_DECL_TIMEGM.
122921 2003-09-06  Paul Eggert  <eggert@twinsun.com>
122923         * MODULES.html.sh (func_all_modules): Add time_r.
122924         * modules/time_r: New file.
122925         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
122926         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
122928 2003-09-03  Paul Eggert  <eggert@twinsun.com>
122930         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
122931         Bug reported by Lute Kamstra in
122932         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
122934         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
122935         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
122936         course with correspondingly smaller numbers for tomorrow and
122937         yesterday.  From Tadayoshi Funaba.  Originally installed into
122938         sh-utils on 1999-08-07, but the patch got lost (I guess during the
122939         coreutils merge?).
122941 2003-08-31  Simon Josefsson  <jas@extundo.com>
122943         * modules/timegm: New file.
122944         * MODULES.html.sh (func_all_modules): Add timegm.
122946 2003-08-31  Simon Josefsson  <jas@extundo.com>
122948         * m4/timegm.m4: New file.
122950 2003-08-31  Simon Josefsson  <jas@extundo.com>
122952         * lib/timegm.h: New file.
122953         * lib/timegm.c: New file.  Based on
122954         wget-1.8.2/src/http.c:mktime_from_utc.
122956 2003-08-31  Karl Berry  <karl@gnu.org>
122958         * lib/argp.h: update from libc.
122960 2003-08-28  Bruno Haible  <bruno@clisp.org>
122962         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
122963         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
122964         followed by '#define fnmatch fnmatch_posix' gives an error.
122966 2003-08-28  Bruno Haible  <bruno@clisp.org>
122968         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
122969         warning on QNX, which defines O_BINARY to 000000.
122971 2003-08-27  Jim Meyering  <jim@meyering.net>
122973         * m4/mkstemp.m4: Require that the system mkstemp be able to create
122974         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
122975         would fail after 32.  Reported by Danny Levinson.  Details here:
122976         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
122978 2003-08-24  Bruno Haible  <bruno@clisp.org>
122980         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
122981         MSVC7 <stdio.h> is included later.
122983 2003-08-22  Simon Josefsson  <jas@extundo.com>
122985         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
122987 2003-08-20  Karl Berry  <karl@gnu.org>
122989         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
122991 2003-08-20  Bruno Haible  <bruno@clisp.org>
122993         * modules/progname: New file.
122994         * MODULES.html.sh (func_all_modules): Add progname.
122996 2003-08-20  Bruno Haible  <bruno@clisp.org>
122998         * lib/progname.h: New file, from GNU gettext.
122999         * lib/progname.c: New file, from GNU gettext.
123000         * lib/progreloc.c: New file, from GNU gettext.
123002 2003-08-19  Jim Meyering  <jim@meyering.net>
123004         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
123005         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
123007 2003-08-19  Bruno Haible  <bruno@clisp.org>
123009         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
123010         more.
123012 2003-08-19  Bruno Haible  <bruno@clisp.org>
123014         * lib/xstrdup.c: Assume <string.h> exists.
123016 2003-08-18  Paul Eggert  <eggert@twinsun.com>
123018         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
123019         in makefile rules.
123021 2003-08-18  Jim Meyering  <jim@meyering.net>
123023         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
123024         * m4/lib-ld.m4: Likewise.
123026 2003-08-18  Jim Meyering  <jim@meyering.net>
123028         * lib/setenv.h: Indent nested cpp directive.
123029         * lib/vasnprintf.c: Remove trailing blanks.
123031 2003-08-17  Simon Josefsson  <jas@extundo.com>
123033         * modules/xstrndup: New file.
123034         * MODULES.html.sh (func_all_modules): Add xstrndup.
123036 2003-08-17  Simon Josefsson  <jas@extundo.com>
123038         * modules/argp: Fix autoconf macro name. Add more dependencies.
123040 2003-08-17  Simon Josefsson  <jas@extundo.com>
123042         * m4/xstrndup.m4: New file.
123044 2003-08-17  Simon Josefsson  <jas@extundo.com>
123046         * m4/argp.m4: New file.
123048 2003-08-17  Simon Josefsson  <jas@extundo.com>
123049             Bruno Haible  <bruno@clisp.org>
123051         * lib/xstrndup.h: New file.
123052         * lib/xstrndup.c: New file.
123054 2003-08-17  Bruno Haible  <bruno@clisp.org>
123056         * modules/strndup (Files, Include): Add lib/strndup.h.
123058 2003-08-17  Bruno Haible  <bruno@clisp.org>
123060         * modules/euidaccess (Files): Add lib/euidaccess.h.
123062 2003-08-17  Bruno Haible  <bruno@clisp.org>
123064         * lib/strndup.h: New file.
123066 2003-08-17  Bruno Haible  <bruno@clisp.org>
123068         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
123069         like AC_GNU_SOURCE.
123070         * modules/extensions (configure.ac): Comment out the invocation of
123071         gl_USE_SYSTEM_EXTENSIONS.
123073 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123075         Merges from coreutils, etc.
123076         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
123077         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
123078         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
123079         fixing a typo.
123080         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
123081         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
123083 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123085         Document merge from coreutils.
123086         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
123087         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
123088         * modules/utime: Add m4/utimes-null.m4.
123090 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123092         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
123093         space, undoing this 2003-08-12 change:
123094         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123096 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123098         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
123099         strtoul.c from libc, undoing this 2003-08-12 change:
123100         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123102 2003-08-16  Jim Meyering  <jim@meyering.net>
123104         Merges from coreutils.
123105         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
123106         prefix.  Adjust cache variables similarly.  Create 500 rather than
123107         just 300 files, to exercise bug on Darwin6.5, too.
123108         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
123109         $missing_dir.
123110         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
123111         AM_SYS_POSIX_TERMIOS.
123112         Reported by mkc@mathdogs.com.
123113         Also change use of $am_cv_sys_posix_termios
123114         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
123115         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
123116         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
123117         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
123118         in /proc/mounts until it finds one with matching device number.  This
123119         is unnecessary when the FILE argument *is* a mount point.  No stat call
123120         is necessary in that case.  So, disable the statvfs-testing code on
123121         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
123122         as RedHat bug# 84846.
123123         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123124         to 1MB, so as not to render systems with no stack size limit (e.g.,
123125         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123126         Include <unistd.h>.  On some systems,
123127         it is required for the definition of _SC_PAGESIZE.
123129 2003-08-16  Jim Meyering  <jim@meyering.net>
123131         Merge from coreutils.
123132         * lib/xstrtoimax.c: #else #if -> #elif.
123133         * lib/xstrtoumax.c: Likewise.
123135 2003-08-16  Jim Meyering  <jim@meyering.net>
123137         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
123138         * m4/utimes.m4: Removed.
123139         * m4/utimes-null.m4: Renamed from utimes.m4.
123141         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123142         to 1MB, so as not to render systems with no stack size limit (e.g.,
123143         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123144         Include <unistd.h>.  On some systems,
123145         it is required for the definition of _SC_PAGESIZE.
123147 2003-08-16  Jim Meyering  <jim@meyering.net>
123148         and Paul Eggert  <eggert@cs.ucla.edu>
123150         Merges from coreutils, etc.
123152         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
123153         using the latest version from cvs.  This avoids problems with #line
123154         directives using a vendor (Sun) compiler.
123155         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
123156         Don't set GETGROUPS_LIB here; now it's
123157         done via getgroups.m4's wrapper function.
123158         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
123159         rather than just in sh-util/configure.in, so that the
123160         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
123161         same.
123162         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
123163         AC_FUNC_GETLOADAVG where to find getloadavg.c.
123164         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
123165         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
123166         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
123167         Remove code that is now done by the newly-required macros.
123168         Append $(EXEEXT) to DF_PROG.
123169         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
123170         Do not invoke or require the following here,
123171         since prereq.m4 or some gnulib .m4 now does this for us:
123172         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
123173         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
123174         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
123175         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
123176         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
123177         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
123178         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
123179         AC_FUNC_OBSTACK.
123180         Do not replace the following functions, as this is now the job
123181         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
123182         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
123183         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
123184         atexit getpass, strdup, getpagesize.
123185         Replace 'raise'.
123186         Do not check for the following functions, as this is now the job
123187         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
123188         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
123189         setregid.
123190         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
123191         Check for sys/sysctl.h.
123192         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
123193         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
123194         of checking for ssize_t ourselves.
123196         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
123197         Require every macro that gnulib/modules/* suggests for us.
123198         (jm_PREREQ_ADDEXT): New macro.
123199         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
123200         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
123202         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
123203         (gl_PHYSMEM): Use it.
123204         Also check for `table' function.
123205         Check for new headers and functions.
123206         Add check for sys/sysmp.h.
123207         With suggestions from Kaveh Ghazi.
123208         Ignore headers that are present but cannot be compiled.  This
123209         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
123210         C 5.4.
123212 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123214         Document merge from coreutils.
123215         * modules/userspec: Depend on posixver.
123216         * modules/strftime: Depend on tzset.
123218 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123220         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
123221         rather than tab, after '#' in shell-script copyright notices.
123222         Suggested by Bruno Haible.
123224 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123226         * config/srclist-update: Use three spaces, rather than tab, after '#'
123227         in shell-script copyright notices.  Suggested by Bruno Haible.
123228         Remove unnecessary parenthesization in regular expression.
123230 2003-08-15  Jim Meyering  <jim@meyering.net>
123232         Merge from coreutils.
123233         * lib/xgethostname.c: Include <stdlib.h>.
123234         (xghostname): Don't exit for anything other than memory-related
123235         failure; just return NULL.
123236         * lib/userspec.c: Include "posixver.h".
123237         (parse_user_spec): Accept `.' as a separator only
123238         in pre-POSIX-200112 mode.
123239         * lib/strtoimax.c: Use #elif rather than #else #if.
123240         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
123241         Remove function, now that we can rely on a working tzset function.
123242         [!_LIBC]: Ensure that the required autoconf test has been run.
123243         [!defined _NL_CURRENT && HAVE_STRFTIME]:
123244         Use underlying_strftime for %r.
123245         * lib/sha.c: Merge in some clean-up and optimization changes from
123246         glibc.
123247         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
123248         Ensure that it is a multiple of 64.
123249         Rearrange loop exit tests so as to avoid performing an
123250         additional fread after encountering an error or EOF.
123251         * lib/realloc.c: Update copyright date.
123253 2003-08-15  Jim Meyering  <jim@meyering.net>
123254         and Paul Eggert  <eggert@twinsun.com>
123256         Merge from coreutils.
123257         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
123258         member but strut utmpx does not.  Needed for AIX 4.3.3.
123259         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
123261 2003-08-15  Jim Meyering  <jim@meyering.net>
123262         and Paul Eggert  <eggert@cs.ucla.edu>
123264         Merges from coreutils, etc.
123265         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
123266         Require gl_FUNC_TZSET_CLOBBER.
123267         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
123268         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
123269         members.
123271 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123273         Help the merge from coreutils.
123274         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
123275         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
123276         * m4/tzset.m4: Use it too.
123278 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123280         * modules/tzset: New file.
123282 2003-08-14  Jim Meyering  <jim@meyering.net>
123284         Merges from coreutils.
123285         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
123286         variable names, rather than @FNMATCH_H@.
123287         * modules/alloca: Likewise for $(ALLOCA_H).
123289         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
123290         the three copies of the literal target, `fnmatch.h'.
123291         * modules/alloca (alloca.h): Likewise.
123293 2003-08-14  Jim Meyering  <jim@meyering.net>
123295         Merge from coreutils.
123296         * m4/tzset.m4: New file.
123297         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
123298         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
123299         otherwise, AIX 5.1 systems would end up using the latter.
123300         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
123301         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
123302         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
123303         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
123305 2003-08-14  Jim Meyering  <jim@meyering.net>
123307         Merge from coreutils.
123308         * lib/obstack.h: Whitespace changes.
123309         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
123310         and xcalloc return values.
123311         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
123312         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
123313         hang on OSF/1 5.1 for DIR on both local and remote file systems.
123314         Reported by (and fix confirmed by) Nelson H. F. Beebe.
123315         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
123316         error from mntctl.
123317         Use mntctl's return value to drive the entry-processing loop, since
123318         we can't rely on the value of the vmt_length member in the last
123319         entry.  On some systems doing so could result in exhausting
123320         virtual memory.  Based in part on a patch from Mike Jetzer.
123322 2003-08-14  Jim Meyering  <jim@meyering.net>
123323         and Paul Eggert  <eggert@twinsun.com>
123325         Merges from coreutils, plus other fixes.
123326         * lib/physmem.c: Merge in portability changes from gcc/libiberty
123327         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
123328         for credits and details.  Thanks to Kaveh Ghazi for helping
123329         to keep these files in sync.
123330         (ARRAY_SIZE): Define it.
123331         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
123332         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
123333         (memcasecmp): Don't assume size_t fits in unsigned int.
123334         Remove casts and duplicate code.
123335         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
123336         (memcpy): Remove definition.
123337         Merge in some clean-up and optimization changes from glibc.
123338         [BLOCKSIZE]: Move definition to top of file.
123339         Ensure that it is a multiple of 64.
123340         Rearrange loop exit tests so as to avoid performing an
123341         additional fread after encountering an error or EOF.
123342         * lib/md5.h (md5_uintptr): Define.
123343         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
123344         return to the initial working directory.  Preserve errno
123345         for caller.
123346         * lib/idcache.c: Include "xalloc.h".
123347         (xmalloc, xrealloc): Remove decls.
123348         (getuser): Remove casts no longer required in C89.
123349         * lib/human.c: Include stdio.h, for sprintf.
123350         * lib/group-member.c: Include "xalloc.h".
123351         (xmalloc, xrealloc): Remove decls.
123352         (get_group_info): Remove casts no longer required in C89.
123353         * lib/getusershell.c (readname): Remove casts no longer required in
123354         C89.
123355         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
123356         * lib/getline.c: Whitespace fix, from coreutils.
123358 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123360         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
123361         Check for isascii.
123363         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123364         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123365         Undo previous (whitespace-only) change.
123367 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123369         * lib/exclude.c: Include <ctype.h>
123370         (IN_CTYPE_DOMAIN): New macro.
123371         (is_space): New fn.
123372         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
123373         and empty lines.
123375         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123376         Undo previous (whitespace-only) change.
123378 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123380         * config/srclist-update: Change update back to the old behavior,
123381         leaving whitespace alone.  Use one 'sed' command rather than a
123382         pipeline.
123383         (fixlicense): Now a variable, not a function.
123384         (remove_trailing_blanks): Remove.
123385         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
123386         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123387         Undo previous (whitespace-only) change.
123389 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123391         Merge from coreutils.
123392         * modules/euidaccess: Add lib_SOURCES, include for new
123393         file euidaccess.h
123395 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123397         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123398         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123399         Normalize leading white space and remove trailing white space.
123401         Merge from coreutils
123402         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
123404         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
123405         0.12.1.  These files are now being upgraded automatically by
123406         ../config/srclist-update.
123408 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123410         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123411         Normalize leading white space and remove trailing white space.
123412         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
123413         notice, as per ../config/srclist-update.
123415         Merge from coreutils.
123416         * lib/euidaccess.h: New file.
123417         * lib/euidaccess.c: Include it.
123418         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
123419         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
123420         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
123422 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123424         * config/srclist-update: Add copyright notice.
123425         (remove_id_lines, remove_trailing_blanks): New constants.
123426         (fixfile): Use them to normalize spacing a bit in copied files.
123427         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123428         Normalize leading white space and remove trailing white space.
123430         * config/texinfo.tex: Sync with texinfo.
123432         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
123433         strtoul.c from libc, to merge coreutils whitespace changes.
123435         * config/srclist.txt: Get the following m4 files from gettext:
123436         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
123437         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
123438         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
123439         wint_t.m4.
123441 2003-08-12  Karl Berry  <karl@gnu.org>
123443         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
123444         been made.
123446 2003-08-11  Paul Eggert  <eggert@twinsun.com>
123448         * modules/gnu-source, m4/gnu-source.m4:
123449         Remove; we're assuming Autoconf 2.54 or later now.
123450         Suggested by Bruno Haible.
123451         * MODULES.html.sh (func_all_modules): Remove gnu-source.
123453 2003-08-11  Bruno Haible  <bruno@clisp.org>
123455         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
123457 2003-08-11  Bruno Haible  <bruno@clisp.org>
123459         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
123460         (vasnprintf): Use it instead of wcslen.
123462 2003-08-11  Bruno Haible  <bruno@clisp.org>
123464         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
123465         value to ensure that _Bool promotes to int. Use #define for _Bool when
123466         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
123468 2003-08-10  Karl Berry  <karl@gnu.org>
123470         * lib/regex.h: update from libc (whitespace fix).
123472 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123474         Merge some files from coreutils.  These changes were
123475         originally made by Jim Meyering.
123476         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
123477         many older Unixes require this.
123478         * lib/alloca.c (alloca): Remove cast to argument of free;
123479         no longer needed in C89.
123480         * lib/alloca_.h, regex.h: Fix white space to match
123481         what GNU indent does.
123483 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123485         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
123486         apparently Emacs's Unicode mode got confused before my 2003-08-05
123487         checkin.
123489 2003-08-08  Paul Eggert  <eggert@twinsun.com>
123491         * m4/extensions.m4: New file.
123492         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
123493         Require gl_USE_SYSTEM_EXTENSIONS.
123494         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
123495         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
123497 2003-08-08  Paul Eggert  <eggert@twinsun.com>
123499         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
123500         * modules/extensions, modules/gnu-source: New files.
123501         * modules/timespec, modules/unlocked-io: Depend on extensions.
123503 2003-08-07  Paul Eggert  <eggert@twinsun.com>
123505         * modules/restrict: New file.
123506         * MODULES.html.sh (func_all_modules): Add restrict.
123507         * modules/regex: Depend on restrict.
123509 2003-08-07  Paul Eggert  <eggert@twinsun.com>
123511         * m4/restrict.m4: New file.
123512         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
123514 2003-08-07  Bruno Haible  <bruno@clisp.org>
123516         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
123517         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
123519 2003-08-07  Bruno Haible  <bruno@clisp.org>
123521         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
123522         makes the module 'getndelim2' compatible with the module 'getline'.
123524 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123526         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
123527         byte with "\201" to avoid glitches when editing that source file
123528         with multi-gnome-terminal.
123530 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123532         * lib/bumpalloc.h: Remove.
123534 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123536         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
123537         * modules/bumpalloc: Remove.
123539 2003-08-04  Paul Eggert  <eggert@twinsun.com>
123541         * lib/getloadavg.c: Change copyright notice and spacing to conform to
123542         GNU coding style.
123544         Merge from coreutils.
123545         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
123546         1. From glibc.
123547         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
123548         from Karl Berry, implemented by Jim Meyering.
123549         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
123550         from Dmitry V. Levin.
123551         Remove anachronistic cast of xrealloc.
123552         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
123553         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
123554         type. Otherwise, it wouldn't compile with at least /bin/cc on
123555         ymp-cray-unicos9.0.2.X.
123556         Combine two mostly-identical uses of alloca into one.
123557         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
123559 2003-08-04  Dave Love  <d.love@dl.ac.uk>
123561         [From Emacs.]
123563         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
123564         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
123565         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
123566         obsolete NLIST_NAME_UNION.
123567         [__GNU__]: Undef BSD and FSCALE.
123568         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
123570 2003-08-03  Paul Eggert  <eggert@twinsun.com>
123572         * lib/stdbool_.h (_Bool): Make it signed char, instead of
123573         an enum type, so that it's guaranteed to promote to int.  See:
123574         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
123576 2003-08-03  Karl Berry  <karl@gnu.org>
123578         * config/depcomp: update from automake.
123580 2003-07-31  Paul Eggert  <eggert@twinsun.com>
123582         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
123583         (strerror): Don't assume that a printable int fits in 14 bytes.
123585 2003-07-31  Bruno Haible  <bruno@clisp.org>
123587         * modules/getpass-gnu: New file.
123588         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
123590 2003-07-31  Bruno Haible  <bruno@clisp.org>
123592         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
123594 2003-07-24  Karl Berry  <karl@gnu.org>
123596         * config/missing: update from automake.
123598 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
123599             Bruno Haible  <bruno@clisp.org>
123601         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
123602         * lib/getline.c (getline, getdelim): Likewise.
123603         Remove _GNU_SOURCE define; now it's defined in config.h through
123604         m4/getline.m4.
123606 2003-07-23  Karl Berry  <karl@gnu.org>
123608         * config/config.sub: update from prep.
123610 2003-07-22  Paul Eggert  <eggert@twinsun.com>
123612         * modules/xalloc (Depends-on): Add exitfail.
123613         * modules/xmemcoll: Likewise.
123615 2003-07-22  Paul Eggert  <eggert@twinsun.com>
123617         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
123618         over-parenthesization in macros.
123620         Sync with coreutils.
123622         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
123623         required by C99.
123625         Use `exit_failure' for xalloc and xmemcoll instead of their own
123626         private exit-failure variables.
123627         * lib/xalloc.h (xalloc_exit_failure): Remove.
123628         * lib/xmalloc.c: Likewise.  Include exitfail.h.
123629         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
123630         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
123631         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
123632         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
123634 2003-07-20  Jim Meyering  <jim@meyering.net>
123636         * modules/closeout (Depends-on): Add exitfail.
123637         Suggestion from Bruno Haible.
123639 2003-07-19  Karl Berry  <karl@gnu.org>
123641         * config/config.sub: update from prep.
123643 2003-07-18  Paul Eggert  <eggert@twinsun.com>
123645         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
123646         Remove.
123647         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
123648         to test that it can stand by itself.  Include "exitfail.h".
123649         Clients should set exit_failure instead.
123650         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
123652 2003-07-18  Bruno Haible  <bruno@clisp.org>
123654         * modules/getndelim2: New file.
123655         * modules/getline: Share files with module getndelim2.
123656         * modules/getnline: Depend on getndelim2 instead of sharing files with
123657         it. Add getnline.c to lib_SOURCES.
123658         * MODULES.html.sh (func_all_modules): Add getndelim2.
123660 2003-07-18  Bruno Haible  <bruno@clisp.org>
123662         * m4/getndelim2.m4: New file.
123663         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
123664         invoke gl_PREREQ_GETNDELIM2.
123665         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
123666         gl_PREREQ_GETNDELIM2.
123667         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
123668         gl_GETNDELIM2.
123670 2003-07-18  Bruno Haible  <bruno@clisp.org>
123672         * lib/getndelim2.h: New file.
123673         * lib/getndelim2.c: Make into a module of its own. Include config.h,
123674         getndelim2.h.
123675         (getndelim2): Make non-static. Change return type to ssize_t.
123676         * lib/getline.h: Change argument names.
123677         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
123678         * lib/getnline.c: Include getndelim2.h.
123680 2003-07-18  Andreas Schwab  <schwab@suse.de>
123682         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
123684 2003-07-17  Karl Berry  <karl@gnu.org>
123686         * config/config.sub: update from prep.
123688 2003-07-17  Bruno Haible  <bruno@clisp.org>
123690         * modules/getnline: New file.
123691         * modules/getline: Add lib/getndelim2.c to source file list.
123692         * MODULES.html.sh (func_all_modules): Add getnline.
123694 2003-07-17  Bruno Haible  <bruno@clisp.org>
123696         * m4/getnline.m4: New file.
123698 2003-07-17  Bruno Haible  <bruno@clisp.org>
123700         * m4/Makefile.am.in: Remove file.
123701         * m4/Makefile.am: Remove file.
123702         * m4/Makefile.in: Remove file.
123704 2003-07-17  Bruno Haible  <bruno@clisp.org>
123706         * lib/getnline.h: New file.
123707         * lib/getnline.c: New file.
123708         * lib/getndelim2.c: New file, extracted from getline.c.
123709         (getndelim2): Renamed from getdelim2, with added nmax argument.
123710         * lib/getline.c: Include getndelim2.c.
123711         (getdelim2): Moved out to getndelim2.c.
123712         (getline, getdelim): Update.
123714 2003-07-17  Bruno Haible  <bruno@clisp.org>
123716         * lib/Makefile.am: Remove file.
123717         * lib/Makefile.in: Remove file.
123719 2003-07-17  Bruno Haible  <bruno@clisp.org>
123721         * configure.in: Remove file.
123722         * Makefile.in: Remove file.
123724 2003-07-17  Bruno Haible  <bruno@clisp.org>
123726         * MODULES.html.sh: Put the </BODY> right before </HTML>.
123728 2003-07-16  Karl Berry  <karl@gnu.org>
123730         * config/srclist-update: was running fixlicense twice, which caused
123731                 texinfo.tex to be nullified for some reason.  Simplify,
123732                 $gplsrc is no longer needed as far as I can see?
123734 2003-07-16  Jim Meyering  <jim@meyering.net>
123736         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
123738 2003-07-15  Paul Eggert  <eggert@twinsun.com>
123740         * config/srclist.txt: Get the following files from gettext-runtime/intl
123741         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
123742         ref-del.sin.  From Bruno Haible.
123743         * config/srclist-update (fixfile): Change grep pattern again, since the
123744         previous fix didn't work (there was another trailing $).  Use
123745         '[$]' to escape the $s.
123747 2003-07-15  Karl Berry  <karl@gnu.org>
123749         * lib/vasnprintf.c: update from gettext.
123751 2003-07-15  Karl Berry  <karl@gnu.org>
123753         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
123754         gets expanded when surrounded by '$'.
123756 2003-07-15  Jim Meyering  <jim@meyering.net>
123758         * modules/save-cwd: Don't depend on error.  From Derek Price.
123760 2003-07-15  Jim Meyering  <jim@meyering.net>
123762         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
123764 2003-07-14  Simon Josefsson  <jas@extundo.com>
123766         * modules/mempcpy: New file.
123767         * MODULES.html.sh (func_all_modules): Add mempcpy.
123769 2003-07-14  Simon Josefsson  <jas@extundo.com>
123771         * m4/mempcpy.m4: New file.
123773 2003-07-14  Simon Josefsson  <jas@extundo.com>
123775         * lib/mempcpy.h: New file.
123776         * lib/mempcpy.c: New file.
123778 2003-07-14  Paul Eggert  <eggert@twinsun.com>
123780         * modules/getdate, modules/posixtm: Depend on mktime.
123782 2003-07-14  Paul Eggert  <eggert@twinsun.com>
123784         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
123785         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
123786         unicodeio.c, unicodeio.h, unlocked-io.h:
123787         Switch from LGPL to GPL.
123789 2003-07-14  Paul Eggert  <eggert@twinsun.com>
123791         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
123792         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
123793         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
123794         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
123795         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
123796         updated automatically by ../config/srclist-update.  This changes
123797         their license from LPGL to GPL.
123799 2003-07-14  Paul Eggert  <eggert@twinsun.com>
123801         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
123802         assumed to refer to the root of the most recent stable gettext version.
123803         * config/srclistvars.sh: Add defaults for eggert.
123804         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
123805         Match "This program" as well as "The program".  This is needed
123806         for gettext.
123808 2003-07-14  Jim Meyering  <jim@meyering.net>
123810         Don't emit diagnostics.  Let callers do that.
123811         * lib/save-cwd.c: Don't include "error.h".
123812         (save_cwd): Don't call error.  Ensure that errno is valid
123813         when returning nonzero.
123815         * lib/save-cwd.h (restore_cwd): Update prototype.
123816         * lib/save-cwd.c (restore_cwd): Remove two parameters.
123817         Simplify.  Don't call error upon failure.  Let callers do that.
123818         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
123819         when auditing is enabled.  But don't bother updating the #if.
123821 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
123823         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
123824         it breaks C++ compilation.
123825         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
123827 2003-07-10  Simon Josefsson  <jas@extundo.com>
123829         * modules/strchrnul (Makefile.am): Add strchrnul.h.
123831 2003-07-10  Jim Meyering  <jim@meyering.net>
123833         * m4/clock_time.m4: Remove trailing blank.
123834         * m4/intmax_t.m4: Likewise.
123836 2003-07-10  Jim Meyering  <jim@meyering.net>
123838         * lib/vasnprintf.c: Remove trailing blanks.
123839         Make cpp indentation consistent.
123841 2003-07-09  Paul Eggert  <eggert@twinsun.com>
123843         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
123844         posixver.c, strftime.c, strnlen.c, strverscmp.c:
123845         Switch from LGPL to GPL.
123847 2003-07-09  Paul Eggert  <eggert@twinsun.com>
123849         * config/srclist.txt: Sort sublists.  Add
123850         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
123851         that differ from gnulib for one reason or another; we'd like this list
123852         to be smaller but for now let's document what we have.
123854 2003-07-08  Paul Eggert  <eggert@twinsun.com>
123856         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
123857         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
123858         and sweeter "eval x=$x".
123859         * config/srclist.txt: Get lib/argp* from glibc.
123861 2003-07-07  Paul Eggert  <eggert@twinsun.com>
123863         * lib/mktime.c: Fix some boundary cases and remove need for floating
123864         point.
123866         Issue a compile-time diagnostic if time_t is floating point, or if
123867         two's complement arithmetic is not in effect, or if arithmetic
123868         right shift does not propagate the sign.  These assumptions were
123869         all in the original code but they weren't checked.
123871         (TIME_T_MIDPOINT, verify): New macros.
123872         (__isleap): Remove; it has integer overflow problems.
123873         (leapyear): New function, without those problems.
123874         (ydhms_tm_diff): Remove; splitting into two parts.
123875         (ydhms_diff): New function, containing the arithmetic part of
123876         the old ydhms_tm_diff function.  Issue a compile-time
123877         diagnostic if we are not using C99 integer division.
123878         Avoid casts when possible.
123879         (guess_time_tm): New function, containing the checking part of
123880         the old ydhms_tm_diff function.  Return the new value, rather than
123881         the difference between it and the old.  Accept a new argument T
123882         so that *T specifies the old value.  Check for overflow in the result.
123884         (__mktime_internal): Use a time_t offset, not a long int offset.
123885         This undoes the 2003-06-04 change, which is no longer needed now
123886         that we have better overflow checking.
123887         (localtime_offset): Likewise.
123889         (__mktime_internal): Avoid harmful overflow on hosts where time_t
123890         and long are 64-bit but int is only 32-bit.
123891         (ydhms_diff): Use long int to store year1 and yday1.
123892         Issue a compile-time diagnostic if long int is not wide enough.
123894         (__mktime_internal): Use long int to store adjusted year and yday.
123895         Use plain C rather than preprocessor commands, if that doesn't
123896         affect efficiency.
123897         Check for overflow (and try to repair) after each probe
123898         rather than checking only at the very end.  This avoids some bugs
123899         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
123900         does not equal GMT offset at maximum time).
123901         Use integer to check for overflow rather than floating point; this
123902         is more portable to non-IEEE hosts, and is a tad faster.
123903         When we detect that we are oscillating between two values,
123904         don't check whether tm_isdst has the requested value, since
123905         we already know the answer.  When tm_isdst has the wrong value,
123906         use a different heuristic to find the right one, based on the
123907         extreme values actually observed in practice in tz2003a,
123908         rather than the (overly optimistic) "previous 3 calendar quarters".
123910         (not_equal_tm, print_tm, check_result): Use "const T" rather than
123911         "T const" to accommodate glibc style.
123912         (check_result): Use less-confusing report format.  "long" -> "long int.
123913         (main): Likewise.
123914         Don't loop if the iteration overflows time_t.
123915         Allow a negative step in the iteration.
123917 2003-07-06  Karl Berry  <karl@gnu.org>
123919         * config/depcomp: update from automake.
123920         * config/config.sub: update from prep.
123922 2003-07-03  Karl Berry  <karl@gnu.org>
123924         * config/config.guess: update from prep.
123926 2003-07-01  Paul Eggert  <eggert@twinsun.com>
123928         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
123929         xreadlink.c now includes it unconditionally.
123931 2003-07-01  Paul Eggert  <eggert@twinsun.com>
123933         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
123934         having it depend on HAVE_SYS_TYPES_H.
123936 2003-07-01  Bruno Haible  <bruno@clisp.org>
123938         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
123939         <sys/types.h> should be sufficient.
123940         Reported by Paul Eggert.
123942 2003-06-26  Karl Berry  <karl@gnu.org>
123944         * config/depcomp: update from automake.
123946 2003-06-26  Bruno Haible  <bruno@clisp.org>
123948         * modules/human: Depend on module stdbool.
123950 2003-06-25  Bruno Haible  <bruno@clisp.org>
123952         * modules/readlink: New file.
123953         * modules/xreadlink: Depend on it.
123954         * MODULES.html.sh (func_all_modules): Add readlink.
123956 2003-06-25  Bruno Haible  <bruno@clisp.org>
123958         * m4/readlink.m4: New file.
123960 2003-06-25  Bruno Haible  <bruno@clisp.org>
123962         * lib/readlink.c: New file.
123964 2003-06-22  Karl Berry  <karl@gnu.org>
123966         * config/srclist.txt: update mkinstalldirs from automake.
123967         * config/mkinstalldirs: update.
123969 2003-06-22  Bruno Haible  <bruno@clisp.org>
123971         Portability to mingw32.
123972         * m4/ssize_t.m4: New file, from GNU gettext.
123973         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
123974         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
123976 2003-06-22  Bruno Haible  <bruno@clisp.org>
123978         * modules/safe-read: Add m4/ssize_t.m4.
123979         * modules/xreadlink: Add m4/ssize_t.m4.
123981 2003-06-20  Bruno Haible  <bruno@clisp.org>
123983         Assume C89, so PARAMS isn't needed.
123984         * lib/unicodeio.h (PARAMS): Remove.
123985         * lib/unicodeio.c: Don't use PARAMS.
123987 2003-06-18  Karl Berry  <karl@gnu.org>
123989         * config/config.{guess,sub}: update from prep.
123991 2003-06-18  Jim Meyering  <jim@meyering.net>
123993         Merge changes from coreutils.
123994         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
123995         Remove explicit declarations of xmalloc and realloc.
123996         Include xalloc.h.
123997         (read_utmp): Remove anachronistic cast of xmalloc.
123999 2003-06-17  Paul Eggert  <eggert@twinsun.com>
124001         Assume C89, so PARAMS isn't needed.
124002         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
124003         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
124004         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
124005         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
124006         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
124007         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
124008         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
124009         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
124010         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
124011         lib/xstrtod.h, lib/xstrtol.h: Likewise.
124012         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
124013         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
124014         no longer needed. Anyway, config.h should always be included before any
124015         other file.
124017 2003-06-11  Simon Josefsson  <jas@extundo.com>
124019         * modules/sysexits: New file.
124020         * MODULES.html.sh (func_all_modules): Add sysexits.
124022 2003-06-11  Simon Josefsson  <jas@extundo.com>
124024         * lib/sysexit_.h: New file.
124026 2003-06-11  Derek Price  <derek@ximbiot.com>
124028         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
124029         necessary.
124031 2003-06-11  Bruno Haible  <bruno@clisp.org>
124033         * m4/sysexits.m4: New file.
124035 2003-06-10  Simon Josefsson  <jas@extundo.com>
124037         * lib/argp.h: New file, from glibc.
124038         * lib/argp-ba.c: New file, from glibc.
124039         * lib/argp-eexst.c: New file, from glibc.
124040         * lib/argp-fmtstream.c: New file, from glibc.
124041         * lib/argp-fmtstream.h: New file, from glibc.
124042         * lib/argp-fs-xinl.c: New file, from glibc.
124043         * lib/argp-help.c: New file, from glibc.
124044         * lib/argp-namefrob.h: New file, from glibc.
124045         * lib/argp-parse.c: New file, from glibc.
124046         * lib/argp-pv.c: New file, from glibc.
124047         * lib/argp-pvh.c: New file, from glibc.
124048         * lib/argp-xinl.c: New file, from glibc.
124050 2003-06-10  Simon Josefsson  <jas@extundo.com>
124052         * modules/strchrnul: New file.
124054 2003-06-10  Simon Josefsson  <jas@extundo.com>
124056         * modules/argp: New file.
124058 2003-06-10  Simon Josefsson  <jas@extundo.com>
124060         * m4/strchrnul.m4: New file.
124062 2003-06-10  Simon Josefsson  <jas@extundo.com>
124064         * lib/strchrnul.h: New file.
124065         * lib/strchrnul.c: New file.
124067 2003-06-10  Bruno Haible  <bruno@clisp.org>
124069         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
124071 2003-06-07  Karl Berry  <karl@gnu.org>
124073         * config/config.{guess,sub}: update from prep.
124075 2003-06-07  Jim Meyering  <jim@meyering.net>
124077         * modules/strtod: Use $(...) notation, not @...@ for
124078         AC_REPLACE'd variables.
124079         * modules/localcharset: Likewise.
124081 2003-06-07  Jim Meyering  <jim@meyering.net>
124083         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
124084         in place of my name in the copyright comment.
124085         Remove definition and uses of __P.
124087         From coreutils.
124088         * lib/stat.c: Don't declare xmalloc explicitly.
124089         Instead, include "xalloc.h".
124090         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
124091         xrealloc, and xcalloc return values.
124092         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
124093         Improve comment.
124094         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
124096 2003-06-07  Bruno Haible  <bruno@clisp.org>
124098         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
124099         avoid AC_CONFIG_LINKS.
124100         * modules/fnmatch (Makefile.am): Use explicit creation rule for
124101         fnmatch.h, to avoid AC_CONFIG_LINKS.
124102         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
124104 2003-06-07  Bruno Haible  <bruno@clisp.org>
124106         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
124107         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
124108         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124109         directory.
124110         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
124111         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124112         directory.
124114 2003-06-06  Jim Meyering  <jim@meyering.net>
124116         Merge from coreutils.
124117         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
124118         Consolidate declarations and initializations of *_base* locals.
124120         Merge from coreutils.
124121         This avoids a core dump on systems without GNU putenv,
124122         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
124123         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
124124         (unsetenv): New static function, from GNU libc.
124125         (rpl_putenv): Use it.
124127         * lib/modechange.c: Remove trailing blanks.
124129         Merge from coreutils.
124130         * lib/fsusage.c: Remove declaration of statfs.
124131         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
124133         * lib/posixtm.c: Include <stdbool.h> unconditionally.
124135 2003-06-06  Jim Meyering  <jim@meyering.net>
124137         * lib/stdbool_.h: Renamed from stdbool.h.in.
124139 2003-06-06  Jim Meyering  <jim@meyering.net>
124140             Bruno Haible  <bruno@clisp.org>
124142         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
124143         Adjust Makefile.am snippet not to redirect directly to target.
124144         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
124146 2003-06-05  Paul Eggert  <eggert@twinsun.com>
124148         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
124149         mismatch, look in future quarters as well as past.  This fixes a
124150         bug when processing fall-backwards gaps immediately after a long
124151         period of daylight-saving time.
124153         * lib/mktime.c: Assume freestanding C89 or better.
124154         (HAVE_LIMITS_H): Remove.  Assume it's 1.
124155         (__P): Remove; not used.
124156         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
124157         (mktime, not_equal_tm, print_tm, check_result,
124158         main): Use prototypes.  Use const * where appropriate.
124159         (main): Fix typo in testing code that uncovered by above changes.
124160         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
124162 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124164         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
124165         locale.h, localeconv.  This merges changes from coreutils.
124167         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
124168         It can be removed after the next Autoconf is released.
124169         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
124170         needed.
124172 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124174         * lib/mktime.c: Fix Debian bug 177940
124175         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
124176         (localtime_offset): Now long int, not time_t, because we want it
124177         to be guaranteed to be signed.  All uses changed.
124178         (__mktime_internal): If overflow would occur when adding offset,
124179         don't add it.
124181         Merge 'human' changes from coreutils.  Rewrite to support
124182         locale-specific notations like thousands separators.
124183         * lib/human.c: Simplify authorship notice.
124184         Include human.h immediately after config.h.
124185         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
124186         <limits.h>: Do not include, since human.h does.
124187         (SIZE_MAX, UINTMAX_MAX): New macros.
124188         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
124189         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
124190         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
124191         (power_letter): Renamed from suffixes.
124192         (generate_suffix_backwards): Remove.
124193         (adjust_value): Now takes int style (because of human.h changes)
124194         and long double value (for greater precision on some platforms).
124195         (group_number): New function.
124196         (human_readable): Use it.  Use integer options, not enum.
124197         Put the options before the sizes in the arg list.
124198         Support all the new options.
124199         The old human_readable function has been removed;
124200         use inttostr.h instead.
124201         (human_readable, default_block_size, humblock):
124202         Use uintmax_t, not int, for block sizes.
124203         (human_readable_inexact, block_size_types): Remove.
124204         (block_size_opts): New constant.
124205         (human_options): Renamed from human_block_size, with new signature
124206         that allows block sizes up to UINTMAX_MAX.  All callers changed.
124207         * lib/human.h: Add copyright and authorship notice.
124208         Include <limits.h> and <stdbool.h> unconditionally.
124209         (PARAMS): Remove.  All uses removed.
124210         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
124211         (enum human_inexact_style): Remove tag; now a nameless enum.
124212         (human_floor, human_ceiling, human_round_to_even): Now have
124213         values 2, 0, 1 rather than -1, 1, 0.
124214         (human_group_digits, human_suppress_point_zero, human_autoscale,
124215         human_base_1024, human_SI, human_B): New constants.
124216         (human_readable_inexact, human_block_size): Remove.
124217         (human_readable): Size args are now uintmax_t, not int.
124218         (human_options): New decl.
124220         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
124221         unnecessary now that we assume C89 or better.  This change
124222         imported from coreutils.
124224         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124225         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
124226         in the 2003-05-30 sync from glibc.
124228         .h files should stand alone, but we shouldn't include <sys/types.h>
124229         if we can get away with just <stddef.h>.
124231         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
124232         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
124233         rather than <sys/types.h>, as we merely need size_t.
124234         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
124235         to get size_t.
124236         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
124237         Include <stdio.h>, to get FILE.
124238         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
124239         memcasecmp.h has included <stddef.h> and all we need is size_t.
124240         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
124241         our interface, instead of including <sys/types.h>
124243 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124245         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
124246         now, as glibc mktime is buggy on non-glibc systems.
124248 2003-06-03  Karl Berry  <karl@gnu.org>
124250         * config/config.sub: update from prep.
124252 2003-06-02  Paul Eggert  <eggert@twinsun.com>
124254         [from coreutils]
124255         Fix some minor time-related bugs with POSIX time arguments.
124256         Some valid time stamps were being rejected (notably -1, and
124257         time stamps before 1900 on 64-bit hosts).  And some invalid
124258         time stamps were being accepted, e.g. September 31.
124260         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
124261         that we can return (time_t) -1 successfully.
124262         * lib/posixtm.c: Likewise.
124263         [HAVE_STDBOOL_H]: Include <stdbool.h>.
124264         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
124265         (t): Remove static var.
124266         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
124267         of static var.  All uses changed.
124268         (year): Do not reject years before 1900; they can occur with
124269         64-bit time_t.
124270         (posix_time_parse): Do not check for out-of-range components;
124271         that is now the caller's responsibility, since our checks were
124272         only approximations.
124273         (posixtime): Use mktime to check for out-of-range components,
124274         since it knows them exactly.
124275         If mktime returns (time_t) -1, check whether an error actually occurred
124276         by invoking localtime on -1.
124277         (main) [TEST_POSIXTIME]: Check for input data errors, and report
124278         posixtime failures better.
124279         Improve the test data (in comments only).
124281 2003-06-02  Karl Berry  <karl@gnu.org>
124283         * config/mkinstalldirs (version): new variable.
124284         (--version): new option.
124285         (usage): improve message.
124287 2003-05-30  Karl Berry  <karl@gnu.org>
124289         * lib/mktime.c: update from libc.
124291 2003-05-30  Bruno Haible  <bruno@clisp.org>
124293         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
124294         * config/config.rpath: Upgrade to gettext-0.12.1.
124296 2003-05-30  Bruno Haible  <bruno@clisp.org>
124298         * m4/gettext.m4: Upgrade to gettext-0.12.1.
124299         * m4/nls.m4: New file, from gettext-0.12.1.
124300         * m4/po.m4: New file, from gettext-0.12.1.
124301         * m4/progtest.m4: Upgrade to gettext-0.12.1.
124303 2003-05-30  Bruno Haible  <bruno@clisp.org>
124305         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
124306         * lib/localcharset.h: Likewise.
124307         * lib/localcharset.c: Likewise.
124309 2003-05-29  Karl Berry  <karl@gnu.org>
124311         * config/config.rpath: update from gettext.
124313 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124315         Assume the headers required for C89 freestanding compilers.
124316         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
124317         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
124318         * m4/human.m4 (gl_HUMAN): Likewise.
124319         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
124320         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
124321         * m4/userspec.m4 (gl_USERSPEC): Likewise.
124322         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
124323         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
124324         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
124326 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124328         Assume the headers required for C89 freestanding compilers.
124329         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
124330         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
124331         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
124332         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
124333         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
124334         define, since <limits.h> is guaranteed to do that.
124335         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
124336         * lib/exclude.c: Include <stdbool.h> unconditionally.
124337         * lib/tempname.c: Include <stddef.h> unconditionally.
124338         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
124339         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
124340         <stddef.h> does that.
124341         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
124342         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
124343         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
124344         needed.
124345         * lib/xstrtol.c: Likewise.
124346         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
124347         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
124349         * lib/addext.c (addext): Use assignment rather than cast, to avoid
124350         warnings on some platforms.
124352         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124353         arbitrarily.
124355 2003-05-26  Jim Meyering  <jim@meyering.net>
124357         Merge in a change from coreutils:
124358         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
124359         that is guaranteed to be `no'.  Use `no_such_member' to indicate
124360         that condition, rather than `-1' which is slightly misleading.
124361         Change the name of the cache variable to have the gl_ prefix.
124362         Prompted by a patch from Richard Dawe for DJGPP.
124364 2003-05-24  Karl Berry  <karl@gnu.org>
124366         * config/config.guess: update from prep.
124368 2003-05-22  Karl Berry  <karl@gnu.org>
124370         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
124372 2003-05-20  Karl Berry  <karl@gnu.org>
124374         * config/config.guess: update from prep.
124376 2003-05-18  Karl Berry  <karl@gnu.org>
124378         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
124379         might actually be set by the user.
124381         * config/depcomp, install-sh, mdate-sh: update from automake.
124383 2003-05-17  Bruno Haible  <bruno@clisp.org>
124385         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
124386         invalid expansion for AC_EGREP_CPP.
124387         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
124388         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
124389         Suggested by Akim Demaille <akim@epita.fr> in
124390         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
124392 2003-05-12  Jim Meyering  <jim@meyering.net>
124394         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
124395         the space-padded-by-default conversion specifiers, %e, %k, %l.
124397 2003-05-12  Bruno Haible  <bruno@clisp.org>
124399         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
124400         the string is longer than 4 KB.
124402 2003-05-11  Karl Berry  <karl@gnu.org>
124404         * config/config.{guess,sub}: update from prep.
124406 2003-05-09  Bruno Haible  <bruno@clisp.org>
124408         * modules/error: Add m4/strerror_r.m4 to file list.
124410 2003-05-03  Bruno Haible  <bruno@clisp.org>
124412         Upgrade to Unicode-4.0.
124413         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
124414         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
124415         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
124416         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
124417         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
124418         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
124419         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
124420         Change width of U+E0100..U+E01EF from 1 to 0.
124422 2003-04-25  Jim Meyering  <jim@meyering.net>
124424         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
124425         of type size_t, not int.
124427 2003-04-25  Bruno Haible  <bruno@clisp.org>
124429         * lib/copy-file.c: Include <stddef.h>, for size_t.
124431 2003-04-21  Paul Eggert  <eggert@twinsun.com>
124433         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
124434         code which expansion is under static control.  Patch imported from
124435         Akim Demaille's patch to Bison; see
124436         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
124438 2003-04-14  Bruno Haible  <bruno@clisp.org>
124440         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
124442 2003-04-11  Jim Meyering  <jim@meyering.net>
124444         Merge changes from Coreutils.
124446         2003-03-22  Jim Meyering  <jim@meyering.net>
124448         * lib/strftime.c (widen): Cast alloca return value to proper type.
124450         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
124452         From GNU libc.
124453         * lib/strftime.c (my_strftime): Handle very large width
124454         specifications for numeric values correctly.  Improve checks for
124455         overflow.
124457         2003-01-19  Jim Meyering  <jim@meyering.net>
124459         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
124460         definitions.
124461         (nl_get_alt_digit) [! defined my_strftime]: Define.
124462         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
124463         _nl_get_alt_digit and _nl_get_walt_digit.
124465         * lib/strftime.c (my_strftime): Merge in locale-related changes from
124466         libc. These changes have no effect outside of _LIBC.
124468 2003-04-10  Bruno Haible  <bruno@clisp.org>
124470         * modules/findprog: New file.
124471         * MODULES.html.sh (func_all_modules): Add it.
124473 2003-04-10  Bruno Haible  <bruno@clisp.org>
124475         * m4/findprog.m4: New file.
124476         * m4/eaccess.m4: New file.
124478 2003-04-10  Bruno Haible  <bruno@clisp.org>
124480         * lib/findprog.h: New file, from GNU gettext.
124481         * lib/findprog.c: New file, from GNU gettext.
124483 2003-04-05  Jim Meyering  <jim@meyering.net>
124485         Merge changes from Coreutils.
124487         * lib/exclude.h (PARAMS): Remove definition and uses.
124488         * lib/exclude.c: Remove uses of `PARAMS'.
124490         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
124491         Add test-cases for DOS filenames. Declare program_name.
124492         (main): Set up program_name.  Patch by Rich Dawe.
124494         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
124495         error from mntctl.
124496         Use mntctl's return value to drive the entry-processing loop, since
124497         we can't rely on the value of the vmt_length member in the last
124498         entry.  On some systems doing so could result in exhausting
124499         virtual memory.  Based in part on a patch from Mike Jetzer.
124501 2003-04-04  Bruno Haible  <bruno@clisp.org>
124503         * modules/linebreak: New file.
124504         * MODULES.html.sh (func_all_modules): Add it.
124506 2003-04-04  Bruno Haible  <bruno@clisp.org>
124508         * m4/linebreak.m4: New file.
124510 2003-04-04  Bruno Haible  <bruno@clisp.org>
124512         * lib/linebreak.h: New file, from GNU gettext.
124513         * lib/linebreak.c: New file, from GNU gettext with slight
124514         modifications.
124515         * lib/lbrkprop.h: New file, from GNU gettext.
124517 2003-04-03  Bruno Haible  <bruno@clisp.org>
124519         * modules/utf8-ucs4: New file.
124520         * modules/utf16-ucs4: New file.
124521         * modules/ucs4-utf8: New file.
124522         * modules/ucs4-utf16: New file.
124523         * MODULES.html.sh (func_all_modules): Add them.
124525 2003-04-03  Bruno Haible  <bruno@clisp.org>
124527         * m4/utf-ucs4.m4: New file.
124528         * m4/ucs4-utf.m4: New file.
124530 2003-04-03  Bruno Haible  <bruno@clisp.org>
124532         * lib/utf8-ucs4.h: New file, from GNU gettext.
124533         * lib/utf16-ucs4.h: New file, from GNU gettext.
124534         * lib/ucs4-utf8.h: New file, from GNU gettext.
124535         * lib/ucs4-utf16.h: New file, from GNU gettext.
124537 2003-04-02  Bruno Haible  <bruno@clisp.org>
124539         * modules/binary-io: New file.
124540         * MODULES.html.sh (func_all_modules): Add it.
124542 2003-04-02  Bruno Haible  <bruno@clisp.org>
124544         * lib/binary-io.h: New file, from GNU gettext.
124546 2003-04-01  Bruno Haible  <bruno@clisp.org>
124548         * modules/pathname: New file.
124549         * MODULES.html.sh (func_all_modules): Add it.
124551 2003-04-01  Bruno Haible  <bruno@clisp.org>
124553         * lib/pathname.h: New file, from GNU gettext.
124554         * lib/concatpath.c: New file, from GNU gettext.
124556 2003-03-30  Bruno Haible  <bruno@clisp.org>
124558         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
124560 2003-03-30  Bruno Haible  <bruno@clisp.org>
124562         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
124563         function chown() doesn't exist.
124565 2003-03-28  Bruno Haible  <bruno@clisp.org>
124567         * modules/copy-file: New file.
124568         * MODULES.html.sh (func_all_modules): Add it.
124570 2003-03-28  Bruno Haible  <bruno@clisp.org>
124572         * m4/copy-file.m4: New file.
124574 2003-03-28  Bruno Haible  <bruno@clisp.org>
124576         * lib/copy-file.h: New file, from GNU gettext.
124577         * lib/copy-file.c: New file, from GNU gettext.
124579 2003-03-18  Jim Meyering  <jim@meyering.net>
124581         * lib/quote.c (quote_n): Fix typo in comment.
124583 2003-03-18  Bruno Haible  <bruno@clisp.org>
124585         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
124586         checking.
124587         * m4/onceonly_2_57.m4: Likewise.
124589 2003-03-17  Bruno Haible  <bruno@clisp.org>
124591         * m4/onceonly.m4: Require autoconf 2.54 or newer.
124592         (m4_quote): Remove macro.
124593         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
124595 2003-03-14  Jim Meyering  <jim@meyering.net>
124597         Merge changes from Coreutils.
124598         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
124599         to be const, in order to avoid warnings.
124600         (obstack_room): Likewise.
124601         (obstack_empty_p): Likewise.
124603 2003-03-14  Bruno Haible  <bruno@clisp.org>
124605         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
124606         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
124608 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124610         Merge changes from Bison.
124611         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
124612         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
124613         when compiling Bison 1.875's `bitset bset = obstack_alloc
124614         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
124615         * lib/hash.c: Include <stdbool.h> unconditionally.
124617 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124619         * m4/onceonly.m4 (m4_quote): New macro.
124620         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
124621         Quote AC_FOREACH variable-expansions properly.
124623 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124625         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
124627 2003-03-09  Paul Eggert  <eggert@twinsun.com>
124629         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
124630         Reported by Bruce Becker; see:
124631         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
124633 2003-03-03  Paul Eggert  <eggert@twinsun.com>
124634             Bruno Haible  <bruno@clisp.org>
124636         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
124637         Reported by John Hughes, see
124638         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
124640 2003-02-20  Bruno Haible  <bruno@clisp.org>
124642         * MODULES.html.sh (func_all_modules): Add poll.
124644 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
124646         * modules/poll: New file.
124648 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
124650         * lib/poll_.h: New file.
124651         * lib/poll.c: New file.
124653 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
124655         * m4/poll.m4: New file.
124657 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
124659         * modules/mathl: New file.
124661 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
124663         * lib/mathl.h: New file.
124664         * lib/acosl.c: New file.
124665         * lib/asinl.c: New file.
124666         * lib/atanl.c: New file.
124667         * lib/ceill.c: New file.
124668         * lib/cosl.c: New file.
124669         * lib/expl.c: New file.
124670         * lib/floorl.c: New file.
124671         * lib/frexpl.c: New file.
124672         * lib/ldexpl.c: New file.
124673         * lib/logl.c: New file.
124674         * lib/sincosl.c: New file.
124675         * lib/sinl.c: New file.
124676         * lib/sqrtl.c: New file.
124677         * lib/tanl.c: New file.
124678         * lib/trigl.c: New file.
124679         * lib/trigl.h: New file.
124681 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
124683         * m4/mathl.m4: New file.
124685 2003-02-18  Bruno Haible  <bruno@clisp.org>
124687         * MODULES.html.sh (func_all_modules): Add mathl.
124689 2003-02-17  Bruno Haible  <bruno@clisp.org>
124691         * modules/mkdtemp: New module.
124692         * MODULES.html.sh (func_all_modules): Add it.
124694 2003-02-17  Bruno Haible  <bruno@clisp.org>
124696         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
124698 2003-02-17  Bruno Haible  <bruno@clisp.org>
124700         * lib/mkdtemp.h: New file, from GNU gettext.
124701         * lib/mkdtemp.c: New file, from GNU gettext.
124703 2003-02-02  Jim Meyering  <jim@meyering.net>
124705         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
124706         e.g. glibc-2.2.93.
124708 2003-01-31  Bruno Haible  <bruno@clisp.org>
124710         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
124711         'rpl_rename'.
124712         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
124713         'rpl_strnlen'.
124714         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
124715         'rpl_strtod'.
124716         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
124717         'rpl_utime'.
124719 2003-01-31  Bruno Haible  <bruno@clisp.org>
124721         * lib/rename.c: #undef rename before defining rpl_rename.
124722         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
124724 2003-01-30  Bruno Haible  <bruno@clisp.org>
124726         * modules/vasnprintf, modules/vasprintf: New modules.
124727         * MODULES.html.sh (func_all_modules): Add them.
124729 2003-01-30  Bruno Haible  <bruno@clisp.org>
124731         * m4/signed.m4: New file, from GNU gettext.
124732         * m4/longdouble.m4: New file, from GNU gettext.
124733         * m4/wchar_t.m4: New file, from GNU gettext.
124734         * m4/wint_t.m4: New file, from GNU gettext.
124735         * m4/vasnprintf.m4: New file.
124736         * m4/vasprintf.m4: New file.
124738 2003-01-30  Bruno Haible  <bruno@clisp.org>
124740         * lib/printf-args.h: New file, from GNU gettext.
124741         * lib/printf-args.c: New file, from GNU gettext.
124742         * lib/printf-parse.h: New file, from GNU gettext.
124743         * lib/printf-parse.c: New file, from GNU gettext.
124744         * lib/vasnprintf.h: New file, from GNU gettext.
124745         * lib/vasnprintf.c: New file, from GNU gettext.
124746         * lib/asnprintf.c: New file, from GNU gettext.
124747         * lib/vasprintf.h: New file, from GNU gettext with modifications.
124748         * lib/vasprintf.c: New file, from GNU gettext.
124749         * lib/asprintf.c: New file, from GNU gettext.
124751 2003-01-29  Bruno Haible  <bruno@clisp.org>
124753         * modules/stpncpy: New module.
124754         * MODULES.html.sh (func_all_modules): Add it.
124756 2003-01-29  Bruno Haible  <bruno@clisp.org>
124758         * m4/stpncpy.m4: New file.
124760 2003-01-29  Bruno Haible  <bruno@clisp.org>
124762         * lib/stpncpy.h: New file, from GNU gettext with modifications.
124763         * lib/stpncpy.c: New file, from GNU gettext with modifications.
124765 2003-01-28  Bruno Haible  <bruno@clisp.org>
124767         * modules/c-ctype: New module.
124768         * MODULES.html.sh (func_all_modules): Add it.
124770 2003-01-28  Bruno Haible  <bruno@clisp.org>
124772         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
124773         Paul Eggert.
124774         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
124775         Paul Eggert.
124777 2003-01-27  Bruno Haible  <bruno@clisp.org>
124779         * modules/xsetenv: New module.
124780         * MODULES.html.sh (func_all_modules): Add it.
124782 2003-01-27  Bruno Haible  <bruno@clisp.org>
124784         * lib/xsetenv.h: New file, from GNU gettext.
124785         * lib/xsetenv.c: New file, from GNU gettext.
124787 2003-01-23  Jim Meyering  <jim@meyering.net>
124789         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
124790         from working on systems without dirfd (at least Irix and OSF1/Tru64).
124792 2003-01-23  Bruno Haible  <bruno@clisp.org>
124794         * modules/minmax: New module.
124795         * MODULES.html.sh (func_all_modules): Add it.
124797 2003-01-23  Bruno Haible  <bruno@clisp.org>
124799         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
124800         Eggert.
124802 2003-01-22  Bruno Haible  <bruno@clisp.org>
124804         * modules/exit: New module.
124805         * MODULES.html.sh (func_all_modules): Add it.
124807 2003-01-22  Bruno Haible  <bruno@clisp.org>
124809         * lib/exit.h: New file, from GNU gettext.
124811 2003-01-19  Bruno Haible  <bruno@clisp.org>
124813         * gnulib-tool: Recognize option --extract-maintainer.
124814         (func_get_maintainer): New function.
124815         * modules/*: Add Maintainer entry.
124817 2003-01-16  Jim Meyering  <jim@meyering.net>
124819         * m4/regex.m4: The `regex' struct is both input and output.
124820         Initialize it before each use.  Patch by Tim Waugh.
124822 2003-01-16  Bruno Haible  <bruno@clisp.org>
124824         * MODULES.html.sh: Add a table of contents. Add the module name as
124825         leftmost column. Add hyperlinks.
124827 2003-01-15  Bruno Haible  <bruno@clisp.org>
124829         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
124831 2003-01-15  Bruno Haible  <bruno@clisp.org>
124833         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
124834         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
124835         suffix.
124837 2003-01-15  Bruno Haible  <bruno@clisp.org>
124839         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
124841 2003-01-15  Bruno Haible  <bruno@clisp.org>
124843         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
124844         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
124846 2003-01-14  Jim Meyering  <jim@meyering.net>
124848         * lib/same.c (same_name): Tweak a comment.
124850 2003-01-14  Bruno Haible  <bruno@clisp.org>
124852         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
124853         when a string comparison is sufficient.
124855 2003-01-14  Bruno Haible  <bruno@clisp.org>
124857         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
124858         'unsigned int'.
124860 2003-01-14  Bruno Haible  <bruno@clisp.org>
124862         * lib/hash-pjw.c: Add comment about low quality of this function.
124864 2003-01-13  Bruno Haible  <bruno@clisp.org>
124866         * modules/stpcpy: Distribute lib/stpcpy.h.
124867         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
124869 2003-01-13  Bruno Haible  <bruno@clisp.org>
124871         * modules/*: Add a description.
124872         * modules/strpbrk: Fix Makefile.am snippet.
124873         * modules/strtoimax: Fix dependencies.
124874         * modules/strtoumax: Likewise.
124876 2003-01-13  Bruno Haible  <bruno@clisp.org>
124878         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
124879         * modules/alloca (Makefile.am): All object files depend on alloca.h.
124880         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
124882 2003-01-13  Bruno Haible  <bruno@clisp.org>
124884         * gnulib-tool (func_create_testdir): Store config/* files in the main
124885         directory.
124886         * config.rpath: Move to ...
124887         * config/config.rpath: ... here.
124888         * modules/gettext: Contains config/config.rpath, not config.rpath.
124889         * modules/iconv: Likewise.
124891 2003-01-12  Paul Eggert  <eggert@twinsun.com>
124893         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
124894         to avoid collisions with libcurses and libreadline.
124896         * m4/getstr.m4: Remove.
124897         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
124899 2003-01-12  Paul Eggert  <eggert@twinsun.com>
124901         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
124902         to avoid collisions with libcurses and libreadline.
124904         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
124905         * lib/getstr.h, getstr.c: Remove.
124906         * lib/getline.c: Include "getline.h", to check interface.
124907         Move body of old getstr.c here: this defines MIN_CHUNK and
124908         declares getdelim2, which is renamed from getstr.
124909         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
124911         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
124912         All uses changed.
124913         * lib/linebuffer.h: Likewise.
124914         (readline): Remove backward-compatibility macro.
124916 2003-01-12  Paul Eggert  <eggert@twinsun.com>
124918         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
124919         to avoid collisions with libcurses and libreadline.
124920         * getstr: Remove.
124921         * MODULES.html.sh: Remove getstr.
124922         * modules/getline: Depend on unlocked-io, not getstr.
124924 2003-01-12  Jim Meyering  <jim@meyering.net>
124926         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
124928 2003-01-10  Bruno Haible  <bruno@clisp.org>
124930         * modules/alloca: Change Makefile.am requirements. Simplify Include
124931         requirements. Add lib/alloca_.h to file list.
124933 2003-01-10  Bruno Haible  <bruno@clisp.org>
124935         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
124937 2003-01-10  Bruno Haible  <bruno@clisp.org>
124939         * lib/alloca_.h: New file.
124940         * lib/getdate.y: Unconditionally include alloca.h.
124941         * lib/makepath.c: Likewise.
124942         * lib/setenv.c: Likewise.
124943         * lib/userspec.c: Likewise.
124945 2003-01-09  Karl Berry  <karl@gnu.org>
124947         * MODULES.html.sh: include `dirname $0` in PATH, to find
124948         gnulib-tool.
124950 2003-01-09  Bruno Haible  <bruno@clisp.org>
124952         * modules/stdbool: Change configure.ac, Makefile.am requirements.
124953         Simplify Include requirements. Add lib/stdbool.h.in to file list.
124955 2003-01-09  Bruno Haible  <bruno@clisp.org>
124957         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
124959 2003-01-09  Bruno Haible  <bruno@clisp.org>
124961         * lib/stdbool.h.in: New file.
124963 2003-01-09  Bruno Haible  <bruno@clisp.org>
124965         * gnulib-tool (func_all_modules): Ignore files ending in ~.
124966         * MODULES.html.sh: Likewise.
124968 2003-01-08  Jim Meyering  <jim@meyering.net>
124970         * lib/full-write.c: Undefine and define-away `const' after inclusion
124971         of errno.h, not before.  Suggestion from Bruno Haible.
124973 2003-01-08  Bruno Haible  <bruno@clisp.org>
124975         * modules/full-read: Depend on full-write.
124977 2003-01-08  Bruno Haible  <bruno@clisp.org>
124979         * lib/safe-read.c: Include specification header first, to ensure its
124980         selfcontainedness.
124981         * lib/full-write.c: Likewise.
124983 2003-01-07  Jim Meyering  <jim@meyering.net>
124985         * lib/full-write.c: Rework so that it may serve to define full_read,
124986         too.
124987         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
124989 2003-01-07  Bruno Haible  <bruno@clisp.org>
124991         * lib/strtoimax.c: Include <stdint.h> as an alternative to
124992         <inttypes.h>.
124993         * lib/xstrtol.h: Likewise.
124994         * lib/xstrtoimax.c: Likewise.
124995         * lib/xstrtoumax.c: Likewise.
124996         * lib/human.h: Likewise.
124998         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
124999         on systems that have <inttypes.h> but not <stdint.h>.
125001 2003-01-07  Bruno Haible  <bruno@clisp.org>
125003         * MODULES.html.sh: Add copyright notice.
125004         (missed_files): Omit CVS directory entries.
125005         (func_module): Make it work with sed-3.02.
125006         * MODULES.txt: Remove file.
125008 2003-01-06  Jim Meyering  <jim@meyering.net>
125010         * lib/version-etc.c: Update year in translatable copyright string.
125012 2003-01-03  Karl Berry  <karl@gnu.org>
125014         * config/config.{guess,sub}: update from prep.
125016 2003-01-02  Karl Berry  <karl@gnu.org>
125018         * doc/COPYING.DOC: belatedly updated to 1.2.
125020 2003-01-01  Karl Berry  <karl@gnu.org>
125022         * gnulib-tool (func_verify_module): report module name $module in
125023         error message, not $1.
125024         * gnulib-tool (create-testdir): don't complain if destdir couldn't
125025         be created, only if it doesn't exist.
125026         * gnulib-tool (last_checkin_date): don't expand the $Date here.
125028 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125030         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
125032 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125034         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
125035         memcmp if strcoll doesn't work.
125037 2002-12-31  Bruno Haible  <bruno@clisp.org>
125039         * lib/utime.c (utime_null): No need to call ftruncate if the file was
125040         nonempty.
125042 2002-12-31  Bruno Haible  <bruno@clisp.org>
125044         * lib/memcoll.c (STRCOLL): New macro.
125045         (memcoll): Use it.
125047 2002-12-31  Bruno Haible  <bruno@clisp.org>
125049         * lib/localcharset.h: New file.
125050         * lib/localcharset.c: Include it.
125051         * lib/unicodeio.c: Likewise.
125053 2002-12-31  Bruno Haible  <bruno@clisp.org>
125055         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
125056         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
125058 2002-12-31  Bruno Haible  <bruno@clisp.org>
125060         * lib/getline.h: Include <stddef.h>, for size_t.
125062         * lib/unicodeio.h: Include <stddef.h>, for size_t.
125063         * lib/unicodeio.c: Don't include <stddef.h>.
125065 2002-12-31  Bruno Haible  <bruno@clisp.org>
125067         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
125068         HAVE_TM_ZONE.
125070 2002-12-24  Karl Berry  <karl@gnu.org>
125072         * config/config.guess: update from prep.
125074 2002-12-24  Bruno Haible  <bruno@clisp.org>
125076         General infrasructure.
125077         * m4/README: Rewritten.
125078         * m4/onceonly.m4: New file.
125079         * m4/onceonly_2_57.m4: New file.
125081         Module atexit.
125082         * m4/atexit.m4: New file.
125084         Module strtod.
125085         * m4/strtod.m4: New file.
125087         Module strtol.
125088         * m4/strtol.m4: New file.
125090         Module strtoul.
125091         * m4/strtoul.m4: New file.
125093         Module memchr.
125094         * m4/memchr.m4: New file.
125096         Module memcmp.
125097         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
125098         (jm_FUNC_MEMCMP): Invoke it.
125100         Module memcpy.
125101         * m4/memcpy.m4: New file.
125103         Module memmove.
125104         * m4/memmove.m4: New file.
125106         Module memset.
125107         * m4/memset.m4: New file.
125109         Module strcspn.
125110         * m4/strcspn.m4: New file.
125112         Module strpbrk.
125113         * m4/strpbrk.m4: New file.
125115         Module strstr.
125116         * m4/strstr.m4: New file.
125118         Module strerror.
125119         * m4/strerror.m4: New file.
125121         Module mktime.
125122         * m4/mktime.m4: Renamed from jm-mktime.m4.
125123         (gl_PREREQ_MKTIME): New macro.
125124         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
125126         Module malloc.
125127         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
125128         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
125129         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
125131         Module realloc.
125132         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
125133         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
125134         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
125136         Module strftime.
125137         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
125138         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
125139         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
125140         gl_TM_GMTOFF.
125141         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
125143         Module xalloc.
125144         * m4/xalloc.m4: New file.
125146         Module alloca.
125147         * m4/alloca.m4: New file.
125149         Module putenv.
125150         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
125151         (jm_FUNC_PUTENV): Invoke it.
125153         Module setenv.
125154         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
125155         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
125156         when invoked twice.
125157         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
125158         gt_FUNC_SETENV.
125160         Module memrchr.
125161         * m4/memrchr.m4: New file.
125163         Module stpcpy.
125164         * m4/stpcpy.m4: New file.
125166         Module strcase.
125167         * m4/strcase.m4: New file.
125169         Module strdup.
125170         * m4/strdup.m4: New file.
125172         Module strnlen.
125173         * m4/strnlen.m4: New file.
125175         Module strndup.
125176         * m4/strndup.m4: New file.
125178         Module xstrtod.
125179         * m4/xstrtod.m4: New file.
125181         Module xstrtol.
125182         * m4/xstrtol.m4: New file.
125184         Module getdate.
125185         * m4/getdate.m4: New file.
125187         Module unlocked-io.
125188         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
125189         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
125190         * m4/jm-glibc-io.m4n: Remove file.
125192         Module long-options.
125193         * m4/long-options.m4: New file.
125195         Module md5.
125196         * m4/md5.m4: New file.
125198         Module sha.
125199         * m4/sha.m4: New file.
125201         Module getstr.
125202         * m4/getstr.m4: New file.
125204         Module getline.
125205         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
125206         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
125207         <sys/types.h>, for size_t. Use the function name gnu_getline, not
125208         simply getline. Infoke gl_PREREQ_GETLINE.
125210         Module obstack.
125211         * m4/obstack.m4: New file.
125213         Module hash.
125214         * m4/hash.m4: New file.
125216         Module readtokens.
125217         * m4/readtokens.m4: New file.
125219         Module strverscmp.
125220         * m4/strverscmp.m4: New file.
125222         Module stdbool.
125223         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
125224         OSF/1.
125226         Module strtoll.
125227         * m4/strtoll.m4: New file.
125229         Module strtoull.
125230         * m4/strtoull.m4: New file.
125232         Module strtoimax.
125233         * m4/strtoimax.m4: New file.
125235         Module strtoumax.
125236         * m4/strtoumax.m4: New file.
125238         Module xstrtoimax.
125239         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
125240         jm_AC_PREREQ_XSTRTOIMAX.
125241         Moved the strtol prerequisites to strtol.m4.
125242         Moved the strtoll prerequisites to strtoll.m4.
125243         Moved the strtoimax prerequisites to strtoimax.m4.
125245         Module xstrtoumax.
125246         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
125247         jm_AC_PREREQ_XSTRTOUMAX.
125248         Moved the strtoul prerequisites to strtoul.m4.
125249         Moved the strtoull prerequisites to strtoull.m4.
125250         Moved the strtoumax prerequisites to strtoumax.m4.
125252         Module chown.
125253         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
125254         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
125256         Module dup2.
125257         * m4/dup2.m4: New file.
125259         Module ftruncate.
125260         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
125261         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
125263         Module getgroups.
125264         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
125265         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
125267         Module gettimeofday.
125268         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
125269         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
125270         gl_PREREQ_GETTIMEOFDAY.
125272         Module mkdir.
125273         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
125274         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
125276         Module mkstemp.
125277         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
125278         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
125279         jm_AC_TYPE_UINTMAX_T.
125280         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
125282         Module stat.
125283         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
125284         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
125286         Module lstat.
125287         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
125288         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
125290         Module timespec.
125291         * m4/timespec.m4 (gl_TIMESPEC): New macro.
125292         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
125293         * m4/st_mtim.m4: Indentation.
125295         Module nanosleep.
125296         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
125297         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
125298         gl_PREREQ_NANOSLEEP.
125300         Module regex.
125301         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
125302         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
125303         (gl_REGEX): New macro.
125305         Module rename.
125306         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
125307         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
125309         Module rmdir.
125310         * m4/rmdir.m4: New file.
125312         Module utime.
125313         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
125314         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
125315         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
125317         Module dirname.
125318         * m4/dirname.m4: New file.
125320         Module getopt.
125321         * m4/getopt.m4: New file.
125323         Module unistd-safer.
125324         * m4/unistd-safer.m4: New file.
125326         Module fnmatch.
125327         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
125328         declaration.
125329         (gl_PREREQ_FNMATCH_EXTRA): New macro.
125330         (gl_FUNC_FNMATCH_POSIX): New macro.
125331         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
125332         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
125333         simply fnmatch.
125335         Module exclude.
125336         * m4/exclude.m4: New file.
125338         Module human.
125339         * m4/human.m4: New file.
125341         Module acl.
125342         * m4/acl.m4: Nop.
125344         Module backupfile.
125345         * m4/backupfile.m4: New file.
125346         * m4/d-ino.m4: Indentation.
125348         Module fsusage.
125349         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
125350         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
125351         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
125353         Module dirfd.
125354         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
125355         requirements.
125357         Module euidaccess.
125358         * m4/euidaccess.m4: New file.
125360         Module file-type.
125361         * m4/file-type.m4: New file.
125363         Module fileblocks.
125364         * m4/fileblocks.m4: New file.
125366         Module filemode.
125367         * m4/filemode.m4: New file.
125369         Module isdir.
125370         * m4/isdir.m4: New file.
125372         Module lchown.
125373         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
125374         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
125376         Module makepath.
125377         * m4/makepath.m4: New file.
125379         Module modechange.
125380         * m4/modechange.m4: New file.
125382         Module mountlist.
125383         * m4/mountlist.m4: New file.
125384         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
125385         Indentation.
125387         Module path-concat.
125388         * m4/path-concat.m4: New file.
125390         Module pathmax.
125391         * m4/pathmax.m4: New file.
125393         Module same.
125394         * m4/same.m4: New file.
125396         Module save-cwd.
125397         * m4/save-cwd.m4: New file.
125399         Module savedir.
125400         * m4/savedir.m4: New file.
125402         Module xgetcwd.
125403         * m4/xgetcwd.m4: New file.
125404         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
125406         Module xreadlink.
125407         * m4/xreadlink.m4: New file.
125409         Module safe-read.
125410         * m4/safe-read.m4: New file.
125412         Module safe-write.
125413         * m4/safe-write.m4: New file.
125415         Module closeout.
125416         * m4/closeout.m4: New file.
125418         Module stdio-safer.
125419         * m4/stdio-safer.m4: New file.
125421         Module getpass.
125422         * m4/getpass.m4: New file.
125424         Module getugroups.
125425         * m4/getugroups.m4: New file.
125427         Module group-member.
125428         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
125429         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
125431         Module idcache.
125432         * m4/idcache.m4: New file.
125434         Module userspec.
125435         * m4/userspec.m4: New file.
125437         Module gettime.
125438         * m4/clock_time.m4: New file.
125439         * m4/gettime.m4: New file.
125441         Module settime.
125442         * m4/settime.m4: New file.
125444         Module posixtm.
125445         * m4/posixtm.m4: New file.
125447         Module gethostname.
125448         * m4/gethostname.m4: New file.
125450         Module canon-host.
125451         * m4/canon-host.m4: New file.
125453         Module gettext.
125454         * m4/codeset.m4: New file, from gettext-0.11.5.
125455         * m4/gettext.m4: New file, from gettext-0.11.5.
125456         * m4/glibc21.m4: New file, from gettext-0.11.5.
125457         * m4/iconv.m4: New file, from gettext-0.11.5.
125458         * m4/intdiv0.m4: New file, from gettext-0.11.5.
125459         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
125460         * m4/inttypes.m4: New file, from gettext-0.11.5.
125461         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
125462         * m4/isc-posix.m4: New file, from gettext-0.11.5.
125463         * m4/lcmessage.m4: New file, from gettext-0.11.5.
125464         * m4/lib-ld.m4: New file, from gettext-0.11.5.
125465         * m4/lib-link.m4: New file, from gettext-0.11.5.
125466         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
125467         * m4/progtest.m4: New file, from gettext-0.11.5.
125468         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
125469         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
125470         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
125472         Module localcharset.
125473         * m4/localcharset.m4: New file.
125475         Module hard-locale.
125476         * m4/hard-locale.m4: New file.
125478         Module mbswidth.
125479         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
125480         onceonly macros.
125481         * m4/mbrtowc.m4: Add comment.
125483         Module memcasecmp.
125484         * m4/memcasecmp.m4: New file.
125486         Module memcoll.
125487         * m4/memcoll.m4: New file.
125489         Module unicodeio.
125490         * m4/unicodeio.m4: New file.
125492         Module rpmatch.
125493         * m4/rpmatch.m4: New file.
125495         Module yesno.
125496         * m4/yesno.m4: New file.
125498         Module exitfail.
125499         * m4/exitfail.m4: New file.
125501         Module c-stack.
125502         * m4/c-stack.m4 (gl_C_STACK): New macro.
125503         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
125505         Module error.
125506         * m4/error.m4 (gl_ERROR): New macro.
125507         (jm_PREREQ_ERROR): Use onceonly macros.
125509         Module fatal.
125510         * m4/fatal.m4: New file.
125512         Module getloadavg.
125513         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
125514         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
125516         Module getpagesize.
125517         * m4/getpagesize.m4: New file.
125519         Module getusershell.
125520         * m4/getusershell.m4: New file.
125522         Module physmem.
125523         * m4/physmem.m4: New file.
125525         Module posixver.
125526         * m4/posixver.m4: New file.
125528         Module quotearg.
125529         * m4/quotearg.m4: New file.
125531         Module quote.
125532         * m4/quote.m4: New file.
125534         Module readutmp.
125535         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
125537         Module sig2str.
125538         * m4/sig2str.m4: New file.
125540         Other.
125541         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
125542         ulonglong.m4.
125543         * m4/intmax_t.m4: New file.
125544         * m4/d-type.m4: Indentation.
125545         * m4/jm-macros.m4: Update.
125546         * m4/prereq.m4 (jm_PREREQ): Update.
125547         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
125548         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
125549         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
125550         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
125551         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
125552         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
125553         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
125554         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
125555         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
125556         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
125557         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
125558         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
125559         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
125560         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
125561         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
125562         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
125563         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
125564         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
125565         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
125567 2002-12-24  Bruno Haible  <bruno@clisp.org>
125569         * MODULES.txt: Update according to m4/ changes.
125571         Module gettext.
125572         * config.rpath: New file, from gettext-0.11.5.
125574         * modules/*: New module descriptions.
125575         * gnulib-tool: New file.
125576         * MODULES.html.sh: New file.
125578 2002-12-21  Karl Berry  <karl@gnu.org>
125580         * doc/fdl.texi: update to version 1.2.
125582 2002-12-19  Karl Berry  <karl@gnu.org>
125584         * config/config.guess: update from prep.
125586 2002-12-18  Bruno Haible  <bruno@clisp.org>
125588         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
125589         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
125591 2002-12-17  Bruno Haible  <bruno@clisp.org>
125593         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
125594         stdlib.h, string.h.
125596 2002-12-17  Bruno Haible  <bruno@clisp.org>
125598         * lib/canon-host.c (strdup): Remove unused declaration.
125600         * lib/fsusage.c: Include full_read.h.
125601         (get_fs_usage): Use full_read instead of safe_read.
125603         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
125605 2002-12-12  Karl Berry  <karl@gnu.org>
125607         * config/config.guess: update from prep.
125609 2002-12-11  Bruno Haible  <bruno@clisp.org>
125611         * m4/setenv.m4: New file, from gettext-0.11.5.
125613 2002-12-11  Bruno Haible  <bruno@clisp.org>
125615         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
125616         not unsetenv().
125617         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
125618         modifications:
125620         2002-12-11  Bruno Haible  <bruno@clisp.org>
125622                 * setenv.c (alloca): Fall back to malloc.
125623                 (freea): New macro.
125624                 (setenv): Use freea() to free memory allocated with alloca().
125626         2002-11-13  Bruno Haible  <bruno@clisp.org>
125628                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
125629                 function declarations.
125630                 * unsetenv.c (unsetenv): Likewise.
125632         2002-03-04  Bruno Haible  <bruno@clisp.org>
125634                 Portability to AIX 4.3.3.
125635                 * unsetenv.c: New file, extracted from setenv.c.
125636                 * setenv.c: Move the unsetenv() function to unsetenv.c.
125638         2001-12-20  Bruno Haible  <bruno@clisp.org>
125640                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
125641                 use malloc instead. For SunOS 4.
125643         2001-12-11  Bruno Haible  <bruno@clisp.org>
125645                 * setenv.c: Declare alloca.
125646                 (compar_fn_t): New typedef.
125647                 (KNOWN_VALUE, STORE_VALUE): Use it.
125649         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
125650         setenv.h.
125652 2002-12-10  Paul Eggert  <eggert@twinsun.com>
125654         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
125655         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
125656         Choose values that are less likely to collide with system fnmatch
125657         options.
125658         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
125659         defined (e.g., a pure POSIX system).
125660         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
125661         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
125663 2002-12-06  Paul Eggert  <eggert@twinsun.com>
125665         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
125666         a pain in practice to deal with generated m4 files.  This change
125667         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
125669         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
125670         and jm-glibc-io.m4, as they are no longer a special case.
125671         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
125672         kludge and the auto-generation stuff.  Check only whether the
125673         functions are declared, not whether they exist, since older hosts
125674         that don't declare the functions can't use the optimization anyway.
125676 2002-12-06  Jim Meyering  <jim@meyering.net>
125678         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
125680         Merge in changes from libc's misc/error.c, in preparation
125681         for the merge of gnulib's changes back into libc.
125683         * lib/error.c (_): Define only if not already defined.
125684         Move definition to follow all #include directives.
125685         Include unlocked-io.h only if !_LIBC.
125686         [_LIBC]: Include <libio/libioP.h>.
125687         [USE_IN_LIBIO]: Include <libio/iolibio.h>
125688         (fflush): Tweak definition to use INTUSE.
125689         (putc): Define.
125691 2002-12-05  Paul Eggert  <eggert@twinsun.com>
125693         * lib/alloca.c [defined emacs]: Include "lisp.h".
125694         (xalloc_die) [defined emacs]: New macro.
125695         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
125696         [! defined emacs]: Include <xalloc.h>.
125697         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
125698         (pointer): Typedef to POINTER_TYPE *.
125699         (malloc): Remove decl; we now always use xmalloc.
125700         (alloca): Use old-style definition, since Emacs needs this.
125701         Check for arithmetic overflow when computing combined size.
125703 2002-12-04  Paul Eggert  <eggert@twinsun.com>
125705         Do not generate unlocked-io.h automatically, since it's easier to
125706         maintain it by hand.
125708         * lib/unlocked-io.h: New file, from GNU diffutils,
125709         but with proper copyright notice and attribution.
125710         * lib/gen-uio: Remove.
125711         * lib/Makefile.am: Add copyright notice.
125712         (libfetish_a_SOURCES): Add unlocked-io.h.
125713         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
125714         (DISTCLEANFILES, io_functions): Remove macros.
125715         (EXTRA_DIST): Remove gen_uio.
125716         (unlocked-io.h): Remove rule.
125718 2002-12-04  Jim Meyering  <jim@meyering.net>
125720         Reflect the fact that stat.c and lstat.c are no longer generated.
125721         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
125722         (DISTCLEANFILES): Likewise.
125723         (EXTRA_DIST): Likewise.
125724         (all_local): Don't depend on stat.c or lstat.c.
125725         (stat.c, lstat.c): Remove rules.
125726         (EXTRA_DIST): Remove xstat.in.
125728         * lib/xstat.in: Remove file.  Contents moved into stat.c.
125729         * lib/stat.c: New file.  Contents mostly from xstat.in.
125730         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
125731         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
125733         * lib/safe-read.c: Rework so that it may serve to define safe_write,
125734         too.
125735         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
125737 2002-12-03  Jim Meyering  <jim@meyering.net>
125739         * lib/safe-read.c, safe-write.c: Change variable names and comments,
125740         but not semantics, to minimize the differences between these two files.
125741         (safe_read): Change comment to mention SAFE_READ_ERROR.
125743         * lib/safe-read.c (IS_EINTR): Define.
125744         (safe_read): Use IS_EINTR in place of in-function cpp directives.
125746 2002-12-02  Jim Meyering  <jim@meyering.net>
125748         * lib/safe-read.c (EINTR): Define.
125749         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
125750         (INT_MAX): Provide fallback.
125751         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
125753         * lib/safe-read.h (SAFE_READ_ERROR): Define.
125755 2002-12-02  Bruno Haible  <bruno@clisp.org>
125757         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
125758         Define, taken from safe-read.c.
125759         (INT_MAX): Provide fallback.
125760         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
125761         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
125763         * lib/safe-read.c (EINTR): Remove definition.
125764         (safe_read): Don't use EINTR if it is absent.
125766 2002-12-01  Jim Meyering  <jim@meyering.net>
125768         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
125769         zero.
125770         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
125772 2002-11-27  Paul Eggert  <eggert@twinsun.com>
125774         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
125775         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
125776         with `if (! (value < limit)) abort ();', for readability.
125778 2002-11-26  Karl Berry  <karl@gnu.org>
125780         * lib/strdup.c: copy from libc again, with jim's ok.
125781         * lib/.cppi-disable: re-add strdup.c
125783 2002-11-25  Karl Berry  <karl@gnu.org>
125785         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
125786         instead of "strtol.c".
125788 2002-11-25  Karl Berry  <karl@gnu.org>
125790         * config/install-sh: update from automake for variable quoting, $0 in
125791         error msgs, etc.
125793         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
125794         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
125795         entry.
125797 2002-11-25  Jim Meyering  <jim@meyering.net>
125799         * lib/mktime.c: Sync from libc, now that it has the latest fix.
125801 2002-11-24  Karl Berry  <karl@gnu.org>
125803         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
125804         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
125806 2002-11-24  Jim Meyering  <jim@meyering.net>
125808         Update from coreutils:
125810         * lib/mktime.c: Merge in changes from libc.
125812         Avoid a link-time failure on some Linux systems.
125813         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
125814         (otherwise).
125815         (__mon_yday): Declare with the STATIC attribute.
125816         (__mktime_internal): Likewise.
125817         Based on a report from Greg Schafer.
125819 2002-11-23  Jim Meyering  <jim@meyering.net>
125821         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
125822         Use `unsigned', not `int', as type of index.
125824         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
125826         * lib/fsusage.c: Remove unneeded parentheses around operands of
125827         `defined'.
125829 2002-11-22  Paul Eggert  <eggert@twinsun.com>
125831         * lib/quotearg.h: Allow multiple inclusion by surrounding with
125832         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
125833         so that we can be included first.
125834         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
125835         * lib/quotearg.c: Include quotearg.h immediately after config.h.
125836         No need to include stddef.h or sys/types.h any more.
125837         Surround local include files with "", not "<>".
125838         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
125839         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
125840         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
125841         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
125842         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
125843         (ISPRINT): Remove; no longer needed now that we assume C89.
125845         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
125846         Preserve errno.
125848         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
125849         quotearg_char): Use SIZE_MAX rather than
125850         (size_t) -1 when we are talking about "infinity".
125852         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
125854 2002-11-22  Paul Eggert  <eggert@twinsun.com>
125856         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
125857         hint that one should use `if (! x) abort ();' rather than `assert
125858         (x);', and anyway it's one less thing to worry about configuring.
125859         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
125860         hash_rehash, hash_insert): Use abort rather than assert.
125862 2002-11-22  Bruno Haible  <bruno@clisp.org>
125864         * lib/safe-read.h: Assume C89. Add comments.
125865         (safe_read): Change return type to size_t.
125866         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
125867         byte counts > SSIZE_MAX correctly.
125868         * lib/safe-write.h: New file.
125869         * lib/safe-write.c: New file.
125870         * lib/full-read.h: New file.
125871         * lib/full-read.c: New file.
125872         * lib/full-write.h: Assume C89. Add comments.
125873         * lib/full-write.c: Include safe-write.h.
125874         (full_write): Rewritten to use safe_write.
125875         Suggested by Jim Meyering and Paul Eggert.
125877 2002-11-21  Jim Meyering  <jim@meyering.net>
125879         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
125881         Merge in changes from the coreutils.
125883         2002-09-25  Paul Eggert  <eggert@twinsun.com>
125884         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
125885         <stdint.h>.
125886         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
125887         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
125888         int.  Work more efficiently if X is the same width as uintmax_t.
125889         Do not compare X to -1, to avoid bogus compiler warning.
125890         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
125891         Don't assume that f_frsize and f_bsize are the same type.
125893         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
125894         warning on FreeBSD.
125896         * lib/makepath.c (make_path): Restore umask *before* creating the final
125897         component.
125898         (make_path): Minor reformatting.
125900         * lib/xmalloc.c: Adjust to work with new autoconf macros,
125901         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
125902         HAVE_MALLOC/HAVE_REALLOC.
125904         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
125905         dummy ones.  At least on GNU/Linux systems, `auto' means something
125906         else.
125907         From Michael Stone.
125909 2002-11-21  Bruno Haible  <bruno@clisp.org>
125911         Remove case insensitive option matching.
125912         * lib/argmatch.h (argcasematch): Remove declaration.
125913         (ARGCASEMATCH): Remove macro.
125914         (__xargmatch_internal): Remove case_sensitive argument.
125915         (XARGMATCH): Update.
125916         (XARGCASEMATCH): Remove macro.
125917         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
125918         case_sensitive argument.
125919         (argcasematch): Remove function.
125920         (__xargmatch_internal): Remove case_sensitive argument.
125921         (main): Use XARGMATCH instead of XARGCASEMATCH.
125923         * lib/xmalloc.c: Change compile-time error message. Add comment about
125924         required autoconf version.
125926 2002-11-20  Paul Eggert  <eggert@twinsun.com>
125928         Merge argmatch cleanups from Bison.  Assume C89.
125930         * lib/argmatch.c: Include config.h here, not in argmatch.h.
125931         Include stdlib.h, for EXIT_FAILURE.
125932         Always include <string.h>, since we assume C89.
125933         (EXIT_FAILURE): Remove pre-C89 bug workaround.
125934         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
125935         Include <stddef.h> instead, since it's all we need for size_t.
125936         (PARAMS): Remove.  All uses removed.
125937         (ARRAY_CARDINALITY): Do not bother to #undef.
125938         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
125939         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
125940         Remove unnecessary parentheses.
125941         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
125942         Insert necessary parentheses.
125943         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
125944         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
125946 2002-11-19  Bruno Haible  <bruno@clisp.org>
125948         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
125949         * lib/mbswidth.h: Include <stddef.h>, for size_t.
125951         * lib/mbswidth.h (PARAMS): Remove macro.
125952         (mbswidth, mbsnwidth): Use ANSI C function declarations.
125953         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
125955         * lib/gcd.h (PARAMS): Remove macro.
125956         (gcd): Use ANSI C function declarations.
125957         * lib/gcd.c (gcd): Likewise.
125959 2002-11-15  Bruno Haible  <bruno@clisp.org>
125961         * lib/strcspn.c: Include <stddef.h>.
125962         (strcspn): Use ANSI C function declaration. Change return type to
125963         size_t. Use NULL.
125964         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
125965         (strpbrk): Use NULL.
125966         * lib/strpbrk.h (PARAMS): Remove macro.
125967         (strpbrk): Use ANSI C function declaration.
125968         * lib/strstr.c: Don't include <sys/types.h>.
125969         * lib/strstr.h (PARAMS): Remove macro.
125970         (strstr): Use ANSI C function declarations.
125972 2002-11-14  Karl Berry  <karl@gnu.org>
125974         * config/mkinstalldirs: `do' on separate line, instead of
125975         `for var; do'.
125977 2002-11-06  Bruno Haible  <bruno@clisp.org>
125979         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
125980         * lib/gcd.c (gcd): Likewise.
125982 2002-11-05  Bruno Haible  <bruno@clisp.org>
125984         * lib/gcd.h: New file, from gettext-0.11.5.
125985         * lib/gcd.c: New file, from gettext-0.11.5.
125987 2002-11-05  Bruno Haible  <bruno@clisp.org>
125989         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
125990         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
125991         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
125992         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
125994         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
125995         <libintl.h>.
125996         * lib/makepath.c: Include gettext.h instead of <locale.h> and
125997         <libintl.h>.
125999         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
126000         * lib/human.c: Include gettext.h instead of <libintl.h>.
126001         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
126002         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
126003         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
126004         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
126005         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
126006         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
126007         (textdomain): Remove definition.
126008         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
126010         * lib/long-options.c: Remove include of <libintl.h> and definition of
126011         _.
126012         * lib/same.c: Remove include of <libintl.h> and definition of _.
126014 2002-11-04  Owen Taylor  <otaylor@redhat.com>
126016         * lib/config.charset: A few additions for Solaris.
126018 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126020         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
126021         * lib/localcharset.c (locale_charset): Declare as extern "C".
126023 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126025         * lib/config.charset: msdos in uk_UA uses CP1125.
126027 2002-11-04  Bruno Haible  <bruno@clisp.org>
126029         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
126030         * lib/strcase.h: New file, from GNU gettext-0.11.5.
126031         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
126032         * lib/strstr.h: New file, from GNU gettext-0.11.5.
126033         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
126035 2002-11-04  Bruno Haible  <bruno@clisp.org>
126037         * lib/localcharset.c (locale_charset): Don't return an empty string.
126039 2002-11-04  Bruno Haible  <bruno@clisp.org>
126041         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
126042         aliases.
126044 2002-11-04  Bruno Haible  <bruno@clisp.org>
126046         * lib/config.charset: Update for newest glibc. Add canonical names
126047         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
126049 2002-11-04  Bruno Haible  <bruno@clisp.org>
126051         * lib/config.charset: Add support for NetBSD.
126053 2002-11-04  Bruno Haible  <bruno@clisp.org>
126055         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
126057 2002-11-01  Bruno Haible  <bruno@clisp.org>
126059         * configure.in: Add AC_CONFIG_AUX_DIR call.
126060         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
126061         test/Makefile.
126062         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
126064 2002-09-28  Karl Berry  <karl@gnu.org>
126066         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
126067         installed automake until the next release, since changes have been
126068         made.
126070 2002-09-25  Karl Berry  <karl@gnu.org>
126072         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
126073         * lib/getopt*: copy from libc/posix.
126074         * lib/gettext.h: copy from gettext.
126075         * lib/.cppi-disable: add strdup.c, gettext.h.
126077 2002-09-25  Karl Berry  <karl@gnu.org>
126079         * config/srclist.txt: enable gettext.h check.
126080         * config/config.{guess,sub}: update from prep.
126081         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
126082                 from automake 1.6.3.
126083         See srclist*.
126085 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
126087         * regex.c (PATFETCH): Remove the translating fetch.
126088         (PATFETCH_RAW): Rename to PATFETCH.
126089         (set_image_of_range): New fun.
126090         (SET_RANGE_TABLE_WORK_AREA): Use it.
126091         (regex_compile): Don't translate the pattern chars so eagerly.
126092         Only do it when inserting an `exactn' bytecode or when handling
126093         a char-range.
126094         (mutually_exclusive_p): Avoid empty statement.
126096 2002-07-06  Jim Meyering  <meyering@lucent.com>
126098         * m4/README: Don't mention Makefile.am.in.
126099         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
126101 2002-07-01  Jim Meyering  <meyering@lucent.com>
126103         * lib/c-stack.c: Include sys/time.h.
126104         From Volker Borchert.
126106 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126108         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
126110 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126112         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
126113         New macro.  Use it uniformly instead of
126114         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
126115         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
126116         reported by Vin Shelton.
126118 2002-06-22  Paul Eggert  <eggert@twinsun.com>
126120         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
126121         Do not assume SA_SIGINFO behavior.
126122         Bug reported by Jim Meyering on NetBSD 1.5.2.
126124 2002-06-22  Jim Meyering  <meyering@lucent.com>
126126         * m4/c-stack.m4: New file, from diffutils-2.8.2.
126127         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
126129         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
126130         now that configure.ac uses AC_GNU_SOURCE.
126131         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
126132         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
126134         Update to latest tools.  Suggestions from Paul Eggert.
126135         * m4/stdbool.m4: New file, from diffutils-2.8.2.
126136         * m4/gnu-source.m4: Update from diffutils-2.8.2.
126137         * m4/fnmatch.m4: Likewise.
126138         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
126139         to AC_HEADER_STDBOOL
126141 2002-06-22  Jim Meyering  <meyering@lucent.com>
126143         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
126144         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
126146 2002-06-22  Jim Meyering  <meyering@lucent.com>
126148         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
126150         * lib/exitfail.c, exitfail.h: Likewise.
126151         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
126153         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
126154         of fnmatch.h.
126155         (EXTRA_DIST): Add fnmatch_loop.c.
126156         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
126158         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
126159         * lib/fnmatch.c: Update from diffutils-2.8.2.
126160         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
126161         * lib/fnmatch.h: Remove file.
126163 2002-06-21  Jim Meyering  <meyering@lucent.com>
126165         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
126166         * m4/mbrtowc.m4: Likewise.
126168         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
126169         * m4/mbswidth.m4: Reflect name change:
126170         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
126171         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
126173         * m4/lib-link.m4: Update from gettext-0.11.2.
126174         * m4/gettext.m4: Likewise.
126176         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
126177         From Alfred M. Szmidt.
126179 2002-06-18  Paul Eggert  <eggert@twinsun.com>
126181         * lib/file-type.h: Report an error if neither S_ISREG nor
126182         S_IFREG is defined, instead of using a test specific to glibc
126183         2.2.  This should be safe, since POSIX requires S_ISREG and
126184         Unix Version 7 had S_IFREG.  We don't need to check for
126185         <sys/types.h> since we don't use any symbols that it defines.
126187 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
126189         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
126190         $@-t, so that each temporary file name is unique and valid in the first
126191         8 characters, for operation under DOS.
126193 2002-06-15  Paul Eggert  <eggert@twinsun.com>
126195         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
126197 2002-06-15  Jim Meyering  <meyering@lucent.com>
126199         Work even with DJGPP 2.03, which lacks support for symlinks.
126200         From Richard Dawe.
126201         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
126202         is defined.
126203         * lib/lchown.c (S_ISLNK): Likewise.
126205 2002-06-15  Jim Meyering  <meyering@lucent.com>
126207         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
126208         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
126209         have been included before this file.
126211 2002-06-14  Jim Meyering  <meyering@lucent.com>
126213         * lib/file-type.h: Use the version from diffutils-2.8.2.
126214         * lib/file-type.c: Likewise.
126216 2002-06-07  Jim Meyering  <meyering@lucent.com>
126218         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
126219         They're needed at least for NetBSD 1.5.2.
126220         ($statxfs_includes): Include those same headers.
126221         ($statxfs_includes): Include sys/vfs.h if available.
126222         ($statxfs_includes): Likewise for sys/statvfs.h.
126223         Check for the following members in both structs statfs and statvfs:
126224         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
126226 2002-06-01  Jim Meyering  <meyering@lucent.com>
126228         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
126229         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
126231 2002-05-28  Jim Meyering  <meyering@lucent.com>
126233         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
126234         Reported by Volker Borchert.
126236 2002-05-27  Jim Meyering  <meyering@lucent.com>
126238         Fix a problem seen only on nonconforming systems whereby ls.c's
126239         use of localtime, and then of gettimeofday would cause trouble:
126240         the localtime call used to initialize rpl_gettimeofday's save
126241         mechanism would clobber ls's current local time information so
126242         that in any long listing the first file would always be listed
126243         with date 1970-01-01.  Analysis by Volker Borchert.
126245         * lib/gettimeofday.c (localtime): Undefine.
126246         (rpl_localtime): New function.
126248 2002-05-27  Jim Meyering  <meyering@lucent.com>
126250         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
126251         localtime.
126253         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
126254         use the replacement function; it wouldn't resolve at link time.
126255         Reported by Volker Borchert.
126257 2002-05-22  Jim Meyering  <meyering@lucent.com>
126259         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
126260         file-type.h.
126261         * lib/file-type.h: New file.
126262         * lib/file-type.c (file_type): New file/function.  Extracted from
126263         diffutils.
126265 2002-04-30  Jim Meyering  <meyering@lucent.com>
126267         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
126269 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126271         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
126273 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126275         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
126276         Do not check for alloca.h (no longer used) or stdbool.h (was never
126277         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
126279 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126281         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
126283 2002-04-29  Jim Meyering  <meyering@lucent.com>
126285         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
126286         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
126287         Use AC_FUNC_STRNLEN here instead.
126289         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
126290         With autoconf-2.53a, it's part of AC_PROG_CC.
126292 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126294         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
126295         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
126297 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126299         * lib/sig2str.h, lib/sig2str.c: New files.
126300         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
126302 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126304         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
126305         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
126306         of 127, since 64 is the largest conceivable number for ancient
126307         nonstandard hosts.
126308         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
126310 2002-04-28  Jim Meyering  <meyering@lucent.com>
126312         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
126314 2002-04-24  Jim Meyering  <meyering@lucent.com>
126316         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
126317         (jm_PREREQ): Use it.
126319         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
126320         mach/mach.h fcntl.h.
126321         Check for this function: setlocale.
126323 2002-04-24  Jim Meyering  <meyering@lucent.com>
126325         * lib/gettext.h: New file, from Gettext.
126326         * lib/Makefile.am (INCLUDES): Remove -I../intl.
126327         (libfetish_a_SOURCES): Add gettext.h.
126329 2002-04-16  Jim Meyering  <meyering@lucent.com>
126331         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
126332         ut_pid, ut_id, ut_exit.
126334 2002-04-16  Jim Meyering  <meyering@lucent.com>
126336         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
126337         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
126338         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
126340 2002-04-12  Jim Meyering  <meyering@lucent.com>
126342         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
126343         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
126344         existence of the getmntinfo function.  Needed for Darwin 5.3.
126346         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
126347         This is necessary at least on Darwin 5.3.
126349         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
126350         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
126351         strnlen.o in the library, and that makes some versions of ranlib
126352         object.
126354 2002-04-12  Jim Meyering  <meyering@lucent.com>
126356         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
126358 2002-04-09  Jim Meyering  <meyering@lucent.com>
126360         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
126361         to be more precise.  Rather than saying we're checking whether the
126362         function `works', say what we're testing.
126363         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
126364         Reported by Bruno Haible.
126366 2002-03-10  Jim Meyering  <meyering@lucent.com>
126368         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
126369         Suggestion from Santiago Vila.
126371 2002-03-08  Jim Meyering  <meyering@lucent.com>
126373         * lib/rename.c: Mention that this wrapper is needed also on
126374         mips-dec-ultrix4.4 systems.
126376 2002-03-02  Jim Meyering  <meyering@lucent.com>
126378         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
126379         not HAVE_CLOCK_SETTIME.
126381 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126383         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
126384         Check for clock_settime.
126386 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126388         * lib/nanosleep.h: Rename to....
126389         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
126391         * lib/gettime.c: New file.
126392         * lib/settime.c: New file.
126393         * lib/stime.c: Remove.
126395         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
126396         timespec.h.  Remove nanosleep.h.
126398 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126400         * m4/acl.m4: New file.
126401         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
126402         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
126404 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126406         * lib/acl.c, lib/acl.h: New files.
126407         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
126409 2002-02-24  Jim Meyering  <meyering@lucent.com>
126411         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
126412         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
126413         cause trouble.  Reported by Nelson Beebe.
126415 2002-02-23  Paul Eggert  <eggert@twinsun.com>
126417         * lib/path-concat.c (xpath_concat): Reorder code to pacify
126418         compilers that don't know that xalloc_die never returns.
126420 2002-02-20  Jim Meyering  <meyering@lucent.com>
126422         * lib/getdate.c: Regenerate using bison-1.33.
126424 2002-02-17  Jim Meyering  <meyering@lucent.com>
126426         * config/config.guess (main): Don't use `head -1'; it's no longer
126427         portable. Use `sed 1q' instead.
126429 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
126431         * m4/codeset.m4: Upgrade to gettext-0.11.
126432         * m4/gettext.m4: Upgrade to gettext-0.11.
126433         * m4/glibc21.m4: Upgrade to gettext-0.11.
126434         * m4/iconv.m4: Upgrade to gettext-0.11.
126435         * m4/isc-posix.m4: Upgrade to gettext-0.11.
126436         * m4/lcmessage.m4: Upgrade to gettext-0.11.
126437         * m4/lib-ld.m4: New file, from gettext-0.11.
126438         * m4/lib-link.m4: New file, from gettext-0.11.
126439         * m4/lib-prefix.m4: New file, from gettext-0.11.
126440         * m4/progtest.m4: Upgrade to gettext-0.11.
126442 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126444         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
126445         (jm_PREREQ): Use it.
126447 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126449         * lib/posixver.c, lib/posixver.h: New files.
126450         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126452 2002-02-02  Paul Eggert  <eggert@twinsun.com>
126453             Bruno Haible  <bruno@clisp.org>
126455         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
126456         (fwrite_success_callback): New declaration.
126457         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
126458         print_unicode_char. Call failure callback instead of error.
126459         (fwrite_success_callback): New function.
126460         (exit_failure_callback): New function.
126461         (fallback_failure_callback): New function.
126462         (print_unicode_char): Call unicode_to_mb.
126464 2002-01-26  Jim Meyering  <meyering@lucent.com>
126466         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
126467         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
126469 2002-01-26  Jim Meyering  <meyering@lucent.com>
126471         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
126473 2002-01-22  Paul Eggert  <eggert@twinsun.com>
126475         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
126477 2002-01-22  Jim Meyering  <meyering@lucent.com>
126479         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
126480         Otherwise, some versions of automake would omit the rule that makes
126481         Makefile from Makefile.in.
126483 2002-01-21  Paul Eggert  <eggert@twinsun.com>
126485         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
126486         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126487         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
126488         (memcoll): Set errno to zero if there is no error.
126490         * lib/quotearg.c (quotearg_buffer_restyled):
126491         Fix bug with quoting buffers containing NUL when backslashing escapes.
126492         This bug was exposed by the other changes in this patch.
126493         (quotearg_n_options): New arg ARGSIZE.
126494         All callers changed.
126495         (quoting_options_from_style): New function.
126496         (quotearg_n_style): Use it.
126497         (quotearg_n_style_mem): New function.
126499         * lib/quotearg.h (quotearg_n_style_mem): New function.
126501 2002-01-19  Jim Meyering  <meyering@lucent.com>
126503         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
126504         Remove useless quotes: DF_PROG="df".
126505         * m4/strnlen.m4: New file.
126507 2002-01-16  Paul Eggert  <eggert@twinsun.com>
126509         * lib/backupfile.c (ISDIGIT): Comment fix.
126510         * lib/getdate.y (ISDIGIT): Likewise.
126511         * lib/posixtm.c (ISDIGIT, year): Likewise.
126512         * lib/strverscmp.c (ISDIGIT): Likewise.
126513         * lib/userspec.c (ISDIGIT): Likewise.
126515 2002-01-16  Jim Meyering  <meyering@lucent.com>
126517         * lib/getdate.y: Add three semicolons, each just before a closing
126518         brace. Bison (as of version 1.31) no longer papers over that mistake.
126520 2002-01-05  Jim Meyering  <meyering@lucent.com>
126522         * lib/version-etc.c (version_etc_copyright): Update copyright year.
126524 2001-12-19  Paul Eggert  <eggert@twinsun.com>
126526         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
126527         not silently exit merely because the output buffer happens to
126528         have nothing pending.
126530 2001-12-18  Paul Eggert  <eggert@twinsun.com>
126532         See the big note in ../ChangeLog.
126533         * lib/human.c (suffixes): Prefer K to k for 1024.
126534         (generate_suffix_backwards): New function.
126535         (human_readable_inexact): Use it.
126536         * lib/xstrtol.c (__xstrtol): If there is no number but there
126537         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
126538         Accept 'K' as well as 'k'.
126540 2001-12-15  Jim Meyering  <meyering@lucent.com>
126542         * lib/regex.h (__restrict_arr): Update from libc.
126544         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
126545         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
126546         (STREQ): Define.
126548 2001-12-14  Jim Meyering  <meyering@lucent.com>
126550         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
126551         Suggestion from Bruno Haible.
126553 2001-12-10  Jim Meyering  <meyering@lucent.com>
126555         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
126556         xrealloc, Instead, include "xalloc.h".
126557         (initbuffer): Don't cast xmalloc return value to char*.
126558         (readline): Reword comment.
126559         Don't cast xrealloc return value to char*
126560         Return NULL, not 0.
126562 2001-12-09  Jim Meyering  <meyering@lucent.com>
126564         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
126565         about `signed and unsigned type in conditional expression'.
126566         * lib/posixtm.c (posix_time_parse): Likewise.
126568         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
126570         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
126571         to avoid a pedantic warning.
126573         * lib/getstr.c: Don't include assert.h.
126574         (getstr): Remove warning-evoking assertions.
126575         Return -1 if offset parameter is out of bounds.
126576         Change the type of a local from int to size_t.
126578         * lib/strftime.c (my_strftime_localtime_r): Include this function
126579         definition in the `#if ! HAVE_TM_GMTOFF' block.
126581         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
126582         Include xalloc.h instead.
126584 2001-12-02  Jim Meyering  <meyering@lucent.com>
126586         * lib/tempname.c: Don't declare getenv, thus reverting the change of
126587         2001-11-18.  It's no longer necessary, now that stdlib.h is always
126588         included.
126590         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
126591         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
126593 2001-11-30  Akim Demaille  <akim@epita.fr>
126595         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
126596         before being defined.
126598 2001-11-27  Paul Eggert  <eggert@twinsun.com>
126600         * lib/quotearg.h (quotearg_n, quotearg_n_style):
126601         First arg is int, not unsigned.
126602         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
126603         (SIZE_MAX, UINT_MAX): New macros.
126604         (quotearg_n_options): Abort if N is negative.
126605         Avoid overflow check on hosts where size_t is 64 bits and int
126606         is 32 bits, as overflow is impossible there.
126607         Fix off-by-one typo that caused unnecessary reallocation.
126609 2001-11-27  Jim Meyering  <meyering@lucent.com>
126611         * lib/tempname.c: Merge with version from libc.
126612         * lib/regex.c: Likewise.
126614         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
126615         systems for which STDC_HEADERS is 0, it was not included, resulting in
126616         a warning about an integer-to-pointer conversion problem with getenv.
126617         Reported by Volker Borchert.
126619 2001-11-26  Jim Meyering  <meyering@lucent.com>
126621         * lib/gtod.h: Remove file.
126622         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
126623         * lib/gettimeofday.c: Don't include gtod.h.
126624         (GTOD_init): Remove function.
126625         (rpl_gettimeofday): Do its job here instead, rather than aborting.
126626         Suggestion from Volker Borchert.
126628 2001-11-23  Jim Meyering  <meyering@lucent.com>
126630         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
126631         it.
126632         * lib/hash.c (struct hash_table): Define it here instead.
126634 2001-11-22  Jim Meyering  <meyering@lucent.com>
126636         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
126638 2001-11-20  Jim Meyering  <meyering@lucent.com>
126640         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
126641         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
126643 2001-11-19  Jim Meyering  <meyering@lucent.com>
126645         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
126646         directory.  Use "conftestXXXXXX" as the template.
126647         Suggestion from Paul Eggert.
126649         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
126650         immediately, so the test doesn't mistakenly hit the max-open-files
126651         limit.
126653 2001-11-18  Paul Eggert  <eggert@twinsun.com>
126655         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
126656         (TEMPORARIES): New macro.
126657         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
126658         removes an artificial limitation (e.g. HP-UX 10.20, where
126659         TMP_MAX is 17576).
126661 2001-11-18  Jim Meyering  <meyering@lucent.com>
126663         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
126665 2001-11-18  Jim Meyering  <meyering@lucent.com>
126667         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
126668         on SunOS 4.
126670         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
126671         files will be created before anything else.
126673 2001-11-17  Paul Eggert  <eggert@twinsun.com>
126675         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
126676         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
126678 2001-11-17  Jim Meyering  <meyering@lucent.com>
126680         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
126681         Prompted by a report from Bob Proulx.
126683         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
126684         Instead, require UTILS_FUNC_MKSTEMP.
126686 2001-11-17  Jim Meyering  <meyering@lucent.com>
126688         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
126689         Now, that's done as part of AC_FUNC_STRTOD.
126691 2001-11-17  Jim Meyering  <meyering@lucent.com>
126693         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
126694         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
126695         rather than group writable.  Patch by Juan F. Codagnone.
126697         * lib/readtokens.c: Remove explicit declarations of xmalloc and
126698         xrealloc, Instead, include "xalloc.h".
126700         * lib/mountlist.c: Include unlocked-io.h after all system headers.
126701         Remove explicit declarations of xmalloc, xrealloc,
126702         and xstrdup.  Instead, include "xalloc.h".
126704         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
126705         unlocked-io.h.
126706         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
126707         Likewise.
126708         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
126710         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
126711         Reported by Padraig Brady.
126713         * lib/mkstemp.c: #undef mkstemp.
126714         Include config.h.
126715         (rpl_mkstemp): Rename from mkstemp.
126716         Protoize.
126718 2001-11-16  Jim Meyering  <meyering@lucent.com>
126720         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
126721         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
126722         determine the amount of total physical memory, use pstat_getstatic.
126723         HPUX-11 doesn't define _SC_PHYS_PAGES.
126724         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
126725         If sysconf couldn't be used to determine the amount of available
126726         physical memory, use both pstat_getstatic and pstat_getdynamic.
126727         Based on a patch from Bob Proulx.
126729 2001-11-10  Jim Meyering  <meyering@lucent.com>
126731         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
126732         (jm_PREREQ): Use it.
126734 2001-11-09  Jim Meyering  <meyering@lucent.com>
126736         * m4/jm-macros.m4: Require autoconf-2.52f.
126737         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
126738         Use these AC_-prefixed names, not the AM_-prefixed ones.
126740         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
126742 2001-11-05  Jim Meyering  <meyering@lucent.com>
126744         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
126746 2001-11-04  Jim Meyering  <meyering@lucent.com>
126748         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
126749         $DEFS.
126751 2001-11-03  Jim Meyering  <meyering@lucent.com>
126753         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
126754         of AC_DEFUN.
126756         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
126757         know the name of the variable in the macro definition.
126759 2001-11-03  Jim Meyering  <meyering@lucent.com>
126761         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
126762         in argmatch_to_argument call.
126764         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
126765         argument.
126767         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
126768         e.g., a fault due to an attempt to free a NULL pointer.
126770 2001-11-01  Jim Meyering  <meyering@lucent.com>
126772         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
126773         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
126775 2001-11-01  Jim Meyering  <meyering@lucent.com>
126777         * lib/dirfd.c, lib/dirfd.h: New files.
126778         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
126780         * lib/hash.c (hash_print) [TESTING]: Clean up.
126782 2001-10-22  Paul Eggert  <eggert@twinsun.com>
126784         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
126785         to avoid a warning if -Wall.
126787 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
126789         * README: New file
126790         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
126791         (per RMS's instructions, this is now the canonical source)
126792         * lgpl/, gpl/: New directories.
126794 2001-10-21  Paul Eggert  <eggert@twinsun.com>
126796         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
126798 2001-10-21  Jim Meyering  <meyering@lucent.com>
126800         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
126801         this code would end up calling gettext even in packages built
126802         with --disable-nls.
126803         * lib/getopt.c (_): Likewise.
126804         * lib/regex.c (_): Likewise.
126806 2001-10-20  Paul Eggert  <eggert@twinsun.com>
126808         * m4/error.m4 (jm_PREREQ_ERROR):
126809         Do not invoke AC_CHECK_FUNCS with strerror_r, as
126810         AC_FUNC_STRERROR_R does that.
126811         Check for strerror declaration.
126813         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
126814         are supposed to have them these days.
126815         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
126816         Merge changes from latest Autoconf CVS.
126817         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
126818         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
126819         POSIX decided to standardize on the int flavor of strerror_r.
126821 2001-10-20  Paul Eggert  <eggert@twinsun.com>
126823         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
126824         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
126825         Use strerror_r that is only a macro, even if it is not a function.
126826         (strerror): Check for HAVE_DECL_STRERROR before declaring.
126827         (private_strerror): Use prototypes, not old-style function definition.
126828         (print_errno_message): New function.
126829         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
126830         char*-flavored one.
126831         (error_tail, error, error_at_line): Use it.
126833 2001-10-11  Jim Meyering  <meyering@lucent.com>
126835         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
126836         and quote_n (1, ... to avoid clobbering a buffer.
126838 2001-10-05  Jim Meyering  <meyering@lucent.com>
126840         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
126841         hash-pjw.h.
126842         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
126843         * lib/hash-pjw.h: New file.
126845 2001-09-30  Jim Meyering  <meyering@lucent.com>
126847         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
126848         `struct fsstat' has the `f_fstypename' member.
126849         Use that to define FS_TYPE, which is now used to make
126850         the getfsstat link test tighter.
126852 2001-09-30  Jim Meyering  <meyering@lucent.com>
126854         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
126855         Include <sys/ucred.h>, for Apple Darwin.
126856         Include sys/mount.h and sys/fs_types.h only if available.
126857         (FS_TYPE): Define.
126858         (read_filesystem_list): Use FS_TYPE.
126860 2001-09-29  Paul Eggert  <eggert@twinsun.com>
126862         * lib/exclude.c (excluded_filename): 0 -> false, since it's
126863         a boolean context.
126865 2001-09-29  Jim Meyering  <meyering@lucent.com>
126867         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
126868         [one-argument getmntent function]): Include stdio.h before mntent.h.
126869         SunOS 4.1.x needs it for the declaration of `FILE'.
126870         Patch by Volker Borchert.
126872         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
126873         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
126874         sys/fs_types.h, and make the link-test for getfsstat guard #include
126875         directives with appropriate #if HAVE_*_H tests so that we can
126876         detect getfsstat on Apple Darwin1.3.7 systems.
126877         Reported by Nelson Beebe.
126878         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
126880 2001-09-28  Paul Eggert  <eggert@twinsun.com>
126882         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
126883         #defines strtoimax.  Also treat the other strto* functions
126884         like strtoimax.
126886         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
126887         Check for strtoul and strtoumax,
126888         as those declarations are made even in the signed case.
126889         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
126890         Likewise, for strtol and strtoimax.
126892 2001-09-28  Paul Eggert  <eggert@twinsun.com>
126894         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
126895         #defines strtoimax.  Also treat the other strto* functions
126896         like strtoimax.
126898         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
126899         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
126900         (strtoimax, strtoumax): Do not declare if already defined as a macro.
126902 2001-09-26  Jim Meyering  <meyering@lucent.com>
126904         Most macros in unlocked-io.h had the wrong number of arguments.
126905         * lib/gen-uio: New script.
126906         (USE_UNLOCKED_IO): Define to 1 if not already defined.
126907         * lib/unlocked-io.hin: Remove file.
126908         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
126909         rather than trying to embed it here.
126910         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
126911         Reported by Padraig Brady.
126913 2001-09-25  Volker Borchert  <bt@teknon.de>
126915         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
126916         `result'.
126918 2001-09-24  Jim Meyering  <meyering@lucent.com>
126920         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
126922 2001-09-23  Jim Meyering  <meyering@lucent.com>
126924         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
126925         instead of the mere test for existence of mntent.h.  The latter
126926         would get a false-positive on AIX 3.4 systems.
126927         In the outer getmntent if-block, don't die if neither of the getmntent
126928         tests succeeds.  Instead, just fall through and continue with the
126929         remaining tests.
126931 2001-09-23  Jim Meyering  <meyering@lucent.com>
126933         * lib/mountlist.c: Remove useless parentheses in #if directives.
126934         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
126935         the deprecated MOUNTED symbol is no longer defined in mntent.h.
126937 2001-09-22  Jim Meyering  <meyering@lucent.com>
126939         * m4/gettext.m4: New file.  From gettext.
126940         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
126941         * m4/progtest.m4: Likewise
126942         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
126943         * m4/glibc21.m4: Likewise.
126945         * m4/libintl.m4: Remove.  No longer used.
126947 2001-09-22  Jim Meyering  <meyering@lucent.com>
126949         * lib/localcharset.c: Update from latest gettext.
126950         * lib/config.charset: Likewise.
126952 2001-09-20  Jim Meyering  <meyering@lucent.com>
126954         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
126955         strtoimax.
126956         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
126957         strtoumax.
126959 2001-09-20  Jim Meyering  <meyering@lucent.com>
126961         * lib/xstrtol.c (strtoimax): Guard declaration with
126962         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
126963         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
126964         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
126965         (strtoumax): Likewise, for completeness (it wasn't necessary).
126967 2001-09-17  Paul Eggert  <eggert@twinsun.com>
126969         * lib/strtoimax.c (HAVE_LONG_LONG):
126970         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
126971         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
126972         to work around bug in IBM C compiler.
126974 2001-09-17  Jim Meyering  <meyering@lucent.com>
126976         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
126977         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
126978         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
126979         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
126980         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
126981         whenever the right hand side need not be expanded by the shell.
126983 2001-09-16  Paul Eggert  <eggert@twinsun.com>
126985         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
126986         library.  It's not correct, as some older glibcs are buggy.
126987         fnmatch wasn't fixed until glibc 2.2.
126989         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
126990         special shell magic here.
126992 2001-09-16  Jim Meyering  <meyering@lucent.com>
126994         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
126995         * m4/jm-macros.m4: Require it.
126997 2001-09-16  Jim Meyering  <meyering@lucent.com>
126999         * lib/mkdir.c: New file.
127001 2001-09-15  Jim Meyering  <meyering@lucent.com>
127003         * m4/jm-macros.m4: Check for help2man.
127005 2001-09-11  Jim Meyering  <meyering@lucent.com>
127007         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
127008         The body, by Paul Eggert, was moved here from configure.in.
127009         * m4/jm-macros.m4: Require UTILS_HOST_OS.
127011 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127013         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
127014         (jm_PREREQ): Use it.
127016 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127018         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
127019         Use ssize_t, not int, to store result of readlink.
127020         Check for ssize_t overflow as well as size_t overflow,
127021         as POSIX says the result of readlink is implementation-defined
127022         when ssize_t overflows.
127023         Remove unnecessary cast to char*.
127024         Use free+malloc instead of realloc, as the storage doesn't need
127025         to be preserved and it's clearer and can be more efficient that way.
127026         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
127027         * lib/xreadlink.h (xreadlink): Update prototype.
127029 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127031         * lib/xgetcwd.c: Revert some of the previous change; intead,
127032         fix the HAVE_GETCWD_NULL code to behave more like the
127033         !HAVE_GETCWD_NULL code used to.
127035         Include "xalloc.h".
127036         (xgetcwd): Do not return NULL when memory is exhausted; instead,
127037         invoke xalloc_die.
127039 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127041         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
127042         sys/param.h, as pathmax.h includes them.
127044 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127046         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
127047         (jm_PREREQ_XGETCWD): New macro.
127049         * m4/getcwd.m4: New file.
127051 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127053         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
127054         like the HAVE_GETCWD_NULL code.
127055         Include pathmax.h if not HAVE_GETCWD.
127056         Do not include xalloc.h.
127057         (INITIAL_BUFFER_SIZE): New symbol.
127058         Do not use xmalloc / xrealloc, since the caller is responsible for
127059         handling errors.  Preserve errno around `free' during failure.
127060         Do not overrun buffer when using getwd.
127062 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127064         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
127065         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
127066         getcwd (NULL, 0).
127068 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127070         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
127071         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
127072         spotted by Jim Meyering.
127074 2001-09-03  Jim Meyering  <meyering@lucent.com>
127076         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
127077         failure.
127079 2001-09-02  Jim Meyering  <meyering@lucent.com>
127081         * lib/error.c: Update from GNU libc.
127083 2001-09-01  Jim Meyering  <meyering@lucent.com>
127085         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
127086         Used by df.
127088 2001-09-01  Jim Meyering  <meyering@lucent.com>
127090         * lib/xreadlink.c: New file.
127091         * lib/xreadlink.h: New file.
127092         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
127093         xreadlink.h.
127095         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
127096         doesn't conflict with sparc Solaris 7's definition in
127097         /usr/include/sys/int_types.h.
127099         * lib/exclude.c: Use `""', not `<>' to #include non-system header
127100         files.
127101         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
127102         and strncasecmp as r-values.  Unixware didn't have declarations.
127104 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127106         * lib/xstrtol.h: Add copyright notice.
127107         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
127108         LONGINT_INVALID_SUFFIX_CHAR.
127110 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127112         * lib/xstrtol.c (strtoimax): New decl.
127114 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127116         * lib/xgetcwd.c: Don't include pathmax.h.
127117         Include stdlib.h and unistd.h if available.
127118         Include xalloc.h.
127119         (xmalloc, xstrdup, free): Remove decls.
127120         (xgetcwd): Don't assume sizes fit in unsigned.
127121         Check for overflow when computing sizes.
127122         Simplify reallocation code.
127124 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127126         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
127127         a directory's st_size can have an arbitrary value, so the old
127128         usage could waste an arbitrary amount of memory.  All uses
127129         changed.
127130         * lib/savedir.h: Update prototype.
127132 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127134         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
127136         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
127137         old strtoimax.c.
127139         Also, make the following further changes to make this file's
127140         configuration more similar to that of strtol.c:
127141         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
127142         (strtoumax, uintmax_t, strtoull, strtol): Remove.
127143         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
127144         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
127145         changed to signed values.
127147         And make the following changes as well:
127148         Fix copyright notice, as 1999 was missing.
127149         (verify): New macro.
127150         (strtoimax): Check sizes at compile-time, not run-time.
127151         Prefer strtol to strtoll if both work.
127152         (main): Remove; it was not that useful and was a pain to maintain.
127154         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
127156 2001-08-31  Jim Meyering  <meyering@lucent.com>
127158         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
127159         Use an initial, malloc'd, buffer of length 128 rather than
127160         a statically allocated one of length 1024.
127162 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127164         Simplify code, partly by assuming autoconf 2.52 semantics.
127166         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
127168         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
127169         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
127170         All uses removed.
127171         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
127172         Move AC_REQUIRE to next-to-top level, to avoid confusion.
127173         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
127174         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
127175         jm_AC_HEADER_INTTYPES_H.
127176         * m4/jm-macros.m4 (jm_MACROS): Likewise.
127178         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
127180         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127181         Quote first arg of AC_DEFUN.
127182         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
127183         since they are needed to parse the include file even if we need
127184         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
127185         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
127186         but with opposite signedness.
127188 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127190         Merge 'exclude' changes from tar 1.13.22.
127191         This fixes one or two unlikely storage allocation overflow bugs,
127192         but doesn't change user-visible behavior otherwise.
127194 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127196         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
127197         (jm_PREREQ_EXCLUDE): New macro.
127199 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127201         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
127202         tm to be declared.
127204 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127206         * lib/hash.c: Remove '2001' from copyright notice.
127208 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127210         * lib/full-write.h: New file.
127211         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
127212         * lib/full-write.c: Correct credits, as cccp.c no longer
127213         exists and anyway it was so heavily changed from the old cccp
127214         code as to be unrecognizable.  Include full-write.h.
127215         (full_write): Return size_t, with short writes meaning failure.
127216         All callers changed.  This fixes a bug with large buffers
127217         on 64-bit hosts.
127218         * lib/utime.c: Include full-write.h.
127220 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127222         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
127223         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
127224         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
127225         Include if available.
127226         (<xalloc.h>): Include
127227         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
127228         (verify): New macro.  Use it to verify that EXCLUDE macros do not
127229         collide with FNM macros.
127230         (struct patopts): New struct.
127231         (struct exclude): Use it, as exclude patterns now come with options.
127232         (new_exclude): Support above changes.
127233         (new_exclude, add_exclude_file):
127234         Initial size must now be a power of two to simplify overflow checking.
127235         (free_exclude, fnmatch_no_wildcards): New function.
127236         (excluded_filename): No longer requires options arg, as the options
127237         are determined by add_exclude.  Now returns bool, not int.
127238         (excluded_filename, add_exclude):
127239         Add support for the fancy new exclusion options.
127240         (add_exclude, add_exclude_file): Now takes int options arg.
127241         Check for arithmetic overflow when computing sizes.
127242         (add_exclude_file): xrealloc might modify errno, so don't
127243         realloc until after errno might be used.
127245         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
127246         New macros.
127247         (free_exclude): New decl.
127248         (add_exclude, add_exclude_file): Now takes int options arg.
127249         (excluded_filename): No longer requires options arg, as the options
127250         are determined by add_exclude.  Now returns bool, not int.
127252 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127254         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
127256 2001-08-27  Jim Meyering  <meyering@lucent.com>
127258         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
127260         * lib/version-etc.c (N_): Remove definition.
127261         Revert most of last change.
127262         Instead, simply don't mark the `Copyright...' string for translation.
127263         Based on advice from Paul Eggert.
127265         * lib/strtoxmax.c: Tweak comment.
127267 2001-08-26  Jim Meyering  <meyering@lucent.com>
127269         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
127271         * m4/xstrtoimax.m4: New file.
127272         * m4/xstrtoumax.m4: Add comments explaining why we
127273         AC_REPLACE_FUNCS(strtol).
127275 2001-08-26  Jim Meyering  <meyering@lucent.com>
127277         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
127278         of copyright with `%s' so translators don't get an untranslated
127279         message in 2002.
127280         (COPYRIGHT_YEAR): Define.
127281         (version_etc): Use fprintf rather than fputs.
127282         Suggestion from Ulrich Drepper.
127284         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
127286         * lib/strtoll.c: New file, from GNU libc.
127287         * lib/xstrtoimax.c: New file.
127289         * lib/xstrtol.h: Add xstrtoimax.
127290         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
127291         * lib/strtoimax.c: New file.  Likewise, but first define
127292         STRTOUXMAX_SIGNED.
127294         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
127295         ...
127296         * lib/strtoxmax.c: ... then renamed to this.
127298 2001-08-18  Paul Eggert  <eggert@twinsun.com>
127300         * m4/inttypes.m4: Add AC_PREREQ(2.13).
127301         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
127302         (jm_AC_TYPE_INTMAX_T): New macro.
127303         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
127305         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
127307         * m4/longlong.m4: Renamed from ulonglong.m4.
127308         * m4/inttypes.m4: Renamed from inttypes_h.m4.
127309         * m4/uintmax_t.m4: Removed.
127311 2001-08-13  Paul Eggert  <eggert@twinsun.com>
127313         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
127314         Port to Solaris 8, where 'sed' requires a space after the 'r'
127315         command, and where sh dislikes "$/".  Clean up the spacing a bit.
127316         Redirect output to $tmp just once.
127318 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
127320         * lib/addext.c (<errno.h>): Include.
127321         (errno): Declare if not defined.
127322         (addext): Work correctly when pathconf returns -1 and leaves
127323         errno alone because there is no limit.  Also, work even if
127324         pathconf returns a value greater than SIZE_MAX.
127326 2001-08-12  Jim Meyering  <meyering@lucent.com>
127328         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
127329         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
127330         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
127331         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
127332         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
127333         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
127334         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
127335         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
127336         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
127337         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
127338         utime.m4, utimes.m4, xstrtoumax.m4:
127339         Quote the first argument in each use of AC_DEFUN.
127341 2001-08-12  Jim Meyering  <meyering@lucent.com>
127343         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
127344         Simply `return getcwd (NULL, 0);'.
127345         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
127346         Use 1300 as initial value for length, not PATH_MAX.
127348         * lib/pathmax.h: Clean up cpp syntax.
127350 2001-08-12  Jim Meyering  <meyering@lucent.com>
127352         * lib/gettimeofday.c: New file.
127353         * lib/gtod.h: New file.
127354         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
127356 2001-08-05  Jim Meyering  <meyering@lucent.com>
127358         * m4/jm-macros.m4: Require autoconf-2.52.
127360 2001-08-04  Jim Meyering  <meyering@lucent.com>
127362         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
127363         stmt, to get in sync with glibc.
127365 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127367         The following changes are from gettext 0.10.39 as maintained by
127368         Bruno Haible.
127370         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
127371         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
127372         with inverted sense.  All uses changed.
127374         * lib/mbswidth.c: Don't include <limits.h>.
127375         Include <stdlib.h> and <string.h> unconditionally.
127376         (iswcntrl, mbsinit, ISCNTRL): New macros.
127377         (mbsnwidth): Use K&R style function declarations.
127378         Don't bother checking for MB_LEN_MAX == 1, since the compiler
127379         can optimize it when MB_CUR_MAX == 1.
127380         The width of control characters is zero, not 1.
127382 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127384         The following changes are from gettext 0.10.39 as maintained by
127385         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
127387         * m4/codeset.m4: Upgrade to serial AM1.
127388         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
127389         all uses changed.  Quote first arg of AC_DEFUN.
127390         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
127392         * m4/iconv.m4: Upgrade to serial AM2.
127393         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
127394         Add --with-libconv-prefix.
127395         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
127396         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
127397         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
127398         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
127399         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
127401         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
127402         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
127403         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
127404         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
127405         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
127406         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
127407         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
127408         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
127409         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
127411         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
127412         string.h any more.
127414         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
127415         not the default value.
127417         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
127418         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
127419         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
127420         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
127421         Also check for iswcntrl, used for wcwidth fallback.
127422         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
127423         to Autoconf 2.13.
127425 2001-08-03  Jim Meyering  <meyering@lucent.com>
127427         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
127428         as it was in the original.  Reported by Paul Eggert.
127430 2001-07-16  Jim Meyering  <meyering@lucent.com>
127432         * m4/gettimeofday.m4: New file.
127433         Prompted by a report from Bernhard Baehr.
127435 2001-07-15  Jim Meyering  <meyering@lucent.com>
127437         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
127438         stuff. Now it's in ../Makefile.cfg.
127440 2001-07-15  Jim Meyering  <meyering@lucent.com>
127442         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
127443         (BUILT_SOURCES): Add unlocked-io.h.
127444         (io_functions): Define.
127445         (unlocked-io.h): New rule.
127446         (DISTCLEANFILES): Add unlocked-io.h.
127447         (all-local): Depend on unlocked-io.h, to ensure it is created.
127449         * lib/unlocked-io.hin: New file
127451         * lib/regex.c: Update from glibc.
127453 2001-07-05  Jim Meyering  <meyering@lucent.com>
127455         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
127456         recommendation.
127457         (libfetish_a_SOURCES): Put all .h files here instead.
127458         Remove a thus-exposed (better checks in automake) duplicate and
127459         two unnecessary .h files.
127461 2001-07-04  Jim Meyering  <meyering@lucent.com>
127463         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
127464         that generates jm-glibc-io.m4 so that it doesn't trigger any make
127465         distcheck failure.
127467 2001-07-02  Jim Meyering  <meyering@lucent.com>
127469         The following changes were prompted by suggestions from Bruno Haible.
127471         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
127472         is now generated.
127473         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
127474         definition of EXTRA_DIST.
127475         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
127476         ensure that the generated file is created/updated whenever the list
127477         of $(unlocked_functions) is changed.
127478         (jm-glibc-io.m4): New rule.
127479         (unlocked-io.h): New rule -- currently unused.
127481 2001-06-24  Jim Meyering  <meyering@lucent.com>
127483         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
127484         unmatched right bracket, rather than kludging it with an extra,
127485         falsely-matching quote in a comment.  Patch by Akim Demaille.
127487 2001-06-11  Jim Meyering  <meyering@lucent.com>
127489         * lib/regex.c: Update from GNU libc.
127491 2001-05-27  Jim Meyering  <meyering@lucent.com>
127493         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
127494         Check for ut_type in struct utmp.
127496 2001-05-27  Jim Meyering  <meyering@lucent.com>
127498         * lib/readutmp.h (UT_TYPE): Define.
127500 2001-05-24  Jim Meyering  <meyering@lucent.com>
127502         * lib/argmatch.c: Include "quote.h".
127503         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
127504         quote function.  Reported by Göran Uddeborg.
127506 2001-05-22  Jim Meyering  <meyering@lucent.com>
127508         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
127509         now that we use the package-supplied version unconditionally.
127510         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
127512 2001-05-21  Jim Meyering  <meyering@lucent.com>
127514         * m4/regex.m4: Change a couple backticks to single quotes to avoid
127515         shell syntax errors.
127517 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
127519         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
127521 2001-05-20  Paul Eggert  <eggert@twinsun.com>
127523         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
127524         Don't bother to check library strftime, since
127525         we'll be using our own my_strftime function anyway.
127526         Define my_strftime instead of strftime.
127528 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
127530         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
127531         which is not yet declared.
127533 2001-05-15  Jim Meyering  <meyering@lucent.com>
127535         * m4/regex.m4: Use proper quoting so brackets appear in the test
127536         program.
127537         Reported by, and with help from, Bruno Haible.
127539 2001-05-13  Jim Meyering  <meyering@lucent.com>
127541         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
127542         undefined.
127544 2001-05-11  Paul Eggert  <eggert@twinsun.com>
127546         dirname code cleanup.  base_name now behaves more compatibly
127547         with POSIX basename when given file names that have trailing
127548         slashes, and similarly for dir_name.  Add new primitives
127549         base_len and dir_len.  Put the directory-name-related decls
127550         into dirname.h.
127552         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
127553         * lib/backupfile.c (base_name): Likewise.
127554         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
127555         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
127556         * lib/makepath.c (strip_trailing_slashes): Likewise.
127557         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
127558         ISSLASH): Likewise.
127559         * lib/rename.c (strip_trailing_slashes): Likewise.
127560         * lib/same.c (base_name): Likewise.
127561         * lib/stripslash.c (ISSLASH): Likewise.
127563         * lib/addext.c: Include <dirname.h> after size_t is defined.
127564         * lib/backupfile.c: Likewise.
127566         * lib/addext.c (addext): Use base_len to trim redundant
127567         trailing slashes instead of doing it ourselves.
127568         But do not trim the last slash if it is not redundant.
127570         * lib/backupfile.c (find_backup_file_name,
127571         max_backup_version): Use base_len instead of rolling it ourselves.
127572         Handle the case of "" and (on DOS) "C:" correctly.
127574         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
127575         needed. Include <string.h>, <dirname.h>.
127576         (base_name): Allow file names ending in slashes, other than names
127577         that are all slashes.  In this case, return the basename followed
127578         by the slashes.  This is more general, and can be used in places
127579         where the original base_name purposely had an assertion failure.
127580         (base_len): New function.
127582         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
127583         Do not include <assert.h>; no longer needed.
127584         Include xalloc.h.
127585         (memrchr): Remove decl.
127586         (dir_name_r): Remove.
127587         (dir_len): Renamed from dirlen.  All callers changed.
127588         Rewrite in terms of base_name, for simplicity and consistency.
127589         (dir_name): Never return NULL.  All callers changed.
127590         Do not include <stdlib.h> in test program; no longer needed.
127591         return 0; is fine for test program.
127593         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
127594         New macros.
127595         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
127597         * lib/path-concat.c (path_concat): Use base_len to compute
127598         base length, not strlen; this means we cannot rely on memcpy
127599         to null-terminate.
127601         * lib/same.c (STREQ): Remove.
127602         (same_name): Handle the case where the basename ends in trailing '/'.
127604         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
127605         a slash was stripped.  Do not strip the last slash after a
127606         file system prefix.
127608 2001-05-11  Paul Eggert  <eggert@twinsun.com>
127610         * lib/Makefile.am (libfetish_a_SOURCES):
127611         Add strftime.c, since we now compile it on all hosts.
127613         * lib/strftime.c (my_strftime):
127614         Define to nstrftime if emacs, but only if my_strftime is not defined.
127615         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
127616         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
127617         Add one more extra argument: a nanoseconds value.
127618         All uses changed.
127619         (ns): New macro.
127620         (my_strftime function): Add %N format.
127621         (emacs_strftimeu): Renamed from emacs_strftime,
127622         with extra ut argument.
127624 2001-05-09  Paul Eggert  <eggert@twinsun.com>
127626         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
127628 2001-04-21  Jim Meyering  <meyering@lucent.com>
127630         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
127631         doesn't interfere.
127633 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
127635         * m4/ftruncate.m4: Check for chsize.
127636         Link with ftruncate.o unconditionally if ftruncate is missing.
127637         This was required when cross-compiling to i586-mingw32msvc.
127639 2001-04-08  Jim Meyering  <meyering@lucent.com>
127641         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
127642         recomputed; that's necessary when the offset spans a DST transition.
127643         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
127645 2001-04-02  Jim Meyering  <meyering@lucent.com>
127647         * lib/regex.h, regex.c: Update from GNU libc.
127649 2001-03-24  Jim Meyering  <meyering@lucent.com>
127651         * m4/jm-macros.m4: Require autoconf-2.49d.
127653 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
127655         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
127657 2001-03-19  Paul Eggert  <eggert@twinsun.com>
127659         * lib/version-etc.c (version_etc_copyright): Update to 2001.
127661 2001-03-17  Jim Meyering  <meyering@lucent.com>
127663         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
127664         now that the version in autoconf is equivalent.
127665         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
127667         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
127668         Suggestion from Akim Demaille.
127670         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
127671         (jm_PREREQ_TEMPNAME): New function.
127673 2001-03-16  Paul Eggert  <eggert@twinsun.com>
127675         * lib/tempname.c (uint64_t): Define to uintmax_t if
127676         not defined, and if UINT64_MAX is not defined.
127677         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
127678         Reported by John David Anglin.
127680 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
127682         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
127683         resolve alias if codeset is empty.
127684         * lib/config.charset (BeOS): Use wildcard syntax.
127686 2001-03-13  Jim Meyering  <meyering@lucent.com>
127688         * lib/path-concat.c (path_concat)
127689         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
127690         concatenating e.g., `C:' and `foo'.
127691         From Bruno Haible.
127693 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
127695         * lib/localcharset.c (locale_charset): Don't use
127696         setlocale(LC_CTYPE,NULL). Don't return NULL.
127697         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
127699 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
127701         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
127702         support for DOS/DJGPP.
127704 2001-03-01  Paul Eggert  <eggert@twinsun.com>
127706         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
127707         lacks mkstemp.  Compile our own tempname.c if we compile our own
127708         mkstemp.c, as mkstemp relies on tempname.
127710 2001-03-01  Jim Meyering  <meyering@lucent.com>
127712         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
127713         AH_VERBATIM really does output its argument verbatim.
127715 2001-02-28  Paul Eggert  <eggert@twinsun.com>
127717         * lib/Makefile.am (libfetish_a_SOURCES):
127718         Add dup-safer.c, fopen-safer.c.
127719         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
127721         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
127722         * lib/unistd-safer.h: New files.
127724 2001-02-25  Paul Eggert  <eggert@twinsun.com>
127726         The mkstemp replacement is taken from glibc 2.2.2, with some
127727         portability fixes for use outside glibc, as follows:
127729         * lib/tempname.c (struct_stat64): New macro.
127730         (direxists, __gen_tempname): Use it.
127731         This avoids a portability problem with Solaris 8.
127733         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
127734         (<stddef.h>, <stdint.h>, <string.h>):
127735         Include only if STDC_HEADERS || _LIBC.
127736         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
127737         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
127738         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
127739         (__set_errno): Define this macro if <errno.h> doesn't.
127740         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
127741         Define these macros if <stdio.h> doesn't.
127742         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
127743         Define these macros if <sys/stat.h>
127744         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
127745         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
127746         __xstat64): Define if not _LIBC.
127747         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
127748         (__gen_tempname): Invoke gettimeofday only if
127749         HAVE_GETTIMEOFDAY || _LIBC;
127750         otherwise, fall back on plain "time".
127751         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
127753         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
127755         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
127757 2001-02-18  Paul Eggert  <eggert@twinsun.com>
127759         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
127761 2001-02-17  Paul Eggert  <eggert@twinsun.com>
127763         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
127764         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
127765         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
127766         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
127768 2001-02-17  Paul Eggert  <eggert@twinsun.com>
127770         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
127771         Remove workaround macros for hosts that have mbrtowc but not
127772         mbstate_t, as we now insist on proper declarations for both
127773         before using mbrtowc.
127775 2001-02-17  Jim Meyering  <meyering@lucent.com>
127777         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
127778         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
127779         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
127780         UnixWare 7.1.1.
127782         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
127783         rather than AC_CACHE_VAL.
127785 2001-02-17  Jim Meyering  <meyering@lucent.com>
127787         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
127788         around included file name.
127790         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
127792         * lib/strftime.c: Update from GNU libc (the only changes were to
127793         comments).
127795 2001-02-17  Jim Meyering  <meyering@lucent.com>
127797         * lib/regex.c: Update from libc.
127799 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
127801         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
127802         clash.
127804 2001-02-16  Paul Eggert  <eggert@twinsun.com>
127806         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
127807         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
127808         Reported by Mark Hounschell via Paul Eggert.
127810 2001-02-07  Jim Meyering  <meyering@lucent.com>
127812         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
127814 2001-02-05  Jim Meyering  <meyering@lucent.com>
127816         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
127817         it includes the patch required for `large file' support with at least
127818         HP-UX's 10.20 /bin/cc.
127820 2001-02-03  Jim Meyering  <meyering@lucent.com>
127822         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
127823         AS_IF, now that it works once again (mysteriously).
127824         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
127826 2001-01-30  Jim Meyering  <meyering@lucent.com>
127828         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
127829         * m4/chown.m4: Rename conftestchown to conftest.chown.
127830         * m4/rename.m4: s/conftestdir/conftest.d1/ and
127831         s/conftestdir2/conftest.d2/.
127832         * m4/utimes.m4: s/conftestdata/conftest.data/
127833         Inspired by Pavel Roskin's change in autoconf.
127835 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
127837         * lib/config.charset: Update for FreeBSD 4.2.
127839 2001-01-27  Jim Meyering  <meyering@lucent.com>
127841         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
127842         a use of AS_IF.
127843         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
127845 2001-01-26  Jim Meyering  <meyering@lucent.com>
127847         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
127848         quotearg.c includes it.
127850 2001-01-26  Jim Meyering  <meyering@lucent.com>
127852         * lib/quotearg.c: Include stddef.h.
127853         * lib/quote.c: Include stddef.h.
127854         Reported by Axel Kittenberger.
127856         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
127857         line in double quotes so that it evokes a better diagnostic.
127858         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
127859         Reported by Axel Kittenberger.
127861 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
127863         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
127864         as if it was a `charset'.
127866 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
127868         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
127869         has const.
127871 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
127873         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
127874         to avoid a warning.  Add back 'const' to inptr.
127876 2001-01-20  Jim Meyering  <meyering@lucent.com>
127878         Be sure that headers are checked before used in code compiled
127879         for the type checks.
127880         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
127881         In place of that, invoke jm_CHECK_ALL_TYPES.
127882         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
127883         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
127884         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
127885         The check for ssize_t was mistakenly run before the test for unistd.h.
127887         The configure-time check for stdbool.h was missing.
127888         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
127889         (jm_PREREQ_HASH): New function.
127891 2001-01-17  Jim Meyering  <meyering@lucent.com>
127893         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
127894         for autoconf-2.49c.
127895         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
127897 2001-01-16  Jim Meyering  <meyering@lucent.com>
127899         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
127900         From Bruno Haible.
127902 2001-01-14  Jim Meyering  <meyering@lucent.com>
127904         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
127905         foo and bar.  Create conftestdir/ in the script, not in the C code.
127906         Remove directories in the script, not in the C code.
127907         Remove conftestdir{,2} before trying to create the directory.
127908         Make the entire configure script fail if the mkdir fails.
127910 2001-01-14  Jim Meyering  <meyering@lucent.com>
127912         * lib/rename.c: New file.  From Volker Borchert.
127913         Include stdlib.h, string.h or strings.h, and xalloc.h.
127914         Use strip_trailing_slashes rather than open-coding it.
127916 2001-01-03  Paul Eggert  <eggert@twinsun.com>
127918         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
127920 2001-01-03  Jim Meyering  <meyering@lucent.com>
127922         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
127923         of local `inptr' to avoid warning with some system declarations of
127924         iconv.
127926 2001-01-02  Volker Borchert  <bt@teknon.de>
127928         * m4/rename.m4: New file.
127929         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
127931 2001-01-01  Jim Meyering  <meyering@lucent.com>
127933         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
127934         even on systems with utmpx.h.  It's necessary for the declaration of
127935         utmp's ut_user member.  Reported by Andreas Jaeger.
127937         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
127938         available. They are required for the declarations of getgrgid and
127939         getpwuid resp.
127940         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
127941         Reported by Andreas Jaeger.
127943 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
127945         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
127946         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
127947         so `make install' also works in VPATH builds.
127949 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
127951         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
127952         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
127953         can be used in subdirectories.
127955 2000-12-29  Paul Eggert  <eggert@twinsun.com>
127957         * lib/modechange.c: Do not assume that mode_t uses the
127958         traditional octal encoding.  E.g. "chmod 1 FOO" should set
127959         the other-execute bit of FOO even if S_IXOTH != 1.
127961         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
127962         WOTH, XOTH, ALLM): New macros.
127963         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
127964          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
127965         Use them.
127966         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
127967         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
127968         (mode_compile):
127969         No need to use uintmax_t; unsigned long is long enough.
127970         Don't bother to get suffix since we don't use it.
127972 2000-12-26  Jim Meyering  <meyering@lucent.com>
127974         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
127975         better with autoheader.
127977 2000-12-24  Jim Meyering  <meyering@lucent.com>
127979         * lib/hash.c (is_prime): Return explicit boolean values.
127980         (hash_get_first): Return NULL to appease Irix5.6's 89.
127981         Reported by Nelson Beebe.
127983 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
127985         * lib/localcharset.c (locale_charset): Add support for Win32.
127987 2000-12-18  Paul Eggert  <eggert@twinsun.com>
127989         * lib/physmem.h, lib/physmem.c: New files.
127991         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
127992         (noinst_HEADERS): Add physmem.h.
127994         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
127995         't' for compatibility with Solaris 8 sort.
127997 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
127999         * lib/config.charset: Add support for BeOS.
128001 2000-12-17  Jim Meyering  <meyering@lucent.com>
128003         * m4/dos.m4 (jm_AC_DOS): New file and macro.
128004         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
128006 2000-12-16  Jim Meyering  <meyering@lucent.com>
128008         This bug had a serious impact on chown: `chown N:M FILE' (for integer
128009         N and M) would have treated it like `chown N:N FILE'.
128011         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
128013 2000-12-16  Jim Meyering  <meyering@lucent.com>
128015         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
128016         SHELLS_FILE to a file name that's useful on djgpp systems.
128017         Include stdlib.h.
128018         (ADDITIONAL_DEFAULT_SHELLS): Define.
128019         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
128020         Based mostly on a patch from Prashant TR.
128022 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
128024         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
128025         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
128026         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
128028 2000-12-08  Andreas Schwab  <schwab@suse.de>
128030         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
128031         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
128033 2000-12-07  Jim Meyering  <meyering@lucent.com>
128035         * lib/stripslash.c (ISSLASH): Define.
128036         (strip_trailing_slashes): Use ISSLASH rather than comparing against
128037         `/'.
128038         From Prashant TR.
128040         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
128041         (dir_name_r): Declare this function as static.
128042         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
128043         manifest itself on a name containing a mix of slashes and
128044         backslashes.
128045         Make this function work with names starting with a DOS-style
128046         drive letter and colon prefix.
128047         (dir_name): Append `.' if necessary.
128048         Based mostly on patches from Prashant TR and Eli Zaretskii.
128050         * lib/dirname.h (dir_name_r): Remove prototype.
128052 2000-12-06  Paul Eggert  <eggert@twinsun.com>
128054         * m4/off_t-format.m4: Remove this file.
128055         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
128057 2000-12-06  Jim Meyering  <meyering@lucent.com>
128059         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
128060         replacement strtoull, we may well need the replacement strtoul, too.
128061         Check for declarations of strtoul and strtoull.
128062         Check for strtol.  Mainly as a cue to cause automake to include
128063         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
128064         Check for limits.h -- strtol.c needs it.
128066 2000-12-05  Jim Meyering  <meyering@lucent.com>
128068         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
128070 2000-12-04  Jim Meyering  <meyering@lucent.com>
128072         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
128073         Also include memory.h, stdlib.h, unistd.h if appropriate.
128074         Reported by Andreas Jaeger (conflicting declaration of malloc).
128076 2000-12-02  Jim Meyering  <meyering@lucent.com>
128078         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
128079         * m4/jm-macros.m4 (jm_MACROS): require it.
128081 2000-12-02  Jim Meyering  <meyering@lucent.com>
128083         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
128085 2000-12-01  Paul Eggert  <eggert@twinsun.com>
128087         * lib/memrchr.c: Include <config.h> before any system include file.
128089 2000-11-30  Jim Meyering  <meyering@lucent.com>
128091         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
128093 2000-11-30  Jim Meyering  <meyering@lucent.com>
128095         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
128097 2000-11-29  Paul Eggert  <eggert@twinsun.com>
128099         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
128101 2000-11-26  Jim Meyering  <meyering@lucent.com>
128103         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
128105 2000-11-22  Paul Eggert  <eggert@twinsun.com>
128107         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
128108         size of (size_t) -1; it's not portable.
128110 2000-11-17  Jim Meyering  <meyering@lucent.com>
128112         * lib/strstr.c: Update from GNU libc.
128114 2000-11-17  Akim Demaille  <akim@epita.fr>
128116         * lib/obstack.h: Formatting changes.
128117         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
128118         prevent type checking.
128119         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
128120         cast the value to (void *): assigning a `foo *' to a `void *'
128121         variable is valid.
128122         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
128124 2000-11-16  Jim Meyering  <meyering@lucent.com>
128126         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
128128 2000-11-11  Jim Meyering  <meyering@lucent.com>
128130         * lib/error.c: Add a couple #includes, merging from GNU libc version.
128132 2000-11-10  Jim Meyering  <meyering@lucent.com>
128134         * lib/obstack.h: Update from GNU libc.
128135         * lib/obstack.c: Likewise.
128137 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
128139         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
128141 2000-11-06  Paul Eggert  <eggert@twinsun.com>
128143         * lib/getusershell.c (setusershell): Use rewind rather than
128144         fseek/fseeko, to avoid configuration hassles with fseeko.
128145         Don't bother opening SHELLS_FILE if shellstream is NULL;
128146         it's not necessary.
128148 2000-11-05  Jim Meyering  <meyering@lucent.com>
128150         * lib/makepath.h (make_dir): Declare.
128151         * lib/makepath.c (make_dir): Remove `static' attribute.
128152         Tweak a comment.
128154 2000-11-04  Jim Meyering  <meyering@lucent.com>
128156         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
128158 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
128160         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
128161         last one in a bucket, advance to the next bucket.
128163 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
128165         * lib/fnmatch.c: Do not comment out all the code if we are using
128166         the GNU C library, because in some cases we are replacing buggy
128167         code in the GNU C library itself.
128169 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
128171         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
128172         (regex_compile): Catch bogus \(\1\).
128174 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128176         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
128177         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
128178         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
128180 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128182         * lib/error.h, getline.h, modechange.h:
128183         Remove "2000" from Copyright line, as the file hasn't been
128184         changed this year other than in the copyright notice.
128186         * lib/xalloc.h: Add "2000" to Copyright line, as this file
128187         was changed this year.
128189 2000-10-29  Jim Meyering  <meyering@lucent.com>
128191         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
128192         renaming.
128193         * m4/ls-mntd-fs.m4: Likewise
128195 2000-10-29  Jim Meyering  <meyering@lucent.com>
128197         * lib/xstat.in: Fix grammar in comment.
128199 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
128201         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
128202         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
128203         doesn't define __restrict_arr.
128205 2000-10-28  Jim Meyering  <meyering@lucent.com>
128207         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
128208         (jm_PREREQ_MEMCHR): New function.
128210 2000-10-28  Jim Meyering  <meyering@lucent.com>
128212         * lib/memchr.c: Update from libc.
128213         Adjust for portability:
128214         [HAVE_STDLIB_H]: Include stdlib.h.
128215         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
128216         Undef __memchr, too.
128217         [!weak_alias]: Define __memchr to memchr.
128219         * lib/regex.c: Update from libc.
128220         * lib/regex.h: Likewise.
128221         * lib/getopt1.c: Likewise.
128222         * lib/memcmp.c: Likewise.
128224         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
128225         Avoid using fseek, when possible -- it's broken by design.
128226         Patch by Ulrich Drepper.
128228 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
128230         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
128231         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
128232         Giving in to popular pressure to shut up the compiler with casts.
128234 2000-10-26  Jim Meyering  <meyering@lucent.com>
128236         * lib/strftime.c: Update from libc.
128238 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
128240         * regex.c: More `unsigned char' -> `re_char' changes.
128241         Also change several `int' into `re_wchar_t'.
128242         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
128243         (PUSH_FAILURE_POINTER): Don't cast any more.
128244         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
128245         We want GCC to complain, since this piece of code makes
128246         re_match non-reentrant, which *should* be fixed.
128247         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
128248         (EXTEND_BUFFER): Use RETALLOC.
128249         (SET_LIST_BIT): Don't cast.
128250         (re_wchar_t): New type.
128251         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
128252         that those two functions will always properly return.
128253         (IMMEDIATE_QUIT_CHECK): Cast to void.
128254         (analyse_first): Use recursion rather than an explicit stack.
128255         (re_compile_fastmap): Can't fail anymore.
128256         (re_search_2): Don't check re_compile_fastmap for failure.
128257         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
128258         Now also sets the new value (passed in a new argument).
128259         (re_match_2_internal): Use it.
128260         Also, use a new var `reg' of type size_t when looping through regs
128261         rather than reuse the inappropriate `mcnt'.
128263 2000-10-25  Jim Meyering  <meyering@lucent.com>
128265         * lib/obstack.c: Update from libc.
128267 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
128269         * regex.c (regex_compile): Change the way of handling a range from
128270         a char less than 256 to a char not less than 256.
128272 2000-10-24  Andrew Innes  <andrewi@gnu.org>
128274         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
128275         NT-Emacs only.
128276         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
128277         so that re_search functions only quit when callers expect them to.
128279 2000-10-23  Jim Meyering  <meyering@lucent.com>
128281         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
128282         wrong.  That set_locale call must not have any side effects.
128283         From Paul Eggert.
128285 2000-10-22  Jim Meyering  <meyering@lucent.com>
128287         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
128288         [CYCLIC]: Remove now-unused definition.
128290         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
128291         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
128292         Suggestion from Ulrich Drepper.
128294 2000-10-21  Jim Meyering  <meyering@lucent.com>
128296         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
128297         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
128298         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
128300 2000-10-21  Jim Meyering  <meyering@lucent.com>
128302         * lib/dirname.c (memrchr): Declare if necessary.
128303         (dir_name): Remove the restriction that there be no
128304         trailing slashes.  Now, this code skips past them, effectively
128305         ignoring them.
128306         [TEST_DIRNAME] (main): New unit tests.
128308         * lib/memrchr.c: New file from GNU libc.
128309         Undef __memrchr, too.
128310         [!weak_alias]: Define __memrchr to memrchr.
128311         Guard weak_alias use with `#ifdef weak_alias'.
128313 2000-10-21  Jim Meyering  <meyering@lucent.com>
128315         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
128316         (dir_name): Use dir_name_r.
128317         * lib/dirname.h (dir_name_r): Declare it.
128319 2000-10-17  Jim Meyering  <meyering@lucent.com>
128321         * lib/quote.h (PARAMS): Define and use.
128322         Reported by Akim Demaille.
128324         * lib/getopt.c: Update from libc.
128326 2000-10-16  Jim Meyering  <meyering@lucent.com>
128328         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
128329         setlocale.
128330         From Jan Fedak.
128332 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
128334         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
128336 2000-09-25  Jim Meyering  <meyering@lucent.com>
128338         * lib/md5.h (rol): Define (from GnuPG).
128340         * lib/sha.c: Give credit (GnuPG) where due.
128341         (M): Use rol rather than open-coding it.
128342         Add a FIXME comment.
128344 2000-09-21  Jim Meyering  <meyering@lucent.com>
128346         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
128347         Reported by Michael Stone.
128349 2000-09-20  Jim Meyering  <meyering@lucent.com>
128351         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
128352         (noinst_HEADERS): Add sha.h.
128353         Based on code from Scott G. Miller and from GnuPG.
128355 2000-09-18  Jim Meyering  <meyering@lucent.com>
128357         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
128358         LIBS. Otherwise, everyone ends up linking with -lelf for some
128359         configurations.
128360         Reported by Mike Stone.
128362 2000-09-15  Jim Meyering  <meyering@lucent.com>
128364         * lib/regex.c: Update from libc.
128366 2000-09-10  Jim Meyering  <meyering@lucent.com>
128368         * lib/getopt.c (_getopt_internal): Update from glibc.
128370 2000-09-09  Jim Meyering  <meyering@lucent.com>
128372         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
128373         think it should be used as a general replacement for isascii.
128374         * lib/fnmatch.c: Likewise.
128375         * lib/mbswidth.c: Likewise
128376         * lib/regex.c: Likewise.
128378         Don't use atoi.
128379         * lib/userspec.c: Include sys/param.h and limits.h.
128380         Include xstrtol.h.
128381         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
128382         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
128383         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
128384         UID, GID.  Check range.
128386 2000-09-06  Jim Meyering  <meyering@lucent.com>
128388         * lib/getopt.c (_getopt_internal): Update from glibc.
128390 2000-08-30  Jim Meyering  <meyering@lucent.com>
128392         * lib/strftime.c: Merge in changes from GNU libc.
128394 2000-08-26  Jim Meyering  <meyering@lucent.com>
128396         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
128397         * m4/fpending.m4: New file.
128399 2000-08-26  Jim Meyering  <meyering@lucent.com>
128401         * lib/closeout.c: Include "__fpending.h".
128402         (close_stdout_status): Return right away if there's nothing to flush.
128404         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
128405         * lib/__fpending.c: New file.
128406         * lib/__fpending.h: New file.
128408 2000-08-20  Jim Meyering  <meyering@lucent.com>
128410         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
128411         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
128412         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
128414 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
128416         Improve fileutils installation on systems where running
128417         programs (like install) can't be unlinked.
128418         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
128419         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
128421 2000-08-07  Paul Eggert  <eggert@twinsun.com>
128423         Standardize on "memory exhausted" instead of "Memory exhausted"
128424         or "virtual memory exhausted".
128425         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
128426         "virtual memory exhausted".
128427         * lib/same.c (same_name): Invoke xalloc_die instead of printing
128428         our own message.
128429         * lib/userspec.c (parse_user_spec): Likewise.
128430         * lib/bumpalloc.h: comment fix
128431         * lib/same.c, userspec.c: Include xalloc.h.
128433         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
128434         not char *const and pointing to a constant array.
128435         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
128436         (xrealloc): Comment fix.
128438         * lib/userspec.c (parse_user_spec):
128439         Don't translate a message until just before returning,
128440         to avoid unnecessary translation.
128442 2000-08-07  Jim Meyering  <meyering@lucent.com>
128444         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
128445         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
128446         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
128447         getgroups.c, gethostname.c, getopt.h, group-member.c,
128448         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
128449         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
128450         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
128451         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
128452         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
128453         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
128454         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
128455         yesno.c: Back out Copyright date changes for each file with no change
128456         this year.  This eases coordination with other programs using the same
128457         source code modules.  From Paul Eggert.
128459 2000-08-06  Paul Eggert  <eggert@twinsun.com>
128461         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
128462         not char, for compatibility with glibc 2.1.3 strftime.c.
128464 2000-08-03  Greg McGary  <greg@mcgary.org>
128466         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
128467         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
128468         (EXTEND_BUFFER): Use them.
128470 2000-08-01  Jim Meyering  <meyering@lucent.com>
128472         * lib/dirname.c (ISSLASH): Define.
128473         (BACKSLASH_IS_PATH_SEPARATOR): Define.
128474         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
128475         both `\' and `/' may be use as path separators.
128476         Based on a patch from Prashant TR.
128478 2000-07-31  Paul Eggert  <eggert@twinsun.com>
128480         * lib/quotearg.c (quotearg_n_options): Don't make the initial
128481         slot vector a constant, since it might get modified.
128483 2000-07-31  Jim Meyering  <meyering@lucent.com>
128485         * lib/xmalloc.c: Use `virtual memory exhausted', not
128486         `Memory exhausted'.
128487         * lib/obstack.c (print_and_abort): Likewise.
128489 2000-07-30  Paul Eggert  <eggert@twinsun.com>
128491         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
128492         buffer, so that the caller can always quote one small
128493         component of a "memory exhausted" message in slot 0.
128494         From a suggestion by Jim Meyering.
128496 2000-07-30  Jim Meyering  <meyering@lucent.com>
128498         * lib/makepath.c (make_path): Quote the other instance, too.
128500         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
128501         (STATIC_BUF_SIZE): Define.
128502         (quotearg_n_options): Use only statically allocated storage when
128503         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
128504         than STATIC_BUF_SIZE.
128506 2000-07-29  Jim Meyering  <meyering@lucent.com>
128508         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
128509         * lib/dirname.c (dir_name): Likewise.
128511         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
128512         `/'.
128514         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
128515         (dir_name): Assert that there are no trailing slashes.
128517 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
128519         * lib/mbswidth.h (mbswidth): Add a flags argument.
128520         (mbswidth): New declaration.
128521         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
128522         * lib/mbswidth.c (mbswidth): Add a flags argument.
128523         (mbsnwidth): New function.
128525 2000-07-24  Jim Meyering  <meyering@lucent.com>
128527         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
128529 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128531         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
128533 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128535         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
128536         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
128537         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
128538         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
128539         invoke multibyte primitives.
128541 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128543         * lib/quotearg.c:
128544         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
128545         so that mbstate_t is always defined.
128547         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
128548         be 1 in at least one GCC installation, and this configuration
128549         error is likely to be common.  Ignoring MB_LEN_MAX hurts
128550         performance on hosts that have mbrtowc but have only unibyte
128551         locales, but I assume these hosts are rare.
128553 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128555         * lib/mbswidth.c (_XOPEN_SOURCE):
128556         Don't define; this causes problems on Solaris 7.
128557         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
128559 2000-07-23  Jim Meyering  <meyering@lucent.com>
128561         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
128562         too: getgrgid, getpwuid, getuid.
128564 2000-07-23  Jim Meyering  <meyering@lucent.com>
128566         * lib/basename.c (base_name): Add an assertion.
128568 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
128570         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
128571         shadow its mbsinit function.
128573 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
128575         * lib/mbswidth.h: New file.
128576         * lib/mbswidth.c: New file.
128577         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
128578         (noinst_HEADERS): Add mbswidth.h.
128580 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
128582         * lib/config.charset: Add support for FreeBSD. Improve support for
128583         HP-UX and IRIX 6.
128585 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
128587         * m4/mbswidth.m4: New file.
128588         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
128590 2000-07-15  Jim Meyering  <meyering@lucent.com>
128592         * lib/makepath.c: Include quote.h.
128593         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
128594         corresponding argument in a `quote (...)' call.
128595         Give better diagnostics.
128597         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
128598         (noinst_HEADERS): Add quote.h.
128600         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
128601         from tar's src/misc.c.
128602         * lib/quote.h: New file.  Prototypes for same.
128604 2000-07-14  Paul Eggert  <eggert@twinsun.com>
128606         From a suggestion by Bruno Haible.
128607         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
128608         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
128609         to decide whether to define the BeOS workaround macro;
128610         this adjusts to the change to AC_MBSTATE_T.
128612 2000-07-14  Jim Meyering  <meyering@lucent.com>
128614         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
128615         jm_AC_TYPE_UINTMAX_T.
128617 2000-07-13  Paul Eggert  <eggert@twinsun.com>
128619         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
128621         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
128622         quotearg_buffer_restyled): Add support for
128623         clocale_quoting_style.  Undo previous change to
128624         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
128625         and "{RIGHT QUOTATION MARK}" msgids.
128627 2000-07-10  Paul Eggert  <eggert@twinsun.com>
128629         From a suggestion by Bruno Haible.
128630         * m4/mbstate_t.m4 (AC_MBSTATE_T):
128631         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
128632         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
128633         and mbstate_t, to a single-part test that simply defines mbstate_t.
128634         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
128635         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
128637 2000-07-10  Jim Meyering  <meyering@lucent.com>
128639         * m4/strerror_r.m4: Mirror the correction made in autoconf.
128641         * m4/gnu-source.m4: Output to confdefs.h directly.
128642         Suggestion from Akim Demaille.
128644 2000-07-09  Paul Eggert  <eggert@twinsun.com>
128646         The old behavior of quoting `like this' doesn't look good with
128647         newer, ISO-style fonts.  See:
128648         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
128650         Instead, quote "like this" by default.  Let the translator
128651         tailor the locale-specific quoting behavior by providing
128652         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
128654         * lib/quotearg.c (N_): New macro.
128655         (gettext_default): New function.
128656         (quotearg_buffer_restyled): Use
128657         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
128658         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
128660 2000-07-09  Jim Meyering  <meyering@lucent.com>
128662         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
128663         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
128665         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
128666         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
128668 2000-07-09  Jim Meyering  <meyering@lucent.com>
128670         * lib/Most files: Update copyright dates to include 2000.
128672 2000-07-08  Jim Meyering  <meyering@lucent.com>
128674         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
128675         if not defined.
128676         (xgethostname): Remove now-unnecessary #ifdef.
128677         Move declaration of `err' into loop where it's used.
128679 2000-07-05  Paul Eggert  <eggert@twinsun.com>
128680         and Bruno Haible  <haible@clisp.cons.org>
128682         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
128683         only if the test for an object-type mbstate_t fails.  This
128684         prevents us from mistakenly reporting that mbstate_t is a
128685         system object type after we "#define mbstate_t int" to work
128686         around its lack.
128688 2000-07-05  Paul Eggert  <eggert@twinsun.com>
128689         and Bruno Haible  <haible@clisp.cons.org>
128691         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
128693 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
128695         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
128696         to strerror_r.
128697         Include <ctype.h> for use of isalpha.
128699 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
128701         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
128702         by allocating a larger buffer. Test the gethostname return value for
128703         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
128704         returns an error and ENAMETOOLONG isn't defined.
128706 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
128708         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
128709         dimension.
128711 2000-07-04  Jim Meyering  <meyering@lucent.com>
128713         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
128714         of the deprecated AC_CHECKING.
128716 2000-07-04  Jim Meyering  <meyering@lucent.com>
128718         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
128719         Reported by Bruno Haible.
128721 2000-07-04  Jim Meyering  <meyering@lucent.com>
128723         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
128724         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
128725         lacks mbrtowc.
128727 2000-07-03  Paul Eggert  <eggert@twinsun.com>
128729         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
128730         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
128732 2000-07-03  Paul Eggert  <eggert@twinsun.com>
128733         and Bruno Haible  <haible@clisp.cons.org>
128735         * lib/quotearg.c (mbrtowc):
128736         Assign to *pwc, and return 1 only if result is nonzero.
128737         (iswprint): Use ISPRINT when substituting our own mbrtowc.
128739 2000-07-03  Jim Meyering  <meyering@lucent.com>
128741         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
128743 2000-07-03  Jim Meyering  <meyering@lucent.com>
128745         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
128746         This is necessary to get a definition of e.g., UTMP_FILE on
128747         HP-UX 10.20.
128748         From Bob Proulx.
128750 2000-07-02  Jim Meyering  <meyering@lucent.com>
128752         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
128754         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
128755         AC_LIBOBJ(function_name).
128756         * m4/chown.m4: Likewise.
128757         * m4/fnmatch.m4: Likewise.
128758         * m4/ftruncate.m4: Likewise.
128759         * m4/getgroups.m4: Likewise.
128760         * m4/getline.m4: Likewise.
128761         * m4/group-member.m4: Likewise.
128762         * m4/jm-macros.m4: Likewise.
128763         * m4/lstat.m4: Likewise.
128764         * m4/malloc.m4: Likewise.
128765         * m4/memcmp.m4: Likewise.
128766         * m4/nanosleep.m4: Likewise.
128767         * m4/putenv.m4: Likewise.
128768         * m4/realloc.m4: Likewise.
128769         * m4/regex.m4: Likewise.
128770         * m4/stat.m4: Likewise.
128771         * m4/strftime.m4: Likewise.
128773 2000-07-02  Jim Meyering  <meyering@lucent.com>
128775         * lib/quotearg.c (mbstate_t): Don't define here.
128777 2000-07-02  Jim Meyering  <meyering@lucent.com>
128779         * lib/nanosleep.c (SIGCONT): Define if not already defined.
128781 2000-07-01  Jim Meyering  <meyering@lucent.com>
128783         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
128785 2000-07-01  Jim Meyering  <meyering@lucent.com>
128787         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
128788         problem.
128790 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
128792         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
128793         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
128795 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
128797         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
128798         per change in ../m4/ls-mntd-fs.m4.
128799         (read_filesystem_list): Ignore symbolic links.
128801 2000-06-29  Jim Meyering  <meyering@lucent.com>
128803         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
128804         for declaration of strcmp.
128806         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
128808         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
128809         Avoid warning by casting result to `char *' to remove `const'.
128811 2000-06-28  Jim Meyering  <meyering@lucent.com>
128813         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
128814         included by quotearg.c, for which we perform this test.  From
128815         Bruno Haible.
128817 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
128819         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
128820         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
128821         <utmpx.h> exists, put readutmp.o into LIBOBJS.
128823 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
128825         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
128827 2000-06-26  Paul Eggert  <eggert@twinsun.com>
128829         savedir now sets errno on failure and invokes xmalloc to get memory.
128830         Fix a couple of other minor bugs while we're at it.
128832         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
128833         (NAMLEN): Remove macro.
128834         (malloc, realloc): Remove decls.
128835         (stpcpy): Likewise.
128836         ("xalloc.h"): Include.
128837         (NAME_SIZE_DEFAULT): New macro.
128838         (savedir): Use xmalloc / xrealloc to allocate memory.
128839         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
128840         Skip "" directory entries.
128841         Use strlen to calculate directory entry length, since the old method
128842         is rarely used these days and isn't worth supporting.
128843         Don't use a pointer after freeing it.
128844         Check for integer overflow when calculating allocation size.
128845         Use memcpy to copy entries, instead of stpcpy.
128846         Set errno properly when returning NULL.
128847         Check for readdir error.
128849 2000-06-26  Jim Meyering  <meyering@lucent.com>
128851         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
128853 2000-06-25  Jim Meyering  <meyering@lucent.com>
128855         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
128856         Linux header bug when _XOPEN_SOURCE is defined to 500.
128858 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
128860         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
128861         deficiency.
128863 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
128865         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
128866         Include xalloc.h.
128867         Don't include <stdlib.h>.  Don't declare malloc, realloc.
128869 2000-06-24  Jim Meyering  <meyering@lucent.com>
128871         * m4/strerror_r.m4: Revive this file -- to try out an experimental
128872         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
128873         for which strerror does return char*, but which lacks a conveniently
128874         accessible declaration of the function.  If the compile-test says
128875         strerror_r doesn't work, then resort to a `run'-test that works on
128876         BeOS and segfaults on DEC Unix.
128878 2000-06-24  Jim Meyering  <meyering@lucent.com>
128880         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
128882 2000-06-23  Paul Eggert  <eggert@twinsun.com>
128884         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
128885         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
128887 2000-06-23  Paul Eggert  <eggert@twinsun.com>
128889         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
128890         (mbrtowc, mbstate_t): Define substitutes if
128891         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
128892         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
128893         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
128895 2000-06-23  Jim Meyering  <meyering@lucent.com>
128897         * m4/afs.m4: Add missing AC_MSG_RESULT.
128898         Reported by Bruno Haible.
128900         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
128901         Suggestion from Bruno Haible.
128903 2000-06-23  Jim Meyering  <meyering@lucent.com>
128905         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
128907 2000-06-21  Jim Meyering  <meyering@lucent.com>
128909         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
128911 2000-06-21  Jim Meyering  <meyering@lucent.com>
128913         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
128914         (noinst_HEADERS): Add getstr.h.
128916         * lib/getline.c (getstr): Move into a separate file.
128917         * lib/getstr.c (getstr): New file, extracted from getline.c, with
128918         the following changes: new parameter, delim2; both delim[12]
128919         parameters have type `int', not `char'.  The latter would lose
128920         with 8-bit delimiters.
128921         * lib/getstr.h: New file.
128923 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
128925         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
128926         than 1024, return a memory chunk of least possible size, instead
128927         of size PATH_MAX + 2. In the loop, increment the size proportionally.
128928         Use free/xmalloc instead of xrealloc to avoid copying for very long
128929         paths.
128931 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
128933         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
128934         the empty string.
128936 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
128938         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
128939         address, not strdup.  Include <stdlib.h> and don't declare free().
128941 2000-06-19  Jim Meyering  <meyering@lucent.com>
128943         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
128945 2000-06-18  Jim Meyering  <meyering@lucent.com>
128947         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
128949         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
128950         `checking whether...' message to be consistent with that of the
128951         lstat test.
128953 2000-06-18  Jim Meyering  <meyering@lucent.com>
128955         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
128956         Besides, these days every porting target provides a mkdir function.
128958         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
128959         needed. (this snippet comes from src/system.h).
128961 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
128963         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
128965 2000-06-15  Paul Eggert  <eggert@twinsun.com>
128967         * lib/human.c (adjust_value): New function.
128968         (human_readable_inexact): Apply rounding style even when
128969         printing approximate values.
128971 2000-06-14  Paul Eggert  <eggert@twinsun.com>
128973         * lib/human.c (human_readable_inexact): Allow an input block
128974         size that is not a multiple of the output block size, and vice versa.
128975         Reported by Piergiorgio Sartor.
128977 2000-06-14  Paul Eggert  <eggert@twinsun.com>
128979         * lib/getdate.y (get_date): Apply relative times after time
128980         zone indicator, not before.  Reported by Todd A. Jacobs.
128982 2000-06-13  Jim Meyering  <meyering@lucent.com>
128984         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
128986         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
128988 2000-06-12  Paul Eggert  <eggert@twinsun.com>
128990         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
128992 2000-06-12  Jim Meyering  <meyering@lucent.com>
128994         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
128995         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
128996         optional argument.
128997         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
128998         the optional argument, `lib'.
129000 2000-06-08  Jim Meyering  <meyering@lucent.com>
129002         * m4/largefile.m4: Remove file (now that it's part of autoconf).
129004 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129006         Rewrite largefile configuration so that we don't need to run
129007         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
129008         AC_CANONICAL_HOST in configure.in -- jmm]
129010         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
129011         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
129012         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
129013         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
129014         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
129015         All uses changed.
129016         Instead of inspecting the output of getconf, try to compile the
129017         test program without and with the macro definition.
129018         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
129019         for getconf.  Instead, check for the needed flags by compiling
129020         test programs.
129022 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129024         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
129026 2000-06-04  Jim Meyering  <meyering@lucent.com>
129028         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
129029         SunOS 4.1.4 for which gid_t is an unsigned type.
129031 2000-06-03  Jim Meyering  <meyering@lucent.com>
129033         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
129034         now that autoconf requires that.
129036         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
129037         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
129038         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
129040 2000-06-03  Jim Meyering  <meyering@lucent.com>
129042         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
129044 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129046         * m4/glibc21.m4: New file.
129047         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
129049 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129051         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
129052         newer, don't install charset.alias.
129053         * lib/config.charset: Change the Linux/glibc rules so they become empty
129054         on glibc-2.1 or newer.
129056 2000-06-02  Jim Meyering  <meyering@lucent.com>
129058         * lib/mountlist.c: Back out last change.  Instead, do this...
129059         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
129060         me_dummy member using the same `ignore'-testing code.
129061         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
129062         fs_type strings.
129063         From Mark D. Roth.
129065 2000-05-29  Jim Meyering  <meyering@lucent.com>
129067         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
129068         mounts with the `ignore' attribute.  Based on a patch from
129069         Mark D. Roth.
129071 2000-05-28  Jim Meyering  <meyering@lucent.com>
129073         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
129074         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129075         * m4/stat.m4: Likewise.
129076         * m4/lstat.m4: Likewise.
129077         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
129079         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
129080         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
129082 2000-05-26  Jim Meyering  <meyering@lucent.com>
129084         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
129086 2000-05-24  Jim Meyering  <meyering@lucent.com>
129088         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
129089         autoconf requires that.
129090         * m4/lib-check.m4: Likewise.
129091         * m4/jm-macros.m4: Likewise.
129092         * m4/strftime.m4: Likewise.
129094         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
129095         AC_CHECK_DECLS, now that autoconf requires that.
129097 2000-05-22  Jim Meyering  <meyering@lucent.com>
129099         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129100         * m4/lstat.m4: Likewise.
129102 2000-05-22  Jim Meyering  <meyering@lucent.com>
129104         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
129106 2000-05-20  Jim Meyering  <meyering@lucent.com>
129108         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
129109         (jm_PREREQ): Use it.
129111 2000-05-18  Jim Meyering  <meyering@lucent.com>
129113         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
129114         back, too, since it may have been modified by allocate_entry.
129115         (hash_delete): Rewrite to use neither the assignment operator
129116         nor the comma operator in an if-expression.
129118 2000-05-15  Paul Eggert  <eggert@twinsun.com>
129120         * lib/closeout.c:
129121         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
129122         Remove; no longer needed.
129123         "quotearg.h": Add include.
129124         (file_name): Do not bother to explicitly initialize to NULL; it's less
129125         efficient on some hosts.
129126         (close_stdout_status): Remove test as to whether stdout was already
129127         closed; it breaks for the case "echo x | sort >&-".
129128         Quote file name colons.
129129         Do not assume that _("write error") lacks format strings.
129131 2000-05-15  Jim Meyering  <meyering@lucent.com>
129133         * lib/version-etc.c (version_etc_copyright): Update the copyright
129134         string used in all --version output.
129136 2000-05-14  Jim Meyering  <meyering@lucent.com>
129138         * lib/closeout.c (close_stdout_set_file_name): New function.
129139         (close_stdout_status): Use new file-scoped global.
129140         Return right away if fstat says the stdout file descriptor is invalid.
129141         * lib/closeout.h (close_stdout_set_file_name): Declare.
129143 2000-05-10  Jim Meyering  <meyering@lucent.com>
129145         * lib/closeout.c [default_exit_status]: New file-scoped variable.
129146         (close_stdout_set_status): New function.
129147         * lib/closeout.h (close_stdout_set_status): Declare.
129149 2000-05-09  Jim Meyering  <meyering@lucent.com>
129151         * m4/gettext.m4: Rename this...
129152         * m4/libintl.m4: ...to this.
129154 2000-05-08  Jim Meyering  <meyering@lucent.com>
129156         * lib/long-options.c: Don't include closeout.h.
129157         (parse_long_options): Don't call close_stdout for --version.
129159 2000-05-06  Paul Eggert  <eggert@twinsun.com>
129161         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
129162         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
129163         2.1.3 bug.  This avoids a clash when files like regex.c define
129164         _GNU_SOURCE.
129166 2000-05-06  Jim Meyering  <meyering@lucent.com>
129168         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
129169         (AC_REPLACE_FUNCS): Add strnlen.
129171         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
129172         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
129174         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
129175         AC_SEARCH_LIBS call for nanosleep.
129176         (LIB_NANOSLEEP): Set and AC_SUBST.
129178 2000-05-06  Jim Meyering  <meyering@lucent.com>
129180         * lib/strnlen.c: Undefine __strnlen and strnlen.
129181         [!weak_alias]: Define __strnlen to strnlen.
129183         * lib/atexit.c: New file, from libiberty.
129185 2000-05-06  Jim Meyering  <meyering@lucent.com>
129187         * lib/closeout.c (close_stdout_status): Also check for errors on the
129188         stderr stream.
129190 2000-05-05  Jim Meyering  <meyering@lucent.com>
129192         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
129193         AC_SEARCH_LIBS call for clock_gettime.
129194         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
129196         * m4/search-libs.m4: Update from autoconf.
129198         su doesn't work on Solaris 2.6.
129199         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
129200         <shadow.h>.  Reported by Dragos Harabor.
129202 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
129204         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
129205         memcpy instead of xmalloc, xrealloc, path_concat.
129206         (locale_charset): Treat empty environment variables as absent.
129207         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
129209 2000-05-04  Jim Meyering  <meyering@lucent.com>
129211         * lib/getopt.c: Update from glibc.
129212         * lib/obstack.c: Likewise.
129213         * lib/obstack.h: Likewise.
129214         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
129215         file
129217         * lib/regex.h: Likewise.
129218         * lib/strndup.c: Likewise.
129219         * lib/strnlen.c: New file, from glibc.
129221 2000-05-03  Jim Meyering  <meyering@lucent.com>
129223         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
129225 2000-05-02  Paul Eggert  <eggert@twinsun.com>
129227         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
129228         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
129229         compile-time test, rather than inspecting host and OS, to
129230         decide whether to define _LARGEFILE_SOURCE.
129232 2000-05-01  Jim Meyering  <meyering@lucent.com>
129234         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
129236         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
129237         Based on a patch from Bruno Haible.
129239 2000-05-01  Jim Meyering  <meyering@lucent.com>
129241         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
129243 2000-04-29  Jim Meyering  <meyering@lucent.com>
129245         * lib/path-concat.c: Declare strdup only if it's not defined.
129246         * lib/canon-host.c: Likewise.
129248 2000-04-28  Jim Meyering  <meyering@lucent.com>
129250         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
129251         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
129252         is included first, then limits.h is included by locale.h by libintl.h.
129253         From John David Anglin.
129255 2000-04-25  Jim Meyering  <meyering@lucent.com>
129257         * lib/makepath.c (S_IRWXUGO): Define.
129258         (make_path): Always perform explicit chmod if MODE specifies any
129259         of the `special' permission bits.  Prompted by a bug report against
129260         install from Mate Wierdl and Joost van Baal.
129262 2000-04-18  Jim Meyering  <meyering@lucent.com>
129264         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
129265         (jm_PREREQ): Use it.
129267 2000-04-18  Jim Meyering  <meyering@lucent.com>
129269         * lib/README: New file.
129271         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
129272         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
129274 2000-04-17  Jim Meyering  <meyering@lucent.com>
129276         Get it right :-)
129277         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
129278         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
129279         Suggestion from Akim Demaille.
129281 2000-04-17  Jim Meyering  <meyering@lucent.com>
129283         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
129284         the definition of it to rpl_strftime also defined-away the system's
129285         declaration.
129287 2000-04-15  Jim Meyering  <meyering@lucent.com>
129289         Use `C' to denote so-called `contiguous' files, the same way
129290         that tar does.
129291         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
129292         (ftypelet): Use S_ISCTG.
129293         From Michael Deutschmann.
129295 2000-04-14  Jim Meyering  <meyering@lucent.com>
129297         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
129298         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
129299         clobbered.
129301 2000-04-14  Jim Meyering  <meyering@lucent.com>
129303         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
129305 2000-04-13  Jim Meyering  <meyering@lucent.com>
129307         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
129308         AH_VERBATIM to insert required #ifndef into config.h.in.
129309         Suggestion from Akim Demaille.
129311 2000-04-12  Jim Meyering  <meyering@lucent.com>
129313         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
129314         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
129315         Christian Krackowizer.
129317         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
129318         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
129319         (AC_SYS_LARGEFILE): Require.
129320         (AM_C_PROTOTYPES): Require.
129322 2000-04-08  Jim Meyering  <meyering@lucent.com>
129324         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
129325         names don't conflict.  Reported by Eli Zaretskii.
129327 2000-04-07  Jim Meyering  <meyering@lucent.com>
129329         * lib/putenv.c: Move inclusion of errno.h so it follows that of
129330         sys/types.h, to work around system header problems on AIX 3.2.5.
129331         From Bruno Haible.
129333 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
129335         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
129336         bug.  Deal with the different error behavior of Irix iconv.
129338 2000-04-05  Paul Eggert  <eggert@twinsun.com>
129340         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
129341         IRIX if the installer said otherwise.
129343 2000-04-05  Jim Meyering  <meyering@lucent.com>
129345         Portability tweaks required for ultrix4.3.
129346         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
129347         (jm_CHECK_DECLS): Add getutent to the list of functions.
129348         (_jm_DECL_HEADERS): Add utmpx.h.
129349         From John David Anglin.
129351         * m4/strftime.m4: Back out the 2000-04-02 change.
129352         Instead of that change, simply undefine putenv in the test program.
129354 2000-04-05  Jim Meyering  <meyering@lucent.com>
129356         Portability tweaks required for ultrix4.3.
129357         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
129358         getutent.
129359         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
129360         * lib/canon-host.c: Declare strdup.
129361         * lib/path-concat.c: Likewise.
129362         From John David Anglin.
129364 2000-04-04  Jim Meyering  <meyering@lucent.com>
129366         Be more DOS 8.3-friendly.
129367         * lib/ref-add.sin: Renamed from ref-add.sed.in.
129368         * lib/ref-del.sin: Renamed from ref-del.sed.in.
129369         * lib/Makefile.am: Reflect renaming.
129370         Reported by Eli Zaretskii.
129372         Use a temporary file name that won't clash with `charset.alias'
129373         in the DOS 8.3 name space.
129374         * lib/Makefile.am (charset_tmp): Define.
129375         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
129376         (uninstall-local): Likewise.
129377         Reported by Eli Zaretskii.
129379 2000-04-03  Jim Meyering  <meyering@lucent.com>
129381         * m4/gettext.m4: Fix typo in comment.
129383         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
129384         textutils/configure.in).  Suggestion from Paul Eggert.
129385         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
129387 2000-04-02  Paul Eggert  <eggert@twinsun.com>
129389         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
129390         variable in the shell rather than using putenv, which isn't
129391         portable.  This avoids the configure-time inter-test dependency
129392         on the potentially-renamed putenv function.
129394 2000-03-30  Paul Eggert  <eggert@twinsun.com>
129396         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
129397         before checking struct stat.st_blksize, so that
129398         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
129400 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129402         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
129403         since strftime.c uses HAVE_STRFTIME to decide whether to use
129404         the underlying strftime.
129406 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129408         * lib/time/strftime.c (my_strftime): Make sure we call the system
129409         strftime, not ourselves, when invoking the underlying strftime.
129411 2000-03-24  Jim Meyering  <meyering@lucent.com>
129413         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
129414         (charset_alias): Define.
129415         (install-exec-local): Factor out common code.
129416         (uninstall-local): Split lines longer than 80.
129417         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
129418         (SUFFIXES): Define.
129419         (.sed.in.sed): New rule.  Don't redirect directly to $@.
129420         (CLEANFILES): Add ref-add.sed and ref-del.sed.
129422 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
129424         * lib/config.charset: Output a line containing "Packages using this
129425         file".
129426         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
129427         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
129428         ref-del.sed): New rules.
129430 2000-03-17  Jim Meyering  <meyering@lucent.com>
129432         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
129433         Otherwise, include <strings.h>
129435 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
129437         * lib/unicodeio.c (utf8_wctomb): New function.
129438         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
129439         format instead of in UCS-4 with platform dependent endianness.
129441 2000-03-10  Jim Meyering  <meyering@lucent.com>
129443         * m4/lib-check.m4: Look for getspnam in -lgen, too.
129444         From Marco Franzen.
129446 2000-03-07  Paul Eggert  <eggert@twinsun.com>
129448         * lib/savedir.c (savedir): Work even if directory size is
129449         negative; this can happen with some screwy NFS configurations.
129451 2000-03-06  Jim Meyering  <meyering@lucent.com>
129453         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
129454         if it's NULL (because we ran out of memory).  From Bruno Haible.
129456 2000-03-05  Jim Meyering  <meyering@lucent.com>
129458         * lib/localcharset.c ("path-concat.h"): Include.
129459         (get_charset_aliases): Use path_concat instead of ANSI string
129460         concatenation.
129462         * lib/unicodeio.h (PARAMS): Define.
129463         Use it to guard prototype.
129465 2000-03-04  Jim Meyering  <meyering@lucent.com>
129467         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
129468         for lib/localcharset.c.
129470 2000-03-04  Jim Meyering  <meyering@lucent.com>
129472         * lib/Makefile.am (install-exec-local): Create $(libdir) before
129473         installing into it.
129474         (uninstall-local): Uncomment this rule so `make distcheck' works
129475         once again.
129477         * lib/unicodeio.c (<errno.h>): Include it.
129478         (errno): Declare if not defined.
129480         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
129482         * lib/config.charset: New version, incorporating remarks from a linux
129483         i18n mailing list.  From Bruno Haible.
129485 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
129487         * m4/codeset.m4: New file.
129488         * m4/iconv.m4: New file.
129489         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
129491 2000-03-03  Jim Meyering  <meyering@lucent.com>
129493         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
129495 2000-03-02  Jim Meyering  <meyering@lucent.com>
129497         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
129498         the messages come out on separate lines.
129500         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
129501         rather than jm_CHECK_DECLARATIONS.
129502         * m4/decl.m4: Remove now-unused file.
129504         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
129505         geteuid.
129507 2000-03-02  Jim Meyering  <meyering@lucent.com>
129509         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
129511 2000-03-01  Jim Meyering  <meyering@lucent.com>
129513         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
129514         * lib/unicodeio.c: Likewise.
129516 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
129518         * lib/config.charset: New file.
129519         * lib/localcharset.c: New file.
129520         * lib/unicodeio.h, lib/unicodeio.c: New files.
129521         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
129522         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
129523         (noinst_HEADERS): Add unicodeio.h.
129524         (all-local, install-exec-local, charset.alias): New targets.
129526 2000-02-28  Paul Eggert  <eggert@twinsun.com>
129528         * lib/quotearg.c (ALERT_CHAR): New macro.
129529         (quotearg_buffer_restyled): Use it.
129531 2000-02-27  Jim Meyering  <meyering@lucent.com>
129533         * m4/check-decl.m4: Add getenv to the list.
129535 2000-02-27  Jim Meyering  <meyering@lucent.com>
129537         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
129538         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
129540         * lib/backupfile.c: Guard inclusion of stdlib.h with
129541         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
129542         Declare malloc if needed.
129544         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
129545         `#ifndef HAVE_DECL..'
129546         now that autoconf always defines the HAVE_DECL_ symbols.
129547         * lib/human.c: Likewise.
129548         * lib/same.c: Likewise.
129549         * lib/strtoumax.c: Likewise.
129551         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
129552         declaration check was not run.
129553         * lib/hash.c: Likewise.
129554         * lib/human.c: Likewise.
129555         * lib/same.c: Likewise.
129556         * lib/strtoumax.c: Likewise.
129558         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
129559         `.', then first look up the entire `.'-containing string as a login
129560         name.
129562 2000-02-23  Jim Meyering  <meyering@lucent.com>
129564         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
129565         in place of my hack.
129567 2000-02-18  Paul Eggert  <eggert@twinsun.com>
129569         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
129570         (textint): New typedef.
129571         (parser_control): Member year changed from int to textint.
129572         All uses changed.
129573         (YYSTYPE): Removed; replaced by %union with int and textint members.
129574         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
129575         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
129576         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
129577         (tSNUMBER, tUNUMBER): Now of type <textintval>.
129578         (date, number, to_year): Use width of number in digits, not its value,
129579         to determine whether it's a 2-digit year, or a 2-digit time.
129580         (yylex): Store number of digits of numeric tokens.
129581         Reported by John Kendall.
129583         (parser_control): Changed from struct parser_control to typedef (for
129584         consistency).  All uses changed.
129586         (tID): Removed; not used.
129587         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
129589 2000-02-14  Paul Eggert  <eggert@twinsun.com>
129591         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
129592         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
129594 2000-02-12  Jim Meyering  <meyering@lucent.com>
129596         * lib/userspec.c (ISDIGIT): Define it.
129597         (isdigit): Remove definition.
129598         (is_number): Use ISDIGIT, not isdigit.
129599         <libintl.h>: Include.
129600         (_ and N_): Define.
129601         (parse_user_spec): Mark translatable strings.
129603 2000-02-10  Jim Meyering  <meyering@lucent.com>
129605         With these changes, nanosleep.[ch] are finally enough like the other
129606         lib/* replacement files to compile on a few more losing systems.
129608         * lib/nanosleep.h: Don't include config.h.
129609         Remove prototype from declaration of nanosleep.
129610         (PARAMS): Remove now-unneeded definition.
129611         * lib/nanosleep.c: #undef nanosleep.
129612         (rpl_nanosleep): Rename from nanosleep.
129614 2000-02-10  Jim Meyering  <meyering@lucent.com>
129616         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
129617         gnu_nanosleep to rpl_nanosleep.
129619 2000-02-09  Jim Meyering  <meyering@lucent.com>
129621         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
129622         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
129624 2000-02-08  Akim Demaille  <akim@epita.fr>
129626         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
129627         `[' and `]' and remove uses of `changequote'.
129628         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
129629         (AC_SYS_LARGEFILE): Likewise.
129630         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
129631         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
129632         of changequote.
129633         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
129634         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
129635         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
129636         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
129638 2000-02-05  Jim Meyering  <meyering@lucent.com>
129640         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
129641         Remove explicit use of AC_HEADER_TIME.  It is required by
129642         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
129643         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
129644         in autoconf whereby the expansion of the latter ended up preceding
129645         the expansion of its prerequisite, AC_HEADER_TIME.
129646         Reported by Volker Borchert.
129648 2000-02-03  Jim Meyering  <meyering@lucent.com>
129650         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
129652 2000-02-03  Jim Meyering  <meyering@lucent.com>
129654         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
129655         rather than with `#if HAVE_UTMPNAME'.
129657 2000-02-02  Jim Meyering  <meyering@lucent.com>
129659         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
129660         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
129661         Reported by Eli Zaretskii.
129663 2000-02-01  Jim Meyering  <meyering@lucent.com>
129665         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
129667 2000-01-31  Jim Meyering  <meyering@lucent.com>
129669         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
129670         functions.  Add the time.h and sys/time.h headers along with the
129671         AC_REQUIRE'ment of AC_HEADER_TIME.
129673 2000-01-31  Jim Meyering  <meyering@lucent.com>
129675         * lib/nanosleep.h (nanosleep): Guard declaration with
129676         `#if ! HAVE_DECL_NANOSLEEP'.
129677         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
129678         the declaration in that vendor's sys/timers.h.
129679         Reported by Christian Krackowizer.
129681         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
129682         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
129683         (ISPRINT): Likewise.
129684         Reported by Tom Tromey.
129686 2000-01-30  Jim Meyering  <meyering@lucent.com>
129688         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
129690         * m4/prereq.m4 (utmp_includes): Define.
129691         Check for ut_user and ut_name members in both struct utmpx
129692         and struct utmp.
129694 2000-01-30  Jim Meyering  <meyering@lucent.com>
129696         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
129697         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
129698         header files where only utmpx.ut_user is declared.
129700         * lib/readutmp.h (UT_USER): Define.
129702 2000-01-29  Jim Meyering  <meyering@lucent.com>
129704         * m4/lib-check.m4: New file containing library-related checks from
129705         fileutils and sh-utils (textutils had none).
129707 2000-01-28  Jim Meyering  <meyering@lucent.com>
129709         * m4/perl.m4: Change format of warning message to look more like that
129710         from the missing script.  Suggestion from François Pinard.
129712 2000-01-25  Jim Meyering  <meyering@lucent.com>
129714         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
129715         well as time.h in the compile check.
129716         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
129717         Fix typo in cross-compiling case: s/yes/no/.
129719 2000-01-23  Jim Meyering  <meyering@lucent.com>
129721         * m4/jm-macros.m4: Move df-related tests here from
129722         fileutils/configure.in
129724         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
129725         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
129727         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
129728         s/space/ac_fsusage_space/.
129729         (jm_FILE_SYSTEM_USAGE): Take two parameters.
129731         * m4/ftruncate.m4: New file (derived from part of
129732         fileutils/configure.in).
129733         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
129734         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
129736         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
129737         AC_SUBST these here, rather than just in sh-util/configure.in, so
129738         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
129739         all the same.
129740         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
129741         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
129742         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
129743         (AC_SUBST(POW_LIBM)): Likewise.
129744         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
129746 2000-01-23  Jim Meyering  <meyering@lucent.com>
129748         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
129749         obstack.c.
129751 2000-01-22  Jim Meyering  <meyering@lucent.com>
129753         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
129755         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
129757         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
129758         configure.in
129759         (AC_CHECK_HEADERS): Likewise for sh-utils.
129760         (AC_CHECK_HEADERS): Likewise for textutils.
129761         Merge the three lists of headers.
129763         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
129764         from fileutils' configure.in.
129766         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
129767         code. Moved tests into their own function (_jm_DECL_HEADERS) in
129768         check-decl.m4.
129770         * m4/check-decl.m4: Use #if rather than #ifdef.
129771         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
129772         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
129773         (_jm_DECL_HEADERS): Define new function.
129774         (jm_CHECK_DECLARATIONS): Require it.
129776 2000-01-22  Jim Meyering  <meyering@lucent.com>
129778         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
129779         [! HAVE_DECL_STRTOULL]: Declare strtoull.
129780         Required for some AIX systems.  Reported by Christian Krackowizer.
129781         [TESTING] (main): New function.
129783         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
129784         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
129785         letters.
129787         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
129788         iswprint.
129790         * lib/strverscmp.c (ISDIGIT): Define.
129791         (strverscmp): Use ISDIGIT, not isdigit.
129793 2000-01-19  Jim Meyering  <meyering@lucent.com>
129795         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
129796         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
129797         defines `struct timespec' in <sys/time.h>
129799         * m4/c-bs-a.m4: Remove uses of changequote altogether.
129800         Thanks to Akim for explaining.
129802 2000-01-17  Paul Eggert  <eggert@twinsun.com>
129804         * lib/nanosleep.c (nanosleep):
129805         Don't use SA_INTERRUPT to decide whether to call sigaction, as
129806         POSIX.1 doesn't require SA_INTERRUPT and some systems
129807         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
129808         it's been part of POSIX.1 since day 1 (in 1988).
129810 2000-01-17  Jim Meyering  <meyering@lucent.com>
129812         * lib/interlock: Remove unused file.  Reported by François Pinard.
129814 2000-01-16  Paul Eggert  <eggert@twinsun.com>
129816         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
129817         alert, backslash, formfeed, and vertical tab unnecessarily in
129818         shell quoting style.
129820 2000-01-16  Jim Meyering  <meyering@lucent.com>
129822         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
129823         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
129824         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
129825         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
129827 2000-01-16  Jim Meyering  <meyering@lucent.com>
129829         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
129830         because the latter didn't work.
129832 2000-01-15  Jim Meyering  <meyering@lucent.com>
129834         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
129835         (AC_REPLACE_FUNCS): Add memcpy and memset.
129836         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
129837         Add strpbrk.
129838         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
129840 2000-01-12  Jim Meyering  <meyering@lucent.com>
129842         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
129843         (jm_PREREQ): Use it.
129844         (jm_PREREQ_READUTMP): New macro.
129845         (jm_PREREQ): Use it.
129847 2000-01-11  Paul Eggert  <eggert@twinsun.com>
129849         Quote multibyte characters correctly.
129850         * m4/c-bs-a.m4: New file.
129851         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
129852         (jm_PREREQ): Use it.
129854 2000-01-11  Paul Eggert  <eggert@twinsun.com>
129856         * m4/uintmax_t.m4: Port to autoconf 2.13.
129858 2000-01-08  Jim Meyering  <meyering@ascend.com>
129860         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
129861         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
129863 2000-01-04  Jim Meyering  <meyering@ascend.com>
129865         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
129866         jm_STRUCT_DIRENT_D_TYPE.
129867         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
129868         jm_STRUCT_DIRENT_D_INO.
129869         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
129870         jm_STRUCT_UTIMBUF.
129871         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
129872         renamings.
129873         * m4/utime.m4: Likewise.
129875         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
129876         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
129878 2000-01-03  Paul Eggert  <eggert@twinsun.com>
129880         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
129881         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
129883 2000-01-02  Jim Meyering  <meyering@ascend.com>
129885         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
129886         remember if this is necessary.
129888 1999-12-26  Jim Meyering  <meyering@ascend.com>
129890         * m4/jm-macros.m4: Use it here.
129891         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
129893 1999-12-23  Jim Meyering  <meyering@ascend.com>
129895         * m4/jm-macros.m4: Check for clock_gettime (moved from
129896         fileutils/configure.in)
129897         Check for gettimeofday.
129899 1999-12-20  Jim Meyering  <meyering@ascend.com>
129901         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
129902         autoconf-2.14a-1999-12-20.
129904 1999-12-19  Jim Meyering  <meyering@ascend.com>
129906         * m4/lstat-slash.m4: New file.
129907         * m4/jm-macros.m4: Use the new macro:
129908         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129910 1999-12-07  Jim Meyering  <meyering@ascend.com>
129912         * m4/perl.m4: Require that File::Compare be available, too.
129913         Too many systems seem to lack it.
129915         * m4/strftime.m4: Add checks for most of the cpp macros tested in
129916         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
129918 1999-11-18  Paul Eggert  <eggert@twinsun.com>
129920         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
129921         problem with the QNX 4.25 shell, which doesn't propagate exit
129922         status of failed commands inside shell assignments.
129924 1999-11-17  Jim Meyering  <meyering@ascend.com>
129926         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
129928 1999-11-07  Jim Meyering  <meyering@ascend.com>
129930         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
129932 1999-11-06  Jim Meyering  <meyering@ascend.com>
129934         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
129935         * m4/jm-macros.m4 (jm_MACROS): Use it here.
129937 1999-11-05  Jim Meyering  <meyering@ascend.com>
129939         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
129940         configure.in of textutils, fileutils, and sh-utils into this one
129941         (shared between those packages) file.
129942         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
129943         AC_STRUCT_ST_BLKSIZE.
129945 1999-11-03  Jim Meyering  <meyering@ascend.com>
129947         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
129948         of AC_CHECK_TYPE checks includes unistd.h.
129949         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
129950         Suggestion from Akim Demaille.
129952 1999-10-30  Jim Meyering  <meyering@ascend.com>
129954         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
129955         m4-quoted string.
129956         * m4/ls-mntd-fs.m4: Likewise.
129957         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
129958         * m4/jm-winsz1.m4: Likewise.
129960         * m4/const.m4: Remove file, since the fix made it into the experimental
129961         version of autoconf.
129962         * m4/mktime.m4: Likewise.
129964         * m4/check-type.m4: Remove file, now that the latest version of
129965         AC_CHECK_TYPE takes a third arg to specify additional #includes.
129967         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
129968         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
129969         AC_CHECK_TYPE.
129971 1999-10-04  Jim Meyering  <meyering@ascend.com>
129973         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
129975 1999-09-22  Paul Eggert  <eggert@twinsun.com>
129977         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
129978         2.95.1 bug with HP-UX 10.20.
129980 1999-09-17  Jim Meyering  <meyering@ascend.com>
129982         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
129983         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
129984         due to missing strdup (against sh-utils-2.0).
129986 1999-08-29  Jim Meyering  <meyering@ascend.com>
129988         * m4/jm-macros.m4: Require jm_BISON.
129989         * m4/bison.m4: New file.
129991 1999-08-17  Paul Eggert  <eggert@twinsun.com>
129993         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
129994         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
129996 1999-08-05  Jim Meyering  <meyering@ascend.com>
129998         * m4/getline.m4: Rename test file from conftestdata to conftest.data
129999         to avoid conflicts with `conftest' on 8+3 filesystems.
130000         Suggestion from Eli Zaretskii.
130002 1999-08-04  Jim Meyering  <meyering@ascend.com>
130004         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
130005         fileutils and sh-utils (textutils's getline test was inadequate).
130006         (AM_FUNC_GETLINE): Run this test.
130007         (AC_CHECK_FUNCS): Check for getdelim.
130008         Reported by Bob Proulx.
130010 1999-08-02  Jim Meyering  <meyering@ascend.com>
130012         * m4/jm-macros.m4: Add a comment.
130014 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130016         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
130017         <inttypes.h> defines strtoumax as a macro (and not as a
130018         function).
130020 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130022         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
130023         that we can shift, multiply and divide unsigned long long
130024         values; Ultrix cc can't do it.
130026 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130028         * m4/mktime.m4: New file, which is a preview of what should appear
130029         in the next public autoconf release.
130031 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130033         * m4/lfs.m4: Remove this file.
130034         * m4/largefile.m4: New file.  It contains the old contents of
130035         lfs.m4, except that all names with prefix AC_LFS have been
130036         changed to use the prefix AC_SYS_LARGEFILE instead, to be
130037         compatible with future autoconf versions.  Also, some minor m4
130038         quoting problems have been fixed.
130040 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130042         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
130043         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
130044         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
130045         and simplify the shell code.
130047 1999-08-01  Jim Meyering  <meyering@ascend.com>
130049         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
130050         m4.
130052 1999-07-20  Jim Meyering  <meyering@ascend.com>
130054         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
130056 1999-07-15  Jim Meyering  <meyering@ascend.com>
130058         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
130060 1999-05-22  Jim Meyering  <meyering@ascend.com>
130062         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
130064 1999-05-20  Jim Meyering  <meyering@ascend.com>
130066         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
130067         Add a colon after each `then' in case $4 is empty.
130069 1999-05-16  Jim Meyering  <meyering@ascend.com>
130071         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
130073 1999-05-10  Jim Meyering  <meyering@ascend.com>
130075         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
130077         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
130078         AC_FUNC_MKTIME.
130080 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
130082         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
130084 1999-05-04  Paul Eggert  <eggert@twinsun.com>
130086         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
130087         not CPPFLAGS, so that linking works correctly in IRIX.
130089 1999-04-30  Paul Eggert  <eggert@twinsun.com>
130091         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
130093 1999-04-20  Paul Eggert  <eggert@twinsun.com>
130095         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
130096         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
130097         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
130098         jm_AC_TYPE_UNSIGNED_LONG_LONG.
130099         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
130101         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
130103 1999-04-20  Jim Meyering  <meyering@ascend.com>
130105         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
130106         AC_REPLACE xstroull if necessary.  From Paul Eggert.
130107         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
130109 1999-04-18  Jim Meyering  <meyering@ascend.com>
130111         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
130112         * m4/jm-macros.m4: Use it.
130114 1999-04-06  Jim Meyering  <meyering@ascend.com>
130116         * m4/strftime.m4: Remove test for %f.
130118 1999-03-29  Jim Meyering  <meyering@ascend.com>
130120         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
130121         superset of the AC_TYPE_* checks in the textutils, fileutils,
130122         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
130123         AC_TYPE_PID_T.
130125 1999-03-28  Jim Meyering  <meyering@ascend.com>
130127         * m4/jm-macros.m4: Define GNU_PACKAGE here.
130128         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
130129         replaced e.g., in the *.sh files of the sh-utils.
130131 1999-03-20  Jim Meyering  <meyering@ascend.com>
130133         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
130134         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
130135         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
130137 1999-03-19  Jim Meyering  <meyering@ascend.com>
130139         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
130141 1999-03-12  Jim Meyering  <meyering@ascend.com>
130143         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
130145 1999-03-07  Jim Meyering  <meyering@ascend.com>
130147         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
130148         declared.
130150 1999-02-17  Jim Meyering  <meyering@ascend.com>
130152         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
130153         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
130155 1999-02-07  Jim Meyering  <meyering@ascend.com>
130157         * m4/group-member.m4: New file -- extracted from sh-utils'
130158         configure.in.
130160         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
130161         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
130163 1999-02-06  Jim Meyering  <meyering@ascend.com>
130165         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
130166         * m4/fnmatch.m4: Likewise.
130167         * m4/getgroups.m4: Likewise.
130168         * m4/lstat.m4: Likewise.
130169         * m4/malloc.m4: Likewise.
130170         * m4/putenv.m4: Likewise.
130171         * m4/realloc.m4: Likewise.
130172         * m4/regex.m4: Likewise.
130173         * m4/stat.m4: Likewise.
130174         * m4/strftime.m4: Likewise.
130175         Suggestion from Alain Magloire.
130177         * m4/chown.m4: Use `.$ac_objext', not `.o'.
130178         * m4/fnmatch.m4: Likewise.
130179         * m4/getgroups.m4: Likewise.
130180         * m4/getline.m4: Likewise.
130181         * m4/lstat.m4: Likewise.
130182         * m4/malloc.m4: Likewise.
130183         * m4/memcmp.m4: Likewise.
130184         * m4/putenv.m4: Likewise.
130185         * m4/realloc.m4: Likewise.
130186         * m4/regex.m4: Likewise.
130187         * m4/stat.m4: Likewise.
130188         * m4/strftime.m4: Likewise.
130189         Suggestion from Alain Magloire.
130191         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
130192         an argument.
130194         * m4/regex.m4: Add a run-time Test for proper operation of
130195         re_compile_pattern.
130197 1999-01-31  Jim Meyering  <meyering@ascend.com>
130199         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
130201 1999-01-30  Jim Meyering  <meyering@ascend.com>
130203         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
130205         * m4/jm-mktime.m4: Make this a wrapper around the official
130206         AM_FUNC_MKTIME rather than my private copy, now that the official one
130207         is up to date.
130208         * m4/mktime.m4: Remove file.
130210         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
130211         * m4/uptime.m4: Likewise.
130212         * m4/uintmax_t.m4: Likewise.
130214 1999-01-28  Jim Meyering  <meyering@ascend.com>
130216         * m4/jm-macros.m4: Use jm_AFS.
130217         * m4/afs.m4: New file (from fileutils' configure.in).
130219         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
130220         * m4/chown.m4: Likewise.
130221         * m4/d-ino.m4: Likewise.
130222         * m4/d-type.m4: Likewise.
130223         * m4/fnmatch.m4: Likewise.
130224         * m4/getgroups.m4: Likewise.
130225         * m4/gettext.m4: Likewise.
130226         * m4/jm-mktime.m4: Likewise.
130227         * m4/jm-winsz2.m4: Likewise.
130228         * m4/lcmessage.m4: Likewise.
130229         * m4/ls-mntd-fs.m4: Likewise.
130230         * m4/malloc.m4: Likewise.
130231         * m4/memcmp.m4: Likewise.
130232         * m4/putenv.m4: Likewise.
130233         * m4/realloc.m4: Likewise.
130234         * m4/st_mtim.m4: Likewise.
130235         * m4/strftime.m4: Likewise.
130237 1999-01-16  Jim Meyering  <meyering@ascend.com>
130239         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
130240         (ARGMATCH_DIE_DECL): Define.
130242 1999-01-12  Jim Meyering  <meyering@ascend.com>
130244         * m4/Makefile.am.in: Rewrite to avoid using fmt.
130245         Reported by Lars Hecking.
130247 1999-01-10  Jim Meyering  <meyering@ascend.com>
130249         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
130250         gross kludge.
130251         * m4/inttypes_h.m4: Likewise.
130252         * m4/lstat.m4: Likewise.
130253         * m4/malloc.m4: Likewise.
130254         * m4/readdir.m4: Likewise.
130255         * m4/realloc.m4: Likewise.
130256         * m4/st_dm_mode.m4: Likewise.
130257         * m4/stat.m4: Likewise.
130258         * m4/utimbuf.m4: Likewise.
130259         * m4/utimes.m4: Likewise.
130261         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
130262         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
130263         comments in config.h.in are meaningful.
130265         * m4/jm-macros.m4: Require autoconf-2.13 here.
130267         * m4/regex.m4: By default, don't use the included regex.c on systems
130268         with glibc 2.  Suggestion from Uli Drepper.
130270 1999-01-02  Jim Meyering  <meyering@ascend.com>
130272         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
130274 1998-12-18  Jim Meyering  <meyering@ascend.com>
130276         * m4/Makefile.am.in (Makefile.am): Simplify rule.
130277         Based on a suggestion from Lars Hecking.
130279 1998-11-16  Paul Eggert  <eggert@twinsun.com>
130281         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
130283 1998-11-16  Jim Meyering  <meyering@ascend.com>
130285         * m4/lfs.m4: Double-quote the `uname...` expression.
130287 1998-11-14  Jim Meyering  <meyering@ascend.com>
130289         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
130290         * m4/stat.m4: Likewise.
130292 1998-11-03  Jim Meyering  <meyering@ascend.com>
130294         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
130295         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
130297 1998-10-18  Jim Meyering  <meyering@ascend.com>
130299         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
130301 1998-10-17  Jim Meyering  <meyering@ascend.com>
130303         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
130304         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
130305         calls for those previously hard-coded headers.  Instead, take a new
130306         parameter.
130307         (jm_CHECK_DECLARATIONS): Reflect interface change.
130308         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
130309         (jm_CHECK_DECL_LOCALTIME_R): New macro.
130311         * m4/mktime.m4: Test for spring-forward gap before long-running test.
130313 1998-10-14  Jim Meyering  <meyering@ascend.com>
130315         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
130316         instead of "TZ=America/Vancouver".  From Paul Eggert.
130318 1998-10-11  Jim Meyering  <meyering@ascend.com>
130320         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
130321         This adds a test for a recently added compatibility fix for mktime.c.
130322         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
130324 1998-09-27  Jim Meyering  <meyering@ascend.com>
130326         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
130328         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
130329         ../configure.in, including a change from Gordon Matzigkeit to allow
130330         cross-compiling for the Hurd.
130332         * m4/glibc.m4: New file/macro to test for the GNU C Library
130333         versions 1 and 2.  From Gordon Matzigkeit.
130334         Indent.
130336 1998-09-21  Jim Meyering  <meyering@ascend.com>
130338         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
130340 1998-08-18  Paul Eggert  <eggert@twinsun.com>
130342         Port nanosecond-resolution times to UnixWare 2.1.2 and
130343         pedantic Solaris 2.6.
130345         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
130346         AC_STRUCT_ST_MTIM.
130347         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
130348         Generate name of ns member, instead of just 1 or undef.
130349         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
130351 1998-08-15  Jim Meyering  <meyering@ascend.com>
130353         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
130354         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
130355         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
130356         instead of jm_TYPE_SSIZE_T.
130358 1998-08-12  Jim Meyering  <meyering@ascend.com>
130360         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
130362 1998-08-02  Jim Meyering  <meyering@ascend.com>
130364         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
130365         in acconfig.h manually.
130367 1998-07-31  Paul Eggert  <eggert@twinsun.com>
130369         * m4/st_mtim.m4: New file.
130371 1998-07-28  Jim Meyering  <meyering@ascend.com>
130373         * m4/utimes.m4: Undef stat.
130375 1998-07-25  Jim Meyering  <meyering@ascend.com>
130377         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
130378         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
130380 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
130382         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
130383         uid and gid actually remain unchanged.
130385 1998-07-07  Jim Meyering  <meyering@ascend.com>
130387         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
130389 1998-07-04  Jim Meyering  <meyering@ascend.com>
130391         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
130392         to prove that this macro can be used in packages without regex.c.
130394 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
130396         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
130397         is to be used.
130399 1998-07-03  Jim Meyering  <meyering@ascend.com>
130401         * m4/gettext.m4: Add -lintl if it's found to be necessary.
130403         * m4/gettext.m4: New file -- from gettext-0.10.35.
130404         * m4/lcmessage.m4: Likewise.
130405         * m4/progtest.m4: Likewise.
130407         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
130408         * m4/jm-macros.m4: Require the new macro.
130410 1998-06-29  Jim Meyering  <meyering@ascend.com>
130412         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
130413         for the definition of NGROUPS (used in a system header included
130414         by sys/mount.h).
130416 1998-06-28  Jim Meyering  <meyering@ascend.com>
130418         * m4/ls-mntd-fs.m4: New file.
130419         * m4/fstypename.m4: New file.
130421         * m4/jm-macros.m4: Require the new macro.
130422         * m4/jm-glibc-io.m4: New file.
130424 1998-05-19  Jim Meyering  <meyering@ascend.com>
130426         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
130427         * m4/lchown.m4: New file.
130429         * m4/Makefile.am.in: New file.
130430         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
130432 1998-05-14  Jim Meyering  <meyering@ascend.com>
130434         * m4/Makefile.am (EXTRA_DIST): Add them.
130435         * m4/jm-macros.m4: New file.
130436         * m4/utimbuf.m4: New file.
130438 1998-05-12  Jim Meyering  <meyering@ascend.com>
130440         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
130442 1998-05-11  Jim Meyering  <meyering@ascend.com>
130444         * m4/isc-posix.m4: New file.
130446 1998-05-10  Jim Meyering  <meyering@ascend.com>
130448         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
130450 1998-05-09  Jim Meyering  <meyering@ascend.com>
130452         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
130453         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
130454         with automake.
130456         * m4/ssize_t.m4: New file.
130457         * m4/mktime.m4: Remove file -- the new automake has this now.
130459 1998-04-26  Jim Meyering  <meyering@ascend.com>
130461         * m4/assert.m4: New file.
130462         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
130464 1998-04-05  Jim Meyering  <meyering@ascend.com>
130466         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
130467         (jm_PREREQ): Use it here.
130469 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
130471         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
130472         in acconfig.h.
130474 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
130476         * m4/prereq.m4: New file.
130477         * m4/error.m4: New file.
130478         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
130480 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
130482         * m4/getline.m4: Don't set am_cv_func_working_getline before the
130483         cache-check for the same variable -- that defeated the purpose of
130484         the test; the test program was never run.  This was a problem only
130485         on systems with losing getline functions -- HP-UX 10.20 is one.
130486         Reported by Bjorn Helgaas.
130488 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
130490         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
130492 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
130494         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
130496         * m4/const.m4: New file.  Use an initializer in this declaration
130497         typedef int charset[2]; const charset x;
130498         Reported by Bob Glickstein.
130500 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
130502         * m4/chown.m4: Fix reversed types on -1 args to chown.
130503         From Kaveh Ghazi.
130505 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
130507         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
130508         Add lseek and memchr.
130510         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
130511         T.E.Dickey <dickey@clark.net> said that some older preprocessors
130512         have a 20-character limit on names.
130514 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
130516         * m4/inttypes_h.m4: New file.
130517         * m4/uintmax_t.m4: New file.
130518         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
130521         -----
130523         Local Variables:
130524         coding: utf-8
130525         End:
130527         Copyright (C) 1997-2020 Free Software Foundation, Inc.
130529         Copying and distribution of this file, with or without
130530         modification, are permitted provided the copyright notice
130531         and this notice are preserved.